Apache OpenOffice (AOO) Bugzilla – Issue 85818
Control in protected section allows editing of properties
Last modified: 2017-05-20 10:47:52 UTC
Fond with ooo_m245, xp Adding a section to an embedded form is possible. Adding controls to the new section is possible. Password protecting that section is possible. When this is done the user is not able to add, delete or move the controls in the form, even if opened in edit mode. However the control properties may be edited - without - requiring the password to be entered. This is true whether the document containing the form is a standalone *.odt, or an embedded form in an *.odb. -----Bug doc----- Open the attached file. Open form Form1 for edit. The grid is in a protected section and you may not delete or move it. Right click on the grid and you can however open the property editor.
Created attachment 51325 [details] bug doc
Created attachment 51326 [details] Stand alone copy of Form1 from bug doc
Added second attachment - this is the same Form1 from the odb file but as a stand alone Writer file.
Oh - the password the protected section is sydney
confirm, set target and reassign to the right (?) developer
fs->od: Currently, the protection of the section is not forwarded to the drawing layer objects, but instead it is managed at the respective SwDrawContact instance. I am uncertain about the best way how to solve this. Ideally, I would suggest we introduce something like "SetContentProtect" at the SdrObject (SetMoveProtect and SetResizeProtect already exist, though they're not used by the "section protection" feature). Then, when a section (or any other objects in Writer which allow to be protected - when digging the code, I got the impression there's more than sections here) is un/protected, it should call this new method at all SdrObjects contained in it. However, I do not know whether this approach is feasible for Writer. Please advise.
Reset assigne to the default "issues@openoffice.apache.org".