OpenOffice Configuration Viewer
By Stanislav Aubrecht on Oct 03, 2007
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.