summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-02-11 14:28:55 +0900
committerTomaž Vajngerl <quikee@gmail.com>2018-02-13 20:28:44 +0100
commit1fa153966332f57d23ee31fe97a24fd73317af9c (patch)
treeaba91e2e53b0598e37af094c40fb03a415d719a5 /xmloff
parent94dbc40e739267d5567257fcd88af445e07e955c (diff)
AddEmbeddedXGraphic: add parameter for requested name
Change-Id: Id5f028d3286513b468bc0637484507a34b2188a2 Reviewed-on: https://gerrit.libreoffice.org/49644 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlexp.cxx4
1 files changed, 2 insertions, 2 deletions
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);
}
}