diff options
author | Nithin Kumar Padavu <nithinrao@gmail.com> | 2018-04-07 15:10:06 +0000 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-04-08 16:57:19 +0200 |
commit | 4f5928ea8022d879764cc882f01a1b642645d66f (patch) | |
tree | a93800a04c9f927740069e5f9ea69acfa58968e2 /cui/source | |
parent | 08297b3022180ee169a44230edc43d020d97cf42 (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 'cui/source')
-rw-r--r-- | cui/source/tabpages/numpages.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
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 |