WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OpenOffice

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

OpenOffice Introspection

 Keywords:  Inspect getMethods getDeclaringClass getName com.sun.star.ServiceManager com.sun.star.frame.Desktop com.sun.star.beans.Introspection com.sun.star.beans.MethodConcept.ALL LibreOffice
oSM = CreateObject("")
;Winbatch - OpenOffice Introspection
;
;Another method to dig into OO Services and related methods
;and attributes - thanks to Didier for getting this ball rolling
;
;Stan Littlefield - April 21, 2010
;//////////////////////////////////////////////////////////////////////////////////

oSM = CreateObject("com.sun.star.ServiceManager")
oOBJ = oSM.createInstance("com.sun.star.frame.Desktop")
oSpec = oSM.createInstance("com.sun.star.beans.Introspection")
oObjInfo = oSpec.inspect( oObj )
oMethods = oObjInfo.getMethods(-1) ;com.sun.star.beans.MethodConcept.ALL
n=ArrInfo(oMethods,1)
Message("","Methods Found: ":n)
cMethods=""

For i = 0 To n-1
   oMethod = oMethods[i]
   cMethods=cMethods:oMethod.getDeclaringClass().getName():@CRLF
Next


oMethods=0
oObjInfo =0
oObj=0
oSM=0

Message("Methods",cMethods)

Exit
;//////////////////////////////////////////////////////////////////////////////////


Article ID:   W18159
Filename:   OpenOffice Introspection.txt
File Created: 2011:07:11:08:54:52
Last Updated: 2011:07:11:08:54:52