Difference between revisions of "Documentation/DevGuide/Charts/Accessing Existing Chart Documents"
From Apache OpenOffice Wiki
< Documentation | DevGuide
(Initial author Sun Microsystems, Inc.) |
m (1 revision(s)) |
(No difference)
|
Revision as of 12:35, 15 February 2008
- Creating and Adding a Chart to a Spreadsheet
- Creating a Chart OLE Object in Draw and Impress
- Setting the Chart Type
- Accessing Existing Chart Documents
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). |