From 88cbfe58c4a36c20bdb2445f43043f0a5a006ee3 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 5 Jan 2016 09:54:11 +0100 Subject: xmlsecurity: add XMLSignatureHelper::SetDescription() First step to be able to add a comment while signing a document. Change-Id: I8f7ab95de5015b723481e94bd72585caf754288f --- xmlsecurity/inc/xmlsecurity/sigstruct.hxx | 4 ++++ xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx | 1 + 2 files changed, 5 insertions(+) (limited to 'xmlsecurity/inc') diff --git a/xmlsecurity/inc/xmlsecurity/sigstruct.hxx b/xmlsecurity/inc/xmlsecurity/sigstruct.hxx index 0eb7cd8e431d..ea0e0f365f7f 100644 --- a/xmlsecurity/inc/xmlsecurity/sigstruct.hxx +++ b/xmlsecurity/inc/xmlsecurity/sigstruct.hxx @@ -74,6 +74,10 @@ struct SignatureInformation OUString ouDateTime; OUString ouSignatureId; OUString ouPropertyId; + /// Characters of the element inside the signature. + OUString ouDescription; + /// The Id attribute of the element that contains the . + OUString ouDescriptionPropertyId; SignatureInformation( sal_Int32 nId ) { diff --git a/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx b/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx index 9ac33fc4a3d2..e4c981d4e160 100644 --- a/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx +++ b/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx @@ -164,6 +164,7 @@ public: const OUString& ouX509SerialNumber, const OUString& ouX509Cert); void SetDateTime( sal_Int32 nSecurityId, const Date& rDate, const tools::Time& rTime ); + void SetDescription(sal_Int32 nSecurityId, const OUString& rDescription); void AddForSigning( sal_Int32 securityId, const OUString& uri, const OUString& objectURL, bool bBinary ); bool CreateAndWriteSignature( const com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler >& xDocumentHandler ); -- cgit