Department Linux&Office Migration wrote: >> Currently a TextDocument Service exports these interfaces, but that's not >> reflected by the IDL. > > I have a related question: I have found out that a text document > supports the XScriptProviderSupplier interface (by trial and error, > because as Christoph says it's currently not documented in the IDL), > but when I start browsing at the XBrowseNode of > doc.getScriptProvider(), I only get access to the document-internal > scripts. I've been unable to find an object that offers an > XScriptProvider(Supplier) that allows me to browse the shared scripts. > > What object will provide me access to the shared scripts? And more > importantly, where do I find information such as this if it's not in > the IDL?
Here's some C++ code for this (xCtx is the DefaultContext): > Reference< provider::XScriptProviderFactory > xFac( xCtx->getValueByName( > ::rtl::OUString::createFromAscii( > "/singletons/com.sun.star.script.provider.theMasterScriptProviderFactory") ), > UNO_QUERY_THROW ); > > Any aContext; > Reference< provider::XScriptProvider > xScriptProvider( > xFac->createScriptProvider( aContext ), UNO_QUERY_THROW ); BTW: you should create a new thread if your question touches another area. At least I forgot about your mail because it is a little bit OT in this thread. 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]
