Matthias Benkmann wrote: > On 1/31/06, Mathias Bauer <[EMAIL PROTECTED]> wrote: >> >> If you loaded your file directly with "loadComponentFromURL" or so you >> could try to add a property "Preview" with value "True". I don't know >> the bean API by memory so I don't know if there is something comarable. > > Thanks, that seems to do the trick. But there's one problem. The view > opened that way does not have any toolbars for scrolling, even if the > document is not fully visible. Is that a bug? Do I have to do > something special to get the toolbars to appear?
Previews don't have scrollbars in OOo and a preview in OOo always has a fixed part of the document. I thought the "Preview" mode is the right choice because you wrote that you wanted "a preview window". Obviously that's not the case. So I think that the only way to go is switching of the UI explicitly. First you should load the document in readonly mode and then you need to switch off the Layout Manager object of the frame you are loading the document into. The Layout Manager is a property of the frame that - surprise! ;-) - is named "LayoutManager" (IIRC). You can call "lock()" and "setVisible(False)" on it. This will remove all toolbar and the menu. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
