26#include <oox/token/namespaces.hxx>
36 const OUString& rFragmentPath,
39 , mpDataPtr(
std::move( xDataPtr ))
59 case DGM_TOKEN( dataModel ):
69 const OUString& rFragmentPath,
72 , mpDataPtr(
std::move( xDataPtr ))
92 case DGM_TOKEN( layoutDef ):
102 const OUString& rFragmentPath,
106 mrStylesMap( rStylesMap )
114 o_rStyle.
mnThemedIdx = (nElement == A_TOKEN(fontRef)) ?
125 switch( getCurrentElement() )
128 return nElement == DGM_TOKEN(styleDef) ? this :
nullptr;
129 case DGM_TOKEN(styleDef):
130 return nElement == DGM_TOKEN(styleLbl) ? this :
nullptr;
131 case DGM_TOKEN(styleLbl):
132 return nElement == DGM_TOKEN(style) ? this :
nullptr;
133 case DGM_TOKEN(style):
140 case A_TOKEN(fillRef):
143 case A_TOKEN(effectRef):
146 case A_TOKEN(fontRef):
159 if( getCurrentElement() == DGM_TOKEN( styleLbl ) )
168 if( getCurrentElement() == DGM_TOKEN(styleLbl) )
173 const OUString& rFragmentPath,
177 mrColorsMap(rColorsMap)
186 switch( getCurrentElement() )
189 return nElement == DGM_TOKEN(colorsDef) ? this :
nullptr;
190 case DGM_TOKEN(colorsDef):
191 return nElement == DGM_TOKEN(styleLbl) ? this :
nullptr;
192 case DGM_TOKEN(styleLbl):
198 case DGM_TOKEN(fillClrLst):
200 case DGM_TOKEN(linClrLst):
202 case DGM_TOKEN(effectClrLst):
204 case DGM_TOKEN(txFillClrLst):
206 case DGM_TOKEN(txLinClrLst):
208 case DGM_TOKEN(txEffectClrLst):
220 if( getCurrentElement() == DGM_TOKEN(styleLbl) )
229 if( getCurrentElement() == DGM_TOKEN(styleLbl) )
Provides access to attribute values of an element.
OUString getStringDefaulted(sal_Int32 nAttrToken) const
Returns the string value of the specified attribute, returns an empty string if attribute not present...
std::optional< sal_Int32 > getInteger(sal_Int32 nAttrToken) const
Returns the 32-bit signed integer value of the specified attribute (decimal).
std::optional< sal_Int32 > getToken(sal_Int32 nAttrToken) const
Returns the token identifier of the value of the specified attribute.
Context handler for elements that contain a color value element (a:scrgbClr, a:srgbClr,...
DiagramColorMap & mrColorsMap
virtual void onStartElement(const AttributeList &rAttribs) override
DiagramColor maColorEntry
ColorFragmentHandler(::oox::core::XmlFilterBase &rFilter, const OUString &rFragmentPath, DiagramColorMap &rColorMap)
virtual void onEndElement() override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Same as ColorContext, but handles multiple colors.
OoxDiagramDataPtr mpDataPtr
DiagramDataFragmentHandler(oox::core::XmlFilterBase &rFilter, const OUString &rFragmentPath, OoxDiagramDataPtr xDataPtr)
virtual ::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
virtual ~DiagramDataFragmentHandler() noexcept override
virtual void SAL_CALL endDocument() override
DiagramLayoutPtr mpDataPtr
virtual ~DiagramLayoutFragmentHandler() noexcept override
virtual ::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
virtual void SAL_CALL endDocument() override
DiagramLayoutFragmentHandler(oox::core::XmlFilterBase &rFilter, const OUString &rFragmentPath, DiagramLayoutPtr xDataPtr)
DiagramQStylesFragmentHandler(oox::core::XmlFilterBase &rFilter, const OUString &rFragmentPath, DiagramQStyleMap &rStylesMap)
::oox::core::ContextHandlerRef createStyleMatrixContext(sal_Int32 nElement, const AttributeList &rAttribs, ShapeStyleRef &o_rStyle)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual void onStartElement(const AttributeList &rAttribs) override
virtual void onEndElement() override
DiagramStyle maStyleEntry
DiagramQStyleMap & mrStylesMap
const sal_Int32 XML_ROOT_CONTEXT
std::shared_ptr< DiagramData > OoxDiagramDataPtr
std::map< OUString, DiagramColor > DiagramColorMap
std::map< OUString, DiagramStyle > DiagramQStyleMap
std::shared_ptr< DiagramLayout > DiagramLayoutPtr
std::vector< oox::drawingml::Color > maTextEffectColors
std::vector< oox::drawingml::Color > maTextFillColors
std::vector< oox::drawingml::Color > maTextLineColors
std::vector< oox::drawingml::Color > maFillColors
std::vector< oox::drawingml::Color > maEffectColors
std::vector< oox::drawingml::Color > maLineColors
ShapeStyleRef maLineStyle
ShapeStyleRef maEffectStyle
ShapeStyleRef maTextStyle
ShapeStyleRef maFillStyle