diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-28 14:22:51 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-06 10:59:42 +0200 |
commit | c29657e0d6bb707345584ac7a7f5ae5016f37297 (patch) | |
tree | 89cd11551729836a979570744da3c81090e330dd /sw/source/filter/xml/xmlfmte.cxx | |
parent | ec5bf66d366cd42774a87465e1187271f48a4ab1 (diff) |
fdo#84938: convert EXPORT_ #defines to 'enum class'
Change-Id: I2ed239fa073b5fa8fb56c1af9d4b0bac89acfacf
Diffstat (limited to 'sw/source/filter/xml/xmlfmte.cxx')
-rw-r--r-- | sw/source/filter/xml/xmlfmte.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/filter/xml/xmlfmte.cxx b/sw/source/filter/xml/xmlfmte.cxx index df323eb743e3..634da16cf838 100644 --- a/sw/source/filter/xml/xmlfmte.cxx +++ b/sw/source/filter/xml/xmlfmte.cxx @@ -180,9 +180,9 @@ void SwXMLExport::_ExportAutoStyles() // the order in which they are exported. Otherwise, caching will // fail. - if( (getExportFlags() & (EXPORT_MASTERSTYLES|EXPORT_CONTENT)) != 0 ) + if( getExportFlags() & (SvXMLExportFlags::MASTERSTYLES|SvXMLExportFlags::CONTENT) ) { - if( (getExportFlags() & EXPORT_CONTENT) == 0 ) + if( !(getExportFlags() & SvXMLExportFlags::CONTENT) ) { // only master pages are exported => styles for frames bound // to frames (but none for frames bound to pages) need to be @@ -192,17 +192,17 @@ void SwXMLExport::_ExportAutoStyles() } // exported in _ExportMasterStyles - if( (getExportFlags() & EXPORT_MASTERSTYLES) != 0 ) + if( getExportFlags() & SvXMLExportFlags::MASTERSTYLES ) GetPageExport()->collectAutoStyles( false ); // if we don't export styles (i.e. in content stream only, but not // in single-stream case), then we can save ourselves a bit of // work and memory by not collecting field masters - if( (getExportFlags() & EXPORT_STYLES ) == 0 ) + if( !(getExportFlags() & SvXMLExportFlags::STYLES) ) GetTextParagraphExport()->exportUsedDeclarations( false ); // exported in _ExportContent - if( (getExportFlags() & EXPORT_CONTENT) != 0 ) + if( getExportFlags() & SvXMLExportFlags::CONTENT ) { GetTextParagraphExport()->exportTrackedChanges( true ); Reference < XTextDocument > xTextDoc( GetModel(), UNO_QUERY ); @@ -224,14 +224,14 @@ void SwXMLExport::_ExportAutoStyles() GetTextParagraphExport()->exportTextAutoStyles(); GetShapeExport()->exportAutoStyles(); - if( (getExportFlags() & EXPORT_MASTERSTYLES) != 0 ) + if( getExportFlags() & SvXMLExportFlags::MASTERSTYLES ) GetPageExport()->exportAutoStyles(); // we rely on data styles being written after cell styles in the // ExportFmt() method; so be careful when changing order. exportAutoDataStyles(); - sal_uInt16 nContentAutostyles = EXPORT_CONTENT | EXPORT_AUTOSTYLES; + SvXMLExportFlags nContentAutostyles = SvXMLExportFlags::CONTENT | SvXMLExportFlags::AUTOSTYLES; if ( ( getExportFlags() & nContentAutostyles ) == nContentAutostyles ) GetFormExport()->exportAutoStyles(); } |