From 91ab5a07708892c3df6940aeb643d50bfd43e285 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Sun, 11 Mar 2018 01:53:13 +0900 Subject: use XML_EMBEDDEDOBJECTGRAPHIC_URL_BASE define MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6d37cc1e745b797a1c727a988177916291b650be Reviewed-on: https://gerrit.libreoffice.org/51049 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- sw/source/filter/xml/xmltexte.cxx | 4 ++-- sw/source/filter/xml/xmltexte.hxx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'sw/source/filter/xml') diff --git a/sw/source/filter/xml/xmltexte.cxx b/sw/source/filter/xml/xmltexte.cxx index 2324d667cb39..27205f248222 100644 --- a/sw/source/filter/xml/xmltexte.cxx +++ b/sw/source/filter/xml/xmltexte.cxx @@ -79,7 +79,6 @@ SwXMLTextParagraphExport::SwXMLTextParagraphExport( SvXMLAutoStylePoolP& _rAutoStylePool ) : XMLTextParagraphExport( rExp, _rAutoStylePool ), sEmbeddedObjectProtocol( "vnd.sun.star.EmbeddedObject:" ), - sGraphicObjectProtocol( "vnd.sun.star.GraphicObject:" ), aAppletClassId( SO3_APPLET_CLASSID ), aPluginClassId( SO3_PLUGIN_CLASSID ), aIFrameClassId( SO3_IFRAME_CLASSID ) @@ -562,7 +561,8 @@ void SwXMLTextParagraphExport::_exportTextEmbedded( } if( SV_EMBEDDED_OUTPLACE==nType || SV_EMBEDDED_OWN==nType ) { - OUString sURL( sGraphicObjectProtocol + rOLEObj.GetCurrentPersistName() ); + OUString sURL(XML_EMBEDDEDOBJECTGRAPHIC_URL_BASE); + sURL += rOLEObj.GetCurrentPersistName(); if( !(rXMLExport.getExportFlags() & SvXMLExportFlags::EMBEDDED) ) { sURL = GetExport().AddEmbeddedObject( sURL ); diff --git a/sw/source/filter/xml/xmltexte.hxx b/sw/source/filter/xml/xmltexte.hxx index 9ff9581d5070..38d0d2bdd02e 100644 --- a/sw/source/filter/xml/xmltexte.hxx +++ b/sw/source/filter/xml/xmltexte.hxx @@ -23,6 +23,8 @@ #include #include +#define XML_EMBEDDEDOBJECTGRAPHIC_URL_BASE "vnd.sun.star.GraphicObject:" + class SwXMLExport; class SvXMLAutoStylePoolP; class SwNoTextNode; @@ -33,7 +35,6 @@ namespace com { namespace sun { namespace star { namespace style { class SwXMLTextParagraphExport : public XMLTextParagraphExport { const OUString sEmbeddedObjectProtocol; - const OUString sGraphicObjectProtocol; const SvGlobalName aAppletClassId; const SvGlobalName aPluginClassId; -- cgit v1.2.3