From aea2dbc319e1e1069d3af4bbc828eb0001cd6ece Mon Sep 17 00:00:00 2001 From: Zolnai Tamás Date: Sun, 16 Nov 2014 20:48:19 +0100 Subject: Remove now useless setTextEmbeddedGraphicURL() Since this commit: 286e2f5c6ec829bc0987b1be7016699f7ef03e5e it's not necessary to update the package URL. Change-Id: I25c829e9bc0c666838baf19cd60f19938ebb430c --- sw/source/filter/xml/xmltexte.cxx | 22 ---------------------- sw/source/filter/xml/xmltexte.hxx | 5 ----- 2 files changed, 27 deletions(-) (limited to 'sw/source/filter') diff --git a/sw/source/filter/xml/xmltexte.cxx b/sw/source/filter/xml/xmltexte.cxx index c830e1df5088..79ea895a69d3 100644 --- a/sw/source/filter/xml/xmltexte.cxx +++ b/sw/source/filter/xml/xmltexte.cxx @@ -188,28 +188,6 @@ SwXMLTextParagraphExport::~SwXMLTextParagraphExport() { } -void SwXMLTextParagraphExport::setTextEmbeddedGraphicURL( - const Reference < XPropertySet >& rPropSet, - OUString& rURL) const -{ - if( rURL.isEmpty() ) - return; - - SwGrfNode *pGrfNd = GetNoTxtNode( rPropSet )->GetGrfNode(); - if (pGrfNd && !pGrfNd->IsGrfLink()) - { - // Apply new embedded stream name, only if graphic node already has one. - // - The saving of recovery information triggers this method, but for a newly created - // document the new embedded stream name shall not be applied. - // - The saving of a newly created document to own format (ODF) triggers this method, - // but the embedded stream name is not needed as its original inserted data is still in use. - if (pGrfNd->HasEmbeddedStreamName()) - { - pGrfNd->ApplyNewEmbeddedStreamName("vnd.sun.star.Package:" + rURL); - } - } -} - static void lcl_addURL ( SvXMLExport &rExport, const OUString &rURL, bool bToRel = true ) { diff --git a/sw/source/filter/xml/xmltexte.hxx b/sw/source/filter/xml/xmltexte.hxx index cb007465a77d..17f45d966113 100644 --- a/sw/source/filter/xml/xmltexte.hxx +++ b/sw/source/filter/xml/xmltexte.hxx @@ -69,11 +69,6 @@ public: SwXMLExport& rExp, SvXMLAutoStylePoolP& rAutoStylePool ); virtual ~SwXMLTextParagraphExport(); - - virtual void setTextEmbeddedGraphicURL( - const ::com::sun::star::uno::Reference < - ::com::sun::star::beans::XPropertySet >& rPropSet, - OUString& rStreamName ) const SAL_OVERRIDE; }; #endif // INCLUDED_SW_SOURCE_FILTER_XML_XMLTEXTE_HXX -- cgit v1.2.3