summaryrefslogtreecommitdiffstats
path: root/xmlsecurity/source/helper/ooxmlsecparser.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-01-20 10:01:00 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-01-20 10:19:56 +0100
commitd79075b3064be1c4eb0e260f06fb210a12b9546f (patch)
tree47427f6a739b4a404701dd9c4eaf2253291ad1d4 /xmlsecurity/source/helper/ooxmlsecparser.cxx
parentloplugin:passstuffbyref (diff)
downloadcore-d79075b3064be1c4eb0e260f06fb210a12b9546f.tar.gz
core-d79075b3064be1c4eb0e260f06fb210a12b9546f.zip
xmlsecurity: import OOXML <SignatureComments>
This is the signature purpose on the MSO UI, our signature description. Change-Id: I7609c427cded96249ccdec24cd9d43e3e99be3d9
Diffstat (limited to 'xmlsecurity/source/helper/ooxmlsecparser.cxx')
-rw-r--r--xmlsecurity/source/helper/ooxmlsecparser.cxx13
1 files changed, 13 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);