Issue 85818 - Control in protected section allows editing of properties
Summary: Control in protected section allows editing of properties
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: recent-trunk
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2008-02-02 14:05 UTC by drewjensen.inbox
Modified: 2017-05-20 10:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

bug doc (17.37 KB, application/vnd.sun.xml.base)
2008-02-02 14:06 UTC, drewjensen.inbox
no flags Details
Stand alone copy of Form1 from bug doc (8.19 KB, application/vnd.oasis.opendocument.text)
2008-02-02 14:06 UTC, drewjensen.inbox
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description drewjensen.inbox 2008-02-02 14:05:08 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.
Comment 1 drewjensen.inbox 2008-02-02 14:06:05 UTC
Created attachment 51325 [details]
bug doc
Comment 2 drewjensen.inbox 2008-02-02 14:06:53 UTC
Created attachment 51326 [details]
Stand alone copy of Form1 from bug doc
Comment 3 drewjensen.inbox 2008-02-02 14:07:45 UTC
Added second attachment - this is the same Form1 from the odb file but as a
stand alone Writer file.
Comment 4 drewjensen.inbox 2008-02-02 14:11:54 UTC
Oh - the password the protected section is sydney
Comment 5 marc.neumann 2008-02-04 08:52:29 UTC
confirm, set target and reassign to the right (?) developer
Comment 6 Frank Schönheit 2008-09-18 21:41:55 UTC
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.
Comment 7 Marcus 2017-05-20 10:47:52 UTC
Reset assigne to the default "".