summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-02-09 10:39:59 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-02-09 11:03:00 +0100
commit5a9f81dadad52b36e5d148b07f721823b65d5aa0 (patch)
treeaeec96e8ebf9277a78360fe2c4bf32da0198ee4f /xmlsecurity
parent6376a6bafb7aceaab743e8918c2ec858a857ea41 (diff)
xmlsecurity: export OOXML <Object>
Change-Id: I3f99cd51232e7c60bf72a79412e5ed0b08851ba7
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/helper/xsecctl.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/xmlsecurity/source/helper/xsecctl.cxx b/xmlsecurity/source/helper/xsecctl.cxx
index fedbb5f6fb68..ea7bec18227b 100644
--- a/xmlsecurity/source/helper/xsecctl.cxx
+++ b/xmlsecurity/source/helper/xsecctl.cxx
@@ -1044,6 +1044,23 @@ void XSecController::exportOOXMLSignature(const uno::Reference<xml::sax::XDocume
xDocumentHandler->endElement(TAG_X509CERTIFICATE);
xDocumentHandler->endElement(TAG_X509DATA);
xDocumentHandler->endElement(TAG_KEYINFO);
+
+ {
+ rtl::Reference<SvXMLAttributeList> pAttributeList(new SvXMLAttributeList());
+ pAttributeList->AddAttribute(ATTR_ID, "idPackageObject");
+ xDocumentHandler->startElement(TAG_OBJECT, uno::Reference<xml::sax::XAttributeList>(pAttributeList.get()));
+ }
+ xDocumentHandler->endElement(TAG_OBJECT);
+
+ {
+ rtl::Reference<SvXMLAttributeList> pAttributeList(new SvXMLAttributeList());
+ pAttributeList->AddAttribute(ATTR_ID, "idOfficeObject");
+ xDocumentHandler->startElement(TAG_OBJECT, uno::Reference<xml::sax::XAttributeList>(pAttributeList.get()));
+ }
+ xDocumentHandler->endElement(TAG_OBJECT);
+
+ xDocumentHandler->startElement(TAG_OBJECT, uno::Reference<xml::sax::XAttributeList>(new SvXMLAttributeList()));
+ xDocumentHandler->endElement(TAG_OBJECT);
}
SignatureInformation XSecController::getSignatureInformation( sal_Int32 nSecurityId ) const