Page 1 of 1

Need help with an Addon for AOO 4.1.2

Posted: Fri Nov 13, 2015 2:36 pm
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

Re: Need help with an Addon for AOO 4.1.2

Posted: Fri Nov 13, 2015 2:40 pm
by RoryOF
In which language are you writing the extension?

Re: Need help with an Addon for AOO 4.1.2

Posted: Fri Nov 13, 2015 2:44 pm
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.

Re: Need help with an Addon for AOO 4.1.2

Posted: Fri Nov 13, 2015 2:46 pm
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

Re: Need help with an Addon for AOO 4.1.2

Posted: Fri Nov 13, 2015 2:52 pm
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

Re: Need help with an Addon for AOO 4.1.2

Posted: Fri Nov 13, 2015 3:06 pm
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.