https://bugs.documentfoundation.org/show_bug.cgi?id=96896

--- Comment #10 from [email protected] ---
Hi akash96j,

A colon followed by a number is appended to the window title when a new window
of the same document is opened (Window -> New window). If one or more of these
multiple views is closed and you open another one, Libreoffice uses the least
available number for its title. When edit mode is toggled (Ctrl+Shift+M), the
expression "(read-only)" is added or removed from the title of each window. I
think that this is expected behaviour.

However, when print preview is selected, the numbering of windows behaves
oddly. To reproduce, please follow these steps (LO 5.1.0.3, Win10):

CASE A - MANUALLY OPENED DOCUMENT
1) Create and open a new Writer document. There is no colon and number in
window title (ok).
2) Toggle edit mode with Ctrl+Shift+M. "(read-only)" is appended to window
title (ok).
3) Select Print Preview. "(read-only) : 2" is appended to window title. Ok, but
it's a bit weird as the previous window is not visible anymore, so why number
the preview as "2"?
4) Close Print Preview. "(read-only) : 3" is shown in window title. That's
strange and confusing. Where is the original, unnumbered window?

CASE B - USING API TO OPEN DOCUMENT AND CHANGE WINDOW TITLE
1) On the attached VBScript, uncomment lines 15 and 16 and replace line 21 with
oDoc.Title = "My Title".
2) Run the modified script to create a new Writer document, open it in
read-only mode and change window title. "My Title (read-only)" is the window
title (ok).
3) Select Print Preview. ": 2" is appended to window title, but the
"(read-only)" expression mysteriously disappears. This seems to be a bug.
4) Close Print Preview. ": 3" is shown in window title without any
"(read-only)" expression, as document is now unexpectedly in edit mode.

CASE C - USING API TO OPEN DOCUMENT WITHOUT CHANGING WINDOW TITLE
1) On the attached VBScript, uncomment lines 15 and 16 and delete lines 18 to
21.
2) Run the modified script to create a new Writer document and open it in
read-only mode. "(read-only)" is appended to window title (ok).
3) Select Print Preview. "(read-only) : 2" is appended to window title (ok).
4) Close Print Preview. "(read-only) : 3" is shown in window title. Just the
same odd numbering behaviour as above.

So, after closing print preview, the original, unnumbered window becomes a ":
3" window. Additionally, if the window title of a read-only document is changed
using API, print preview puts the document in edit mode.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to