23#include <oox/token/namespaces.hxx>
24#include <oox/token/tokens.hxx>
35, mr3DProperties( r3DProperties )
41 switch( aElementToken )
43 case A_TOKEN( camera ):
53 case A_TOKEN( lightRig ):
59 case A_TOKEN( backdrop ):
60 case A_TOKEN( extLst ):
68, mr3DProperties( r3DProperties )
74 switch( aElementToken )
76 case A_TOKEN( camera ):
86 case A_TOKEN( lightRig ):
92 case A_TOKEN( backdrop ):
93 case A_TOKEN( extLst ):
96 case A_TOKEN( bevelT ):
97 case A_TOKEN( bevelB ):
107 if( aElementToken == A_TOKEN( bevelT ) )
114 case A_TOKEN( extrusionClr ):
117 case A_TOKEN( contourClr ):
125, mr3DProperties( r3DProperties )
127 if( rAttribs.hasAttribute( XML_extrusionH ) )
128 mr3DProperties.mnExtrusionH = rAttribs.getInteger( XML_extrusionH, 0 );
129 if( rAttribs.hasAttribute( XML_contourW ) )
130 mr3DProperties.mnContourW = rAttribs.getInteger( XML_contourW, 0 );
131 if( rAttribs.hasAttribute( XML_z ) )
132 mr3DProperties.mnShapeZ = rAttribs.getInteger( XML_z, 0 );
133 if( rAttribs.hasAttribute( XML_prstMaterial ) )
134 mr3DProperties.mnMaterial = rAttribs.getToken( XML_prstMaterial,
XML_none );
139 switch( aElementToken )
141 case A_TOKEN( bevelT ):
142 case A_TOKEN( bevelB ):
152 if( aElementToken == A_TOKEN( bevelT ) )
159 case A_TOKEN( extrusionClr ):
162 case A_TOKEN( contourClr ):
170, mrRotationProperties( rRotationProperties )
176 switch( aElementToken )
Provides access to attribute values of an element.
bool hasAttribute(sal_Int32 nAttrToken) const
Returns true, if the specified attribute is 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,...
Shape3DProperties & mr3DProperties
::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
Scene3DPropertiesContext(::oox::core::ContextHandler2Helper const &rParent, Shape3DProperties &rShape3DProperties) noexcept
Scene3DRotationPropertiesContext(::oox::core::ContextHandler2Helper const &rParent, RotationProperties &rRotationProperties) noexcept
RotationProperties & mrRotationProperties
::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
Text3DProperties & mr3DProperties
SceneText3DPropertiesContext(::oox::core::ContextHandler2Helper const &rParent, Text3DProperties &rText3DProperties) noexcept
::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
Shape3DPropertiesContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttribs, Shape3DProperties &r3DProperties) noexcept
Shape3DProperties & mr3DProperties
::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
std::optional< sal_Int32 > mnHeight
std::optional< sal_Int32 > mnPreset
std::optional< sal_Int32 > mnWidth
std::optional< BevelProperties > maBottomBevelProperties
std::optional< sal_Int32 > mnLightRigDirection
std::optional< sal_Int32 > mnPreset
std::optional< sal_Int32 > mnLightRigType
RotationProperties maLightRigRotation
RotationProperties maCameraRotation
std::optional< float > mfFieldOfVision
std::optional< BevelProperties > maTopBevelProperties
std::optional< float > mfZoom
std::optional< sal_Int32 > mnLongitude
std::optional< sal_Int32 > mnLatitude
std::optional< sal_Int32 > mnRevolution