Hello all,
I want to be able to set the dimensions and UI components of a
document's frame before starting to load the document itself. So, for
example, I'm currently doing something very like:
doc = desktop.loadComponentFromUrl(<url>, "_blank")
frame = doc.getControllers().nextElement().getFrame()
# Remove UI stuff
lmgr = frame.LayoutManager
lmgr.hideElement("private:resource/menubar/menubar")
lmgr.setVisible(False)
# Set window size
frame.getContainerWindow().setPosSize(x, y, w, h, 15)
What I would like to do is to set the window up, perform the removal of
UI stuff and window resizing, and then call
'desktop.loadComponentFromUrl',
It seemed like I might be able to do something in this vein using
'_default' as the target frame, as per [0], but I couldn't get that to
work.
Any pointers on how I could go about doing this?
Thanks in advance,
Dan
[Footnote 0:
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Handling_Documents#Loading_Documents]
--
credativ ltd UK office: +44 1788 298150
PO Box 3868 Direct ext: +44 1788 298152
Rugby Email: [EMAIL PROTECTED]
CV21 3WW Web: http://www.credativ.co.uk/
credativ limited is registered in England & Wales, company no. 5261743
registered office: Suite 2 Bloxam Court, Corporation Street, Rugby CV21
2DU
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]