You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/09/26 13:04:50 UTC
[Bug 121113] New: Need document to open in weblayout mode however it
is opening in printlayout
https://issues.apache.org/ooo/show_bug.cgi?id=121113
Priority: P3
Bug ID: 121113
Assignee: ooo-issues@incubator.apache.org
Summary: Need document to open in weblayout mode however it is
opening in printlayout
Severity: major
Issue Type: DEFECT
Classification: Unclassified
OS: All
Reporter: anna.sagina@cerner.com
Hardware: All
Status: UNCONFIRMED
Version: AOO 3.4.1
Component: api
Product: app dev
Need document to open in weblayout mode however it is opening in printlayout
mode in open office3.4.1 also. Printlayout giving a bad view to user as it
displays header and footer page numbers and margins.
Using this code to open the document in weblayout mode
//Create the property array to pass parameters
PropertyValue[] browseProp = new PropertyValue[ 1 ];
browseProp[ 0 ] = new PropertyValue();
browseProp[ 0 ].Name = "BrowseView";//$NON-NLS-1$
browseProp[ 0 ].Value = Boolean.TRUE;
try
{
//Execute the UNO command, BrowseView, to switch to the web layout
mode.
XDispatchProvider xDispatchProvider =
(XDispatchProvider)UnoRuntime.queryInterface(XDispatchProvider.class,
mBean.getFrame());
helper.executeDispatch(xDispatchProvider, ".uno:BrowseView","", 0,
browseProp);//$NON-NLS-1$//$NON-NLS-2$
}
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 121113] Need document to open in weblayout mode however it is
opening in printlayout
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121113
--- Comment #3 from Regina Henschel <rb...@t-online.de> ---
This is a support request.
I'm not familiar with using Apache OpenOffice this way. Please ask on
ooo-dev@incubator.apache.org or on the forum
http://user.services.openoffice.org/en/forum/.
Do you know the SDK and the Developer's Guide?
http://wiki.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide
In Basic, if the document is opened, you would use something like this (Basic
has a simplified property access)
dim oDocument as variant: oDocument = ThisComponent
dim oController as variant: oController = oDocument.getCurrentController()
dim oViewSettings as variant: oViewSettings = oController.ViewSettings
oViewSettings.ShowOnlineLayout = TRUE
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 121113] Need document to open in weblayout mode however it is
opening in printlayout
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121113
--- Comment #2 from anna.sagina@cerner.com ---
We have embedded open office inside text editor. So while dispalying the
embedded openoffice document want it to diaply in weblayout. Till OO3.3 it used
to open in weblayout when we used the code mentioned above. We are usng java to
call openoffice apis.
How can I call the property showOnlineLayout through java.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 121113] Need document to open in weblayout mode however it is
opening in printlayout
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121113
Regina Henschel <rb...@t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |needmoreinfo
CC| |rb.henschel@t-online.de
--- Comment #1 from Regina Henschel <rb...@t-online.de> ---
The document opens in weblayout, if it was saved in weblayout. Does that not
work for you?
I'm not sure, what the purpose of your code is. There is already the property
"ShowOnlineLayout" in service "ViewSettings".
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 121113] Need document to open in weblayout mode however it is
opening in printlayout
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121113
Regina Henschel <rb...@t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Regina Henschel <rb...@t-online.de> ---
No bug, but support request.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 121113] Need document to open in weblayout mode however it is
opening in printlayout
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121113
Regina Henschel <rb...@t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--
You are receiving this mail because:
You are the assignee for the bug.