Difference between revisions of "Documentation/DevGuide/Charts/Accessing Existing Chart Documents"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Changing Category:Charts)
m (Robot: Changing Category:Documentation/Developers Guide/Charts)
Line 12: Line 12:
 
{{PDL1}}
 
{{PDL1}}
  
[[Category:Documentation/Developers Guide/Charts]]
+
[[Category:Documentation/Developer's Guide/Charts]]

Revision as of 07:41, 5 June 2008



To get a container of all charts contained in a spreadsheet document, use the com.sun.star.table.XTableChartsSupplier of the service com.sun.star.sheet.Spreadsheet, which is available at single spreadsheets.

To get all OLE-shapes of a draw page, use the interface com.sun.star.drawing.XDrawPage, that is based on com.sun.star.container.XIndexAccess. You can iterate over all shapes on the draw page and check their CLSID property to find out, whether the found object is a chart.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools