swriter with chart

Bjoern Michaelsen bjoern.michaelsen at canonical.com
Mon Sep 26 10:04:06 UTC 2016


Hi,

On Thu, Sep 22, 2016 at 10:57:18PM +0200, Katarina Behrens wrote:
> Hello world, 
>  
> > > I use Delphi to develop an application which needs to work with MS
> > > office and LibreOffice. I've a question about Chart in Libreoffice, 
> ...
> > supported methods. Or use Xray (in Basic) to examine the objects to
> > learn the supported methods.
> 
> Yay for XRay \o/ Get it from here: http://berma.pagesperso-orange.fr/index2.html
> 
> It's really an excellent tool for object introspection and learning about API, 
> esp. when you're a visual learner. 

Or you use the com.sun.star.script.theServiceDocumenter, which comes with
LibreOffice since 5.1, like so (StarBasic example):

  TheServiceDocumenter = GetDefaulftContext().getValueByName("/singletons/com.sun.star.util.theServiceDocumenter") # this should be simpler[1]
  TheServiceDocumenter.showServiceDocs(UnoThingThatYouWhatToKnowMoreAbout)
  TheServiceDocumenter.showInterfaceDocs(UnoThingThatYouWhatToKnowMoreAbout)

showServiceDocs shows you the service details about
UnoThingThatYouWhatToKnowMoreAbout by opening the relevant service page from
http://api.libreoffice.org/docs/idl/ref/index.html in your browser.
showInterfaceDocs shows you everything you can do with this service by opening
the links of all interfaces it implements in your browser. Not though for
something like "ThisComponent" in Writer this might be quite a lot.

So as you see, no need to install extensions to simply find out what an UNO service
is and what it provides in LibreOffice. ;)

More details at: https://www.youtube.com/watch?v=WBNG6bVZPzw

Best,

Bjoern


[1] see https://bugs.documentfoundation.org/show_bug.cgi?id=97447 


More information about the LibreOffice mailing list