25#include <oox/token/namespaces.hxx>
40 mrShape.setRotation( rAttribs.getInteger( XML_rot, 0 ) );
41 mrShape.setFlip( rAttribs.getBool( XML_flipH,
false ), rAttribs.getBool( XML_flipV,
false ) );
45 if( rAttribs.hasAttribute( XML_rot ) )
46 mrShape.getTextBody()->getTextProperties().moRotation = rAttribs.getInteger( XML_rot, 0 );
56 if(
nType == XML_rect ||
nType == XML_roundRect ||
nType == XML_ellipse )
58 switch( aElementToken )
65 if( !sXValue.isEmpty() &&
nType != XML_ellipse )
67 if( !sYValue.isEmpty() )
76 if( !sXValue.isEmpty() &&
nType == XML_rect )
82 if( !sYValue.isEmpty() )
96 switch( aElementToken )
104 case A_TOKEN( chOff ):
107 case A_TOKEN( chExt ):
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...
Helper class that provides a context stack.
CustomShapePropertiesPtr & getCustomShapeProperties()
void setSize(css::awt::Size aSize)
const css::awt::Size & getSize() const
const css::awt::Point & getPosition() const
void setChildPosition(css::awt::Point nPosition)
void setPosition(css::awt::Point nPosition)
void setChildSize(css::awt::Size aSize)
const TextBodyPtr & getTextBody() const
virtual ::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
Transform2DContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttributes, Shape &rShape, bool btxXfrm=false) noexcept
context to import a CT_Transform2D
::rtl::Reference< ContextHandler > ContextHandlerRef
sal_Int32 GetCoordinate(sal_Int32 nValue)
converts EMUs into 1/100th mmm