Apache OpenOffice (AOO) Bugzilla – Issue 95623
new windows 'reopens' the file when in web layout view active
Last modified: 2013-08-07 14:44:35 UTC
How to reproduce: 1. Open a ODT file in Writer. 2. Choose View -> Web Layout. 3. Choose Window -> New Window. 4. Make edits in one window. These edits are not reflected in the other window. The windows appear to behave as if the document has been opened twice, and both windows independently edit the document. If you miss out step 2, so that "Print Layout" is active then the multiple windows all refer to the same document data and edits in one window are reflected in the other.
Slightly off topic but related: If after opening a second window view, the view type of one window is changed, the other window is closed. It is therefore not possible to have a web page view and a print layout view of the same file active at the same time.
MRU->OS: as described, when the view of a document is switched to "Web Layout", "New window" feature seems to open a new instance of the document and not a "mirror".
The Writer doesn't want to have a window opened but the sfx wants to ;-) In web layout we call SfxViewShell::SetNewWindowAllowed(false) but the SID_NEWWINDOW handler in sfx2 ignores this for SfxObjectShells with name.