Page 1 of 1
How can i add a new settings menu to openoffice 4.1.1?
Posted: Fri Oct 23, 2015 2:02 pm
by Niklas.Ardey
Hello Guys,
I have one (maybe simle) question to you.
I am currently programming a Plugin for open office 4.1.1 where you can Upload the file you are editin directly to a server. I am Programming it in Java and i am using Netbeans IDE 8.0.2 with the newest openoffice API plugin and i wanted to ask you if you can tell me how i can add a new setting to the settings menu ? I want to have a new setting there where it can save the server url, the password, and the Username.
Re: How can i add a new settings menu to openoffice 4.1.1?
Posted: Fri Oct 23, 2015 2:45 pm
by hanya
Do you mean Tools - Options dialog? If you say so, we have the document in the following page and its sub pages, click Next Page > link to see sub pages in the TOC.
https://wiki.openoffice.org/wiki/Docume ... ons_Dialog
Re: How can i add a new settings menu to openoffice 4.1.1?
Posted: Fri Oct 23, 2015 2:47 pm
by Niklas.Ardey
I do not know if this i what i want. I want it to be in the same menu es the normal settings.
Re: How can i add a new settings menu to openoffice 4.1.1?
Posted: Fri Oct 23, 2015 4:37 pm
by hanya
So you want to add own configuration. See:
https://wiki.openoffice.org/wiki/Docume ... ation_Data
Netbeans plugin might have the function to help you to define configuration schema, but I'm not really sure.
Re: How can i add a new settings menu to openoffice 4.1.1?
Posted: Mon Oct 26, 2015 10:35 am
by Niklas.Ardey
Ok thank you this helped me a little but i Still dont know how to do it quite right. I have to write a seperate settings but i dont know how i do it and the lnks on your site do not exist anymore

I just have to know where i need to write the document for the settings in and how i do it

Re: How can i add a new settings menu to openoffice 4.1.1?
Posted: Mon Oct 26, 2015 10:55 am
by RoryOF
The Java code for
AuthorSupportTool
adds a section to OpenOffice /Tools /Options; it also adds an entry on the main menu bar, with selection of items on the dropdown of that menu. To find these you will have to dive into their code. If you have more Java experience than I have, this may not be a great burden.
Re: How can i add a new settings menu to openoffice 4.1.1?
Posted: Mon Oct 26, 2015 11:30 am
by Niklas.Ardey
RoryOF wrote:The Java code for
AuthorSupportTool
adds a section to OpenOffice /Tools /Options; it also adds an entry on the main menu bar, with selection of items on the dropdown of that menu. To find these you will have to dive into their code. If you have more Java experience than I have, this may not be a great burden.
Thank you very much. This is nearly what i want to do

just have t do something like this on my own now. Trying to find out where i have to write what to get it running. Still am Thankfull for everyone who will be going to help me

Re: How can i add a new settings menu to openoffice 4.1.1?
Posted: Mon Oct 26, 2015 12:17 pm
by Niklas.Ardey
This AuthorSupportTool did excactly what i want to do. It implement its setting into the normal OOo settings.
Can someone tell me how i can do this ?
Re: How can i add a new settings menu to openoffice 4.1.1?
Posted: Mon Oct 26, 2015 1:22 pm
by RoryOF
You just have to dig into their code and see how they do it. The keyword to search for is ASTLeaf - I can't help as I'm a beginner at Java.
Re: How can i add a new settings menu to openoffice 4.1.1?
Posted: Mon Oct 26, 2015 3:46 pm
by Niklas.Ardey
RoryOF wrote:You just have to dig into their code and see how they do it. The keyword to search for is ASTLeaf - I can't help as I'm a beginner at Java.
OK thank you. I am a beginner only too xD so that is the reason why i ask all of this

Re: How can i add a new settings menu to openoffice 4.1.1?
Posted: Tue Oct 27, 2015 10:28 am
by Niklas.Ardey
OK i have just managed to find and understand the ASTLeaf_de_DE.propertys file but now i am standing in front of my next problem. I dont get how the maker of this Plugin made it to get into the settings of Open Office. Everything i tried was just not working as i want it too.
Re: How can i add a new settings menu to openoffice 4.1.1?
Posted: Tue Oct 27, 2015 10:52 am
by RoryOF
As far as I can see, these are added in BesserWissA.java, but you really do have to do your own analysis of the code: I can't steer you through something I don't understand properly - I'm only telling you what my search indicates.
Re: How can i add a new settings menu to openoffice 4.1.1?
Posted: Tue Oct 27, 2015 11:14 am
by Niklas.Ardey
RoryOF wrote:As far as I can see, these are added in besserwissa.java, but you really do have to do your own analysis of the code: I can't steer you through something I don't understand properly - I'm only telling you what my search indicates.
I know but i realy have never ever done something like this before.