28#include <oox/token/namespaces.hxx>
29#include <oox/token/tokens.hxx>
34using ::oox::core::ContextHandler2Helper;
47 switch( getCurrentElement() )
49 case C_TOKEN( dispUnits ):
52 case C_TOKEN( builtInUnit ):
55 case C_TOKEN( custUnit ):
58 case C_TOKEN( dispUnitsLbl ):
63 case C_TOKEN( dispUnitsLbl ):
66 case C_TOKEN( layout ):
92 switch( getCurrentElement() )
94 case C_TOKEN( catAx ):
95 case C_TOKEN( dateAx ):
96 case C_TOKEN( serAx ):
97 case C_TOKEN( valAx ):
100 case C_TOKEN( axId ):
103 case C_TOKEN( crossAx ):
106 case C_TOKEN( crosses ):
109 case C_TOKEN( crossesAt ):
112 case C_TOKEN(
delete ):
115 case C_TOKEN( majorGridlines ):
117 case C_TOKEN( majorTickMark ):
123 case C_TOKEN( minorGridlines ):
125 case C_TOKEN( minorTickMark ):
128 case C_TOKEN( numFmt ):
131 case C_TOKEN( scaling ):
133 case C_TOKEN( spPr ):
135 case C_TOKEN( tickLblPos ):
138 case C_TOKEN( title ):
141 sal_Int32 nDefaultRotation = bVerticalDefault ? -5400000 : 0;
144 case C_TOKEN( txPr ):
149 case C_TOKEN( scaling ):
152 case C_TOKEN( logBase ):
182 if( isRootElement() )
switch( nElement )
184 case C_TOKEN(
auto ):
187 case C_TOKEN( lblAlgn ):
190 case C_TOKEN( lblOffset ):
193 case C_TOKEN( noMultiLvlLbl ):
196 case C_TOKEN( tickLblSkip ):
199 case C_TOKEN( tickMarkSkip ):
218 if( isRootElement() )
switch( nElement )
220 case C_TOKEN(
auto ):
223 case C_TOKEN( baseTimeUnit ):
226 case C_TOKEN( lblOffset ):
229 case C_TOKEN( majorTimeUnit ):
232 case C_TOKEN( majorUnit ):
235 case C_TOKEN( minorTimeUnit ):
238 case C_TOKEN( minorUnit ):
256 if( isRootElement() )
switch( nElement )
258 case C_TOKEN( tickLblSkip ):
261 case C_TOKEN( tickMarkSkip ):
279 if( isRootElement() )
switch( nElement )
281 case C_TOKEN( crossBetween ):
284 case C_TOKEN( dispUnits ):
286 case C_TOKEN( majorUnit ):
289 case C_TOKEN( minorUnit ):
Provides access to attribute values of an element.
std::optional< sal_Int32 > getInteger(sal_Int32 nAttrToken) const
Returns the 32-bit signed integer value of the specified attribute (decimal).
std::optional< OUString > getString(sal_Int32 nAttrToken) const
Returns the string value of the specified attribute.
std::optional< bool > getBool(sal_Int32 nAttrToken) const
Returns the boolean value of the specified attribute.
std::optional< sal_Int32 > getToken(sal_Int32 nAttrToken) const
Returns the token identifier of the value of the specified attribute.
std::optional< double > getDouble(sal_Int32 nAttrToken) const
Returns the double value of the specified attribute.
XmlFilterBase & getFilter() const
Returns the filter instance.
bool isMSO2007Document() const
Base class for axis context handlers (c:catAx, c:dateAx, c:serAx, c:valAx elements).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
AxisContextBase(::oox::core::ContextHandler2Helper &rParent, AxisModel &rModel)
virtual ~AxisContextBase() override
Handler for a value axis display units context (c:dispUnits element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual ~AxisDispUnitsContext() override
AxisDispUnitsContext(::oox::core::ContextHandler2Helper &rParent, AxisDispUnitsModel &rModel)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual ~CatAxisContext() override
CatAxisContext(::oox::core::ContextHandler2Helper &rParent, AxisModel &rModel)
AxisDispUnitsModel & mrModel
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
DateAxisContext(::oox::core::ContextHandler2Helper &rParent, AxisModel &rModel)
virtual ~DateAxisContext() override
Handler for a chart layout context (c:layout element).
SerAxisContext(::oox::core::ContextHandler2Helper &rParent, AxisModel &rModel)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual ~SerAxisContext() override
Help class for all contexts that have only the c:spPr child element.
Handler for a chart text context (c:tx element).
Handler for a chart title context (c:title element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
ValAxisContext(::oox::core::ContextHandler2Helper &rParent, AxisModel &rModel)
virtual ~ValAxisContext() override
::rtl::Reference< ContextHandler > ContextHandlerRef
SwNodeOffset min(const SwNodeOffset &a, const SwNodeOffset &b)
TextRef mxText
Layout/position of the axis units label.
double mfCustomUnit
Text source of the axis units label.
LayoutRef mxLayout
Label text formatting.
OUString mnBuiltInUnit
Custom unit size on value axis.
TextBodyRef mxTextProp
Label frame formatting.
sal_Int32 mnTickLabelSkip
Position of tick mark labels relative to the axis.
AxisDispUnitsRef mxDispUnits
Axis title.
NumberFormat maNumberFormat
Minor grid lines formatting.
sal_Int32 mnAxisPos
Unique axis identifier.
sal_Int32 mnTickMarkSkip
Number of tick mark labels to skip.
std::optional< sal_Int32 > monBaseTimeUnit
Minimum axis value.
bool mbAuto
Type identifier of this axis.
sal_Int32 mnLabelOffset
Tick mark label alignment.
sal_Int32 mnAxisId
Base time unit shown on a date axis.
TitleRef mxTitle
Axis label text formatting.
std::optional< double > mofMax
Logarithmic base for logarithmic axes.
sal_Int32 mnOrientation
Time unit for minor tick marks on date axis.
sal_Int32 mnMinorTickMark
Time unit for major tick marks on date axis.
std::optional< double > mofCrossesAt
Number format for axis tick labels.
sal_Int32 mnMajorTickMark
Tick mark label distance from axis.
sal_Int32 mnMajorTimeUnit
Major tick mark style.
sal_Int32 mnCrossAxisId
Position of the axis (top/bottom/left/right).
ShapeRef mxMajorGridLines
Axis units label.
std::optional< double > mofLogBase
Unit for minor tick marks on date/value axis.
ShapeRef mxMinorGridLines
Major grid lines formatting.
bool mbNoMultiLevel
True = axis has been deleted manually.
sal_Int32 mnCrossMode
This value axis crosses between or inside category.
sal_Int32 mnLabelAlign
Mode this axis crosses another axis (min, max, auto).
std::optional< double > mofMajorUnit
Position on this axis where another axis crosses.
std::optional< double > mofMinorUnit
Unit for major tick marks on date/value axis.
sal_Int32 mnMinorTimeUnit
Minor tick mark style.
bool mbDeleted
True = automatic selection of text/date axis type.
sal_Int32 mnCrossBetween
Identifier of a crossing axis.
std::optional< double > mofMin
Maximum axis value.
TextBodyRef mxTextProp
Axis line formatting.
sal_Int32 mnTickLabelPos
Axis orientation (value order min to max, or max to min).