diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-20 11:18:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-20 11:19:18 +0000 |
commit | 4706cecf542b08c6af24bdddf61ccf912f515e13 (patch) | |
tree | 6a2d06808ed76be1a65ae81e9b3ad1e8b4a05fab | |
parent | c2866a9da4822fe886683efabe223db97d0296cb (diff) |
Related: #i56998# use locale rules to format percentage...
in Combine single line paragraphs option in AutoCorrect dialog
Change-Id: I5af78ff31031a92a4f772d9c26bee05c3695cad1
-rw-r--r-- | cui/Library_cui.mk | 1 | ||||
-rw-r--r-- | cui/source/tabpages/autocdlg.cxx | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/cui/Library_cui.mk b/cui/Library_cui.mk index 19d23451bf06..cc80cf419bce 100644 --- a/cui/Library_cui.mk +++ b/cui/Library_cui.mk @@ -40,6 +40,7 @@ $(eval $(call gb_Library_use_libraries,cui,\ drawinglayer \ editeng \ i18nlangtag \ + i18nutil \ $(if $(ENABLE_JAVA), \ jvmfwk) \ lng \ diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 0fb4c17fcdc8..67a2181ef86e 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <i18nutil/unicode.hxx> #include <vcl/builder.hxx> #include <vcl/msgbox.hxx> #include <vcl/field.hxx> @@ -659,7 +660,8 @@ void OfaSwAutoFmtOptionsPage::Reset( const SfxItemSet& ) m_pCheckLB->SetUserData( REPLACE_BULLETS, pUserData ); nPercent = pOpt->nRightMargin; - sMargin = " " + OUString::number( nPercent ) + "%"; + sMargin = " " + + unicode::formatPercent(nPercent, Application::GetSettings().GetUILanguageTag()); pUserData = new ImpUserData(&sMargin, 0); m_pCheckLB->SetUserData( MERGE_SINGLE_LINE_PARA, pUserData ); @@ -713,7 +715,8 @@ IMPL_LINK_NOARG(OfaSwAutoFmtOptionsPage, EditHdl) if(RET_OK == aDlg.Execute()) { nPercent = (sal_uInt16)aDlg.GetPrcntFld().GetValue(); - sMargin = " " + OUString::number( nPercent ) + "%"; + sMargin = " " + + unicode::formatPercent(nPercent, Application::GetSettings().GetUILanguageTag()); } } m_pCheckLB->Invalidate(); |