Bug 60129 - VIEWING: Window -> New window command disabled in "Web layout" view mode
Summary: VIEWING: Window -> New window command disabled in "Web layout" view mode
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.6.4.3 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA Confirmed:4.2.1.1:OSX Confirmed:4...
Keywords:
: 56941 60128 113879 118172 (view as bug list)
Depends on:
Blocks: Writer-Web-Layout
  Show dependency treegraph
 
Reported: 2013-01-31 16:16 UTC by Simeon Maryasin
Modified: 2023-10-23 12:13 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simeon Maryasin 2013-01-31 16:16:19 UTC
Problem description: When I choose "Web layout" mode (View -> Web layout), menu command Window -> New window becomes disabled. When I revert back to Print layout mode, it becames enabled again. But sometimes I need to open several windows with the same document, while viewing it as a web page.

Steps to reproduce:
1. Open a document, choose View -> Print layout
2. Choose Window -> New window. Second window opens.
3. Choose View -> Web layout (in any of windows).

Current behavior:
All other windows with the same document will close; Window->New window command becames inactive.

Expected behavior:
All the windows remain on screen, and possibility to open another window with the same document.
Operating System: Linux (Other)
Version: 3.6.4.3 release
Comment 1 Brenda Granados 2013-01-31 20:29:07 UTC
Hi,

I did confirm this behavior using Version 4.0.0.2 (Build ID: 408fe71bd18616c467b3dcd7ab6756528ffcae2)on Ubuntu 12.04. I'm not exactly sure about what the Web or Print Layouts are supposed to do, but if you open a new window, you would expect changes in one not to affect changes in the other window, I think.
Comment 2 Simeon Maryasin 2013-02-01 11:22:46 UTC
AFAIR, opening one document in several windows at once is useful when working with different parts of it.
In Print layout mode you see document as it would be printed (split to pages, etc), while in Web layout mode it isn't split and its formatting depends on window size.
Comment 3 Brenda Granados 2013-02-01 17:02:45 UTC
*** Bug 60128 has been marked as a duplicate of this bug. ***
Comment 4 Brenda Granados 2013-02-14 19:40:46 UTC
This was also confirmed using 4.0.1.0+ build.
Comment 5 kaesezeh 2013-09-22 10:36:54 UTC
And confirmed for LO 4.1.1.2 on Linux Mint 15 64bit KDE ...
Comment 6 retired 2014-03-02 10:17:13 UTC
*** Bug 56941 has been marked as a duplicate of this bug. ***
Comment 7 retired 2014-03-02 10:17:48 UTC
Setting OS to ALL since https://bugs.freedesktop.org/show_bug.cgi?id=56941 reports the same problem for Windows.
Comment 8 retired 2014-03-02 10:19:01 UTC
Confirmed:4.2.1.1:OSX Confirmed:4.3.0.0a0+:OSX
Comment 9 Joel Madero 2015-05-02 15:42:09 UTC Comment hidden (obsolete)
Comment 10 Andy Goth 2015-05-02 19:17:17 UTC
Confirmed LibreOffice 4.4.2.2 build c4c7d32d0d49397cad38d62472b0bc8acff48dd6 Windows 7 Professional SP1 64-bit

No apparent change in behavior
Comment 11 Simeon Maryasin 2015-05-04 11:02:57 UTC
Confirmed in LibreOffice 4.4.2.2 Build ID: 4.4.2.2 Arch Linux build-1, Arch Linux 64-bit
Comment 12 Hyogapag 2016-07-08 09:06:20 UTC
Confirmed in LibreOffice Version: 5.1.4.2 Build ID: 1:5.1.4~rc2-2~bpo8+1 (Debian)
Comment 13 Gülşah Köse 2017-08-19 12:38:45 UTC
Resolved in https://gerrit.libreoffice.org/41326 (Needs code review)
Comment 14 Andy Goth 2019-02-22 19:40:56 UTC
Confirmed in LibreOffice version: 6.2.0.3
Build ID: 98c6a8a1c6c7b144ce3cc729e34964b47ce25d62
CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded
Comment 15 sdc.blanco 2019-11-06 13:56:32 UTC
Reproduced with:  Version: 6.4.0.0.alpha1 (x64)
Build ID: cc57df8f942f239d29cb575ea5a7cb01405db787
CPU threads: 8; OS: Windows 10.0 Build 18362; UI render: GL; VCL: win; 

If this is intended (i.e. not a bug), then maybe it should be mentioned in the help file?  See here: 

