How to check Uno objects types with Basic macro ?
Thomas.Krumbein at documentfoundation.org
Thu Dec 21 08:13:27 UTC 2017
to check, if a basic object is a document section, you can check, if the
object supports the according service.. for example:
if oObj.supportsService("com.sun.star.text.TextSection") then ' is a
a little bit different is this, if you have a cursor-object and want to
know, if this is a test section. in this case you have to check, if the
object (textSection) is not empty.
regarding some literature:
try Andrew Pitonyak´s "Makro explainen" document - > find it here:
the best free paper :)
In Germany you can use my book: "Makro Grundlagen
LibreOffice/OpenOffice" see www.tintal.de
Am 21.12.2017 um 08:19 schrieb Patrick Gelin:
> I'm using basic macros with LibreOffice 126.96.36.199. I would like to check that
> a basic Object is a document Section. I find out XTypeProvider interface
> , but no exemples hjow to use it. I've never use UNO interface, so could
> anybody send me a OOo Basic snippet code to show how to do ?
> By the way, do you know a good book/PDF to download about UNO interface
> and/or IDL language ?
> Thank you !
> Sent from: http://nabble.documentfoundation.org/Dev-f1639786.html
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
More information about the LibreOffice