Search code examples
libreoffice-basic

Need some explanation about interface in LibreOffice basic


I need to program something in LibreOffice Basic, but I've never done that before. I just have the basis in python, so it's really new for me. I didn't find any recent documentation, so I'm reading the basic guide from 2010.

But there is a point I really don't understand, They speak about various interface but I don't succeed to understand their interest and when I should call it.

If you can explain it I would love it.
Thank you !


Solution

  • Don't go deeper, no need. To write working code in Basic, you do not need additional information - you just need to know the list of methods of each object, no more. Which interface provided this method to the object shouldn't bother you.

    See chapter 3.6.4. Interfaces in Pitonyak's book. The list of available methods is easy to obtain using the MRI or Xray tool extension. MRI is convenient in that after an in-depth study of the object, you immediately get a piece of code ready for use.

    MRI Code Snippet

    (Unfortunately, this extension works extremely unstable with the latest versions of LibreOffice)

    Update Video on YouTube