21#include <com/sun/star/xml/sax/FastToken.hpp>
36#include <oox/token/namespaces.hxx>
37#include <oox/token/tokens.hxx>
55: ShapeGroupContext( rParent, pMasterShapePtr, pGroupShapePtr )
56, mpSlidePersistPtr(
std::move( pSlidePersistPtr ))
57, meShapeLocation( eShapeLocation )
63 if( getNamespace( aElementToken ) == NMSP_dsp )
64 aElementToken = NMSP_ppt | getBaseToken( aElementToken );
66 switch( aElementToken )
68 case OOX_TOKEN(dml, extLst):
69 case OOX_TOKEN(dml, ext):
71 case OOX_TOKEN(adec, decorative):
76 case PPT_TOKEN( cNvPr ):
93 case PPT_TOKEN( grpSpPr ):
95 case PPT_TOKEN( spPr ):
101 case PPT_TOKEN( cxnSp ):
103 auto pShape = std::make_shared<PPTShape>(
meShapeLocation,
"com.sun.star.drawing.ConnectorShape");
105 pShape->getConnectorShapeProperties());
107 case PPT_TOKEN( grpSp ):
109 case PPT_TOKEN( sp ):
111 auto pShape = std::make_shared<PPTShape>(
meShapeLocation,
"com.sun.star.drawing.CustomShape" );
112 bool bUseBgFill = rAttribs.
getBool(XML_useBgFill,
false);
115 pShape->getFillProperties().moFillType = XML_noFill;
116 pShape->getFillProperties().moUseBgFill =
true;
121 case PPT_TOKEN( pic ):
123 case PPT_TOKEN( graphicFrame ):
138 for (
auto const& extDrawing :
pGraphicShape->getExtDrawings())
140 OUString aFragmentPath = getFragmentPathFromRelId(extDrawing);
146 pGraphicShape->keepDiagramDrawing(getFilter(), aFragmentPath);
157 pShape->getShapeStyleRefs()[XML_fontRef].maPhClr = rFontRefColor;
158 std::vector< oox::drawingml::ShapePtr >& vChildren = pShape->getChildren();
159 for (
auto const& child : vChildren)
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...
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< 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.
SlidePersistPtr mpSlidePersistPtr
oox::drawingml::ShapePtr pGraphicShape
void applyFontRefColor(const oox::drawingml::ShapePtr &pShape, const oox::drawingml::Color &rFontRefColor)
ShapeLocation meShapeLocation
PPTShapeGroupContext(::oox::core::FragmentHandler2 const &rParent, oox::ppt::SlidePersistPtr xSlidePersistPtr, const oox::ppt::ShapeLocation eShapeLocation, const oox::drawingml::ShapePtr &pMasterShapePtr, const oox::drawingml::ShapePtr &pGroupShapePtr)
virtual ::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
std::shared_ptr< Shape > ShapePtr
std::shared_ptr< SlidePersist > SlidePersistPtr