diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-02-22 13:01:55 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-02-22 13:39:37 +0100 |
commit | 8dde1396f7c9aed30590bc7c55d3ac0e2252381f (patch) | |
tree | 35d57c8533e95eec050473fd47b336f9e040aed2 /oox | |
parent | 0a25b404359ff28ef21603c47a8e0acdb9d8b3fb (diff) |
Fix build.
Change-Id: I1048970fdfa431d20ff4f7861b7f1788aadedf4e
Reviewed-on: https://gerrit.libreoffice.org/50173
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/core/xmlfilterbase.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx index c858bd707e16..00d23a377564 100644 --- a/oox/source/core/xmlfilterbase.cxx +++ b/oox/source/core/xmlfilterbase.cxx @@ -51,7 +51,6 @@ #include "oox/helper/zipstorage.hxx" #include <oox/ole/olestorage.hxx> #include <oox/token/namespaces.hxx> -#include <oox/token/relationship.hxx> #include <oox/token/properties.hxx> #include <oox/token/tokens.hxx> #include <com/sun/star/document/XDocumentPropertiesSupplier.hpp> @@ -69,6 +68,7 @@ #include <com/sun/star/util/Duration.hpp> #include <sax/tools/converter.hxx> #include <oox/token/namespacemap.hxx> +#include <editeng/unoprnms.hxx> using ::com::sun::star::xml::dom::DocumentBuilder; using ::com::sun::star::xml::dom::XDocument; @@ -1013,7 +1013,7 @@ void XmlFilterBase::importCustomFragments(css::uno::Reference<css::embed::XStora { Reference<XDocument> xCustDoc = importFragment("customXml/item" + OUString::number(i) + ".xml"); Reference<XDocument> xCustDocProps = importFragment("customXml/itemProps" + OUString::number(i) + ".xml"); - if (xCustDoc && xCustDocProps) + if (xCustDoc.is() && xCustDocProps.is()) { aCustomXmlDomList.emplace_back(xCustDoc); aCustomXmlDomPropsList.emplace_back(xCustDocProps); @@ -1082,7 +1082,7 @@ void XmlFilterBase::exportCustomFragments() const OUString fragmentPath = "customXml/item" + OUString::number((j+1)) + ".xml"; if (customXmlDom.is()) { - addRelation(oox::getRelationship(Relationship::CUSTOMXML), "../" + fragmentPath); + addRelation("http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", "../" + fragmentPath); uno::Reference<xml::sax::XSAXSerializable> serializer(customXmlDom, uno::UNO_QUERY); uno::Reference<xml::sax::XWriter> writer = xml::sax::Writer::create(comphelper::getProcessComponentContext()); @@ -1102,7 +1102,7 @@ void XmlFilterBase::exportCustomFragments() // Adding itemprops's relationship entry to item.xml.rels file addRelation(openFragmentStream(fragmentPath, "application/xml"), - oox::getRelationship(Relationship::CUSTOMXMLPROPS), + "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", "itemProps"+OUString::number((j+1))+".xml"); } } |