Bug 103326 - Viewing: Enhancement: Unable to set web view as default for opening all documents.
Summary: Viewing: Enhancement: Unable to set web view as default for opening all docum...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium enhancement
Assignee: Not Assigned
URL: https://ask.libreoffice.org/t/set-web...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-19 03:50 UTC by eltimbalino
Modified: 2024-01-18 07:11 UTC (History)
2 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 eltimbalino 2016-10-19 03:50:14 UTC
Description:
Currently when opening a document it defaults to page view. I would like to be able to set the default view for opening all Writer documents to web view.

I would like this default to be overridden if the file being opened contains view information.

The currently recommended work around is to write a macro that sets current view to web view and is run by the events 'open document' and 'new document'. This solution is not optimal, and for those who don't want JRE, not available. 

Steps to Reproduce:
N/A: Feature request.
1. Open document or create new document
2. Document is in Print view when Web view is preferred.
3. Go to 'View' and click radio button 'Web'


Actual Results:  
N/A: Feature request.


Expected Results:
1. Open Writer
2. Go Tools --> Options --> LibreOffice Writer --> View
3. In this window under the View title a new options exists as Default Layout
4. New option Default Layout has two radio buttons, (1) Page View, (2) Web View
5. The chosen option causes writer to behave in the same manner as if, after opening or creating a document, the user had selected that view.


Reproducible: Always

User Profile Reset: No

Additional Info:
Caution: writing code that emulates a radio button click of Web View will cause a problem because the current implementation toggles instead of selects the radio buttons as per bug: https://bugs.documentfoundation.org/show_bug.cgi?id=62182


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36
Comment 1 Buovjaga 2016-11-02 12:21:06 UTC
(In reply to eltimbalino from comment #0)
> The currently recommended work around is to write a macro that sets current
> view to web view and is run by the events 'open document' and 'new
> document'. This solution is not optimal, and for those who don't want JRE,
> not available. 

Where is this recommended? Why isn't it enough to create a blank template in web view and set it as default template? I tried it and it worked for me.
Comment 2 QA Administrators 2017-05-02 11:37:34 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2017-05-31 10:47:12 UTC Comment hidden (obsolete)
Comment 4 Beedell, Roke Julian Lockhart 2024-01-18 01:30:11 UTC
(In reply to QA Administrators from comment #3)
> Dear Bug Submitter,
> 
> Please read this message in its entirety before proceeding.
> 
> Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
> a lack of information which is needed in order to accurately
> reproduce and confirm the problem. We encourage you to retest
> your bug against the latest release. If the issue is still
> present in the latest stable release, we need the following
> information (please ignore any that you've already provided):
> 
> a) Provide details of your system including your operating
>    system and the latest version of LibreOffice that you have
>    confirmed the bug to be present
> 
> b) Provide easy to reproduce steps – the simpler the better
> 
> c) Provide any test case(s) which will help us confirm the problem
> 
> d) Provide screenshots of the problem if you think it might help
> 
> e) Read all comments and provide any requested information
> 
> Once all of this is done, please set the bug back to UNCONFIRMED
> and we will attempt to reproduce the issue.

1.	A:

	> Version: 7.6.4.1 (X86_64) / LibreOffice Community
	> Build ID: 60(Build:1)
	> CPU threads: 12; OS: Linux 6.6; UI render: default; VCL: kf5 (cairo+xcb)
	> Locale: en-GB (en_GB.UTF-8); UI: en-GB
	> Calc: threaded

	https://download.opensuse.org/repositories/openSUSE:/Factory/standard/x86_64/libreoffice-7.6.4.1-1.2.x86_64.rpm

2.	B: Confirmed to affect any DOC, DOCX, and ODT document. Probably any Writer-compatible document.
3.	C: Enable web view whilst viewing a document.
4.	D: I don't believe that they would demonstrate the issue - a video recording would, but it's unnecessary.
5.	E: As https://bugs.documentfoundation.org/show_bug.cgi?id=103326#c3 requests, the relevant recommendation is presumably from https://ask.libreoffice.org/t/set-web-view-as-default/30071/7?u=rokejulianlockhart. Note that it's obviously consequently unofficial.

> Please do not:
> 
> a) respond via email 
> 
> b) update the version field in the bug or any of the other details
>    on the top section of our bug tracker

Why not update the version information?
Comment 5 Buovjaga 2024-01-18 07:11:16 UTC
(In reply to third="Beedell", first="Roke" from comment #4)
> 5.	E: As https://bugs.documentfoundation.org/show_bug.cgi?id=103326#c3
> requests, the relevant recommendation is presumably from
> https://ask.libreoffice.org/t/set-web-view-as-default/30071/
> 7?u=rokejulianlockhart. Note that it's obviously consequently unofficial.

As I mentioned in comment 1, you can customise your default template to open in web view.

> > Please do not:
> > 
> > a) respond via email 
> > 
> > b) update the version field in the bug or any of the other details
> >    on the top section of our bug tracker
> 
> Why not update the version information?

That is a precaution for the case when people raise the version because they don't read that the field says "earliest affected".