Bug 101179 - Writer/Web: View > HTML Source mode toggles are awkward
Summary: Writer/Web: View > HTML Source mode toggles are awkward
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Writer-Web-Layout 101772
  Show dependency treegraph
Reported: 2016-07-28 19:07 UTC by Stefan Knorr (astron)
Modified: 2019-06-13 14:46 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Knorr (astron) 2016-07-28 19:07:45 UTC
To reproduce:

1. Open Writer/Web (e.g. via File > New > HTML Document)
2. Save the document (this is necessary because otherwise Writer/Web will not
   show you a source view of your file): File > Save As (etc.)
3. Switch to the source view: View > HTML Source

Now, open the View menu again. Observe that "Print Layout" and "Web Layout" are grayed out i.e. unavailable. This is, despite the fact that the three items Print Layout/Web Layout/HTML Source should act as alternatives. (Which is implied by the UI, given the radio-button like circle in front of the item. And that they act as alternatives is also logical.)

Now, to switch out of HTML Source view, you have to click View > HTML Source again. You are not able to use either of the logical items Print Layout or Web Layout.

(I hope that makes a bit of sense.)
Comment 1 V Stuart Foote 2016-07-28 22:37:34 UTC
Confirmed on Windows 10 Pro 64-bit with
Version: (x64)
Build ID: 7dbd85f5a18cfeaf6801c594fc43a5edadc2df0c
CPU Threads: 8; OS Version: Windows 6.19; UI Render: GL; 
Locale: en-US (en_US)

The mode toggles seem a little muddled. Unable to move back to Normal or Web layout without first toggling out of HTML Source view.

So, it can be in HTML View--or not. And only if not, then either Normal (i.e. print preview) or Web view.

Beleive intent is when toggled into the HTML view--the Normal and Web view widgets were not visible--instead of just greyed out.

Not sure if that can be improved.

Comment 2 Heiko Tietze 2016-07-28 22:51:10 UTC
I would also expect that HTML Source is an option when I load such a document. But it is there only with Stefan's test sequence.

Is this really an UX thing? It smells like a bug, or an inconsistency at the code.
Comment 3 QA Administrators 2018-06-19 02:45:33 UTC Comment hidden (obsolete)
Comment 4 Heiko Tietze 2018-06-20 08:11:49 UTC
Definitely a bug since the "HTML source" toggle button on the toolbar does the trick.

Build ID: 6.0.4-2
CPU threads: 8; OS: Linux 4.17; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: group