https://bugs.documentfoundation.org/show_bug.cgi?id=62851
Muhammet Kara <muhammet.kara@collabora.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |muhammet.kara@collabora.com
--- Comment #13 from Muhammet Kara <muhammet.kara@collabora.com> ---
After taking a quick look into this, I would see it as a real bug rather than
an enhancement request.
Dev notes for anyone interested to take this on:
The unnamed shapes cannot be selected because the inner implementation uses the
shape name as a reference, and constructs & uses a bookmark out of it. So if a
shape is unnamed, it is displayed with a name like "Shape X", which is not
actually its name, and this results in a broken link/bookmark.
One of the possible solutions might be sending the pointer of the object (after
converting it into a string, and wrapping in an SfxStringItem) instead of its
name. And getting the pointer to the object at the destination, by converting
it back to a pointer.
This is where the bookmark is constructed: sd/source/ui/view/drviewsd.cxx:124
(else if (nSId == SID_NAVIGATOR_OBJECT))
You may check sfx2/source/doc/autoredactdialog.cxx for examples of the pointer
mechanics described above. (grep/search for toInt64(), and OUString::number
inside the source file)
--
You are receiving this mail because:
You are on the CC list for the bug.
Context
- [Libreoffice-ux-advise] [Bug 62851] UI: Shapes without name cannot be selected via Navigator · bugzilla-daemon
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.