xmlsecurity: import OOXML <SignatureComments>
This is the signature purpose on the MSO UI, our signature description. Change-Id: I7609c427cded96249ccdec24cd9d43e3e99be3d9
This commit is contained in:
parent
12181e6e2f
commit
d79075b306
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user