Hi,
othman wrote:
Ingrid Halama wrote:
Within the standard API the different types of diagrams do support
several axis-supplier services. For example the LineDiagram
(http://api.openoffice.org/docs/common/ref/com/sun/star/chart/LineDiagram.html)
does support ChartAxisXSupplier and ChartTwoAxisYSupplier. Those
services do support the boolean properties HasXAxisGrid,
HasXAxisHelpGrid, HasYAxisGrid etc..
http://api.openoffice.org/docs/common/ref/com/sun/star/chart/ChartAxisXSupplier.html
http://api.openoffice.org/docs/common/ref/com/sun/star/chart/ChartAxisYSupplier.html
So it should work to set those boolean properties at the diagram.
Kind regards,
Ingrid
Hi ,
the issue is that i'm not using standard API ,but instead the
com:sun:star:chart2 API .
That is no problem. You can mix the usage of both APIs. Thus you are
free to use the documented standard API as much as possible even when
there are some parts in your code where you need to use the unpublished
internal chart2 API. Using the standard API wherever possible will make
your code even more robust against changes of the unpublished API.
The object where both APIs touch is the chart document.
The chart document supports both interfaces
com::sun::star::chart2::XChartDocument and
com::sun::star::chart::XChartDocument. So get the chart document object
(using whatever API), query it for interface
com::sun::star::chart::XChartDocument
(http://api.openoffice.org/docs/common/ref/com/sun/star/chart/XChartDocument.html)
and use the method getDiagram() to get the standard API diagram. There
you can set the above mentioned properties.
I'm not sure but i suspect that chart2 API doesn't support the
axis-supplier services you mentioned above . am i correct ?
That is correct, but the chart implementation does support both APIs -
standard chart API and unpublished chart2 API.
if yes, what are the corresponding axis-supplier services for the
com:sun:star:chart2 API?
thanks.
Kind regards,
Ingrid
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]