Difference between revisions of "FAQ about Chart API Compatibility"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Using StarBasic Macros: Whoa, made the same error again, now the code should work ;-))
m (Using StarBasic Macros: renamed Star to OOo, seems more appropriate)
Line 3: Line 3:
 
'''Note, that the new API is not published yet, so you should not use the new API extensively before it is published!'''
 
'''Note, that the new API is not published yet, so you should not use the new API extensively before it is published!'''
  
= Using StarBasic Macros =
+
= Using OOo Basic Macros =
  
 
'''Question:''' I can no longer set the main title using the Title property.
 
'''Question:''' I can no longer set the main title using the Title property.

Revision as of 16:53, 24 August 2007

If you have written StarBasic Macros or other Code that uses the API in com.sun.star.chart and want to be able to still run it with the new chart here is some help in case you encounter problems. If you have problems not listed here feel free to add them here.

Note, that the new API is not published yet, so you should not use the new API extensively before it is published!

Using OOo Basic Macros

Question: I can no longer set the main title using the Title property.

 ' oMyChart is the XChartDocument (XModel)
 oMyChart.Title.String = "My Title"

Answer: Get a newer version. In OOG680.m2 the new API has changed. The interface XTitled now has the methods getTitleObject and setTitleObject. Thus the name-clash that lead to this problem no longer exists from that version on. (OOG680.m2 is a pre-release of OOo2.3)

Personal tools