Issue 92280 - Designmode activated after using button for editmode
Summary: Designmode activated after using button for editmode
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: DEV300m28
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-30 13:05 UTC by oc
Modified: 2017-05-20 10:48 UTC (History)
2 users (show)

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


Attachments
bugdoc (23.50 KB, application/vnd.ms-excel)
2008-07-30 13:09 UTC, oc
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description oc 2008-07-30 13:05:05 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)
Comment 1 oc 2008-07-30 13:09:07 UTC
Created attachment 55449 [details]
bugdoc
Comment 2 Frank Schönheit 2008-08-25 14:49:59 UTC
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
Comment 3 Frank Schönheit 2008-12-17 20:19:34 UTC
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.
Comment 4 Frank Schönheit 2008-12-17 20:21:04 UTC
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.
Comment 5 Marcus 2017-05-20 10:48:07 UTC
Reset assigne to the default "issues@openoffice.apache.org".