[Libreoffice-bugs] [Bug 120680] Menu entries for shapes should be disabled in protected mode
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Jan 5 08:41:26 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=120680
--- Comment #4 from Heiko Tietze <heiko.tietze at documentfoundation.org> ---
(In reply to Xisco Faulí from comment #3)
> @Heiko, candidate for easyhack ?
Shapes are generic commands, not only used in Calc. There is .uno:BasicShapes
and .uno:BasicShapes.rectangle, .uno:BasicShapes.quadrat etc. with
SID_DRAWTBX_CS_BASIC and SID_DRAWTBX_CS_BASIC1.. SID_DRAWTBX_CS_BASIC<n>. All
the children commands needs to be disabled individually.
I would think about a new state method, assign this to all SIDs, add the code
similar to ScModule::GetState( SfxItemSet& rSet ). Maybe ScTable::IsProtected
returns whether the sheet is protected. OTOH, such a state method requires Calc
specific commands...
Usually I fail with the first approach and things are more complicated than
expected. So not an easyhack.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210105/88482bad/attachment.htm>
More information about the Libreoffice-bugs
mailing list