Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing
|Summary:||Some of the OOo configuration elements are not updated synchronously using the API|
|Product:||App Dev||Reporter:||Giuseppe Castagno (aka beppec56) <giuseppe.castagno>|
|Component:||api||Assignee:||AOO issues mailing list <issues>|
|Status:||CONFIRMED ---||QA Contact:|
|Version:||3.3.0 or older (OOo)|
|Issue Type:||DEFECT||Latest Confirmation in:||---|
Description Giuseppe Castagno (aka beppec56) 2008-08-28 12:30:54 UTC
It seems that some of the elements on the OOo configuration tree reachable by API are not updated correctly on the rest of OOo application if changed through API. To check, follow this sequence on OOo 2.4.1 with en-US user interface, operating system Debian, en-US user interface on KDE desktop 1) check in Tools > Options â€“ Load/Save â€“ General â€“ â€œSaveâ€ group, the â€œAlways create backup copyâ€ checkbox is unchecked. 2) check in Tools > Options â€“ Language Settings â€“ Languages â€“ â€œLanguage ofâ€ group, the â€œUser interfaceâ€ listbox is set to â€œDefaultâ€. The two listboxes â€œLocale settingâ€ and â€œDefault currencyâ€ should be at â€œDefaultâ€ If not, then set all of them and restart OOo as appropriate. 3) use the following chunk of OOo macro code on 2.4.1 version and run it: Sub Main GlobalScope.BasicLibraries.LoadLibrary("Tools") oTheConfigRoot = GetRegistryKeyContent("org.openoffice.Office.Common/", true) oTheConfigRoot.Save.Document.CreateBackup = true oTheConfigRoot.commitChanges() oTheSetupRoot = GetRegistryKeyContent("org.openoffice.Setup/", true) oTheSetupRoot.L10N.ooSetupSystemLocale = "it-IT" oTheSetupRoot.L10N.ooSetupCurrency = "EUR-it-IT" oTheSetupRoot.L10N.DecimalSeparatorAsLocale = true oTheSetupRoot.commitChanges() End Sub 4) now check again the settings: the one set in 1) above is unchanged, whereas it should have been checked, the ones set in 2) are correctly changed: The two listboxes â€œLocale settingâ€ and â€œDefault currencyâ€ are at â€œItalian (Italy)â€ and â€œEUR â‚¬ Italian (Itally)â€ as expected. If you restart OOo the setting described in 1) above is shown correctly changed to checked state. In my opinion after the commitChanges() method returns, the setting described in 1) above should be changed as the other two, without the need to restart OOo.
Comment 1 jsc 2008-08-28 12:40:17 UTC
jsc -> pb: i am not 100% sure if you are responsible for this but you are at least the master of the options dialog.
Comment 2 cno 2008-08-29 14:25:16 UTC
also see http://www.openoffice.org/servlets/ReadMsg?list=dev&msgNo=18373 (and just reading a bit throught that thread, I see the related issue 71235 and issue 71258 )
Comment 3 pb 2008-09-09 07:44:25 UTC
pb: accepted for 3.x.
Comment 4 Mathias_Bauer 2009-03-11 12:19:56 UTC