Need help with an Addon for AOO 4.1.2

Discussions about using 3rd party extension with OpenOffice.org
Post Reply
Niklas.Ardey
Posts: 56
Joined: Mon Oct 19, 2015 2:34 pm

Need help with an Addon for AOO 4.1.2

Post by Niklas.Ardey »

Hello,

I am currently trying to create a Plugin for open office.

I have now come to a point which i cant pass without help.

I want to create a settings page for my extension.

This settingspage(Leafe) should be nested inside the Writer tree.

I can already see the Leaf inside the writer tree but then i cant see anythin on the right side of the window.

I have created a OptionsDialog.xcu file where I define the name of the Leaf and then link to the Settings.xdl which should get its information from my Settings.properties file.

Thank you for helping
OpenOffice 4.1.1 same with the SDK
Operation System is Windows 8.1
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Need help with an Addon for AOO 4.1.2

Post by RoryOF »

In which language are you writing the extension?
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Niklas.Ardey
Posts: 56
Joined: Mon Oct 19, 2015 2:34 pm

Re: Need help with an Addon for AOO 4.1.2

Post by Niklas.Ardey »

I am writing my extension in Java but if you have a suggestion for an other language which would be maybe easier to use in this case i woul dappreciate it too.
OpenOffice 4.1.1 same with the SDK
Operation System is Windows 8.1
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Need help with an Addon for AOO 4.1.2

Post by RoryOF »

There are some links off this page that may help; your problem is beyond my knowledge at present.
https://wiki.openoffice.org/wiki/Extens ... pment_java
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Niklas.Ardey
Posts: 56
Joined: Mon Oct 19, 2015 2:34 pm

Re: Need help with an Addon for AOO 4.1.2

Post by Niklas.Ardey »

OK thank you for your try but i think this does not do what i want bu ti am going to try it out and tell you more when it did or didnt work
OpenOffice 4.1.1 same with the SDK
Operation System is Windows 8.1
hanya
Volunteer
Posts: 885
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan

Re: Need help with an Addon for AOO 4.1.2

Post by hanya »

Have you implemented and deproyed the service that provides your option page, which is defined in EventHandlerService prop of the Options configuration?
If you have add the service but the page is not shown, you have to check your service. The service have to implement the following interfaces:
- com.sun.star.awt.XContainerWindowEventHandler
- com.sun.star.lang.XServiceInfo
You can check your service is really ok or not with in simple Basic code:

Code: Select all

Sub testservice
  sImpleName = "hoo.bar.OptionPageHandler" ' implementation name of your service which defined in EventHandlerService
  obj = CreateUnoService(sImpleName)
  ' check your service instance with some object inspector
End sub
If your service is not registerd, you will obtain error or null.
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
Post Reply