The URL of the document is stored as a property of the document component. The following python code will print the URL
#ctx is the current context
desktop = ctx.ServiceManager.createInstanceWithContext( \
"com.sun.star.frame.Desktop", ctx )
document = desktop.getCurrentComponent()
print document.URL
Alternatively a document.getPropertyValue("URL") should do the trickRegards, -Aidan
Ines Pfauch wrote:
My java addon now has some functions which are only visible if a document is opened. Before I can do anything with this document I need the url of it (path and name on the filesystem), how can I retrieve this?
Thanks in advance, Ines
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
