tdf#34828 Give draw object a name when made
commit50b731c84cb17d7f05a690d90588e90ee267d1c2
authorJim Raykowski <raykowj@gmail.com>
Thu, 12 Nov 2020 22:18:16 +0000 (12 13:18 -0900)
committerNoel Grandin <noel.grandin@collabora.co.uk>
Thu, 25 Mar 2021 19:28:30 +0000 (25 20:28 +0100)
tree588cf6a410afb89e0827ed4f6658693693bd1ef4
parent042dbf83122b14fd1dd32705c8f8b7d65c22f21b
tdf#34828 Give draw object a name when made

For Writer and Calc this patch sets a name to a newly created draw
object. The name is constructed from the defined singular name of the
object, followed by a space, followed by the first available whole number
begining with 1 that will provide name uniqueness.

For Draw/Impress names are not set for an object on creation. Unnamed
objects have unique names given only in the Navigator tree. The unnamed
object names shown in the tree are based on the order of shapes in the
document. This patch does not change any name behavior for Draw/Impress.

Change-Id: I91f31364c8258f7abb5810a5865fefd6b249da03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105774
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
svx/source/svdraw/svdedtv.cxx
svx/source/svdraw/svdobj.cxx
sw/source/core/frmedt/feshview.cxx