summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-10-19 15:59:53 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-11-15 15:10:01 +0100
commite6e14558e7d317c583fb1a0394bb45decedefabd (patch)
treee9bd2dd338c7295455bf775ad88c92391c3fb3c3 /sw
parent39c5d1b3c20aa03b7cd6627f8f849d396ab149eb (diff)
sw_redlinehide_3: use the second list number in the text formatting
Change-Id: Ibe2afae869b1999772fa6132e35a1e951fffddd2
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/EnhancedPDFExportHelper.cxx4
-rw-r--r--sw/source/core/text/txtfld.cxx5
-rw-r--r--sw/source/uibase/utlui/content.cxx2
3 files changed, 7 insertions, 4 deletions
diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx
index b804369aaa07..7eeaaa3c4ff2 100644
--- a/sw/source/core/text/EnhancedPDFExportHelper.cxx
+++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx
@@ -418,7 +418,7 @@ void SwTaggedPDFHelper::BeginTag( vcl::PDFWriter::StructElement eType, const OUS
{
const SwTextFrame& rTextFrame = static_cast<const SwTextFrame&>(mpNumInfo->mrFrame);
SwTextNode const*const pTextNd = rTextFrame.GetTextNodeForParaProps();
- const SwNodeNum* pNodeNum = pTextNd->GetNum();
+ const SwNodeNum* pNodeNum = pTextNd->GetNum(rTextFrame.getRootFrame());
if ( vcl::PDFWriter::List == eType )
{
@@ -833,7 +833,7 @@ void SwTaggedPDFHelper::BeginNumberedListStructureElements()
const SwTextNode *const pTextNd = rTextFrame.GetTextNodeForParaProps();
const SwNumRule* pNumRule = pTextNd->GetNumRule();
- const SwNodeNum* pNodeNum = pTextNd->GetNum();
+ const SwNodeNum* pNodeNum = pTextNd->GetNum(rTextFrame.getRootFrame());
const bool bNumbered = !pTextNd->IsOutline() && pNodeNum && pNodeNum->GetParent() && pNumRule;
diff --git a/sw/source/core/text/txtfld.cxx b/sw/source/core/text/txtfld.cxx
index 196b11b84cf9..e7fd1223fe95 100644
--- a/sw/source/core/text/txtfld.cxx
+++ b/sw/source/core/text/txtfld.cxx
@@ -472,6 +472,9 @@ SwNumberPortion *SwTextFormatter::NewNumberPortion( SwTextFormatInfo &rInf ) con
return nullptr;
SwNumberPortion *pRet = nullptr;
+ // sw_redlinehide: at this point it's certain that pTextNd is the node with
+ // the numbering of the frame; only the actual number-vector (GetNumString)
+ // depends on the hide-mode in the layout so other calls don't need to care
const SwTextNode *const pTextNd = GetTextFrame()->GetTextNodeForParaProps();
const SwNumRule* pNumRule = pTextNd->GetNumRule();
@@ -572,7 +575,7 @@ SwNumberPortion *SwTextFormatter::NewNumberPortion( SwTextFormatInfo &rInf ) con
}
else
{
- OUString aText( pTextNd->GetNumString() );
+ OUString aText( pTextNd->GetNumString(true, MAXLEVEL, m_pFrame->getRootFrame()) );
if ( !aText.isEmpty() )
{
aText += pTextNd->GetLabelFollowedBy();
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index 86261677001a..b10c0da061b5 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -1862,7 +1862,7 @@ bool SwContentTree::FillTransferData( TransferDataContainer& rTransfer,
if( pTextNd && pOutlRule && pTextNd->IsNumbered())
{
SwNumberTree::tNumberVector aNumVector =
- pTextNd->GetNumberVector();
+ pTextNd->GetNumberVector(pWrtShell->GetLayout());
for( int nLevel = 0;
nLevel <= pTextNd->GetActualListLevel();
nLevel++ )