LibreOffice Module oox (master) 1
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
oox::drawingml::AlgAtom Class Reference

#include <diagramlayoutatoms.hxx>

Inheritance diagram for oox::drawingml::AlgAtom:
[legend]
Collaboration diagram for oox::drawingml::AlgAtom:
[legend]

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 ParamMapgetMap () 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 ()
 
LayoutNodegetLayoutNode ()
 
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
LayoutNodemrLayoutNode
 
std::vector< LayoutAtomPtrmpChildNodes
 
std::weak_ptr< LayoutAtommpParent
 
OUString msName
 

Detailed Description

Definition at line 170 of file diagramlayoutatoms.hxx.

Member Typedef Documentation

◆ ParamMap

typedef std::map<sal_Int32,sal_Int32> oox::drawingml::AlgAtom::ParamMap

Definition at line 176 of file diagramlayoutatoms.hxx.

Constructor & Destructor Documentation

◆ AlgAtom()

oox::drawingml::AlgAtom::AlgAtom ( LayoutNode rLayoutNode)
inline

Definition at line 174 of file diagramlayoutatoms.hxx.

Member Function Documentation

◆ accept()

void oox::drawingml::AlgAtom::accept ( LayoutAtomVisitor )
overridevirtual

visitor acceptance

Implements oox::drawingml::LayoutAtom.

Definition at line 1008 of file diagramlayoutatoms.cxx.

References oox::drawingml::LayoutAtomVisitor::visit().

◆ addParam()

void oox::drawingml::AlgAtom::addParam ( sal_Int32  nType,
sal_Int32  nVal 
)
inline

Definition at line 183 of file diagramlayoutatoms.hxx.

References maMap, and nType.

◆ getAspectRatio()

double oox::drawingml::AlgAtom::getAspectRatio ( ) const
inline

◆ getConnectorType()

sal_Int32 oox::drawingml::AlgAtom::getConnectorType ( )
private

Determines the connector shape type for conn algorithm.

Definition at line 1013 of file diagramlayoutatoms.cxx.

References maMap.

Referenced by layoutShape().

◆ getMap()

const ParamMap & oox::drawingml::AlgAtom::getMap ( ) const
inline

Definition at line 182 of file diagramlayoutatoms.hxx.

References maMap.

Referenced by oox::drawingml::SnakeAlg::layoutShapeChildren().

◆ getVerticalShapesCount()

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().

◆ layoutShape()

void oox::drawingml::AlgAtom::layoutShape ( const ShapePtr rShape,
const std::vector< Constraint > &  rConstraints,
const std::vector< Rule > &  rRules 
)

◆ setAspectRatio()

void oox::drawingml::AlgAtom::setAspectRatio ( double  fAspectRatio)
inline

Definition at line 190 of file diagramlayoutatoms.hxx.

References mfAspectRatio.

◆ setType()

void oox::drawingml::AlgAtom::setType ( sal_Int32  nToken)
inline

Definition at line 180 of file diagramlayoutatoms.hxx.

References mnType, and nToken.

Member Data Documentation

◆ maMap

ParamMap oox::drawingml::AlgAtom::maMap
private

◆ mfAspectRatio

double oox::drawingml::AlgAtom::mfAspectRatio = 0
private

Aspect ratio is not integer, so not part of maMap.

Definition at line 198 of file diagramlayoutatoms.hxx.

Referenced by getAspectRatio(), and setAspectRatio().

◆ mnType

sal_Int32 oox::drawingml::AlgAtom::mnType
private

Definition at line 195 of file diagramlayoutatoms.hxx.

Referenced by getVerticalShapesCount(), layoutShape(), and setType().


The documentation for this class was generated from the following files: