Bug 107264

Summary: UNO Commands to lock/protect object and shape properties
Product: LibreOffice Reporter: Heiko Tietze <heiko.tietze>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: philipz85
Priority: medium    
Version: 5.4.0.0.alpha0+   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 86899, 103170    

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