LibreOffice Module oox (master) 1
|
#include <diagramlayoutatoms.hxx>
Public Types | |
typedef std::map< sal_Int32, sal_Int32 > | ParamMap |
Public Member Functions | |
AlgAtom (LayoutNode &rLayoutNode) | |
virtual void | accept (LayoutAtomVisitor &) override |
visitor acceptance More... | |
void | setType (sal_Int32 nToken) |
const ParamMap & | getMap () const |
void | addParam (sal_Int32 nType, sal_Int32 nVal) |
sal_Int32 | getVerticalShapesCount (const ShapePtr &rShape) |
void | layoutShape (const ShapePtr &rShape, const std::vector< Constraint > &rConstraints, const std::vector< Rule > &rRules) |
void | setAspectRatio (double fAspectRatio) |
double | getAspectRatio () const |
Public Member Functions inherited from oox::drawingml::LayoutAtom | |
LayoutAtom (LayoutNode &rLayoutNode) | |
virtual | ~LayoutAtom () |
LayoutNode & | getLayoutNode () |
virtual void | accept (LayoutAtomVisitor &)=0 |
visitor acceptance More... | |
void | setName (const OUString &sName) |
const OUString & | getName () const |
const std::vector< LayoutAtomPtr > & | getChildren () const |
LayoutAtomPtr | getParent () const |
void | dump (int level=0) |
Private Member Functions | |
sal_Int32 | getConnectorType () |
Determines the connector shape type for conn algorithm. More... | |
Private Attributes | |
sal_Int32 | mnType |
ParamMap | maMap |
double | mfAspectRatio = 0 |
Aspect ratio is not integer, so not part of maMap. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from oox::drawingml::LayoutAtom | |
static void | connect (const LayoutAtomPtr &pParent, const LayoutAtomPtr &pChild) |
Protected Attributes inherited from oox::drawingml::LayoutAtom | |
LayoutNode & | mrLayoutNode |
std::vector< LayoutAtomPtr > | mpChildNodes |
std::weak_ptr< LayoutAtom > | mpParent |
OUString | msName |
Definition at line 170 of file diagramlayoutatoms.hxx.
typedef std::map<sal_Int32,sal_Int32> oox::drawingml::AlgAtom::ParamMap |
Definition at line 176 of file diagramlayoutatoms.hxx.
|
inline |
Definition at line 174 of file diagramlayoutatoms.hxx.
|
overridevirtual |
visitor acceptance
Implements oox::drawingml::LayoutAtom.
Definition at line 1008 of file diagramlayoutatoms.cxx.
References oox::drawingml::LayoutAtomVisitor::visit().
|
inline |
Definition at line 183 of file diagramlayoutatoms.hxx.
|
inline |
Definition at line 192 of file diagramlayoutatoms.hxx.
References mfAspectRatio.
Referenced by oox::drawingml::CompositeAlg::layoutShapeChildren(), and oox::drawingml::ShapeCreationVisitor::visit().
|
private |
Determines the connector shape type for conn algorithm.
Definition at line 1013 of file diagramlayoutatoms.cxx.
References maMap.
Referenced by layoutShape().
|
inline |
Definition at line 182 of file diagramlayoutatoms.hxx.
References maMap.
Referenced by oox::drawingml::SnakeAlg::layoutShapeChildren().
sal_Int32 oox::drawingml::AlgAtom::getVerticalShapesCount | ( | const ShapePtr & | rShape | ) |
Definition at line 1037 of file diagramlayoutatoms.cxx.
References maMap, mnType, and nCount.
Referenced by oox::drawingml::ShapeCreationVisitor::visit().
void oox::drawingml::AlgAtom::layoutShape | ( | const ShapePtr & | rShape, |
const std::vector< Constraint > & | rConstraints, | ||
const std::vector< Rule > & | rRules | ||
) |
Definition at line 1122 of file diagramlayoutatoms.cxx.
References aProperties, o3tl::convert(), oox::drawingml::convertPointToMms(), basegfx::deg2rad(), o3tl::emu, oox::drawingml::LayoutNode::getChildOrder(), oox::drawingml::LayoutAtom::getChildren(), getConnectorType(), oox::drawingml::LayoutNode::getDiagram(), oox::drawingml::Diagram::getDiagramFontHeights(), oox::drawingml::LayoutAtom::getLayoutNode(), oox::drawingml::GetParaAdjust(), oox::drawingml::LayoutAtom::getParent(), idx, if(), oox::drawingml::CompositeAlg::layoutShapeChildren(), oox::drawingml::SnakeAlg::layoutShapeChildren(), oox::drawingml::PyraAlg::layoutShapeChildren(), maMap, o3tl::mm100, mnType, nCount, nLeftMargin, nType, nValue, oox::drawingml::ConstraintAtom::parseConstraint(), oox::drawingml::PER_DEGREE, PROP_TextFitToSize, PROP_TextVerticalAdjust, SAL_INFO, u, XML_asst, and XML_none.
Referenced by oox::drawingml::ShapeLayoutingVisitor::visit().
|
inline |
Definition at line 190 of file diagramlayoutatoms.hxx.
References mfAspectRatio.
|
inline |
Definition at line 180 of file diagramlayoutatoms.hxx.
|
private |
Definition at line 196 of file diagramlayoutatoms.hxx.
Referenced by addParam(), getConnectorType(), getMap(), getVerticalShapesCount(), and layoutShape().
|
private |
Aspect ratio is not integer, so not part of maMap.
Definition at line 198 of file diagramlayoutatoms.hxx.
Referenced by getAspectRatio(), and setAspectRatio().
|
private |
Definition at line 195 of file diagramlayoutatoms.hxx.
Referenced by getVerticalShapesCount(), layoutShape(), and setType().