Re: How to check Uno objects types with Basic macro ?

2017-12-22 Thread Thomas Krumbein
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("com.sun.star.text.TextSection") then   ' is a text section a little bit different is this, if you have a cursor-object and

Re: How to check Uno objects types with Basic macro ?

2017-12-21 Thread Oliver Brinzing
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")

How to check Uno objects types with Basic macro ?

2017-12-20 Thread Patrick Gelin
Hi, 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 , but no exemples hjow to use it. I've never