On 1/31/06, Mathias Bauer <[EMAIL PROTECTED]> wrote:
> Matthias Benkmann wrote:
>
> > On 1/31/06, Mathias Bauer <[EMAIL PROTECTED]> wrote:
>
> 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.

Well, it's a preview with respect to my application, but I still want
to offer the user the ability to see all of the document, so indeed
OOo's notion of "Preview mode" doesn't seem to be what I want.

> 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.

I'll try that, thanks.

Matthias

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to