OpenOffice Configuration Viewer

Recently I've been playing with OpenOffice plugin for NetBeans. Even though there are still some issues - for example it works in NetBeans 5.5 and OpenOffice only - it is pretty cool to manage e.g. spreadsheets from Java code.

Malte Timmermann from OpenOffice development team gave me this idea for a useful OpenOffice AddOn - it would be nice to have some sort of configuration viewer/editor showing all the possible settings in a similar manner like Mozilla's about:config.
So after a short fight with OpenOffice APIs and documentation I came up with a simple configuration viewer that can display all the settings in a spreadsheet table. It works pretty well so you can see all the default settings (even those that have no user interface for adjustments) and user's changes to those settings as well. The source files are available here.

Now I'm at the stage where I need some help from experienced OpenOffice developers:

  • The list of configuration root paths is hard-coded at the moment (i.e. /org.openoffice.Office.Writer, /org.openoffice.Office.Calc etc). I'm looking for some way to enumerate all the config roots depending on installed modules. Is there any?
  • The next step is adding editing capabilities. I was thinking of implementing a new cell formula that would update the configuration value in user settings. Is this feasible? If so, I'd appreciate some pointers how to best implement it.

Comments:

Hi Stan - duh, looks like we've been doing exactly the same, except for the language: http://marketing.openoffice.org/ooocon2007/programme/thursday__170.pdf

At least I can help you with your two questions - item 1: yes, that's possible. Item 2: there are several ways to implement editing, having a Calc add-in (and thus a custom formula) is semi-nice.

Posted by thorsten on October 04, 2007 at 03:36 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Stanislav Aubrecht

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today