Bug 124114 - FILEOPEN DOCX: View setting changes from "Web" to "Normal"
Summary: FILEOPEN DOCX: View setting changes from "Web" to "Normal"
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected
Depends on:
Blocks: Writer-Web-Layout
  Show dependency treegraph
 
Reported: 2019-03-16 06:27 UTC by ddmids
Modified: 2023-03-21 20:51 UTC (History)
5 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 ddmids 2019-03-16 06:27:19 UTC
Description:
Currently, there's no way to set the default view to "Web". Even if I open a document, change the view to "Web", do some editing and then save, when I open the document again, it will always be opened in the "Normal" view and I have to change it back to "Web" every time I open every document.

Actual Results:
 

Expected Results:
 


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Dieter 2019-03-17 12:45:03 UTC
(In reply to ddmids from comment #0)
> Even if I open a
> document, change the view to "Web", do some editing and then save, when I
> open the document again, it will always be opened in the "Normal" view and I
> have to change it back to "Web" every time I open every document.

I can't confirm that. Document, that is saved in web-mode also opens in web-mode (tested with 6.3.0.0 and 6.1.5.2

To be certain the reported issue is not
related to corruption in the user profile, could you please reset your
Libreoffice profile (https://wiki.documentfoundation.org/UserProfile) and re-test?

I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the issue is still present
Comment 2 Dieter 2019-03-25 12:18:55 UTC
Could you please copy and paste the infos about your version (Help => About LibreOffice)?
Comment 3 ddmids 2019-03-29 03:25:59 UTC
Version: 6.2.0.3 (x64)

Other people have experienced the same problem. It's not just me.

Also, I save documents as .docx, if that matters.
Comment 4 Dieter 2019-03-29 07:03:37 UTC Comment hidden (obsolete)
Comment 5 Dieter 2019-03-29 07:14:09 UTC
(In reply to ddmids from comment #3)
> Also, I save documents as .docx, if that matters.

I can confirm with a docx-file the view changes back to normal
=> I changed bug summary and I hope you agree

Steps to reproduce:
1. Open a new docment in writer
2. Change view to web
3. Save as docx
4. Open docx-file

Result: View modus is Normal (it doesn't happen with an odt-file)


Found in 

Version: 6.3.0.0.alpha0+ (x64)
Build ID: 91cdf22b88a4f7bec243c8fb187627e766d3294c
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-03-08_00:38:10
Locale: en-US (de_DE); UI-Language: en-US
Calc: threaded

and

Version: 6.2.2.2 (x64)
Build-ID: 2b840030fec2aae0fd2658d8d4f9548af4e3518d
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; VCL: win; 
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
Calc: threaded

but not in

Version: 5.4.7.2 (x64)
Build-ID: c838ef25c16710f8838b1faec480ebba495259d0
CPU-Threads: 4; BS: Windows 6.19; UI-Render: GL; 
Gebietsschema: de-DE (de_DE); Calc: CL
Comment 6 Aron Budea 2019-04-06 05:31:58 UTC
The following commit changed the behavior to disregard web view setting. I'd say, NOTABUG, see rationale below.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=ffb4d7b16b386ba13f27722cd78406d5b5c5baca
author		Jan Holesovsky <kendy@collabora.com>	2017-09-18 13:17:39 +0200
committer	Jan Holesovsky <kendy@collabora.com>	2017-09-19 10:26:13 +0200

"Word 2013 and 2016 does not honor the <w:view> setting, let's ignore it too.

In other words, let's open documents in the non-web view even when saved with
<w:view w:val="web"/>.

The behavior I see in Word 2013 (and it's documented that his happens in 2016
too) is that the setting is not a document setting any more, but user's
setting.  Ie. regardless of what is written in the file, the .docx document
opens in the Print Layout if the Word was in the Print Layout until now, and
in the Web Layout if it was that mode.

We handle the non-web layout much better than the web layout, so let's just
default to the normal layout on load."
Comment 7 ddmids 2019-04-10 11:32:34 UTC
I don't know what you're trying to demonstrate. In my case, 99% of my documents are viewed in Web view but now I have to 1) open a document; 2) change the view to Web for those 99% of my documents.

The thing is either:
1) when a document is saved in Web view, next time when it's opened, it should be opened in Web view. And the same goes for Normal mode, etc. (This can already be done in MS Office and FreeOffice)

2) Let the user define the "default view" in Settings so every document is opened in the default view no matter in what view the document was saved.
Comment 8 Dieter 2021-03-03 17:01:27 UTC
(In reply to ddmids from comment #7)
> I don't know what you're trying to demonstrate. 

As far as I understand comment 6 the problem is Word 2013 and 2016 don't use the <w:view> setting (but I'm not a developer; I can't read the code). So I could understand, that Word doesn't open file in Web-View, but I would expect, that Writer does (but again, I'm not a developer).

Jan, what do you think about it? Do you agree, that this is NOTABUG as Aron says in comment 6?
cc: Jan Holesovsky

Still reproducible with

Version: 7.1.1.2 (x64) / LibreOffice Community
Build ID: fe0b08f4af1bacafe4c7ecc87ce55bb426164676
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 9 QA Administrators 2023-03-04 03:32:52 UTC Comment hidden (obsolete)
Comment 10 Dieter 2023-03-21 20:51:01 UTC
Same behaviour in

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b5c3a7502f7ff6ccf0f829c1f3a2ba50b8584c41
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (de_DE); UI: en-GB
Calc: CL threaded

But my question to Jan Holesovsky is still open.