summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc/num.cxx
diff options
context:
space:
mode:
authorNithin Kumar Padavu <nithinrao@gmail.com>2018-04-07 15:10:06 +0000
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-04-08 16:57:19 +0200
commit4f5928ea8022d879764cc882f01a1b642645d66f (patch)
treea93800a04c9f927740069e5f9ea69acfa58968e2 /sw/source/ui/misc/num.cxx
parent08297b3022180ee169a44230edc43d020d97cf42 (diff)
tdf#112384 sw: Allow New line as a label followed by chapter numbering
reference-language also added to token list Change-Id: I32713508d3611dc2bce10b2c5abb1e1a4167bdaf Reviewed-on: https://gerrit.libreoffice.org/52561 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/misc/num.cxx')
-rw-r--r--sw/source/ui/misc/num.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/ui/misc/num.cxx b/sw/source/ui/misc/num.cxx
index 6d6a52c2d71d..2bfe5e816ea3 100644
--- a/sw/source/ui/misc/num.cxx
+++ b/sw/source/ui/misc/num.cxx
@@ -331,6 +331,10 @@ void SwNumPositionTabPage::InitControls()
{
nPos = 2;
}
+ else if ( aNumFormatArr[nLvl]->GetLabelFollowedBy() == SvxNumberFormat::NEWLINE )
+ {
+ nPos = 3;
+ }
m_pLabelFollowedByLB->SelectEntryPos( nPos );
}
else
@@ -769,6 +773,10 @@ IMPL_LINK_NOARG(SwNumPositionTabPage, LabelFollowedByHdl_Impl, ListBox&, void)
{
eLabelFollowedBy = SvxNumberFormat::NOTHING;
}
+ else if ( nPos == 3 )
+ {
+ eLabelFollowedBy = SvxNumberFormat::NEWLINE;
+ }
}
// set value at the chosen list levels