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

#include <datamodel.hxx>

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

Classes

struct  SourceIdAndDepth
 

Public Types

typedef std::map< OUString, dgm::Point * > PointNameMap
 
typedef std::map< OUString, std::vector< dgm::Point * > > PointsNameMap
 
typedef std::map< OUString, const dgm::Connection * > ConnectionNameMap
 
typedef std::map< OUString, std::map< sal_Int32, SourceIdAndDepth > > StringMap
 Tracks connections: destination id -> {destination order, details} map. More...
 

Public Member Functions

 DiagramData ()
 
virtual ~DiagramData ()
 
void build ()
 
FillPropertiesPtrgetFillProperties ()
 
dgm::ConnectionsgetConnections ()
 
dgm::PointsgetPoints ()
 
StringMapgetPresOfNameMap ()
 
PointNameMapgetPointNameMap ()
 
PointsNameMapgetPointsPresNameMap ()
 
::std::vector< OUString > & getExtDrawings ()
 
const dgm::PointgetRootPoint () const
 
void dump () const
 
OUString getString () const override
 
std::vector< std::pair< OUString, OUString > > getChildren (const OUString &rParentId) const override
 
OUString addNode (const OUString &rText) override
 
bool removeNode (const OUString &rNodeId) override
 

Private Member Functions

void getChildrenString (OUStringBuffer &rBuf, const dgm::Point *pPoint, sal_Int32 nLevel) const
 
void addConnection (sal_Int32 nType, const OUString &sSourceId, const OUString &sDestId)
 

Private Attributes

::std::vector< OUString > maExtDrawings
 
FillPropertiesPtr mpFillProperties
 
dgm::Connections maConnections
 
dgm::Points maPoints
 
PointNameMap maPointNameMap
 
PointsNameMap maPointsPresNameMap
 
ConnectionNameMap maConnectionNameMap
 
StringMap maPresOfNameMap
 

Additional Inherited Members

- Protected Member Functions inherited from DiagramDataInterface
 ~DiagramDataInterface () noexcept
 

Detailed Description

Definition at line 145 of file datamodel.hxx.

Member Typedef Documentation

Definition at line 151 of file datamodel.hxx.

Definition at line 148 of file datamodel.hxx.

Definition at line 150 of file datamodel.hxx.

Tracks connections: destination id -> {destination order, details} map.

Definition at line 159 of file datamodel.hxx.

Constructor & Destructor Documentation

oox::drawingml::DiagramData::DiagramData ( )

Definition at line 59 of file datamodel.cxx.

References make_shared().

virtual oox::drawingml::DiagramData::~DiagramData ( )
inlinevirtual

Definition at line 162 of file datamodel.hxx.

Member Function Documentation

void oox::drawingml::DiagramData::addConnection ( sal_Int32  nType,
const OUString &  sSourceId,
const OUString &  sDestId 
)
private
OUString oox::drawingml::DiagramData::addNode ( const OUString &  rText)
overridevirtual
void oox::drawingml::DiagramData::build ( )
void oox::drawingml::DiagramData::dump ( ) const

Definition at line 74 of file datamodel.cxx.

References maConnections, maPoints, and SAL_INFO.

std::vector< std::pair< OUString, OUString > > oox::drawingml::DiagramData::getChildren ( const OUString &  rParentId) const
overridevirtual
void oox::drawingml::DiagramData::getChildrenString ( OUStringBuffer &  rBuf,
const dgm::Point pPoint,
sal_Int32  nLevel 
) const
private
dgm::Connections& oox::drawingml::DiagramData::getConnections ( )
inline

Definition at line 166 of file datamodel.hxx.

References maConnections.

Referenced by build().

::std::vector<OUString>& oox::drawingml::DiagramData::getExtDrawings ( )
inline

Definition at line 176 of file datamodel.hxx.

References maExtDrawings.

FillPropertiesPtr& oox::drawingml::DiagramData::getFillProperties ( )
inline

Definition at line 164 of file datamodel.hxx.

References mpFillProperties.

PointNameMap& oox::drawingml::DiagramData::getPointNameMap ( )
inline

Definition at line 172 of file datamodel.hxx.

References maPointNameMap.

Referenced by build().

dgm::Points& oox::drawingml::DiagramData::getPoints ( )
inline

Definition at line 168 of file datamodel.hxx.

References maPoints.

Referenced by build().

PointsNameMap& oox::drawingml::DiagramData::getPointsPresNameMap ( )
inline

Definition at line 174 of file datamodel.hxx.

References maPointsPresNameMap.

Referenced by build().

StringMap& oox::drawingml::DiagramData::getPresOfNameMap ( )
inline

Definition at line 170 of file datamodel.hxx.

References maPresOfNameMap.

Referenced by build().

const dgm::Point * oox::drawingml::DiagramData::getRootPoint ( ) const

Definition at line 64 of file datamodel.cxx.

References maPoints, and SAL_WARN.

Referenced by addNode(), getChildren(), and getString().

OUString oox::drawingml::DiagramData::getString ( ) const
overridevirtual

Implements DiagramDataInterface.

Definition at line 115 of file datamodel.cxx.

References aBuf, getChildrenString(), and getRootPoint().

bool oox::drawingml::DiagramData::removeNode ( const OUString &  rNodeId)
overridevirtual

Member Data Documentation

ConnectionNameMap oox::drawingml::DiagramData::maConnectionNameMap
private

Definition at line 195 of file datamodel.hxx.

Referenced by build().

dgm::Connections oox::drawingml::DiagramData::maConnections
private
::std::vector<OUString> oox::drawingml::DiagramData::maExtDrawings
private

Definition at line 189 of file datamodel.hxx.

Referenced by getExtDrawings().

PointNameMap oox::drawingml::DiagramData::maPointNameMap
private

Definition at line 193 of file datamodel.hxx.

Referenced by addNode(), build(), getChildren(), getChildrenString(), and getPointNameMap().

dgm::Points oox::drawingml::DiagramData::maPoints
private

Definition at line 192 of file datamodel.hxx.

Referenced by addNode(), dump(), getPoints(), getRootPoint(), and removeNode().

PointsNameMap oox::drawingml::DiagramData::maPointsPresNameMap
private

Definition at line 194 of file datamodel.hxx.

Referenced by build(), and getPointsPresNameMap().

StringMap oox::drawingml::DiagramData::maPresOfNameMap
private

Definition at line 196 of file datamodel.hxx.

Referenced by build(), and getPresOfNameMap().

FillPropertiesPtr oox::drawingml::DiagramData::mpFillProperties
private

Definition at line 190 of file datamodel.hxx.

Referenced by getFillProperties().


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