openoffice-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabrizio Marchesano <fmarches...@gmail.com>
Subject Re: Java sidebar extensions: AOO vs. LO
Date Tue, 10 Feb 2015 11:17:59 GMT
I found it!!!
Still don't know what's going on behind the scenes, but at least the panel
is now visible.
In the build path of the extension, I changed the pointing of *unoil.jar*
from the file included in the path of AOO installation (*
<aoo_installation_path>\program\classes* ) to the one in the installation
path of LO ( *<aoo_installation_path>\program\classes *).
This raised an error in *AnalogClockPanel.java*, which was asking for
adding the unimplemented method *getMinimalWidth()*: I added it, generated
the oxt file and...  Voila!... the extension now runs fine on LO 4.4 too.
Just for the records, in LO I have now a problem with my custom extension
(changing the font and alignment of the whole document and adding a page
break near given text through a *XTextCursor* object and its methods
*gotoEnd()* and* gotoRange()* do not work), but in AOO all works fine just
as expected.
Best regards,

Fabrizio

On Mon, Feb 9, 2015 at 4:31 PM, Fabrizio Marchesano <fmarchesano@gmail.com>
wrote:

> Hello Ariel,
> thanks for your quick response :-) .
> I'll try to investigate further and I'll write un update if I will be able
> to solve the problem.
> Thanks again and best regards,
>
> Fabrizio
>
> On Mon, Feb 9, 2015 at 3:54 PM, Ariel Constenla-Haile <arielch@apache.org>
> wrote:
>
>> Hello Fabrizio,
>>
>> On Mon, Feb 09, 2015 at 02:42:35PM +0100, Fabrizio Marchesano wrote:
>> > Hi all,
>> > I know that this is more a LO question rather than AOO (and I posted it
>> on
>> > LO forums and mailing lists), but since the starting point is the Analog
>> > Clock sample extension attached to the guide for sidebar developers (
>> > https://wiki.openoffice.org/wiki/Sidebar_for_Developers), it could be
>> of
>> > interest for AOO developers as well.
>> > Since I'm deeply interested in sidebar extensions, I studied the very
>> well
>> > written "Sidebar for Developers" article mentioned above and I was able
>> to
>> > customize the Analog Clock extension available on the page.
>> > All was fine in AOO 4.1.1, but when I installed the OXT on LO 4.4 the
>> > sidebar panel was no more visible (while the installation itself ran
>> > without problems).
>> > I then installed on LO the original Analog Clock extension, but the
>> result
>> > was the same: the interface is no more visible.
>> > Steps to reproduce the problem:
>> >
>> >  - download the Analog Clock Extension (direct link:
>> > http://people.apache.org/~af/clock/AnalogClock.oxt ; source code:
>> > http://people.apache.org/~af/clock/AnalogClock.zip )
>> >
>> >  - in the package, change the dependencies tag in description.xml file
>> to
>> > install the extension on LibreOffice 4.4:
>> >
>> > original dependencies tag content:
>> >
>> > <OpenOffice.org-minimal-version value="4.0" d:name="Apache OpenOffice"/>
>> >
>> > new dependencies tag content:
>> >
>> > <OpenOffice.org-maximal-version value="4.x" dep:name="OpenOffice.org
>> 4.x"
>> > dep:OpenOffice.org-minimal-version="4.0"/>
>> >
>> >  - install the extension on LibreOffice (enable Java Runtime
>> Environment if
>> > needed)
>> >
>> >  - after restarting LibreOffice, you will see the icon of the new
>> sidebar
>> > panel just below the others, but no interface is shown when clicking on
>> it
>> > (i.e. the analog clock and also its container panel are not visible)
>> >
>> > I gave a look to the source code but with no luck: can someone give me a
>> > hint about the possible cause of the problem?
>>
>> No, I've no idea; this might be a bug in LO. I've tried this example:
>> https://people.apache.org/~arielch/extensions/DummyJavaSidebar.zip and
>> though it works, LO crashes when I close the document with the x at the
>> right top corner.
>>
>>
>> Regards
>> --
>> Ariel Constenla-Haile
>> La Plata, Argentina
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message