Kaydet (Commit) c0725487 authored tarafından Tsutomu Uchino's avatar Tsutomu Uchino

#i56998# add space separator between zoom value and percent on zoom statusbar item

üst fc6fc5b5
...@@ -132,7 +132,7 @@ void SvxZoomStatusBarControl::StateChanged( sal_uInt16, SfxItemState eState, ...@@ -132,7 +132,7 @@ void SvxZoomStatusBarControl::StateChanged( sal_uInt16, SfxItemState eState,
const SfxUInt16Item* pItem = (const SfxUInt16Item*)pState; const SfxUInt16Item* pItem = (const SfxUInt16Item*)pState;
nZoom = pItem->GetValue(); nZoom = pItem->GetValue();
String aStr( String::CreateFromInt32(nZoom) ); String aStr( String::CreateFromInt32(nZoom) );
aStr += '%'; aStr.AppendAscii( " %" );
GetStatusBar().SetItemText( GetId(), aStr ); GetStatusBar().SetItemText( GetId(), aStr );
if ( pState->ISA(SvxZoomItem) ) if ( pState->ISA(SvxZoomItem) )
...@@ -168,7 +168,7 @@ void SvxZoomStatusBarControl::StateChanged( sal_uInt16, SfxItemState eState, ...@@ -168,7 +168,7 @@ void SvxZoomStatusBarControl::StateChanged( sal_uInt16, SfxItemState eState,
void SvxZoomStatusBarControl::Paint( const UserDrawEvent& ) void SvxZoomStatusBarControl::Paint( const UserDrawEvent& )
{ {
String aStr( String::CreateFromInt32( nZoom )); String aStr( String::CreateFromInt32( nZoom ));
aStr += '%'; aStr.AppendAscii( " %" );
GetStatusBar().SetItemText( GetId(), aStr ); GetStatusBar().SetItemText( GetId(), aStr );
} }
...@@ -212,7 +212,7 @@ void SvxZoomStatusBarControl::Command( const CommandEvent& rCEvt ) ...@@ -212,7 +212,7 @@ void SvxZoomStatusBarControl::Command( const CommandEvent& rCEvt )
sal_uIntPtr SvxZoomStatusBarControl::GetDefItemWidth(const StatusBar& rStb) sal_uIntPtr SvxZoomStatusBarControl::GetDefItemWidth(const StatusBar& rStb)
{ {
long nWidth1 = rStb.GetTextWidth(String::CreateFromAscii("XXXXX%")); long nWidth1 = rStb.GetTextWidth(String::CreateFromAscii("XXXXX %"));
return nWidth1; return nWidth1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment