20#include <com/sun/star/xml/sax/FastToken.hpp>
21#include <com/sun/star/beans/XMultiPropertySet.hpp>
27#include <oox/token/namespaces.hxx>
28#include <oox/token/tokens.hxx>
47 ConnectorShapePropertiesContext(
48 ::oox::core::ContextHandler2Helper
const& rParent,
ShapePtr& pShapePtr,
49 std::vector<ConnectorShapeProperties>& rConnectorShapePropertiesList);
52 const AttributeList& rAttribs)
override;
56ConnectorShapePropertiesContext::ConnectorShapePropertiesContext(
57 ContextHandler2Helper
const& rParent,
ShapePtr& pShapePtr,
58 std::vector<ConnectorShapeProperties>& rConnectorShapePropertiesList)
67ConnectorShapePropertiesContext::onCreateContext(sal_Int32 aElementToken,
68 const AttributeList& rAttribs)
70 switch (getBaseToken(aElementToken))
78 ConnectorShapeProperties aConnectorShapeProps;
79 aConnectorShapeProps.mbStartShape =
true;
80 aConnectorShapeProps.maDestShapeId = rAttribs.getStringDefaulted(XML_id);
81 aConnectorShapeProps.mnDestGlueId = rAttribs.getInteger(XML_idx, 0);
87 ConnectorShapeProperties aConnectorShapeProps;
88 aConnectorShapeProps.mbStartShape =
false;
89 aConnectorShapeProps.maDestShapeId = rAttribs.getStringDefaulted(XML_id);
90 aConnectorShapeProps.mnDestGlueId = rAttribs.getInteger(XML_idx, 0);
101ConnectorShapeContext::ConnectorShapeContext(
102 ContextHandler2Helper
const& rParent,
const ShapePtr& pMasterShapePtr,
104 std::vector<ConnectorShapeProperties>& rConnectorShapePropertiesList)
105 :
ShapeContext(rParent, pMasterShapePtr, pGroupShapePtr)
116 switch (getBaseToken(aElementToken))
Provides access to attribute values of an element.
virtual ~ConnectorShapeContext() override
virtual ::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
std::vector< ConnectorShapeProperties > & mrConnectorShapePropertiesList
ShapePtr mpConnectorShapePtr
virtual ::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
std::vector< ConnectorShapeProperties > & mrConnectorShapePropertiesList
ShapePtr mpConnectorShapePtr
::rtl::Reference< ContextHandler > ContextHandlerRef
std::shared_ptr< Shape > ShapePtr