Bug 61297 - UI - Forms incorrectly switching from print to web layout and back
Summary: UI - Forms incorrectly switching from print to web layout and back
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on: 62514
Blocks: Database-Forms
  Show dependency treegraph
 
Reported: 2013-02-22 17:59 UTC by Kurt
Modified: 2023-11-08 03:15 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 Kurt 2013-02-22 17:59:50 UTC
Description:

Forms in "Print" layout are automatically switching to "Web" layout whenever they are edited.  Forms, even ones that are not being edited, in "Web" layout automatically switch to "Print" layout when you select print.


Reproduction:

Print -> Web 
1) Create or open a form for editing (right-click the form then select edit)
2) Ensure the form is in "Print Layout" by selecting View->Print Layout.
3) Save the form.
4) Edit the form.  The layout automatically changes to "Web", not honoring the layout it was in when it was last saved.

In this case the desired behaviour is for the form, when edited, to open in the last mode it was saved it.  This mode is obviously preserved, because when it's opened not for editing, it works correctly.

Web -> Print
1) Create or open a form for editing.
2) Ensure the form is in "Web Layout" by selecting View->Web Layout
3) Save the form.
4) Run the form (double-click on it rather than editing)
5) Select File->Print.  The layout automatically changes to "Print" layout and you cannot change it back without closing the form and reopening it.

In this case the desired behaviour for a form that is not opened for editing is to either have the layout not be changed, or for the layout to return to what it was prior to printing.


Discussion:

Sometime in the 3.6 series, the decision was made that "Web" layout was going to be the default layout for Base forms.  While in most cases this is probably appropriate, the way it was implemented was done without thinking through the consequences.

First of all, the implementation switches all forms from "Print" to "Web" layout any time they are edited.  This must be then manually reversed before the form is edited and saved. 

Secondly, when a form is being run and not edited, the layout options are disabled.  However you can still, of course, select File->Print.  When printing the form, the layout automatically changes to "Print".  This cannot be changed back because those options are disabled.  If changing the whole visual layout to "Print" is required before LO can actually print, then it should be reverted to what it was before it was printed after it's complete.
Comment 1 Joel Madero 2013-03-19 02:49:55 UTC
Lionel - thoughts? Sorry for bugging you on these UNCONFIRMED, I think we need a database QA expert also :-/
Comment 2 Lionel Elie Mamane 2013-03-19 10:41:09 UTC
Reproduced in my libreoffice-3-6 and libreoffice-4-0 development builds.

I didn't consider that print layout makes much sense for forms, since they are note designed to be printed, but used on screen. Web layout, which is more like 'screen layout' (that is, adjust to size of window dynamically instead of being fixed on a "paper size") makes more sense.

However, if someone finds use in a print layout for forms, I'm not opposed to allowing it.

As such, my opinions are:

 - The issue of the form switching to Print layout and being stuck there
   after "File / Print" is a genuine bug. However, it is not specific to
   forms; the same happens with a vanilla Writer document.

 - We need to be consistent on whether we allow print layout for forms or not.

   If we don't allow it, the "view / (web|print) layout" menu entries should
   be greyed out *both* in design mode (edit mode) *and* in normal mode.

   If we do allow it, then the "view / (web|print) layout" should be enabled
   *both* in design mode (edit mode) *and* in normal mode. The default when
   creating a new form should be Web layout.
Comment 3 Kurt 2013-03-19 11:14:08 UTC
For what it's worth, I find print layout quite handy for forms simply for the fact that many forms I design specifically to be able to be printed, and I like to lay them out on a page nicely.

In a shameless plug that is beyond the scope of this bug, I'll say that I would personally find it far more useful for forms, when they are "run", to have their editing toolbars removed in order to maximize screen real estate.  I can't emphasize enough how many times I've wished window size and toolbar layout could be specified on a per-form basis.
Comment 4 Julien Nabet 2014-08-02 08:37:23 UTC
On pc Debian x86-64 with master sources updated yesterday, I could reproduce the bug.

I noticed these logs:
warn:legacy.osl:5151:1:xmloff/source/forms/propertyexport.cxx:595: OPropertyExport::implConvertAny: unsupported value type!
warn:legacy.osl:5151:1:xmloff/source/forms/propertyexport.cxx:595: OPropertyExport::implConvertAny: unsupported value type!
warn:legacy.osl:5151:1:xmloff/source/forms/propertyexport.cxx:595: OPropertyExport::implConvertAny: unsupported value type!
warn:legacy.osl:5151:1:xmloff/source/forms/propertyexport.cxx:595: OPropertyExport::implConvertAny: unsupported value type!
warn:legacy.osl:5151:1:xmloff/source/forms/propertyexport.cxx:595: OPropertyExport::implConvertAny: unsupported value type!
warn:legacy.osl:5151:1:xmloff/source/forms/propertyexport.cxx:595: OPropertyExport::implConvertAny: unsupported value type!
warn:xmloff:5151:1:xmloff/source/draw/shapeexport.cxx:558: com.sun.star.drawing.ControlShape
Comment 5 Alex Thurgood 2015-01-03 17:39:41 UTC Comment hidden (no-value)
Comment 6 QA Administrators 2016-01-17 20:05:23 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2017-03-06 14:41:26 UTC Comment hidden (obsolete)
Comment 8 Thomas Lendo 2018-11-06 22:02:18 UTC
I can only confirm the "Print -> Web" steps.
"Print Layout" is now named "Normal".

Version: 6.2.0.0.alpha1+
Build ID: fff34169fa912ad5096f1652172ea2455e5cb4d3
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: de-DE (de_DE.UTF-8); Calc: threaded
from today
Comment 9 QA Administrators 2019-11-07 03:34:55 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2021-11-07 04:23:28 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2023-11-08 03:15:33 UTC
Dear Kurt,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug