Bug 107264 - UNO Commands to lock/protect object and shape properties
Summary: UNO Commands to lock/protect object and shape properties
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.4.0.0.alpha0+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: UNO-Command-New Notebookbar-ContextualGroups
  Show dependency treegraph
 
Reported: 2017-04-19 09:28 UTC by Heiko Tietze
Modified: 2017-04-19 16:51 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Tietze 2017-04-19 09:28:04 UTC
The contextual sections variant of the Notebookbar shows a special section for images. This section contains a Lock button, which is not functional. The button was introduced with options > protect (content, position, size) in mind. Users expect to lock position and size as well as not being able to crop the image or to modify any other property. The lock button has to be implemented as toggle button and the other functions such as Crop should be enabled respectively.
Comment 1 Yousuf Philips (jay) (retired) 2017-04-19 16:51:53 UTC
So we need a few UNO commands for locking frame/image/object type objects to work in writer, as well as these same functions also working for shape/textbox type objects everywhere else.

.uno:ProtectSize - enables the protect size checkbox in sw object dialog and the protect size checkbox in position & size dialog

.uno:ProtectPosition - enables the protect position checkbox in sw object dialog

.uno:ProtectPositionAndSize - enables the protect position and size checkboxs in sw object dialog and the protect position checkbox in position & size dialog

.uno:ProtectAll - enables the protect position, size, and content checkboxs in sw object dialog