Skip to content

You are not logged in. Register orLog In

start:

API@OOo: NEWSLETTER November/2003

Dear OOo community,

This is the third issue of the API@OOo NEWSLETTER.  At the beginning
of each month, I am summarizing what was going on in the previous month
within the OOo API project and the OOo SDK.


*** ====================================================================
*** OOo API and OOo SDK Highlights this Month
*** --------------------------------------------------------------------

        - #01: Different Service Managers in Client, OOo and Document
	- #02: Accessing the TextTable from a TextCursor or Paragraph
	- #03: Final Version of CodeSnipped Creator
	- #04: Setting Page Style Properties
	- #05: Dynamically Binding BASIC Methods to Events
	- #06: Import Filter Properties
	- #07: Why not Using the XListBox Interface of a Control
	- #08: Inserting Conditional Text
	- #09: Helping the OOo JavaBean Find its Resources
	- #10: Future of UNO: Multiple Inheritance Interfaces for Services
	- #11: Where to Put New Geometry Types 
	- #12: Implementing new URL Schemata in OOo / Utilizing UCP/UCB
	- #13: Automation bridge: fixing UNO hyper mapping
	- #14: CodeSnipped which Stores Writer Document as PDF
	- #15: Current List of Slot IDs for XDispatch
	- #16: Suns StarOffice 6.0 Software Basic Programmer's Guide
	- #17: How to Filter Data in a Form by Selecting a Value in a Combo Box

*** ====================================================================
*** #01: Different Service Managers in Client, OOo and Document
*** --------------------------------------------------------------------

Mathias Bauer explains [1,2] the different service mangers involved in a 
remote connection to OOo and a document.

1:http://api.openoffice.org/servlets/ReadMsg?msgId=912666&listName=dev
2:http://api.openoffice.org/servlets/ReadMsg?msgId=913106&listName=dev


*** ====================================================================
*** #02: Accessing the TextTable from a TextCursor or Paragraph
*** --------------------------------------------------------------------

Thomas Lange pointed out [1] that some properties are missing in some
service descriptions.  A Paragraph or TextCursor within a text table should 
have a property TextTable property.  This can be used to access the
TextTable of which a Paragraph is part or in which a TextCursor is.

1:http://api.openoffice.org/servlets/ReadMsg?msgId=913716&listName=dev

*** ====================================================================
*** #03: Final Version of CodeSnipped Creator
*** --------------------------------------------------------------------

Paolo Mantovani published [1] his final version of his CodeSnipped creator [2].

1:http://api.openoffice.org/servlets/ReadMsg?msgId=910993&listName=dev
2:http://www.openoffice.org/issues/showattachment.cgi?attach_id=10649&file=SnippetCreator.zip


*** ====================================================================
*** #04: Setting Page Style Properties
*** --------------------------------------------------------------------

Thomas Lange showed [1] how page style properties can be set at a
paragraph style sheet.

1:http://api.openoffice.org/servlets/ReadMsg?msgId=916404&listName=dev


*** ====================================================================
*** #05: Dynamically Binding BASIC Methods to Events
*** --------------------------------------------------------------------

Laurent Godard created [1] a code snippet which shows how to dynamically
bind BASIC methods to events.  The code was originally posted [2] by 
Oliver Brinzing.

1:http://api.openoffice.org/servlets/ReadMsg?msgId=928847&listName=dev
2:http://api.openoffice.org/servlets/ReadMsg?msgId=917593&listName=dev


*** ====================================================================
*** #06: Import Filter Properties 
*** --------------------------------------------------------------------

Andrew Pitonyak posted a macro which shows the parameters which where
used with an import filter after a document has been loaded by UI.  These 
parameters can be used to programmatically specify the filter behaviour.

1:http://api.openoffice.org/servlets/ReadMsg?msgId=916558&listName=dev


*** ====================================================================
*** #07: Why not Using the XListBox Interface of a Control
*** --------------------------------------------------------------------

Frank Schoenheit explains [1] why the XListBox interface of the control
should not be used, but changes should be made through the model.

1:http://api.openoffice.org/servlets/ReadMsg?msgId=936281&listName=dev


*** ====================================================================
*** #08: Inserting Conditional Text
*** --------------------------------------------------------------------

Stephan Wunderlich showed [1] an example of inserting conditional text.

1:http://api.openoffice.org/servlets/ReadMsg?msgId=940451&listName=dev


*** ====================================================================
*** #09: Helping the OOo JavaBean Find its Resources
*** --------------------------------------------------------------------

