Kaydet (Commit) 845a6570 authored tarafından Michael Stahl's avatar Michael Stahl

sw_redlinehide: trivial conversions in EnhancedPDFExportHelper.cxx

Change-Id: I1365c06d4ff50c9dd537f43dd47d119e0dbf0e78
üst 4d2f32d7
...@@ -615,7 +615,7 @@ void SwTaggedPDFHelper::SetAttributes( vcl::PDFWriter::StructElement eType ) ...@@ -615,7 +615,7 @@ void SwTaggedPDFHelper::SetAttributes( vcl::PDFWriter::StructElement eType )
{ {
OSL_ENSURE( pFrame->IsTextFrame(), "Frame type <-> tag attribute mismatch" ); OSL_ENSURE( pFrame->IsTextFrame(), "Frame type <-> tag attribute mismatch" );
const SvxLRSpaceItem &rSpace = const SvxLRSpaceItem &rSpace =
static_cast<const SwTextFrame*>(pFrame)->GetTextNode()->GetSwAttrSet().GetLRSpace(); static_cast<const SwTextFrame*>(pFrame)->GetTextNodeForParaProps()->GetSwAttrSet().GetLRSpace();
nVal = rSpace.GetTextFirstLineOfst(); nVal = rSpace.GetTextFirstLineOfst();
if ( 0 != nVal ) if ( 0 != nVal )
mpPDFExtOutDevData->SetStructureAttributeNumerical( vcl::PDFWriter::TextIndent, nVal ); mpPDFExtOutDevData->SetStructureAttributeNumerical( vcl::PDFWriter::TextIndent, nVal );
...@@ -624,7 +624,7 @@ void SwTaggedPDFHelper::SetAttributes( vcl::PDFWriter::StructElement eType ) ...@@ -624,7 +624,7 @@ void SwTaggedPDFHelper::SetAttributes( vcl::PDFWriter::StructElement eType )
if ( bTextAlign ) if ( bTextAlign )
{ {
OSL_ENSURE( pFrame->IsTextFrame(), "Frame type <-> tag attribute mismatch" ); OSL_ENSURE( pFrame->IsTextFrame(), "Frame type <-> tag attribute mismatch" );
const SwAttrSet& aSet = static_cast<const SwTextFrame*>(pFrame)->GetTextNode()->GetSwAttrSet(); const SwAttrSet& aSet = static_cast<const SwTextFrame*>(pFrame)->GetTextNodeForParaProps()->GetSwAttrSet();
const SvxAdjust nAdjust = aSet.GetAdjust().GetAdjust(); const SvxAdjust nAdjust = aSet.GetAdjust().GetAdjust();
if ( SvxAdjust::Block == nAdjust || SvxAdjust::Center == nAdjust || if ( SvxAdjust::Block == nAdjust || SvxAdjust::Center == nAdjust ||
( (pFrame->IsRightToLeft() && SvxAdjust::Left == nAdjust) || ( (pFrame->IsRightToLeft() && SvxAdjust::Left == nAdjust) ||
......
...@@ -928,7 +928,7 @@ SwNumberPortion *SwTextFormatter::NewFootnoteNumPortion( SwTextFormatInfo const ...@@ -928,7 +928,7 @@ SwNumberPortion *SwTextFormatter::NewFootnoteNumPortion( SwTextFormatInfo const
const SwAttrSet& rSet = pInfo->GetCharFormat(*pDoc)->GetAttrSet(); const SwAttrSet& rSet = pInfo->GetCharFormat(*pDoc)->GetAttrSet();
const SwAttrSet* pParSet = &rInf.GetCharAttr(); const SwAttrSet* pParSet = &rInf.GetCharAttr();
const IDocumentSettingAccess* pIDSA = m_pFrame->GetTextNode()->getIDocumentSettingAccess(); const IDocumentSettingAccess* pIDSA = &pDoc->getIDocumentSettingAccess();
SwFont *pNumFnt = new SwFont( pParSet, pIDSA ); SwFont *pNumFnt = new SwFont( pParSet, pIDSA );
// #i37142# // #i37142#
......
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