How to check Uno objects types with Basic macro ?
Oliver Brinzing
Oliver.Brinzing at gmx.de
Thu Dec 21 17:41:26 UTC 2017
Hi Patric,
> I'm using basic macros with LibreOffice 5.4.2.2. I would like to check that > a basic Object is a document Section. I find out XTypeProvider interface
you can use something like this:
Sub Main
If hasUnoInterfaces(ThisComponent, "com.sun.star.sheet.XSpreadsheetDocument") Then
MsgBox "Spreadsheet"
EndIf
End Sub
> By the way, do you know a good book/PDF to download about UNO interface
> and/or IDL language ?
have a look at Andrew Pitonyak's "OpenOffice.org Macros Explained" book
http://www.pitonyak.org/book/
Regards
Oliver
More information about the LibreOffice
mailing list