27#include <oox/token/namespaces.hxx>
28#include <oox/token/tokens.hxx>
30#include <osl/diagnose.h>
35using ::oox::core::ContextHandler2Helper;
50 if( isCurrentElement( C_TOKEN( tx ) ) )
switch( nElement )
55 case C_TOKEN( strRef ):
56 OSL_ENSURE( !
mrModel.
mxDataSeq,
"TextContext::onCreateContext - multiple data sequences" );
60 OSL_ENSURE( !
mrModel.
mxDataSeq,
"TextContext::onCreateContext - multiple data sequences" );
68 if( isCurrentElement( C_TOKEN(
v ) ) )
93 case C_TOKEN( layout ):
96 case C_TOKEN( overlay ):
100 case C_TOKEN( spPr ):
106 case C_TOKEN( txPr ):
130 case C_TOKEN(
delete ):
151 case C_TOKEN( layout ):
154 case C_TOKEN( legendPos ):
158 case C_TOKEN( legendEntry ):
161 case C_TOKEN( overlay ):
165 case C_TOKEN( spPr ):
168 case C_TOKEN( txPr ):
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< 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.
Handler for a chart layout context (c:layout element).
LegendContext(::oox::core::ContextHandler2Helper &rParent, LegendModel &rModel)
virtual ~LegendContext() override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Handler for a chart legend entry context (c:legendEntry element).
LegendEntryContext(::oox::core::ContextHandler2Helper &rParent, LegendEntryModel &rModel)
virtual ~LegendEntryContext() override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Handler for a string sequence context (c:multiLvlStrRef, c:strLit, c:strRef elements).
Handler for a chart text context (c:tx element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual ~TextContext() override
TextContext(::oox::core::ContextHandler2Helper &rParent, TextModel &rModel)
virtual void onCharacters(const OUString &rChars) override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
TitleContext(::oox::core::ContextHandler2Helper &rParent, TitleModel &rModel)
virtual ~TitleContext() override
::rtl::Reference< ContextHandler > ContextHandlerRef
OUString maFormula
Map of values, indexed by point identifier.
sal_Int32 mnLegendEntryIdx
bool mbLabelDeleted
Legend entry index.
ShapeRef mxShapeProp
Legend entries formatting.
LayoutRef mxLayout
Legend text formatting.
TextBodyRef mxTextProp
Legend shape formatting.
bool mbOverlay
Legend position.
sal_Int32 mnPosition
Layout/position of the legend.
LegendEntryVector maLegendEntries
TextBodyRef mxTextBody
The string data or formula link of this text.
DataSequenceRef mxDataSeq
LayoutRef mxLayout
Title text formatting.
TextBodyRef mxTextProp
Title shape formatting.
bool mbOverlay
Text source of the title.
TextRef mxText
Layout/position of the frame.