summaryrefslogtreecommitdiff
path: root/xmloff/source/text
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-23 15:00:14 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-25 08:11:05 +0000
commit8821dc7f3ad75ec5a686952703dec25e16901656 (patch)
tree0f2b771a67edb129c095fa176f280875291cfeb3 /xmloff/source/text
parent3349594bffc1eda4ee1d258be207b40f2f6f9b12 (diff)
Convert XMLTextParagraphExport::FrameType to scoped enum
Change-Id: I9e36f6566310e960a2b49f5a57f4b4491d32bb9a Reviewed-on: https://gerrit.libreoffice.org/25366 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff/source/text')
-rw-r--r--xmloff/source/text/txtparae.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 9dfe9d298b4d..efe5a79b4e1e 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -2770,10 +2770,10 @@ void XMLTextParagraphExport::exportAnyTextFrame(
if( bAutoStyles )
{
- if( FT_EMBEDDED == eType )
+ if( FrameType::Embedded == eType )
_collectTextEmbeddedAutoStyles( xPropSet );
// No text frame style for shapes (#i28745#)
- else if ( FT_SHAPE != eType )
+ else if ( FrameType::Shape != eType )
Add( XML_STYLE_FAMILY_TEXT_FRAME, xPropSet );
if( pRangePropSet && lcl_txtpara_isBoundAsChar( xPropSet,
@@ -2782,7 +2782,7 @@ void XMLTextParagraphExport::exportAnyTextFrame(
switch( eType )
{
- case FT_TEXT:
+ case FrameType::Text:
{
// frame bound frames
if ( bExportContent )
@@ -2794,7 +2794,7 @@ void XMLTextParagraphExport::exportAnyTextFrame(
}
}
break;
- case FT_SHAPE:
+ case FrameType::Shape:
{
Reference < XShape > xShape( rTxtCntnt, UNO_QUERY );
GetExport().GetShapeExport()->collectShapeAutoStyles( xShape );
@@ -2840,22 +2840,22 @@ void XMLTextParagraphExport::exportAnyTextFrame(
XML_NAMESPACE_TEXT, XML_SPAN, false, false );
{
SvXMLElementExport aElement( GetExport(),
- FT_SHAPE != eType &&
+ FrameType::Shape != eType &&
addHyperlinkAttributes( xPropSet,
xPropState,xPropSetInfo ),
XML_NAMESPACE_DRAW, XML_A, false, false );
switch( eType )
{
- case FT_TEXT:
+ case FrameType::Text:
_exportTextFrame( xPropSet, xPropSetInfo, bIsProgress );
break;
- case FT_GRAPHIC:
+ case FrameType::Graphic:
_exportTextGraphic( xPropSet, xPropSetInfo );
break;
- case FT_EMBEDDED:
+ case FrameType::Embedded:
_exportTextEmbedded( xPropSet, xPropSetInfo );
break;
- case FT_SHAPE:
+ case FrameType::Shape:
{
Reference < XShape > xShape( rTxtCntnt, UNO_QUERY );
XMLShapeExportFlags nFeatures =