Apache OpenOffice (AOO) Bugzilla – Issue 92280
Designmode activated after using button for editmode
Last modified: 2017-05-20 10:48:07 UTC
Load attached bugdoc => design mode is off (button can be pushed) Press editbutton (in standardbar) twice => design mode is on (button can be selected)
Created attachment 55449 [details] bugdoc
I don't see a reason why an issue which is in there for ages (AFAIK) must be fixed for 3.1 ... re-targeting to 3.x
fs->nn: The reason for the current situation is in ScTabViewShell::Notify, which - upon a SFX_HINT_MODECHANGED notification - switches the form layer into design mode when the complete document switches to "writable", and the alive mode when the complete document switches to "read-only". The former is certainly necessary, whether the latter is really the desired behavior, I cannot judge - the issue claims it isn't. My suggestion would be the following: When the document is switched to "writable", then call "GetOpenInDesignMode" at the FmFormModel. This property indicates whether or not the form layer should be in design mode when the document is initially opened. Use this to decide which mode to set the form layer to in the SFX_HINT_MODECHANGED case.
fs->os: If it is decided to implement the change requested by this issue (i.e. don't force the form control design mode when a spreadsheet document is switched from read-only to writable), then IMO the same should be done for text documents, too.
Reset assigne to the default "issues@openoffice.apache.org".