Issue 91174

Summary: UIConfigurationManager of statusbar/toolbar loses properties (e.g. HelpID) at the storing settings
Product: General Reporter: hanya <ooo>
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: cno, issues
Version: OOo 2.4.1Keywords: needmoreinfo
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Proposed patch on OOO330m7 none

Description hanya 2008-06-28 15:12:36 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"/>
Comment 1 Olaf Felka 2009-08-06 07:04:45 UTC
@ hanya: is this issue still valid in OOo 3.1?
@ jsk: Please have a look.
Comment 2 hanya 2009-10-05 09:27:49 UTC
still there in OOo 3.1.1.
Comment 3 hanya 2010-10-18 16:25:14 UTC
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.
Comment 4 hanya 2010-10-18 16:25:51 UTC
Created attachment 72094 [details]
Proposed patch on OOO330m7
Comment 5 cno 2010-10-19 12:59:45 UTC
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
Comment 6 hans_werner67 2011-03-28 11:52:37 UTC
Assign to new default-assignee