diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-20 10:01:00 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-20 10:19:56 +0100 |
commit | d79075b3064be1c4eb0e260f06fb210a12b9546f (patch) | |
tree | 47427f6a739b4a404701dd9c4eaf2253291ad1d4 /xmlsecurity | |
parent | 12181e6e2f9be553b93371432b79a5f00aa076ea (diff) |
xmlsecurity: import OOXML <SignatureComments>
This is the signature purpose on the MSO UI, our signature description.
Change-Id: I7609c427cded96249ccdec24cd9d43e3e99be3d9
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/helper/ooxmlsecparser.cxx | 13 | ||||
-rw-r--r-- | xmlsecurity/source/helper/ooxmlsecparser.hxx | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/xmlsecurity/source/helper/ooxmlsecparser.cxx b/xmlsecurity/source/helper/ooxmlsecparser.cxx index d8b5c932dc58..4bc7274b783b 100644 --- a/xmlsecurity/source/helper/ooxmlsecparser.cxx +++ b/xmlsecurity/source/helper/ooxmlsecparser.cxx @@ -18,6 +18,7 @@ OOXMLSecParser::OOXMLSecParser(XSecController* pXSecController) ,m_bInSignatureValue(false) ,m_bInX509Certificate(false) ,m_bInMdssiValue(false) + ,m_bInSignatureComments(false) { } @@ -77,6 +78,11 @@ throw (xml::sax::SAXException, uno::RuntimeException, std::exception) m_aMdssiValue.clear(); m_bInMdssiValue = true; } + else if (rName == "SignatureComments") + { + m_aSignatureComments.clear(); + m_bInSignatureComments = true; + } if (m_xNextHandler.is()) m_xNextHandler->startElement(rName, xAttribs); @@ -105,6 +111,11 @@ void SAL_CALL OOXMLSecParser::endElement(const OUString& rName) throw (xml::sax: m_pXSecController->setDate(m_aMdssiValue); m_bInMdssiValue = false; } + else if (rName == "SignatureComments") + { + m_pXSecController->setDescription(m_aSignatureComments); + m_bInSignatureComments = false; + } if (m_xNextHandler.is()) m_xNextHandler->endElement(rName); @@ -120,6 +131,8 @@ void SAL_CALL OOXMLSecParser::characters(const OUString& rChars) throw (xml::sax m_aX509Certificate += rChars; else if (m_bInMdssiValue) m_aMdssiValue += rChars; + else if (m_bInSignatureComments) + m_aSignatureComments += rChars; if (m_xNextHandler.is()) m_xNextHandler->characters(rChars); diff --git a/xmlsecurity/source/helper/ooxmlsecparser.hxx b/xmlsecurity/source/helper/ooxmlsecparser.hxx index b071bca310e2..c7ac95368392 100644 --- a/xmlsecurity/source/helper/ooxmlsecparser.hxx +++ b/xmlsecurity/source/helper/ooxmlsecparser.hxx @@ -37,6 +37,8 @@ class OOXMLSecParser: public cppu::WeakImplHelper OUString m_aX509Certificate; bool m_bInMdssiValue; OUString m_aMdssiValue; + bool m_bInSignatureComments; + OUString m_aSignatureComments; public: OOXMLSecParser(XSecController* pXSecController); |