Kaydet (Commit) 4d1b8459 authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: #i56998# use locale rules to format percentage...

in zoom value and percent on zoom statusbar item.

Change-Id: I0b863ab43399772fb52c4e03e0552fcb933e2832
üst 9df2b09e
......@@ -51,6 +51,7 @@ $(eval $(call gb_Library_use_libraries,svx,\
fwe \
fwk \
i18nlangtag \
i18nutil \
sal \
sfx \
sot \
......
......@@ -17,7 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <i18nutil/unicode.hxx>
#include <tools/shl.hxx>
#include <vcl/svapp.hxx>
#include <vcl/status.hxx>
#include <vcl/menu.hxx>
#include <sfx2/dispatch.hxx>
......@@ -120,8 +122,8 @@ void SvxZoomStatusBarControl::StateChanged( sal_uInt16, SfxItemState eState,
{
const SfxUInt16Item* pItem = (const SfxUInt16Item*)pState;
nZoom = pItem->GetValue();
OUString aStr( OUString::number(nZoom) );
aStr += "%";
OUString aStr(unicode::formatPercent(nZoom, Application::GetSettings().GetUILanguageTag()));
GetStatusBar().SetItemText( GetId(), aStr );
if ( pState->ISA(SvxZoomItem) )
......@@ -140,8 +142,7 @@ void SvxZoomStatusBarControl::StateChanged( sal_uInt16, SfxItemState eState,
void SvxZoomStatusBarControl::Paint( const UserDrawEvent& )
{
OUString aStr( OUString::number( nZoom ));
aStr += "%";
OUString aStr(unicode::formatPercent(nZoom, Application::GetSettings().GetUILanguageTag()));
GetStatusBar().SetItemText( GetId(), aStr );
}
......
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