Stephan Bergmann wrote:
On 08/27/08 15:02, Giuseppe Castagno wrote:
Hi all,
I'm doing some changes on the OOo configuration tree using macro basic.
The settings seem correctly changed in the basic macro code, but they
are not 'seen' in the main OOo application until I restart the
application itself.
Now some pseudo code and operation sequence, OOo is 2.4.1
1) first check that the menu Tools > Options - General Save -
[Section] Save, the "Always create backup copy" is unchecked, then:
2) using macro basic code open the configuration root element, for
update:
REM ***** BASIC *****
Sub Main
GlobalScope.BasicLibraries.LoadLibrary("Tools")
oTheConfigRoot =
GetRegistryKeyContent("org.openoffice.Office.Common/", true)
oTheConfigRoot.Save.Document.CreateBackup = true
oTheConfigRoot.commitChanges()
End Sub
rem ******** end basic
at this time opening the menu Tools > Options - General Save -
[Section] Save, the "Always create backup copy" checkbox should be
checked, but it's not.
It is indeed checked when I restart OOo.
It seems as if the macro basic environment and the OOo application are
working on different copies of the configuration that are reconciled
when the application closes.
I wonder if I'm doing something wrong here...
Is there a way to have OOo take charge of the new configuration set by
the basic code shown here without restarting?
If I remember correctly, there is a code layer above configmgr itself
that caches data read from configmgr and does not listen to changes
announced by configmgr, and that code layer in turn is typically used by
UI code. Experts from the framework project should know the details.
After some more testing it seems this affects the
"org.openoffice.Office.Common/".Save configuration options.
It seems the "org.openoffice.Office.Linguistic/" ones are correctly
reconciled while OOo is running (e.g. no need to restart).
--
Kind Regards,
Giuseppe Castagno
Acca Esse http://www.acca-esse.eu
[EMAIL PROTECTED]
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]