diff options
author | Jim Raykowski <raykowj@gmail..com> | 2019-08-15 00:31:25 -0800 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-28 10:22:59 +0100 |
commit | 9f86b320a997c77069cf93dcb32fb71f09ad1348 (patch) | |
tree | c7767f9da6a3fbd465d80f36fee8ec2a9bd567fa /include/svx/svdobj.hxx | |
parent | 2d8efd1afe03a4009600e914910144b70982e98d (diff) |
tdf#125191 Give object copies unique names
This patch makes a unique name for a copy of an object having
a user given name.
Change-Id: I14a7f45cc02962fc34a1532dd5db1cb9657b41d3
Reviewed-on: https://gerrit.libreoffice.org/77500
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/svdobj.hxx')
-rw-r--r-- | include/svx/svdobj.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx index 97f082563281..3d0699b3f63c 100644 --- a/include/svx/svdobj.hxx +++ b/include/svx/svdobj.hxx @@ -38,6 +38,8 @@ #include <osl/diagnose.h> #include <typeinfo> +#include <unordered_set> + class SfxBroadcaster; class AutoTimer; class OutlinerParaObject; @@ -425,6 +427,7 @@ public: // It may also have a Title and a Description for accessibility purposes. void SetName(const OUString& rStr); OUString GetName() const; + void MakeNameUnique(std::unordered_set<OUString>& rNameSet); void SetTitle(const OUString& rStr); OUString GetTitle() const; void SetDescription(const OUString& rStr); |