Need help with an Addon for AOO 4.1.2

Discussions about using 3rd party extension with OpenOffice.org

Need help with an Addon for AOO 4.1.2

Postby Niklas.Ardey » Fri Nov 13, 2015 2:36 pm

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
Niklas.Ardey
 
Posts: 56
Joined: Mon Oct 19, 2015 2:34 pm

Re: Need help with an Addon for AOO 4.1.2

Postby RoryOF » Fri Nov 13, 2015 2:40 pm

In which language are you writing the extension?
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28951
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Need help with an Addon for AOO 4.1.2

Postby Niklas.Ardey » Fri Nov 13, 2015 2:44 pm

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
Niklas.Ardey
 
Posts: 56
Joined: Mon Oct 19, 2015 2:34 pm

Re: Need help with an Addon for AOO 4.1.2

Postby RoryOF » Fri Nov 13, 2015 2:46 pm

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.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28951
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Need help with an Addon for AOO 4.1.2

Postby Niklas.Ardey » Fri Nov 13, 2015 2:52 pm

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
Niklas.Ardey
 
Posts: 56
Joined: Mon Oct 19, 2015 2:34 pm

Re: Need help with an Addon for AOO 4.1.2

Postby hanya » Fri Nov 13, 2015 3:06 pm

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   Expand viewCollapse view
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
hanya
Volunteer
 
Posts: 884
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan


Return to Extensions

Who is online

Users browsing this forum: No registered users and 1 guest