summaryrefslogtreecommitdiff
path: root/svx/source/core
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-20 14:15:36 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-22 17:51:13 +0000
commiteaba47bce44a373116b0583dc293c8c3238b7bea (patch)
tree3af5cb6724fcc1e2e61fd154eb616bc0a2f1ddd1 /svx/source/core
parentc093af75202f6c9d8e6ae7d8e933b82da6f2c11b (diff)
Convert XOUTBMP to scoped enum
Change-Id: I8d10cdc78ca73d86bdc9aa08fca591f6eb85eb9e Reviewed-on: https://gerrit.libreoffice.org/25196 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/core')
-rw-r--r--svx/source/core/extedit.cxx2
-rw-r--r--svx/source/core/graphichelper.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/core/extedit.cxx b/svx/source/core/extedit.cxx
index d3b16b65a356..8ef16623fb26 100644
--- a/svx/source/core/extedit.cxx
+++ b/svx/source/core/extedit.cxx
@@ -138,7 +138,7 @@ void ExternalToolEdit::Edit(GraphicObject const*const pGraphicObject)
OUString aFilter(rGraphicFilter.GetExportFormatShortName(nFilter));
// Write the Graphic to the file now
- XOutBitmap::WriteGraphic(aGraphic, aTempFileName, aFilter, XOUTBMP_USE_NATIVE_IF_POSSIBLE | XOUTBMP_DONT_EXPAND_FILENAME);
+ XOutBitmap::WriteGraphic(aGraphic, aTempFileName, aFilter, XOutFlags::UseNativeIfPossible | XOutFlags::DontExpandFilename);
// There is a possibility that sPath extension might have been changed if the
// provided extension is not writable
diff --git a/svx/source/core/graphichelper.cxx b/svx/source/core/graphichelper.cxx
index b051cbd36e78..4816342a7fbc 100644
--- a/svx/source/core/graphichelper.cxx
+++ b/svx/source/core/graphichelper.cxx
@@ -192,9 +192,9 @@ OUString GraphicHelper::ExportGraphic( const Graphic& rGraphic, const OUString&
OUString aFilter( rGraphicFilter.GetExportFormatShortName( nFilter ) );
XOutBitmap::WriteGraphic( rGraphic, sPath, aFilter,
- XOUTBMP_DONT_EXPAND_FILENAME |
- XOUTBMP_DONT_ADD_EXTENSION |
- XOUTBMP_USE_NATIVE_IF_POSSIBLE );
+ XOutFlags::DontExpandFilename |
+ XOutFlags::DontAddExtension |
+ XOutFlags::UseNativeIfPossible );
return sPath;
}
}