https://help.libreoffice.org/6.4/en-US/text/shared/01/07010000.html?DbPAR=SHARED#bm_id6323129
Comment 16 Mike Kaganski 2021-10-02 09:17:30 UTC
*** Bug 113879 has been marked as a duplicate of this bug. ***
Comment 17 Mike Kaganski 2021-10-02 09:17:42 UTC
*** Bug 118172 has been marked as a duplicate of this bug. ***
Comment 18 Mike Kaganski 2021-10-02 09:23:59 UTC
(In reply to Simeon Maryasin from comment #2)
> In Print layout mode you see document as it would be printed (split to
> pages, etc), while in Web layout mode it isn't split and its formatting
> depends on window size.

I *guess* this is exactly the reason why it's disabled: our Web view mode is an imitation, implemented using some dynamically-changing pages with width equal to the window, and height of 10 meters. In this case, two different windows would conflict trying to re-format the same document to two different page widths at the same time.

Gülşah might have better understanding of the problem; I wonder if the change mentioned in comment 13 was abandoned because of some conflict of this kind?
Comment 19 Loyal Juraschek 2023-05-17 15:16:23 UTC
Looks like Muhammet Kara said the problem was that Comment 13's change introduced a new bug, bug it also appears he suggested an edit to mitigate it.
Comment 20 Loyal Juraschek 2023-05-17 15:19:35 UTC
(In reply to Loyal Juraschek from comment #19)
> Looks like Muhammet Kara said the problem was that Comment 13's change
> introduced a new bug, bug it also appears he suggested an edit to mitigate
> it.
*but it also appears
apologies
Comment 21 J22Gim 2023-09-25 14:19:18 UTC
(In reply to Mike Kaganski from comment #18)
> (In reply to Simeon Maryasin from comment #2)
> > In Print layout mode you see document as it would be printed (split to
> > pages, etc), while in Web layout mode it isn't split and its formatting
> > depends on window size.
> 
> I *guess* this is exactly the reason why it's disabled: our Web view mode is
> an imitation, implemented using some dynamically-changing pages with width
> equal to the window, and height of 10 meters. In this case, two different
> windows would conflict trying to re-format the same document to two
> different page widths at the same time.
> 
> Gülşah might have better understanding of the problem; I wonder if the
> change mentioned in comment 13 was abandoned because of some conflict of
> this kind?

I don't see the conflict here. For example, in a web browser, you can open the same website in two different windows and see them simultaneously. If there are changes in one of them, what is the (conceptual) problem reflecting this change in the other one on Writer?

The point of having two windows is, for example, being able to inspect different parts of the document at the same time. It should be independent of the viewing mode. And it would be very useful if it could be done in Web mode. For example in 'normal' mode, even if yo hide the 'in between pages' spaces, you still see a lot of information (mostly formatting) that is not relevant when you want to focus on what you write. And in many cases you want to see one section of the text (e.g. references section?) while writing on another section of the same document. That is when WEB view would be a great addition.
Comment 22 Mike Kaganski 2023-09-25 14:46:29 UTC
(In reply to J22Gim from comment #21)

I would recommend to read and think before replying.
Specifically, I wrote:

(In reply to Mike Kaganski from comment #18)
> our Web view mode is an **imitation**,
> implemented using some **dynamically-changing** pages with width
> equal to the window, and height of 10 meters. In this case, two different
> windows would conflict trying to re-format the same document to two
> different page widths at the same time.

It means, that when you have two windows for the same document in Web mode, they would try to show you the same document on the *different* page sizes - their widths would be dependent on the window width. But there is no way in Writer to have different pages assigned to the same content at the same time. Again: the "web mode" is like "use normal mode, just temporarily pretend that the page sizes are WindowWidth x 10 m".

There is no conceptual problem in implementing it in the correct way. It just needs a significant effort. And as comment 18 shows, there is no simple "just enable the command" solution.
Comment 23 J22Gim 2023-10-23 12:13:28 UTC
(In reply to Mike Kaganski from comment #22)
> (In reply to J22Gim from comment #21)
> 
> I would recommend to read and think before replying.
> Specifically, I wrote:
> 
> (In reply to Mike Kaganski from comment #18)
> > our Web view mode is an **imitation**,
> > implemented using some **dynamically-changing** pages with width
> > equal to the window, and height of 10 meters. In this case, two different
> > windows would conflict trying to re-format the same document to two
> > different page widths at the same time.
> 
> It means, that when you have two windows for the same document in Web mode,
> they would try to show you the same document on the *different* page sizes -
> their widths would be dependent on the window width. But there is no way in
> Writer to have different pages assigned to the same content at the same
> time. Again: the "web mode" is like "use normal mode, just temporarily
> pretend that the page sizes are WindowWidth x 10 m".
> 
> There is no conceptual problem in implementing it in the correct way. It
> just needs a significant effort. And as comment 18 shows, there is no simple
> "just enable the command" solution.

I strongly suggest you not only read and think but also relax before you reply to comments. Also, do it in a a respectful way. Nobody is saying 'just enable the command'. You need to stay calm. I understand people is asking all the time for features and only very few people do the actual work. I acknowledge that and thus I respect the ones who do the actual code and design. And therefore I respect what you do, your time and effort, and I never meant to upset you. This being said, you can always chose not to reply if you feel offended or if you feel you have explained yourself enough (or, if you have a bad day).

Now, coming back the our respectful discussion: considering a) that 'Web mode' is like: "use normal mode, just temporarily pretend that the page sizes are WindowWidth x 10 m", and b) the problems in "having different pages assigned to the same content at the same". 

What about these options:
1) keep the 'Normal mode' as the editable window, while 'Web mode' is read-only. Thus, View -> Web view would open a new window (as it is right now, if I have two 'Normal mode' windows and select 'Web mode' in one of them, the other gets automatically closed). Of course this would only work if the currently open window is 'Normal mode'.

2) allow for multiple 'Web mode' windows, but only one (the first?) can be edited, while the rest are read-only. This would mean that the 'use normal mode' part corresponds to the first window (where you can edit), while the other 'Web mode' windows are just imitations of the first one. If they are read-only and it is a problem that the user resizes different windows, then maybe LO can make a copy of the working document just for visualization purposes, after all it is not going to be modified on those windows.

By having only one editable window, we would still respect the 'use normal mode', while all the others are 'imitations' that can not be changed.