namespace com::sun::star::chart { class XChartDocument; } namespace com::sun::star::beans { class XPropertySet; }
namespace com::sun::star { namespace frame { class XModel;
} namespace chart2 { class XChartDocument; class XDataSeries;
}
}
class SvXMLStylesContext; class SvXMLImportContext; class SvXMLImport;
/** With this class you can import a <chart:chart> element containing itsdataas<table:table>elementorwithoutinternaltable.In thelattercaseyouhavetoprovideatableaddressmapperthat convertstableaddressesinXMLformattotheappropriateapplication format.
*/ class SchXMLImportHelper final : public salhelper::SimpleReferenceObject
{ private:
css::uno::Reference< css::chart::XChartDocument > mxChartDoc;
SvXMLStylesContext* mpAutoStyles;
public:
SchXMLImportHelper();
/** get the context for reading the <chart:chart> element with subelements. TheresultisstoredintheXModelgivenifitalsoimplements XChartDocument
*/
SvXMLImportContext* CreateChartContext(
SvXMLImport& rImport, const css::uno::Reference< css::frame::XModel >& rChartModel );
/** set the auto-style context that will be used to retrieve auto-styles usedinsidethefollowing<chart:chart>elementtoparse
*/ void SetAutoStylesContext( SvXMLStylesContext* pAutoStyles ) { mpAutoStyles = pAutoStyles; }
SvXMLStylesContext* GetAutoStylesContext() const { return mpAutoStyles; }
/// Fill in the autostyle. void FillAutoStyle(const OUString& rAutoStyleName, const css::uno::Reference<css::beans::XPropertySet>& rProp);
/** @param bPushLastChartType If </sal_False>, in case a new chart type has to beadded(becauseitdoesnotexistyet),itisappendedatthe endofthechart-typecontainer.When</sal_True>,anewcharttype isaddedatonepositionbeforethelastone,i.e.theformerly lastcharttypeispushedback,sothatitremainsthelastone.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.