Hi
I have been using the loadComponentFromURL for years with automation but
recently it has given errors saying that the documentation type detection
failed. So I wondered if there is a property I could set that indicates the
document type. I have found a list of document types for SCalc but can
One irritating thing I found out:
Although the listener is called with "onLayoutFinished" the desktop
still doesn't have an
ActiveFrame. It seemes to be set afterwards.
When I create a component enumeration, I can see the upcoming component,
but it isn't set yet.
Any ideas, how to receive an
sorry, forgot some code in the listener.m it should be:
class Doc_Event_Listener(unohelper.Base,XDocumentEventListener):
def documentEventOccured(self,ev):
if ev.EventName == 'OnLayoutFinished':
if document.Name == '':
document.Name = 'xxx'
Hi,
this post is somehow related to "open files automatically", but a bit
more specific.
http://nabble.documentfoundation.org/open-files-automatically-td4149584.html
When I load a component in an already loaded LO, following code works
inside an extension:
URL="private:factory/swriter"
desk
efore
free) but i suspect you have already gone through those.
Regards from
Tom :)
>
> From: Walther Koehler
>To: users@global.libreoffice.org
>Sent: Thursday, 4 October 2012, 17:42
>Subject: [libreoffice-users] loadComponentfromUrl
>
Hi,
When I open a document in writer (by menu/open or recently used or new), it
opens a frame with full window size. bingo.
When I open the same document via a basic makro using
loadComponentfromUrl(sURL, "_blank", 0, args())
it opens in a frame maximised vertically but not horizontally.
All fu