59 const DiagramData::PointsNameMap::const_iterator aDataNode
61 if (aDataNode ==
mrDgm.
getData()->getPointsPresNameMap().end()
62 ||
mnCurrIdx >=
static_cast<sal_Int32
>(aDataNode->second.size()))
69 bool bIsChild =
false;
70 for (
const auto& aConnection :
mrDgm.
getData()->getConnections())
72 && aConnection.msDestId == pNewNode->
msModelId)
86 pShape->setInternalName(rAtom.
getName());
100 "processing shape type "
101 << (pShape->getCustomShapeProperties()->getShapePresetType()));
105 pShape->setInternalName(rAtom.
getName());
106 pCurrParent->addChild(pShape);
107 pCurrParent = pShape;
115 "ShapeCreationVisitor::visit: no shape set while processing layoutnode named "
174 SAL_WARN(
"oox.drawingml",
"multiple shapes encountered inside LayoutNode");
182 mpShape = std::make_shared<Shape>(pCurrShape);
185 mpShape->cloneFillProperties();
211 if (pShape !=
aMap.end())
223 const DiagramData::PointsNameMap::const_iterator aDataNode
225 if (aDataNode ==
mrDgm.
getData()->getPointsPresNameMap().end()
226 ||
mnCurrIdx >=
static_cast<sal_Int32
>(aDataNode->second.size()))
233 bool bIsChild =
false;
234 for (
const auto& aConnection :
mrDgm.
getData()->getConnections())
236 && aConnection.msDestId == pNewNode->
msModelId)
double getAspectRatio() const
void layoutShape(const ShapePtr &rShape, const std::vector< Constraint > &rConstraints, const std::vector< Rule > &rRules)
sal_Int32 getVerticalShapesCount(const ShapePtr &rShape)
void parseConstraint(std::vector< Constraint > &rConstraints, bool bRequireForName) const
const OoxDiagramDataPtr & getData() const
const DiagramLayoutPtr & getLayout() const
enum oox::drawingml::LayoutAtomVisitorBase::@1 meLookFor
void defaultVisit(LayoutAtom const &rAtom)
const svx::diagram::Point * mpCurrentNode
LayoutNode & getLayoutNode()
const OUString & getName() const
const ShapePtr & getExistingShape() const
bool setupShape(const ShapePtr &rShape, const svx::diagram::Point *pPresNode, sal_Int32 nCurrIdx) const
void addNodeShape(const ShapePtr &pShape)
Represents one <dgm:rule> element.
void parseRule(std::vector< Rule > &rRules) const
const ShapePtr & getShapeTemplate() const
virtual void visit(ConstraintAtom &rAtom) override
std::vector< Rule > maRules
std::vector< Constraint > maConstraints
virtual void visit(ConstraintAtom &rAtom) override
virtual void visit(ConstraintAtom &rAtom) override
ShapePtr const & getShapeCopy() const
#define SAL_WARN(area, stream)
#define SAL_INFO(area, stream)
std::shared_ptr< Shape > ShapePtr
std::map< const svx::diagram::Point *, ShapePtr > PresPointShapeMap
HashMap_OWString_Interface aMap