LibreOffice Module svx (master) 1
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
svx::diagram::DiagramData Class Referenceabstract

The collected Diagram ModelData. More...

#include <datamodel.hxx>

Classes

struct  SourceIdAndDepth
 

Public Types

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

Public Member Functions

virtual ~DiagramData ()
 
virtual void buildDiagramDataModel (bool bClearOoxShapes)
 
virtual void dump () const =0
 
ConnectionsgetConnections ()
 
PointsgetPoints ()
 
StringMapgetPresOfNameMap ()
 
PointNameMapgetPointNameMap ()
 
PointsNameMapgetPointsPresNameMap ()
 
::std::vector< OUString > & getExtDrawings ()
 
const PointgetRootPoint () const
 
OUString getString () const
 
std::vector< std::pair< OUString, OUString > > getChildren (const OUString &rParentId) const
 
const css::uno::Reference< css::xml::dom::XDocument > & getThemeDocument () const
 
void setThemeDocument (const css::uno::Reference< css::xml::dom::XDocument > &xRef)
 
const OUString & getBackgroundShapeModelID () const
 
void setBackgroundShapeModelID (const OUString &rModelID)
 
OUString addNode (const OUString &rText)
 
bool removeNode (const OUString &rNodeId)
 
DiagramDataStatePtr extractDiagramDataState () const
 
void applyDiagramDataState (const DiagramDataStatePtr &rState)
 

Protected Member Functions

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

Protected Attributes

::std::vector< OUString > maExtDrawings
 
Connections maConnections
 
Points maPoints
 
PointStylePtr maBackgroundShapeStyle
 
css::uno::Reference< css::xml::dom::XDocument > mxThemeDocument
 
PointNameMap maPointNameMap
 
PointsNameMap maPointsPresNameMap
 
ConnectionNameMap maConnectionNameMap
 
StringMap maPresOfNameMap
 
OUString msBackgroundShapeModelID
 

Detailed Description

The collected Diagram ModelData.

Definition at line 176 of file datamodel.hxx.

Member Typedef Documentation

◆ ConnectionNameMap

Definition at line 181 of file datamodel.hxx.

◆ PointNameMap

Definition at line 179 of file datamodel.hxx.

◆ PointsNameMap

typedef std::map< OUString, std::vector< Point* > > svx::diagram::DiagramData::PointsNameMap

Definition at line 180 of file datamodel.hxx.

◆ StringMap

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

Definition at line 190 of file datamodel.hxx.

Constructor & Destructor Documentation

◆ DiagramData()

svx::diagram::DiagramData::DiagramData ( )
protected

Definition at line 69 of file datamodel.cxx.

◆ ~DiagramData()

svx::diagram::DiagramData::~DiagramData ( )
virtual

Definition at line 73 of file datamodel.cxx.

Member Function Documentation

◆ addConnection()

void svx::diagram::DiagramData::addConnection ( TypeConstant  nType,
const OUString &  sSourceId,
const OUString &  sDestId 
)
protected

◆ addNode()

OUString svx::diagram::DiagramData::addNode ( const OUString &  rText)

◆ applyDiagramDataState()

void svx::diagram::DiagramData::applyDiagramDataState ( const DiagramDataStatePtr rState)

Definition at line 158 of file datamodel.cxx.

References buildDiagramDataModel(), maConnections, and maPoints.

◆ buildDiagramDataModel()

void svx::diagram::DiagramData::buildDiagramDataModel ( bool  bClearOoxShapes)
virtual

◆ dump()

virtual void svx::diagram::DiagramData::dump ( ) const
pure virtual

◆ extractDiagramDataState()

DiagramDataStatePtr svx::diagram::DiagramData::extractDiagramDataState ( ) const

Definition at line 151 of file datamodel.cxx.

References maConnections, and maPoints.

◆ getBackgroundShapeModelID()

const OUString & svx::diagram::DiagramData::getBackgroundShapeModelID ( ) const
inline

Definition at line 220 of file datamodel.hxx.

◆ getChildren()

std::vector< std::pair< OUString, OUString > > svx::diagram::DiagramData::getChildren ( const OUString &  rParentId) const

◆ getChildrenString()

void svx::diagram::DiagramData::getChildrenString ( OUStringBuffer &  rBuf,
const Point pPoint,
sal_Int32  nLevel 
) const
protected

◆ getConnections()

Connections & svx::diagram::DiagramData::getConnections ( )
inline

Definition at line 207 of file datamodel.hxx.

Referenced by buildDiagramDataModel().

◆ getExtDrawings()

::std::vector< OUString > & svx::diagram::DiagramData::getExtDrawings ( )
inline

Definition at line 212 of file datamodel.hxx.

◆ getPointNameMap()

PointNameMap & svx::diagram::DiagramData::getPointNameMap ( )
inline

Definition at line 210 of file datamodel.hxx.

Referenced by buildDiagramDataModel().

◆ getPoints()

Points & svx::diagram::DiagramData::getPoints ( )
inline

Definition at line 208 of file datamodel.hxx.

References maPoints.

Referenced by buildDiagramDataModel().

◆ getPointsPresNameMap()

PointsNameMap & svx::diagram::DiagramData::getPointsPresNameMap ( )
inline

Definition at line 211 of file datamodel.hxx.

Referenced by buildDiagramDataModel().

◆ getPresOfNameMap()

StringMap & svx::diagram::DiagramData::getPresOfNameMap ( )
inline

Definition at line 209 of file datamodel.hxx.

Referenced by buildDiagramDataModel().

◆ getRootPoint()

const Point * svx::diagram::DiagramData::getRootPoint ( ) const

Definition at line 77 of file datamodel.cxx.

References maPoints, SAL_WARN, and svx::diagram::XML_doc.

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

◆ getString()

OUString svx::diagram::DiagramData::getString ( ) const

Definition at line 87 of file datamodel.cxx.

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

◆ getThemeDocument()

const css::uno::Reference< css::xml::dom::XDocument > & svx::diagram::DiagramData::getThemeDocument ( ) const
inline

Definition at line 217 of file datamodel.hxx.

◆ removeNode()

bool svx::diagram::DiagramData::removeNode ( const OUString &  rNodeId)

◆ setBackgroundShapeModelID()

void svx::diagram::DiagramData::setBackgroundShapeModelID ( const OUString &  rModelID)
inline

Definition at line 221 of file datamodel.hxx.

◆ setThemeDocument()

void svx::diagram::DiagramData::setThemeDocument ( const css::uno::Reference< css::xml::dom::XDocument > &  xRef)
inline

Definition at line 218 of file datamodel.hxx.

Member Data Documentation

◆ maBackgroundShapeStyle

PointStylePtr svx::diagram::DiagramData::maBackgroundShapeStyle
protected

Definition at line 251 of file datamodel.hxx.

◆ maConnectionNameMap

ConnectionNameMap svx::diagram::DiagramData::maConnectionNameMap
protected

Definition at line 264 of file datamodel.hxx.

Referenced by buildDiagramDataModel().

◆ maConnections

Connections svx::diagram::DiagramData::maConnections
protected

◆ maExtDrawings

::std::vector<OUString> svx::diagram::DiagramData::maExtDrawings
protected

Definition at line 237 of file datamodel.hxx.

◆ maPointNameMap

PointNameMap svx::diagram::DiagramData::maPointNameMap
protected

Definition at line 262 of file datamodel.hxx.

Referenced by addNode(), buildDiagramDataModel(), getChildren(), and getChildrenString().

◆ maPoints

Points svx::diagram::DiagramData::maPoints
protected

◆ maPointsPresNameMap

PointsNameMap svx::diagram::DiagramData::maPointsPresNameMap
protected

Definition at line 263 of file datamodel.hxx.

Referenced by buildDiagramDataModel().

◆ maPresOfNameMap

StringMap svx::diagram::DiagramData::maPresOfNameMap
protected

Definition at line 265 of file datamodel.hxx.

Referenced by buildDiagramDataModel().

◆ msBackgroundShapeModelID

OUString svx::diagram::DiagramData::msBackgroundShapeModelID
protected

Definition at line 266 of file datamodel.hxx.

Referenced by buildDiagramDataModel().

◆ mxThemeDocument

css::uno::Reference< css::xml::dom::XDocument > svx::diagram::DiagramData::mxThemeDocument
protected

Definition at line 259 of file datamodel.hxx.


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