summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <muthu.subramanian.karunanidhi@ericsson.com>2015-01-25 17:44:05 +0530
committerAndras Timar <andras.timar@collabora.com>2015-01-28 12:49:50 +0000
commite930c08494346627f5bf658d46a81c735e3917ec (patch)
treef9915b0fd72c07b7c7d6c05021380d5cf7c80678
parenteffc8ded52378071a5059443d7441968936cc429 (diff)
fdo#86984: UI Line numbering works only for EN_US
Change-Id: I0fadb6f5f96cccd4056a164a6b0f3b2fdd68a40b Reviewed-on: https://gerrit.libreoffice.org/14168 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit fb9e0063d64243ffd56174566b9eda723daf0cb3) Reviewed-on: https://gerrit.libreoffice.org/14224 Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--sw/source/ui/misc/linenum.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/ui/misc/linenum.cxx b/sw/source/ui/misc/linenum.cxx
index b28b2a754bfb..71a596be4320 100644
--- a/sw/source/ui/misc/linenum.cxx
+++ b/sw/source/ui/misc/linenum.cxx
@@ -32,6 +32,7 @@
#include "linenum.hxx"
#include "uitool.hxx"
#include <fmtline.hxx>
+#include "poolfmt.hrc"
#include <IDocumentStylePoolAccess.hxx>
@@ -146,7 +147,7 @@ SwLineNumberingDlg::SwLineNumberingDlg(SwView *pVw)
m_pNumberingOnCB->Check(rInf.IsPaintLineNumbers());
// Header/Footer Line Numbering
- rtl::Reference< SwDocStyleSheet > xStyleSheet = lcl_getDocStyleSheet("Footer", pSh);
+ rtl::Reference< SwDocStyleSheet > xStyleSheet = lcl_getDocStyleSheet(SW_RESSTR(STR_POOLCOLL_FOOTER), pSh);
if(xStyleSheet.is())
{
SfxItemSet& rSet = xStyleSheet->GetItemSet();
@@ -221,8 +222,8 @@ IMPL_LINK_NOARG(SwLineNumberingDlg, OKHdl)
pSh->SetLineNumberInfo(aInf);
// Set LineNumber explicitly for Header and Footer
- lcl_setLineNumbering("Footer",pSh,m_pNumberingOnFooterHeader->IsChecked());
- lcl_setLineNumbering("Header",pSh,m_pNumberingOnFooterHeader->IsChecked());
+ lcl_setLineNumbering(SW_RESSTR(STR_POOLCOLL_FOOTER), pSh, m_pNumberingOnFooterHeader->IsChecked());
+ lcl_setLineNumbering(SW_RESSTR(STR_POOLCOLL_HEADER), pSh, m_pNumberingOnFooterHeader->IsChecked());
if( m_pNumberingOnFooterHeader->IsChecked())
m_pNumberingOnFooterHeader->SetState(TRISTATE_TRUE);
else