20#ifndef INCLUDED_SVX_DIAGRAM_DATAMODEL_HXX
21#define INCLUDED_SVX_DIAGRAM_DATAMODEL_HXX
28#include <rtl/ustring.hxx>
29#include <rtl/ustrbuf.hxx>
31#include <com/sun/star/xml/dom/XDocument.hpp>
32#include <com/sun/star/drawing/XShape.hpp>
33#include <oox/token/tokens.hxx>
84 std::vector< std::pair< OUString, css::uno::Any >>
maTextProps;
190 typedef std::map< OUString, std::map<sal_Int32, SourceIdAndDepth > >
StringMap;
201 virtual void buildDiagramDataModel(
bool bClearOoxShapes);
213 const Point* getRootPoint()
const;
215 std::vector<std::pair<OUString, OUString>> getChildren(
const OUString& rParentId)
const;
217 const css::uno::Reference< css::xml::dom::XDocument >&
getThemeDocument()
const {
return mxThemeDocument; }
218 void setThemeDocument(
const css::uno::Reference< css::xml::dom::XDocument >& xRef ) { mxThemeDocument = xRef; }
224 OUString addNode(
const OUString& rText);
225 bool removeNode(
const OUString& rNodeId);
233 void getChildrenString(OUStringBuffer& rBuf,
const Point* pPoint, sal_Int32 nLevel)
const;
234 void addConnection(
TypeConstant nType,
const OUString& sSourceId,
const OUString& sDestId);
temporaryPointVector maPoints
Snippet of Diagram ModelData for Diagram-defining data undo/redo.
Connections maConnections
Connections & getConnections()
The collected Diagram ModelData.
PointStylePtr maBackgroundShapeStyle
Connections & getConnections()
std::map< OUString, std::map< sal_Int32, SourceIdAndDepth > > StringMap
Tracks connections: destination id -> {destination order, details} map.
::std::vector< OUString > maExtDrawings
OUString msBackgroundShapeModelID
::std::vector< OUString > & getExtDrawings()
StringMap maPresOfNameMap
void setBackgroundShapeModelID(const OUString &rModelID)
css::uno::Reference< css::xml::dom::XDocument > mxThemeDocument
std::map< OUString, const Connection * > ConnectionNameMap
virtual void dump() const =0
std::map< OUString, Point * > PointNameMap
void setThemeDocument(const css::uno::Reference< css::xml::dom::XDocument > &xRef)
StringMap & getPresOfNameMap()
PointNameMap maPointNameMap
PointsNameMap maPointsPresNameMap
PointNameMap & getPointNameMap()
const css::uno::Reference< css::xml::dom::XDocument > & getThemeDocument() const
ConnectionNameMap maConnectionNameMap
Connections maConnections
const OUString & getBackgroundShapeModelID() const
std::map< OUString, std::vector< Point * > > PointsNameMap
PointsNameMap & getPointsPresNameMap()
OUString getString(const Any &_rAny)
std::shared_ptr< PointStyle > PointStylePtr
std::shared_ptr< DiagramDataState > DiagramDataStatePtr
std::shared_ptr< TextBody > TextBodyPtr
std::vector< Connection > Connections
std::shared_ptr< DiagramData > DiagramDataPtr
std::vector< Point > Points
Styles for a Point (FillStyle/LineStyle/...)
std::vector< std::pair< OUString, css::uno::Any > > maProperties
OUString msPlaceholderText
sal_Int32 mnWidthOverride
bool mbCustomHorizontalFlip
sal_Int32 mnPercentageNeighbourHeight
bool mbCustomVerticalFlip
std::optional< sal_Int32 > moHierarchyBranch
sal_Int32 mnPercentageNeighbourWidth
sal_Int32 mnLayoutStyleIndex
sal_Int32 mnLayoutStyleCount
OUString msPresentationLayoutStyleLabel
OUString msPresentationAssociationId
PointStylePtr msPointStylePtr
sal_Int32 mnResizeHandles
OUString msPresentationLayoutName
OUString msLayoutCategoryId
sal_Int32 mnPercentageOwnHeight
OUString msColorTransformCategoryId
sal_Int32 mnIncludeAngleScale
OUString msColorTransformTypeId
OUString msQuickStyleCategoryId
sal_Int32 mnHeightOverride
OUString msQuickStyleTypeId
sal_Int32 mnPreferredChildren
sal_Int32 mnPercentageOwnWidth
Text and properties for a point For proof of concept to make TextData available in svx level this is ...
std::vector< std::pair< OUString, css::uno::Any > > maTextProps
#define SVXCORE_DLLPUBLIC