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 ()
 
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 169 of file diagramlayoutatoms.hxx.

Member Typedef Documentation

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

Definition at line 175 of file diagramlayoutatoms.hxx.

Constructor & Destructor Documentation

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

Definition at line 173 of file diagramlayoutatoms.hxx.

Member Function Documentation

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

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

Definition at line 182 of file diagramlayoutatoms.hxx.

References maMap.

double oox::drawingml::AlgAtom::getAspectRatio ( ) const
inline
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().

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

Definition at line 181 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 
)
void oox::drawingml::AlgAtom::setAspectRatio ( double  fAspectRatio)
inline

Definition at line 189 of file diagramlayoutatoms.hxx.

References mfAspectRatio.

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

Definition at line 179 of file diagramlayoutatoms.hxx.

References mnType.

Member Data Documentation

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

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

Definition at line 197 of file diagramlayoutatoms.hxx.

Referenced by getAspectRatio(), and setAspectRatio().

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

Definition at line 194 of file diagramlayoutatoms.hxx.

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


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