26#include <com/sun/star/chart/XDiagram.hpp>
27#include <com/sun/star/xml/sax/XAttributeList.hpp>
34 css::uno::Reference< css::chart::XDiagram >
const & xDiagram,
35 std::vector< SchXMLAxis >& aAxes,
36 OUString& rCategoriesAddress,
37 bool bAddMissingXAxisForNetCharts,
38 bool bAdaptWrongPercentScaleValues,
39 bool bAdaptXAxisOrientationForOld2DBarCharts,
40 bool& rbAxisPositionAttributeImported );
44 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
override;
48 const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList )
override;
50 static void CorrectAxisPositions(
const css::uno::Reference< css::chart2::XChartDocument >& xNewDoc,
51 std::u16string_view rChartTypeServiceName,
52 std::u16string_view rODFVersionOfFile,
53 bool bAxisPositionAttributeImported );
71 css::uno::Reference< css::drawing::XShape >
getTitleShape()
const;
72 void CreateGrid(
const OUString& sAutoStyleName,
bool bIsMajor );
SchXMLAxis m_aCurrentAxis
static void CorrectAxisPositions(const css::uno::Reference< css::chart2::XChartDocument > &xNewDoc, std::u16string_view rChartTypeServiceName, std::u16string_view rODFVersionOfFile, bool bAxisPositionAttributeImported)
SchXMLAxisContext(SchXMLImportHelper &rImpHelper, SvXMLImport &rImport, css::uno::Reference< css::chart::XDiagram > const &xDiagram, std::vector< SchXMLAxis > &aAxes, OUString &rCategoriesAddress, bool bAddMissingXAxisForNetCharts, bool bAdaptWrongPercentScaleValues, bool bAdaptXAxisOrientationForOld2DBarCharts, bool &rbAxisPositionAttributeImported)
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
bool m_bDateScaleImported
css::uno::Reference< css::chart::XDiagram > m_xDiagram
SchXMLImportHelper & m_rImportHelper
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
bool m_bAdaptWrongPercentScaleValues
void CreateGrid(const OUString &sAutoStyleName, bool bIsMajor)
std::vector< SchXMLAxis > & m_rAxes
bool m_bAddMissingXAxisForNetCharts
bool & m_rbAxisPositionAttributeImported
virtual ~SchXMLAxisContext() override
bool m_bAdaptXAxisOrientationForOld2DBarCharts
OUString m_aAutoStyleName
css::uno::Reference< css::drawing::XShape > getTitleShape() const
css::uno::Reference< css::beans::XPropertySet > m_xAxisProps
OUString & m_rCategoriesAddress
With this class you can import a <chart:chart> element containing its data as <table:table> element o...
This class deliberately does not support XWeak, to improve performance when loading large documents.