How to check Uno objects types with Basic macro ?

Thomas Krumbein Thomas.Krumbein at
Thu Dec 21 08:13:27 UTC 2017

Hey Patrick,

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("") then   ' is a 
text section

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

Best regards


Am 21.12.2017 um 08:19 schrieb Patrick Gelin:
> Hi,
> I'm using basic macros with LibreOffice 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 !
> Patrick
> --
> Sent from:
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at

More information about the LibreOffice mailing list