summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/xmloff/xmlexp.hxx2
-rw-r--r--xmloff/source/core/xmlexp.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/xmloff/xmlexp.hxx b/include/xmloff/xmlexp.hxx
index 203be8fdfd0f..6024d9f877ca 100644
--- a/include/xmloff/xmlexp.hxx
+++ b/include/xmloff/xmlexp.hxx
@@ -463,7 +463,7 @@ public:
OUString AddEmbeddedGraphicObject(
const OUString& rGraphicObjectURL );
- OUString AddEmbeddedXGraphic(css::uno::Reference<css::graphic::XGraphic> const & rxGraphic);
+ OUString AddEmbeddedXGraphic(css::uno::Reference<css::graphic::XGraphic> const & rxGraphic, OUString const & rRequestedName = OUString());
bool AddEmbeddedXGraphicAsBase64(css::uno::Reference<css::graphic::XGraphic> const & rxGraphic);
css::uno::Reference<css::io::XInputStream> GetEmbeddedGraphicObjectStream(
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index cfee78ca7762..a3015b8903ef 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -1882,7 +1882,7 @@ OUString SvXMLExport::AddEmbeddedGraphicObject( const OUString& rGraphicObjectUR
return sRet;
}
-OUString SvXMLExport::AddEmbeddedXGraphic(uno::Reference<graphic::XGraphic> const & rxGraphic)
+OUString SvXMLExport::AddEmbeddedXGraphic(uno::Reference<graphic::XGraphic> const & rxGraphic, OUString const & rRequestedName)
{
OUString sInternalURL;
@@ -1892,7 +1892,7 @@ OUString SvXMLExport::AddEmbeddedXGraphic(uno::Reference<graphic::XGraphic> cons
{
if (!(getExportFlags() & SvXMLExportFlags::EMBEDDED))
{
- sInternalURL = xGraphicStorageHandler->saveGraphic(rxGraphic);
+ sInternalURL = xGraphicStorageHandler->saveGraphicByName(rxGraphic, rRequestedName);
}
}