summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/tree/drawtreevisiting.cxx2
-rw-r--r--sdext/source/pdfimport/tree/writertreevisiting.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
index 5eae94af8c95..6da5e7ded92c 100644
--- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
@@ -170,7 +170,7 @@ void DrawXmlEmitter::visit( ParagraphElement& elem, const std::list< Element* >:
aProps[ "text:style-name" ] = m_rEmitContext.rStyles.getStyleName( elem.StyleId );
}
const char* pTagType = "text:p";
- if( elem.Type == elem.Headline )
+ if( elem.Type == ParagraphElement::Headline )
pTagType = "text:h";
m_rEmitContext.rEmitter.beginTag( pTagType, aProps );
diff --git a/sdext/source/pdfimport/tree/writertreevisiting.cxx b/sdext/source/pdfimport/tree/writertreevisiting.cxx
index 9e946e49f7db..5184ea84668f 100644
--- a/sdext/source/pdfimport/tree/writertreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/writertreevisiting.cxx
@@ -91,7 +91,7 @@ void WriterXmlEmitter::visit( ParagraphElement& elem, const std::list< Element*
aProps[ "text:style-name" ] = m_rEmitContext.rStyles.getStyleName( elem.StyleId );
}
const char* pTagType = "text:p";
- if( elem.Type == elem.Headline )
+ if( elem.Type == ParagraphElement::Headline )
pTagType = "text:h";
m_rEmitContext.rEmitter.beginTag( pTagType, aProps );
@@ -456,7 +456,7 @@ void WriterXmlOptimizer::visit( ParagraphElement& elem, const std::list< Element
// check for larger font
if( head_line_height > elem.getLineHeight( m_rProcessor ) )
{
- pPrevPara->Type = elem.Headline;
+ pPrevPara->Type = ParagraphElement::Headline;
}
else
{
@@ -469,7 +469,7 @@ void WriterXmlOptimizer::visit( ParagraphElement& elem, const std::list< Element
const FontAttributes& rPrevFont = m_rProcessor.getFont( pPrevText->FontId );
const FontAttributes& rThisFont = m_rProcessor.getFont( pThisText->FontId );
if( rPrevFont.isBold && ! rThisFont.isBold )
- pPrevPara->Type = elem.Headline;
+ pPrevPara->Type = ParagraphElement::Headline;
}
}
}