Michael Hoennig pointed out [1] that a Java application can make the
OOo JavaBean find its resources, like OOo itself, by utilizing the 
ClassLoader.  Simon Mieth postend [2] a concrete example.

1:http://api.openoffice.org/servlets/ReadMsg?msgId=943383&listName=dev
2:http://api.openoffice.org/servlets/ReadMsg?msgId=947336&listName=dev


*** ====================================================================
*** #10: Future of UNO: Multiple Inheritance Interfaces for Services
*** --------------------------------------------------------------------

Stephan Bergmann proposed [1] a future UNO feature which should reduce
the necessity of queryInterface().  Michael Hoennig explained [1] how
this could influence the OOo API in the future.

1:http://api.openoffice.org/servlets/ReadMsg?msgId=943382&listName=dev
2:http://api.openoffice.org/servlets/ReadMsg?msgId=944020&listName=dev


*** ====================================================================
*** #11: Where to Put New Geometry Types
*** --------------------------------------------------------------------

Thorsten Behrens raised [1] an interesting question about the module
structure of the API, especially for new geometry types.

1:http://api.openoffice.org/servlets/ReadMsg?msgId=934504&listName=dev


*** ====================================================================
*** #12: Implementing new URL Schemata in OOo / Utilizing UCP/UCB
*** --------------------------------------------------------------------

Kai Sommerfeld explained how new URL schemata could be added to OOo by
utilizing the UCP/UCP and Eberhard Mattes pointed {2] to an issue why it 
is not possible yet [3].

1:http://api.openoffice.org/servlets/ReadMsg?msgId=951375&listName=dev
2:http://api.openoffice.org/servlets/ReadMsg?msgId=953012&listName=dev
3:http://www.openoffice.org/issues/show_bug.cgi?id=20087


*** ====================================================================
*** #13: Automation bridge: fixing UNO hyper mapping
*** --------------------------------------------------------------------

Joachim Lingner announced [1] for people who use Visual Basic or another 
Automation capable language to access OOo: A bug in the OLE Automation 
bridge will be fixed, thus the hyper will eventually be represented by 
an Automation Decimal. 

1:http://api.openoffice.org/servlets/ReadMsg?msgId=941205&listName=dev


*** ====================================================================
*** #14: CodeSnipped which Stores Writer Document as PDF
*** --------------------------------------------------------------------

Stephan Wunderlich posted [1] a CodeSnippet which stores a Writer
document as PDF [2].

1:http://api.openoffice.org/servlets/ReadMsg?msgId=954195&listName=dev
2:http://api.openoffice.org/source/browse/api/www/Examples/Snippets/Writer/Writer.StoreWriterAsPDF.snip


*** ====================================================================
*** #15: Current List of Slot IDs for XDispatch
*** --------------------------------------------------------------------

Carsten Driesner pointed out [1] where a current list of slot ids can
be found [2].  Stephan Wunderlich added a hint [3] of how to use it.

1:http://api.openoffice.org/servlets/ReadMsg?msgId=957554&listName=dev
2:http://www.openoffice.org/files/documents/25/60/commands_11beta.html
3:http://api.openoffice.org/servlets/ReadMsg?msgId=957567&listName=dev


*** ====================================================================
*** #16: Suns StarOffice 6.0 Software Basic Programmer's Guide
*** --------------------------------------------------------------------

Juergen Schmidt posted [1] a link to Suns "StarOffice 6.0 Software
Basic Programmer's Guide".

1:http://api.openoffice.org/servlets/ReadMsg?msgId=961417&listName=dev
2:http://docs.sun.com/db/doc/817-1826-10


*** ====================================================================
*** #17: How to Filter Data in a Form by Selecting a Value in a Combo Box
*** --------------------------------------------------------------------

Sasa Kelecevic posted [1] a CodeSnippet about how to filter data in a form by 
selecting value in combo box.  It is based on code from Oliver Brinzing.

1:http://api.openoffice.org/servlets/ReadMsg?msgId=957216&listName=dev
2:http://api.openoffice.org/source/browse/api/www/Examples/Snippets/Office/Office.FilterFormDateFromComboBox.snip


*** ====================================================================
*** About this NEWSLETTER
*** --------------------------------------------------------------------

If you think this newsletter is useful and you would like to take over
responsibility for the API@OOo NEWSLETTER, just drop us a hint.  Or if
you just have something interesting for the next API@OOo NEWSLETTER,
mail your article to mi@openoffice.org.  The community would appreciate
your contribution.

        Michael