Kaydet (Commit) fb9e0063 authored tarafından Muthu Subramanian's avatar Muthu Subramanian Kaydeden (comit) Andras Timar

fdo#86984: UI Line numbering works only for EN_US

Change-Id: I0fadb6f5f96cccd4056a164a6b0f3b2fdd68a40b
Reviewed-on: https://gerrit.libreoffice.org/14168Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarAndras Timar <andras.timar@collabora.com>
üst e9de80aa
......@@ -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
......
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