xmlsecurity: import OOXML <Reference>

Only non-stream ones as a start.

Change-Id: Ifacf391e78463004c17106905019ec2ed3430efe
This commit is contained in:
Miklos Vajna
2016-01-13 15:24:04 +01:00
parent 143f310f1c
commit a6d1b4b17a

View File

@@ -42,12 +42,25 @@ throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
if (!aId.isEmpty())
m_pXSecController->setId(aId);
}
else if (rName == "Reference")
{
OUString aURI = xAttribs->getValueByName("URI");
if (aURI.startsWith("#"))
m_pXSecController->addReference(aURI.copy(1));
// TODO else
}
}
void SAL_CALL OOXMLSecParser::endElement(const OUString& rName) throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
if (rName == "SignedInfo")
m_pXSecController->setReferenceCount();
else if (rName == "Reference")
{
// TODO import digest value
OUString aDigestValue;
m_pXSecController->setDigestValue(aDigestValue);
}
}
void SAL_CALL OOXMLSecParser::characters(const OUString& /*rChars*/) throw (xml::sax::SAXException, uno::RuntimeException, std::exception)