diff options
author | Andres Gomez <agomez@igalia.com> | 2013-09-03 11:13:22 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-09-11 07:35:59 +0000 |
commit | ab0998c77cc5b1f15c4d584185e7c401ef6fe62b (patch) | |
tree | 2602d208420e976b8feeb9282c42d79c13a9ee49 /include/oox | |
parent | fca4b8d48b07d522dadc86757423b93d1829621b (diff) |
oox: Smart-Art DOMs stored in the InteropGrabBag
The XDocuments representing the DOM documents of a
DrawingML diagram (Smart-Art) are now stored as
the PropertyValues "OOXData", "OOXLayout",
"OOXStyle", "OOXColor" and "OOXDrawing" into the
"InteropGraBag" property of the parent
SvxGroupShape created from such diagram.
Modified the oox::drawingml::dgm::Diagram class to
be able to hold the map storing the XDocuments and
its names. Added the getDomMap() method to obtain
the map directly and the getDomsAsPropertyValues
method to get the map as a sequence of Property
Values.
Modified the methods for importing and loading the
Smart-Art into the Diagram so they add
automatically the DOM documents to it.
Modified the oox::drawingml::Shape class to be
able to hold the sequence of PropertyValues
storing the XDocuments and its names coming from
the oox::drawingml::dgm::Diagram class. Added the
getDiagramDoms() and setDiagramDoms() methods.
Enhanced the
oox::shape::ShapeContextHandler::getShape() method
to add the extended drawing document to the
oox::drawingml::Shape class.
Modified the
oox::drawingml::Shape::createAndInsert() method to
store the sequence of XDocuments in the
"InteropGrabBag" property of the GroupShape
service SvxGroupShape implementation representing
a Smart-Art.
Change-Id: I7d0b9dfbfc9d5299ddd25fab394e5e9a422d1dd1
Reviewed-on: https://gerrit.libreoffice.org/5849
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/drawingml/shape.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/oox/drawingml/shape.hxx b/include/oox/drawingml/shape.hxx index 94c8342ef465..8573968af549 100644 --- a/include/oox/drawingml/shape.hxx +++ b/include/oox/drawingml/shape.hxx @@ -174,6 +174,9 @@ public: void addExtDrawingRelId( const OUString &rRelId ) { maExtDrawings.push_back( rRelId ); } void setLockedCanvas(bool bLockedCanvas); bool getLockedCanvas(); + const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> & + getDiagramDoms() { return maDiagramDoms; } + void setDiagramDoms(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& rDiagramDoms) { maDiagramDoms = rDiagramDoms; } protected: @@ -265,6 +268,8 @@ private: // we need separate flag because we don't want // to propagate it when applying reference shape bool mbLockedCanvas; ///< Is this shape part of a locked canvas? + + com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> maDiagramDoms; }; // ============================================================================ |