Marek Szyda wrote:
Hi,

I'm trying to manage options from 'Tools->Options...' (almost all nodes)
using UNO API. Every changes are made on options with following code

...
XPropertySet propertySet =(XPropertySet) UnoRuntime
        .queryInterface(XPropertySet.class, configurationUpdateAccess);
propertySet.setPropertyValue(someProperty, someValue);

XChangesBatch xUpdateControl =(XChangesBatch) UnoRuntime
        .queryInterface(XChangesBatch.class, configurationUpdateAccess);
xUpdateControl.commitChanges();


this code sets new values into proper fields in 'Tools->Options...' immediately,
but affects only after OOo restart.

I know that this problem was brought up here:

http://api.openoffice.org/servlets/ReadMsg?listName=dev&msgNo=16885
and
http://www.openoffice.org/issues/show_bug.cgi?id=51626

I wonder if somebody found more "clever" solution than restarting OOo.
Working with OOo and SDK  3.1 (OS Linux - Ubuntu) the problem still exists.

Any tips?
Hi Marek,

There is no way to workaround this problem via UNO API. Due to the nature of most implementations for these options this cannot work (most options implementation cache their values internally). We already did some effort to change some implementations but most of them are not aware of runtime changes on the configuration level. Therefore most changes are only read on the next startup.

Best regards,
Carsten

--
Carsten Driesner (cd) - Project Lead OpenOffice.org Framework
Framework wiki: http://wiki.services.openoffice.org/wiki/Framework
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to