diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-13 11:22:07 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-13 15:24:00 +0100 |
commit | aac43335e2acdba57e3bb5567decb157f2d0bda4 (patch) | |
tree | 73b43039e55e2f2c03fb77969d6d83c5df57cc93 /xmlsecurity | |
parent | 829e236d39707437475b7d7fd599a385ed3cf5e4 (diff) |
xmlsecurity: import OOXML <Signature>
Change-Id: I5925440347c04b2fff243261ba677c718d8fc312
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/helper/ooxmlsecparser.cxx | 12 | ||||
-rw-r--r-- | xmlsecurity/source/helper/xsecctl.hxx | 1 |
2 files changed, 12 insertions, 1 deletions
diff --git a/xmlsecurity/source/helper/ooxmlsecparser.cxx b/xmlsecurity/source/helper/ooxmlsecparser.cxx index 671a680a733d..d08073e3c8e1 100644 --- a/xmlsecurity/source/helper/ooxmlsecparser.cxx +++ b/xmlsecurity/source/helper/ooxmlsecparser.cxx @@ -29,9 +29,19 @@ void SAL_CALL OOXMLSecParser::endDocument() throw (xml::sax::SAXException, uno:: { } -void SAL_CALL OOXMLSecParser::startElement(const OUString& /*rName*/, const uno::Reference<xml::sax::XAttributeList>& /*xAttribs*/) +void SAL_CALL OOXMLSecParser::startElement(const OUString& rName, const uno::Reference<xml::sax::XAttributeList>& xAttribs) throw (xml::sax::SAXException, uno::RuntimeException, std::exception) { + OUString aId = xAttribs->getValueByName("Id"); + if (!aId.isEmpty()) + m_pXSecController->collectToVerify(aId); + + if (rName == "Signature") + { + //m_pXSecController->addSignature(); + if (!aId.isEmpty()) + m_pXSecController->setId(aId); + } } void SAL_CALL OOXMLSecParser::endElement(const OUString& /*rName*/) throw (xml::sax::SAXException, uno::RuntimeException, std::exception) diff --git a/xmlsecurity/source/helper/xsecctl.hxx b/xmlsecurity/source/helper/xsecctl.hxx index 8e9d1f9c2d62..b48b8cd5df27 100644 --- a/xmlsecurity/source/helper/xsecctl.hxx +++ b/xmlsecurity/source/helper/xsecctl.hxx @@ -166,6 +166,7 @@ class XSecController : public cppu::WeakImplHelper ******************************************************************************/ { friend class XSecParser; + friend class OOXMLSecParser; private: com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext> mxCtx; |