LibreOffice
LibreOffice 24.2 SDK API Reference
|
manages the chart document. More...
import"XChartDocument.idl";
Public Member Functions | |
com::sun::star::drawing::XShape | getTitle () |
com::sun::star::drawing::XShape | getSubTitle () |
com::sun::star::drawing::XShape | getLegend () |
com::sun::star::beans::XPropertySet | getArea () |
com::sun::star::chart::XDiagram | getDiagram () |
void | setDiagram ([in] com::sun::star::chart::XDiagram xDiagram) |
sets the diagram for the chart document. More... | |
com::sun::star::chart::XChartData | getData () |
void | attachData ([in] com::sun::star::chart::XChartData xData) |
attaches data to the chart. More... | |
Public Member Functions inherited from XModel | |
boolean | attachResource ([in] string URL, [in] sequence< com::sun::star::beans::PropertyValue > Arguments) |
informs a model about its resource description. More... | |
string | getURL () |
provides information about the location of this model More... | |
sequence< com::sun::star::beans::PropertyValue > | getArgs () |
provides read access on currently representation of the com::sun::star::document::MediaDescriptor of this model which describes the model and its state More... | |
void | connectController ([in] XController Controller) |
is called whenever a new controller is created for this model. More... | |
void | disconnectController ([in] XController Controller) |
is called whenever an existing controller should be deregistered at this model. More... | |
void | lockControllers () |
suspends some notifications to the controllers which are used for display updates. More... | |
void | unlockControllers () |
resumes the notifications which were suspended by XModel::lockControllers(). More... | |
boolean | hasControllersLocked () |
determines if there is at least one lock remaining. More... | |
XController | getCurrentController () |
provides access to the controller which currently controls this model More... | |
void | setCurrentController ([in] XController Controller) raises ( com::sun::star::container::NoSuchElementException ) |
sets a registered controller as the current controller. More... | |
com::sun::star::uno::XInterface | getCurrentSelection () |
provides read access on current selection on controller More... | |
Public Member Functions inherited from XComponent | |
void | dispose () |
The owner of an object calls this method to explicitly free all resources kept by this object and thus break cyclic references. More... | |
void | addEventListener ([in] XEventListener xListener) |
adds an event listener to the object. More... | |
void | removeEventListener ([in] XEventListener aListener) |
removes an event listener from the listener list. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
manages the chart document.
void attachData | ( | [in] com::sun::star::chart::XChartData | xData | ) |
attaches data to the chart.
The given object needs to support interface XChartDataArray.
Since OOo 3.3 if the given object might support interface XComplexDescriptionAccess which allows to set complex hierarchical axis descriptions.
Since OOo 3.4 if the given object might support interface XDateCategories which allows to set date values as x values for category charts.
The given data is copied before it is applied to the chart. So changing xData after this call will have no effect on the chart.
xData | the object that provides the new data. |
com::sun::star::beans::XPropertySet getArea | ( | ) |
The area's extent is equal to the document size. If you want to access properties of the background area of the diagram, in which the actual data is represented, you have to change the chart wall which you get from the X3DDisplay.
com::sun::star::chart::XChartData getData | ( | ) |
The returned object supports interface XChartDataArray which can be used to access the concrete data.
Since OOo 3.3 the returned object also supports interface XComplexDescriptionAccess which can be used to access complex hierarchical axis descriptions.
Since OOo 3.4 the returned object also supports interface XDateCategories.
com::sun::star::chart::XDiagram getDiagram | ( | ) |
com::sun::star::drawing::XShape getLegend | ( | ) |
com::sun::star::drawing::XShape getSubTitle | ( | ) |
Usually the subtitle is smaller than the main title by default. And it is most commonly placed below the main title by default.
com::sun::star::drawing::XShape getTitle | ( | ) |
void setDiagram | ( | [in] com::sun::star::chart::XDiagram | xDiagram | ) |
sets the diagram for the chart document.
Setting a new diagram implicitly disposes the previous diagram.
xDiagram | the new diagram that should be set for the chart. To create such a diagram component, you can use the com::sun::star::lang::XMultiServiceFactory, which should be implemented by an XChartDocument. |