Ian Laurenson wrote:

> But I can use something like this:
> 
> oFrame   = ThisComponent.CurrentController.Frame
> oDispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
> oDispatcher.executeDispatch(oFrame, ".uno:NewWindow", "", 0, Array())
> oHiddenDoc = thisComponent
> oHiddenDoc.currentController.frame.containerWindow.setVisible(false)
> 
> oInvisibleVC = oHiddenDoc.currentController.viewCursor
> oInvisibleVC.gotoStartofLine(true)
> msgbox len(oInvisibleVC.string)
> 
> oHiddenDoc.currentController.frame.dispose

Yes, that is possible, if you can tolerate the flicker.

As long as nobody confuses the visibility of the window (someting that
is special for the view) with the "hidden" property of the document you
won't get into problems. So it should work if the invisible view is
created only temporarily.

> Thanks - you have helped me a lot!

You're welcome.

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]

Reply via email to