Kaydet (Commit) c8696bd3 authored tarafından Christian Barth's avatar Christian Barth Kaydeden (comit) Julien Nabet

tdf#107197: Replace relationship URI

Replaced URIs in sw/source/filter

Change-Id: If73c30e9d590742568a3009a6d593f1b3249a5a4
Signed-off-by: 's avatarChristian Barth <Christian.Barth@zoho.com>
Reviewed-on: https://gerrit.libreoffice.org/41055Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 595cfbc4
...@@ -42,7 +42,9 @@ enum class Relationship ...@@ -42,7 +42,9 @@ enum class Relationship
PACKAGE, PACKAGE,
SETTINGS, SETTINGS,
STYLES, STYLES,
THEME THEME,
VBAPROJECT,
WORDVBADATA
}; };
OUString OOX_DLLPUBLIC getRelationship(Relationship eRelationship); OUString OOX_DLLPUBLIC getRelationship(Relationship eRelationship);
......
...@@ -25,4 +25,6 @@ ...@@ -25,4 +25,6 @@
{Relationship::PACKAGE, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/package"}, {Relationship::PACKAGE, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/package"},
{Relationship::SETTINGS, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings"}, {Relationship::SETTINGS, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings"},
{Relationship::STYLES, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"}, {Relationship::STYLES, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"},
{Relationship::THEME, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"} {Relationship::THEME, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"},
{Relationship::VBAPROJECT, "http://schemas.microsoft.com/office/2006/relationships/vbaProject"},
{Relationship::WORDVBADATA, "http://schemas.microsoft.com/office/2006/relationships/wordVbaData"}
...@@ -1294,7 +1294,7 @@ void DocxExport::WriteVBA() ...@@ -1294,7 +1294,7 @@ void DocxExport::WriteVBA()
pOut->WriteStream(*pIn); pOut->WriteStream(*pIn);
// Write the relationship. // Write the relationship.
m_pFilter->addRelation(m_pDocumentFS->getOutputStream(), "http://schemas.microsoft.com/office/2006/relationships/vbaProject", "vbaProject.bin"); m_pFilter->addRelation(m_pDocumentFS->getOutputStream(), oox::getRelationship(Relationship::VBAPROJECT), "vbaProject.bin");
} }
OUString aDataName("_MS_VBA_Macros_XML"); OUString aDataName("_MS_VBA_Macros_XML");
...@@ -1320,7 +1320,7 @@ void DocxExport::WriteVBA() ...@@ -1320,7 +1320,7 @@ void DocxExport::WriteVBA()
if (!xProjectStream.is()) if (!xProjectStream.is())
return; return;
m_pFilter->addRelation(xProjectStream, "http://schemas.microsoft.com/office/2006/relationships/wordVbaData", "vbaData.xml"); m_pFilter->addRelation(xProjectStream, oox::getRelationship(Relationship::WORDVBADATA), "vbaData.xml");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment