Issue 119292 - AOO doesn't open documents (forms) in the saved view (web layout )
Summary: AOO doesn't open documents (forms) in the saved view (web layout )
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: viewing (show other issues)
Version: 3.4.0
Hardware: PC Linux, all
: P2 Blocker (vote)
Target Milestone: 3.4.1
Assignee: Oliver-Rainer Wittmann
QA Contact:
URL:
Keywords: regression
: 118977 119379 120258 (view as issue list)
Depends on:
Blocks:
 
Reported: 2012-04-27 17:35 UTC by mroe
Modified: 2012-07-25 09:01 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---
jsc: 3.4.1_release_blocker+


Attachments
example with database and textdocument in web and in print layout (45.47 KB, application/zip)
2012-04-27 23:12 UTC, Regina Henschel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mroe 2012-04-27 17:35:43 UTC
I use writer documents with forms as frontend for base, if it was possible since many OOo/SO versions.

If I open such a saved form it doesn't open in web layout. Because the document is write protected (read only by file system), there is no possibility to change the view from the print layout to web layout.

In my opinion this is a show stopper.

AOO340m1 Build:9590
Comment 1 Regina Henschel 2012-04-27 23:12:35 UTC
Created attachment 77499 [details]
example with database and textdocument in web and in print layout

The initial view is correct in DEV300m102 and broken in DEV300m104. To reproduce the bug you can use the attached database.

If Writer is in 'Web Layout' the form document is opened in 'Web Layout' too. If Writer is in 'Print Layout' the form document is opened in 'Print Layout' too. The settings stored in the document are ignored. I have verified, that the settings for property "InBrowseMode" are correctly set in the attached document. 

You can use the above as workaround: Open a new dummy textdocument and switch to the desired layout 'Web Layout' or 'Print Layout'. Then open the form-document.
Comment 2 Regina Henschel 2012-04-27 23:14:34 UTC
It is no release blocker, because it is an old inherit bug and a workaround exists.
Comment 3 Regina Henschel 2012-04-27 23:22:23 UTC
The corresponding issue in LibreOffice is https://bugs.freedesktop.org/show_bug.cgi?id=37024. It is fixed in LO.
Comment 4 mroe 2012-04-28 06:14:49 UTC
Sorry, this _is_ a show stopper!
Many costumers work daily at work with such forms. For these people it is out of interest if there is a workaround or a solution for an other product.

I don't know how you define "old". OOo 3.3 is the version before AOO 3.4. Till this version forms can be used as expected.
Comment 5 Raphael Bircher 2012-04-28 13:12:10 UTC
I agree that this bug is ugly

But it's simply too late now, sorry. Next time you start earlier with testing. befor RC Status. The Release is allready accepted. :-(

It's definitifly a P2 and not P3 and it have to be fixed on 3.4.1


Greetings Raphael
Comment 6 drewjensen.inbox 2012-05-01 17:33:21 UTC
it's also fairly easy to fix this with a macro.

If you copy/paste the following into the Standard basic library:

sub fixBaseForms( oevent as object )

  if InStr( oEvent.Source.CurrentController.Title, ".odb :" ) <> 0 then
    ' switch to web view
    oEvent.Source.CurrentController.ViewSettings.setPropertyValue( "ShowOnlineLayout", True )
  end if
 	
end sub

[not be sure there no line wrap the copy/paste]

Then in the customize dialog (Tools>Cutomize) set at the full office level.
Switch to the Events tab, select the 'Open Document' event, click on the Macro button and select the fixBaseForms procedure added to the Standard Library.

That is a quick hack, but it will fix the problem for the moment.
Comment 7 Oliver-Rainer Wittmann 2012-05-07 07:14:05 UTC
I am volunteering to work on a fix --> taking over this issue.
Comment 8 jsc 2012-05-07 10:03:55 UTC
accept for 3.4.1, set release blocker flag
Comment 9 Oliver-Rainer Wittmann 2012-05-09 13:41:10 UTC
fixed on AOO34 branch, changed files:
/sw/inc/doc.hxx,
/sw/source/core/doc/docnew.cxx,
/sw/source/core/doc/doclay.cxx,
/sw/source/core/layout/frmtool.cxx,
/sw/source/filter/basflt/shellio.cxx, 
revision 1336166
Comment 10 Oliver-Rainer Wittmann 2012-05-09 13:51:57 UTC
also fixed on trunk, revision 1336208
Comment 11 Oliver-Rainer Wittmann 2012-05-11 11:54:50 UTC
*** Issue 118977 has been marked as a duplicate of this issue. ***
Comment 12 r4zoli 2012-05-19 13:52:55 UTC
*** Issue 119379 has been marked as a duplicate of this issue. ***
Comment 13 binguo 2012-06-18 08:28:00 UTC
Verified it on Aoo_Trunk_20120616.1800.1350879 and it does not reproduce, so close it as fixed.
Comment 14 Li Feng Wang 2012-07-09 05:20:15 UTC
verify steps:
1)New a text document and switch to Web layout.
2)Open ExternesFormular Print.odt in attachment and check View->Print Layout
3)Open ExternesFormular Web.odt in attachment and check Vie->Web Layout

Can't reproduce on AOO341 branch r1354891
Comment 15 Regina Henschel 2012-07-11 22:23:47 UTC
*** Issue 120258 has been marked as a duplicate of this issue. ***
Comment 16 mroe 2012-07-14 11:36:26 UTC
Verified working with OOo-Dev 3.4.1 r1354891. Thank you!
Comment 17 jsc 2012-07-25 09:01:41 UTC
set target milestone AOO 3.4.1