diff options
author | Grzegorz Araminowicz <grzegorz.araminowicz@collabora.com> | 2019-09-20 12:53:45 +0200 |
---|---|---|
committer | Grzegorz Araminowicz <grzegorz.araminowicz@collabora.com> | 2019-09-25 09:31:08 +0200 |
commit | 711c0b6331958da4fd53eb6c4f9ecd5a422bb186 (patch) | |
tree | e17b463e3f813cc4a4d849d91397adc610f121db /oox/source/drawingml/diagram/datamodel.hxx | |
parent | b13421011d9377676e1adc282634991d5064a866 (diff) |
SmartArt Edit UI: remove node
Removes data node from data model including associated presentation nodes,
transition nodes and all connections between them (child-parent and
presentation-of).
It still doesn't update order of remaining connections after removal, so
empty entries can happen. Additional step is needed or using better data
structures.
Change-Id: I96e0752b6ec5a19ae8e972dbd421314e6c442b53
Reviewed-on: https://gerrit.libreoffice.org/79279
Tested-by: Jenkins
Reviewed-by: Grzegorz Araminowicz <grzegorz.araminowicz@collabora.com>
Diffstat (limited to 'oox/source/drawingml/diagram/datamodel.hxx')
-rw-r--r-- | oox/source/drawingml/diagram/datamodel.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/drawingml/diagram/datamodel.hxx b/oox/source/drawingml/diagram/datamodel.hxx index b4c7ce7f82f7..7f7f0f4910c5 100644 --- a/oox/source/drawingml/diagram/datamodel.hxx +++ b/oox/source/drawingml/diagram/datamodel.hxx @@ -182,7 +182,8 @@ public: void dump() const; OUString getString() const override; std::vector<std::pair<OUString, OUString>> getChildren(const OUString& rParentId) const override; - void addNode(const OUString& rText) override; + OUString addNode(const OUString& rText) override; + bool removeNode(const OUString& rNodeId) override; private: void getChildrenString(OUStringBuffer& rBuf, const dgm::Point* pPoint, sal_Int32 nLevel) const; |