Markus Daniel a �crit :

Have a look in the API-Doc com.sun.star.frame.XComponent and com.sun.star.document.MediaDescriptor

thanks for this...

in Java:
you can give loadComponentFromURL a PropertyValue[]
with something like
loadProperties[1].Name = "ReadOnly";
loadProperties[1].Value = new Boolean(false);

in Basic, (macro ooo),  this does not work:

   Dim loadArgs(2) as New com.sun.star.beans.PropertyValue

   loadArgs(1).Name = "MacroExecutionMode"
   loadArgs(1).Value = 4

   loadArgs(2).Name = "ReadOnly"
   loadArgs(2).Value = False
StarDesktop.LoadComponentFromURL("http://localhost:8080/docs/toto.odt";, "_blank", 0, loadArgs())

--> Exception : com.star.lang.IllegalArgumentException
Message: URL seems to be an unsupported one

But this work:

   Dim loadArgs(2) as New com.sun.star.beans.PropertyValue

   loadArgs(1).Name = "MacroExecutionMode"
   loadArgs(1).Value = 4

   loadArgs(2).Name = "ReadOnly"
   loadArgs(2).Value = True
StarDesktop.LoadComponentFromURL("http://localhost:8080/docs/toto.odt";, "_blank", 0, loadArgs())

with read-only true value (and the doc is in read-only mode, which I don't want...)

It's like the readOnly Variable can not have value false...

I am missing something ?

I have made some tests and with ooo version 1.79.104, the remote document is no more opened in 'edit' mode with the GUI... (only read-only...) This is odd...


Maxime


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

Reply via email to