I’m running LO 7.1.6.2 on Windows10 Pro 10.0.1. I just installed Xray and it’s basically working, but I can’t get it to find help either in the 7.2 SDK or online. Every SDK directory I pick gets the complaint that it doesn’t contain help docs, and Xray’s install doc obviously contains outdated info on where the required master help index page is online.
Xray looks like it will be enormously helpful, but when it tells me that an object only contains one property with a value of 4 and that property only has one subproperty with a value of 5, and I was expecting a dozen or more properties such as LeftClick and ClickCount, I certainly need clarification on exactly what object or subobject or subsubobject I’m working with.
I suppose it doesn’t help that I’m trying to use Access2Base, and have found it rather muddy trying to relate the stuff it returns back to UNO objects. But UNO looks difficult to thread together into working code.
XRay works well with OpenOffice documentation. MRI supports both types of documentation trees.
I’ll give OO docs a try.
There is also the ZAZ Inspect extension which was rewritten based on the MRI but designed for the libreoffice api
Thanks. I may take a look. Does it only interface to Python? My Python is rather rusty.
see the Vimeo video from 2:32, it demonstrates in basic
The extension could be written in C++, Java, JavaScript, Beanshell or Python. It would not make any difference because MRI is not a macro. It comes with some Basic code as demo and for easy use.
You can call that Basic code MriLib.Module1.Mri after loading the MriLib or you can have a look at this macro and do the same thing:
oMRI = CreateUnoService( "mytools.Mri" )
oMRI.inspect( myObject )
I use it mostly from the menu or simply assigning some script events to MriLib.Module1.Mri which inspects the passed event struct.
[Tutorial] Introduction into object inspection with MRI
Thanks. I’m going to get MRI. However, at present clicking on the LO Help menu item crashes LO every time. I need to look into that issue first. Also, why Xray insists that none of the folders in my LO 7.2 SDK seem to have any of the expected help files. Hopefully, specifying http://api.office.org/ for help will work. I may try it for Xray too.
In MRI Menu choose Tools / Configuration
OpenOffice .org SDK Directory: https://api.libreoffice.org
IDL reference is generated by Doxygen: check
.
Then OK.
On my local system the path is file:///usr/lib/libreoffice/sdk/ with Doxygen checked.
Could be file:///C:/Program Files/LibreOffice7/sdk/ on a Windows box
I do it a little differently. The following code is placed in the Standard library from My Macros. MRI is always ready (no need to load libraries).
Sub Mri(ByVal Optional MriTargetObject)
On Error GoTo ErrHandler
If IsMissing( MriTargetObject ) Then MriTargetObject = StarDesktop
CreateUnoService("mytools.Mri").inspect(MriTargetObject)
Exit Sub
ErrHandler:
Msgbox "Error: " & Error
End Sub