[Solved] SDK unavailable for XRay extension

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
mike phillips
Posts: 117
Joined: Wed Feb 15, 2012 9:35 pm

[Solved] SDK unavailable for XRay extension

Post by mike phillips »

SDK Search has no hits, so this is a blind stab at a forum and please relocate thread as appropriate.

'Xray tool description' (taken from the Sourceforge site) invites me, having installed Xray, (WinXP) to download and install the SDK but that it is '38Mb'. My download is around 7.2Mb and does not appear to function with Xray. Any Ideas?
Last edited by Hagar Delest on Mon Feb 20, 2012 11:02 pm, edited 1 time in total.
Reason: tagged solved.
OpenOffice 4 on Windows 7
User avatar
Hagar Delest
Moderator
Posts: 33614
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: SDK

Post by Hagar Delest »

Forum software doesn't index 3 letters and less words (to optimize performances).

Have a look at that one perhaps: Reference manual for OOo Basic.
Where have you downloaded the SDK?
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
mike phillips
Posts: 117
Joined: Wed Feb 15, 2012 9:35 pm

Re: SDK

Post by mike phillips »

OpenOffice 4 on Windows 7
User avatar
Villeroy
Volunteer
Posts: 31363
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: SDK

Post by Villeroy »

xray can show the reference page for a selected object but only if the page is on the local computer. Therefore you have to download and extract the SDK. For compiled programming languages you have to install the SDK.
The MRI tool offers much more convenience and functionality and it can use the reference pages on the internet.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
mike phillips
Posts: 117
Joined: Wed Feb 15, 2012 9:35 pm

Re: SDK

Post by mike phillips »

Therefore you have to download and extract the SDK. For compiled programming languages you have to install the SDK.
see Post #1
OpenOffice 4 on Windows 7
User avatar
Villeroy
Volunteer
Posts: 31363
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: SDK

Post by Villeroy »

xray has a configuration dialog.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
mike phillips
Posts: 117
Joined: Wed Feb 15, 2012 9:35 pm

Re:MRI

Post by mike phillips »

The MRI tool offers much more convenience and functionality and it can use the reference pages on the internet.
- downloaded, installed and it does not appear anywhere in the libraries - Xray does. So where is it?
convenience and functionality
- I guess if I could use it, yes.

This really is like trying to play Scrabble in a lunatic asylum!
OpenOffice 4 on Windows 7
User avatar
RoryOF
Moderator
Posts: 35203
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: SDK

Post by RoryOF »

Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
mike phillips
Posts: 117
Joined: Wed Feb 15, 2012 9:35 pm

Re: SDK

Post by mike phillips »

Been there, Rory,

MRI.oxt package includes MRILib library of OOo Basic. And Mri subroutine placed in the MRILib library helps you to call MRI from OOo Basic easily. Pass an object to the Mri like written below (in this case, ThisComponent is passed as a target).

Mri ThisComponent

An argument of Mri subroutine is optional. When Mri called without an argument, Mri subroutine passes StarDesktop to MRI as a target using OOo Basic runtime function.

Mri ' StarDesktop is passed to MRI by Mri subroutine

Before you call Mri first time, need MRILib loaded.

Globalscope.BasicLibraries.LoadLibrary( "MRILib" )

Then you can call MRI like written below from OOo Basic without the Mri helper subroutine.

oMRI = CreateUnoService( "mytools.Mri" )
oMRI.inspect( MriTargetObject )

The control of the program is returned after Mri subroutine passes to service of MRI. Therefore you need to breakpoints of Basic IDE debugger if you want to inspect a object temporary created or you want to inspect the target well.

If you passed to a target to Mri that is part of a document opened on the StarDesktop and it lives after your Basic code finished, you can travel in it (passed value is a copy of the target but references are the same them of the original target).

RED bit gave me 'Nosuchelement exception'
OpenOffice 4 on Windows 7
hanya
Volunteer
Posts: 885
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan

Re: SDK

Post by hanya »

RED bit gave me 'Nosuchelement exception'
If you can not see MRILib in the list of user's basic libraries, installation of the extension is broken. Reinstall it.
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04
mike phillips
Posts: 117
Joined: Wed Feb 15, 2012 9:35 pm

Re: SDK

Post by mike phillips »

Have done 3 times already! I'll try once more.
OpenOffice 4 on Windows 7
User avatar
Hagar Delest
Moderator
Posts: 33614
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: SDK

Post by Hagar Delest »

Try to reset your OOo user profile. But during the welcome process (if you had 2.x before), don't transfer your personal data, former configuration files might corrupt the new profile.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
mike phillips
Posts: 117
Joined: Wed Feb 15, 2012 9:35 pm

Re: SDK

Post by mike phillips »

Bingo! Thanks Hagar.
Any ideas on the SDK file issue?
OpenOffice 4 on Windows 7
User avatar
Hagar Delest
Moderator
Posts: 33614
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: SDK

Post by Hagar Delest »

Well, upgrade can have weird impacts on the profile, especially for extensions. That's why resetting the profile is a general cure when no special root cause can be identified at first...
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
User avatar
kingfisher
Volunteer
Posts: 2127
Joined: Tue Nov 20, 2007 10:53 am

Re: SDK

Post by kingfisher »

mike phillips wrote:Bingo! Thanks Hagar.
Any ideas on the SDK file issue?
It looks as though your download is incomplete.
Apache OpenOffice 4.1.12 on Linux
User avatar
kingfisher
Volunteer
Posts: 2127
Joined: Tue Nov 20, 2007 10:53 am

Re: [Solved] SDK unavailable for XRay extension

Post by kingfisher »

Your download is the installer, not the SDK. My SDK is 25Mb and the installer is 8.5Mb.
Apache OpenOffice 4.1.12 on Linux
Post Reply