LibreOffice Module oox (master) 1
|
#include <datamodel.hxx>
Public Types | |
typedef std::map< OUString, ShapePtr > | PointShapeMap |
Public Types inherited from svx::diagram::DiagramData | |
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 |
Public Member Functions | |
DiagramData () | |
virtual | ~DiagramData () |
virtual void | buildDiagramDataModel (bool bClearOoxShapes) |
FillPropertiesPtr & | getBackgroundShapeFillProperties () |
virtual void | dump () const |
Shape * | getOrCreateAssociatedShape (const svx::diagram::Point &rPoint, bool bCreateOnDemand=false) const |
void | secureDataFromShapeToModelAfterDiagramImport (::oox::drawingml::Shape &rRootShape) |
void | restoreDataFromShapeToModelAfterDiagramImport (::oox::drawingml::Shape &rRootShape) |
Public Member Functions inherited from svx::diagram::DiagramData | |
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) |
Static Public Member Functions | |
static void | restoreDataFromModelToShapeAfterReCreation (const svx::diagram::Point &rPoint, Shape &rNewShape) |
Protected Member Functions | |
void | secureStyleDataFromShapeToModel (::oox::drawingml::Shape &rShape) |
void | restoreStyleDataFromShapeToModel (::oox::drawingml::Shape &rShape) |
Protected Member Functions inherited from svx::diagram::DiagramData | |
DiagramData () | |
void | getChildrenString (OUStringBuffer &rBuf, const Point *pPoint, sal_Int32 nLevel) const |
void | addConnection (TypeConstant nType, const OUString &sSourceId, const OUString &sDestId) |
Private Attributes | |
FillPropertiesPtr | mpBackgroundShapeFillProperties |
PointShapeMap | maPointShapeMap |
Additional Inherited Members | |
Protected Attributes inherited from svx::diagram::DiagramData | |
::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 |
Definition at line 36 of file datamodel.hxx.
typedef std::map< OUString, ShapePtr > oox::drawingml::DiagramData::PointShapeMap |
Definition at line 39 of file datamodel.hxx.
oox::drawingml::DiagramData::DiagramData | ( | ) |
Definition at line 402 of file datamodel.cxx.
References make_shared().
|
virtual |
Reimplemented from svx::diagram::DiagramData.
Definition at line 408 of file datamodel.cxx.
|
virtual |
Reimplemented from svx::diagram::DiagramData.
Definition at line 441 of file datamodel.cxx.
References svx::diagram::DiagramData::buildDiagramDataModel(), getOrCreateAssociatedShape(), svx::diagram::DiagramData::getPoints(), maPointShapeMap, and point().
|
virtual |
Implements svx::diagram::DiagramData.
Definition at line 430 of file datamodel.cxx.
References oox::drawingml::Connection_dump(), getOrCreateAssociatedShape(), svx::diagram::DiagramData::maConnections, svx::diagram::DiagramData::maPoints, oox::drawingml::Point_dump(), and SAL_INFO.
|
inline |
Definition at line 47 of file datamodel.hxx.
References mpBackgroundShapeFillProperties.
Shape * oox::drawingml::DiagramData::getOrCreateAssociatedShape | ( | const svx::diagram::Point & | rPoint, |
bool | bCreateOnDemand = false |
||
) | const |
Definition at line 40 of file datamodel.cxx.
References maPointShapeMap, svx::diagram::Point::msModelId, and restoreDataFromModelToShapeAfterReCreation().
Referenced by buildDiagramDataModel(), dump(), and secureDataFromShapeToModelAfterDiagramImport().
|
static |
Definition at line 61 of file datamodel.cxx.
References oox::PropertyMap::getPropertyId(), svx::diagram::Point::msTextBody, oox::PropertyMap::setAnyProperty(), and oox::drawingml::Shape::setTextBody().
Referenced by getOrCreateAssociatedShape(), and secureDataFromShapeToModelAfterDiagramImport().
void oox::drawingml::DiagramData::restoreDataFromShapeToModelAfterDiagramImport | ( | ::oox::drawingml::Shape & | rRootShape | ) |
Definition at line 392 of file datamodel.cxx.
References oox::drawingml::Shape::getChildren(), and restoreStyleDataFromShapeToModel().
|
protected |
Definition at line 326 of file datamodel.cxx.
References oox::drawingml::Shape::getChildren(), oox::drawingml::Shape::getDiagramDataModelID(), oox::drawingml::Shape::getXShape(), svx::diagram::DiagramData::maBackgroundShapeStyle, svx::diagram::DiagramData::maPoints, svx::diagram::PointStyle::maProperties, svx::diagram::DiagramData::msBackgroundShapeModelID, point(), and restoreStyleDataFromShapeToModel().
Referenced by restoreDataFromShapeToModelAfterDiagramImport(), and restoreStyleDataFromShapeToModel().
void oox::drawingml::DiagramData::secureDataFromShapeToModelAfterDiagramImport | ( | ::oox::drawingml::Shape & | rRootShape | ) |
|
protected |
Definition at line 98 of file datamodel.cxx.
References oox::drawingml::addProperty(), oox::drawingml::Shape::getChildren(), oox::drawingml::Shape::getDiagramDataModelID(), oox::drawingml::Shape::getXShape(), svx::diagram::DiagramData::maBackgroundShapeStyle, svx::diagram::DiagramData::maPoints, svx::diagram::PointStyle::maProperties, svx::diagram::DiagramData::msBackgroundShapeModelID, point(), secureStyleDataFromShapeToModel(), UNO_NAME_CHAR_COLOR, UNO_NAME_CHAR_HEIGHT, UNO_NAME_CHAR_SHADOWED, UNO_NAME_CHAR_WEIGHT, UNO_NAME_FILLCOLOR, UNO_NAME_FILLSTYLE, UNO_NAME_LINECOLOR, UNO_NAME_LINESTYLE, and UNO_NAME_LINEWIDTH.
Referenced by secureDataFromShapeToModelAfterDiagramImport(), and secureStyleDataFromShapeToModel().
|
private |
Definition at line 70 of file datamodel.hxx.
Referenced by buildDiagramDataModel(), and getOrCreateAssociatedShape().
|
private |
Definition at line 66 of file datamodel.hxx.
Referenced by getBackgroundShapeFillProperties().