diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-12-24 13:15:27 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-04-16 05:02:26 +0200 |
commit | 93e0a48d09456578527d1e498f708edbeae19667 (patch) | |
tree | 6c3ea916278c904ced23b69518742b135dff9316 /sc/source | |
parent | 4d64bd4cbf652c5286272edc271f45ec447b10b8 (diff) |
first stab at replacing hard coded relationships with calls to a method
Change-Id: I4d1fd6ac3d32180972d82c67a81adf4953e3a82d
Reviewed-on: https://gerrit.libreoffice.org/32409
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/filter/excel/xecontent.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx index aad8d951606e..a243b80d58b8 100644 --- a/sc/source/filter/excel/xecontent.cxx +++ b/sc/source/filter/excel/xecontent.cxx @@ -45,6 +45,7 @@ #include "xename.hxx" #include <rtl/uuid.h> #include <oox/token/namespaces.hxx> +#include <oox/token/relationship.hxx> using namespace ::oox; @@ -503,7 +504,7 @@ void XclExpHyperlink::WriteEmbeddedData( XclExpStream& rStrm ) void XclExpHyperlink::SaveXml( XclExpXmlStream& rStrm ) { OUString sId = !msTarget.isEmpty() ? rStrm.addRelation( rStrm.GetCurrentStream()->getOutputStream(), - XclXmlUtils::ToOUString( "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" ), + oox::getRelationship(Relationship::HYPERLINK), msTarget, true ) : OUString(); rStrm.GetCurrentStream()->singleElement( XML_hyperlink, XML_ref, XclXmlUtils::ToOString( maScPos ).getStr(), |