Apache OpenOffice (AOO) Bugzilla – Issue 91174
UIConfigurationManager of statusbar/toolbar loses properties (e.g. HelpID) at the storing settings
Last modified: 2013-01-29 21:54:18 UTC
I tried to modify statusbar items of the Basic IDE, but the UIConfigurationManager of the statusbar lost some properties at the storing time. How to reproduce: 1. Run the following code. 2. Restarting OpenOffice.org. 3. The status bar of the Basic IDE is flatten and alignment status is changed. Sub BasicIDEStatusbar sStatusBarName = "private:resource/statusbar/statusbar" oMgrSup = CreateUnoService( _ "com.sun.star.ui.ModuleUIConfigurationManagerSupplier" ) oMgr = oMgrSup.getUIConfigurationManager( _ "com.sun.star.script.BasicIDE" ) oSettings = oMgr.getSettings( sStatusBarName, True ) oMgr.replaceSettings( sStatusBarName, oSettings ) oMgr.store() End Sub This is a part of the setting taken from shared setting. <statusbar:statusbaritem xlink:href=".uno:StatusGetTitle" statusbar:align="right" statusbar:style="flat" statusbar:autosize="true" statusbar:width="240"/> <statusbar:statusbaritem xlink:href=".uno:ModifiedStatus" statusbar:align="right" statusbar:style="flat" statusbar:width="14"/> And here is the resulting setting stored by the code written above: <statusbar:statusbaritem xlink:href=".uno:StatusGetTitle" statusbar:align="left" statusbar:autosize="true" statusbar:width="240" statusbar:helpid="helpid:30808"/> <statusbar:statusbaritem xlink:href=".uno:ModifiedStatus" statusbar:align="center" statusbar:width="14" statusbar:helpid="helpid:5584"/>
@ hanya: is this issue still valid in OOo 3.1? @ jsk: Please have a look.
still there in OOo 3.1.1.
The status bar of the office has been changed on OOo 3.2 but an item of the status bar can be provided by extensions. And someone want to make it and would to modify settings of the statusbar. This problem should be fixed, because of the helpid is gone also. Proposed patch.
Created attachment 72094 [details] Proposed patch on OOO330m7
I can confirm this, as far as concerns the lost of the HelpID with basic code as shown in this thread http://api.openoffice.org/servlets/BrowseList?list=dev&by=thread&from=2300320
Assign to new default-assignee