From 4f5928ea8022d879764cc882f01a1b642645d66f Mon Sep 17 00:00:00 2001 From: Nithin Kumar Padavu Date: Sat, 7 Apr 2018 15:10:06 +0000 Subject: 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 Reviewed-by: Miklos Vajna --- cui/source/tabpages/numpages.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cui/source') diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index 8f1a169f59d3..eb9fea50f28f 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -2451,6 +2451,7 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool break; case SvxNumberFormat::SPACE: case SvxNumberFormat::NOTHING: + case SvxNumberFormat::NEWLINE: { nTextXPos = nNumberXPos + nBulletWidth; } @@ -2861,6 +2862,10 @@ void SvxNumPositionTabPage::InitControls() { nPos = 2; } + else if ( aNumFmtArr[nLvl]->GetLabelFollowedBy() == SvxNumberFormat::NEWLINE ) + { + nPos = 3; + } m_pLabelFollowedByLB->SelectEntryPos( nPos ); } else @@ -3323,6 +3328,10 @@ IMPL_LINK_NOARG(SvxNumPositionTabPage, LabelFollowedByHdl_Impl, ListBox&, void) { eLabelFollowedBy = SvxNumberFormat::NOTHING; } + else if ( nPos == 3 ) + { + eLabelFollowedBy = SvxNumberFormat::NEWLINE; + } } // set value at the chosen list levels -- cgit