summaryrefslogtreecommitdiff
path: root/xmloff/source/style
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/style')
-rw-r--r--xmloff/source/style/impastpl.cxx4
-rw-r--r--xmloff/source/style/styleexp.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/style/impastpl.cxx b/xmloff/source/style/impastpl.cxx
index b3dd0f648de9..5a54f78d0d04 100644
--- a/xmloff/source/style/impastpl.cxx
+++ b/xmloff/source/style/impastpl.cxx
@@ -409,8 +409,8 @@ void SvXMLAutoStylePoolP_Impl::AddFamily(
bool bAsFamily )
{
// store family in a list if not already stored
- sal_uInt16 nExportFlags = GetExport().getExportFlags();
- bool bStylesOnly = (nExportFlags & EXPORT_STYLES) != 0 && (nExportFlags & EXPORT_CONTENT) == 0;
+ SvXMLExportFlags nExportFlags = GetExport().getExportFlags();
+ bool bStylesOnly = (nExportFlags & SvXMLExportFlags::STYLES) && !(nExportFlags & SvXMLExportFlags::CONTENT);
OUString aPrefix( rStrPrefix );
if( bStylesOnly )
diff --git a/xmloff/source/style/styleexp.cxx b/xmloff/source/style/styleexp.cxx
index 6396e1644d9c..2089fb08748c 100644
--- a/xmloff/source/style/styleexp.cxx
+++ b/xmloff/source/style/styleexp.cxx
@@ -191,7 +191,7 @@ bool XMLStyleExport::exportStyle(
/* Empty value for style:default-outline-level does exist
since ODF 1.2. Thus, suppress its export for former versions. (#i104889#)
*/
- if ( ( GetExport().getExportFlags() & EXPORT_OASIS ) != 0 &&
+ if ( ( GetExport().getExportFlags() & SvXMLExportFlags::OASIS ) &&
GetExport().getDefaultVersion() >= SvtSaveOptions::ODFVER_012 )
{
GetExport().AddAttribute( XML_NAMESPACE_STYLE,