summaryrefslogtreecommitdiff
path: root/xmlsecurity/inc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-02-09 16:57:22 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-02-09 17:13:44 +0100
commit6dc0a4431f48546265d9cab7a8be25131ef18f53 (patch)
tree1d3495520ebeed04da82df72a4fd27758dddcace /xmlsecurity/inc
parent3c6912429252f6924b0d37e57c3760ebf1cf32b5 (diff)
xmlsecurity OOXML export: fix prefix and suffix of stream references
In ODF, they're relative to the package root, in OOXML they always start with a leading slash. Also, in OOXML the stream URI should have its content type as the suffix. Change-Id: Iac570ed15533a23c8a6098f99b716f90e1bac0e0
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r--xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx b/xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx
index 9b423a155b47..9ccbd3aff792 100644
--- a/xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx
+++ b/xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx
@@ -92,6 +92,8 @@ public:
static OUString GetDocumentContentSignatureDefaultStreamName();
static OUString GetScriptingContentSignatureDefaultStreamName();
static OUString GetPackageSignatureDefaultStreamName();
+ /// In case the storage is OOXML, prepend a leading '/' and append content type to the element URIs.
+ static void AppendContentTypes(const css::uno::Reference<css::embed::XStorage>& xStorage, std::vector<OUString>& rElements);
};