|
LibreOffice Module svx (master) 1
|
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 |
| Connections & | getConnections () |
| Points & | getPoints () |
| StringMap & | getPresOfNameMap () |
| PointNameMap & | getPointNameMap () |
| PointsNameMap & | getPointsPresNameMap () |
| ::std::vector< OUString > & | getExtDrawings () |
| const Point * | getRootPoint () 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 |
The collected Diagram ModelData.
Definition at line 176 of file datamodel.hxx.
| typedef std::map< OUString, const Connection* > svx::diagram::DiagramData::ConnectionNameMap |
Definition at line 181 of file datamodel.hxx.
| typedef std::map< OUString, Point* > svx::diagram::DiagramData::PointNameMap |
Definition at line 179 of file datamodel.hxx.
| typedef std::map< OUString, std::vector< Point* > > svx::diagram::DiagramData::PointsNameMap |
Definition at line 180 of file datamodel.hxx.
| typedef std::map< OUString, std::map<sal_Int32, SourceIdAndDepth > > svx::diagram::DiagramData::StringMap |
Tracks connections: destination id -> {destination order, details} map.
Definition at line 190 of file datamodel.hxx.
|
protected |
Definition at line 69 of file datamodel.cxx.
|
virtual |
Definition at line 73 of file datamodel.cxx.
|
protected |
Definition at line 285 of file datamodel.cxx.
References maConnections, svx::diagram::Connection::mnSourceOrder, svx::diagram::Connection::mnXMLType, svx::diagram::Connection::msDestId, svx::diagram::Connection::msSourceId, and nType.
Referenced by addNode().
| OUString svx::diagram::DiagramData::addNode | ( | const OUString & | rText | ) |
Definition at line 231 of file datamodel.cxx.
References addConnection(), comphelper::xml::generateGUIDString(), getRootPoint(), maConnections, maPointNameMap, maPoints, svx::diagram::Point::mnLayoutStyleCount, svx::diagram::Point::mnLayoutStyleIndex, svx::diagram::Point::mnXMLType, svx::diagram::Point::msModelId, svx::diagram::Point::msPresentationAssociationId, svx::diagram::Point::msPresentationLayoutName, svx::diagram::Point::msPresentationLayoutStyleLabel, svx::diagram::Point::msTextBody, svx::diagram::XML_node, svx::diagram::XML_parOf, svx::diagram::XML_pres, svx::diagram::XML_presOf, and svx::diagram::XML_presParOf.
| void svx::diagram::DiagramData::applyDiagramDataState | ( | const DiagramDataStatePtr & | rState | ) |
Definition at line 158 of file datamodel.cxx.
References buildDiagramDataModel(), maConnections, and maPoints.
|
virtual |
Definition at line 340 of file datamodel.cxx.
References svx::diagram::calcDepth(), getConnections(), getPointNameMap(), getPoints(), getPointsPresNameMap(), getPresOfNameMap(), maConnectionNameMap, maPointNameMap, maPointsPresNameMap, maPresOfNameMap, msBackgroundShapeModelID, nCount, OUStringToOString(), point(), SAL_WARN_IF, svx::diagram::XML_asst, svx::diagram::XML_doc, svx::diagram::XML_node, svx::diagram::XML_parTrans, svx::diagram::XML_pres, svx::diagram::XML_presOf, svx::diagram::XML_presParOf, and svx::diagram::XML_sibTrans.
Referenced by applyDiagramDataState().
|
pure virtual |
| DiagramDataStatePtr svx::diagram::DiagramData::extractDiagramDataState | ( | ) | const |
Definition at line 151 of file datamodel.cxx.
References maConnections, and maPoints.
|
inline |
Definition at line 220 of file datamodel.hxx.
| std::vector< std::pair< OUString, OUString > > svx::diagram::DiagramData::getChildren | ( | const OUString & | rParentId | ) | const |
Definition at line 205 of file datamodel.cxx.
References getRootPoint(), maConnections, maPointNameMap, svx::diagram::Point::msModelId, and svx::diagram::XML_parOf.
|
protected |
Definition at line 172 of file datamodel.cxx.
References getChildrenString(), i, maConnections, maPointNameMap, svx::diagram::Point::msModelId, svx::diagram::Point::msTextBody, and svx::diagram::XML_parOf.
Referenced by getChildrenString(), and getString().
|
inline |
Definition at line 207 of file datamodel.hxx.
Referenced by buildDiagramDataModel().
|
inline |
Definition at line 212 of file datamodel.hxx.
|
inline |
Definition at line 210 of file datamodel.hxx.
Referenced by buildDiagramDataModel().
|
inline |
Definition at line 208 of file datamodel.hxx.
References maPoints.
Referenced by buildDiagramDataModel().
|
inline |
Definition at line 211 of file datamodel.hxx.
Referenced by buildDiagramDataModel().
|
inline |
Definition at line 209 of file datamodel.hxx.
Referenced by buildDiagramDataModel().
| 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().
| OUString svx::diagram::DiagramData::getString | ( | ) | const |
Definition at line 87 of file datamodel.cxx.
References aBuf, getChildrenString(), and getRootPoint().
|
inline |
Definition at line 217 of file datamodel.hxx.
| bool svx::diagram::DiagramData::removeNode | ( | const OUString & | rNodeId | ) |
Definition at line 95 of file datamodel.cxx.
References maConnections, maPoints, svx::diagram::Connection::msParTransId, svx::diagram::Connection::msSibTransId, SAL_WARN, and svx::diagram::XML_parOf.
|
inline |
Definition at line 221 of file datamodel.hxx.
|
inline |
Definition at line 218 of file datamodel.hxx.
|
protected |
Definition at line 251 of file datamodel.hxx.
|
protected |
Definition at line 264 of file datamodel.hxx.
Referenced by buildDiagramDataModel().
|
protected |
Definition at line 242 of file datamodel.hxx.
Referenced by addConnection(), addNode(), applyDiagramDataState(), extractDiagramDataState(), getChildren(), getChildrenString(), and removeNode().
|
protected |
Definition at line 237 of file datamodel.hxx.
|
protected |
Definition at line 262 of file datamodel.hxx.
Referenced by addNode(), buildDiagramDataModel(), getChildren(), and getChildrenString().
|
protected |
Definition at line 245 of file datamodel.hxx.
Referenced by addNode(), applyDiagramDataState(), extractDiagramDataState(), getRootPoint(), and removeNode().
|
protected |
Definition at line 263 of file datamodel.hxx.
Referenced by buildDiagramDataModel().
|
protected |
Definition at line 265 of file datamodel.hxx.
Referenced by buildDiagramDataModel().
|
protected |
Definition at line 266 of file datamodel.hxx.
Referenced by buildDiagramDataModel().
|
protected |
Definition at line 259 of file datamodel.hxx.