oox/source/crypto/DocumentDecryption.cxx | 34 +++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-)
New commits: commit f8ed55b38c41a4fba3bbafaf03a39cf4718259e0 Author: Tomaž Vajngerl <qui...@gmail.com> Date: Sat Aug 24 23:18:18 2013 +0200 Encryption: and add exceptions to methods that need it Change-Id: I8101f00bc4820ec3100e2c08a9dd21248c909081 diff --git a/oox/source/crypto/DocumentDecryption.cxx b/oox/source/crypto/DocumentDecryption.cxx index 64281981..7514ede 100644 --- a/oox/source/crypto/DocumentDecryption.cxx +++ b/oox/source/crypto/DocumentDecryption.cxx @@ -68,18 +68,28 @@ public: class AgileDocumentHandler : public ::cppu::WeakImplHelper1< XFastDocumentHandler > { + AgileEncryptionInfo& mInfo; + public: AgileDocumentHandler(AgileEncryptionInfo& rInfo) : mInfo(rInfo) {} - AgileEncryptionInfo& mInfo; - void startDocument() {} - void endDocument() {} - void SAL_CALL setDocumentLocator( const Reference< XLocator >& /*xLocator*/ ) {} - void startFastElement( sal_Int32 /*Element*/, const Reference< XFastAttributeList >& /*Attribs*/ ) {} + void SAL_CALL startDocument() + throw (RuntimeException, SAXException) + {} + void endDocument() + throw (RuntimeException, SAXException) + {} + void SAL_CALL setDocumentLocator( const Reference< XLocator >& /*xLocator*/ ) + throw (RuntimeException, SAXException) + {} + void startFastElement( sal_Int32 /*Element*/, const Reference< XFastAttributeList >& /*Attribs*/ ) + throw (RuntimeException, SAXException) + {} void startUnknownElement( const OUString& /*aNamespace*/, const OUString& aName, const Reference< XFastAttributeList >& aAttributeList ) + throw (RuntimeException, SAXException) { if(aName == "keyData") { @@ -160,20 +170,28 @@ public: } } - void endFastElement( sal_Int32 /*aElement*/ ) {} - void endUnknownElement( const OUString& /*aNamespace*/, const OUString& /*aName*/ ) {} + void endFastElement( sal_Int32 /*aElement*/ ) + throw (RuntimeException, SAXException) + {} + void endUnknownElement( const OUString& /*aNamespace*/, const OUString& /*aName*/ ) + throw (RuntimeException, SAXException) + {} Reference< XFastContextHandler > createFastChildContext( sal_Int32 /*aElement*/, const Reference< XFastAttributeList >& /*aAttribs*/ ) + throw (RuntimeException, SAXException) { return NULL; } Reference< XFastContextHandler > createUnknownChildContext( const OUString& /*aNamespace*/, const OUString& /*aName*/, const Reference< XFastAttributeList >& /*aAttribs*/ ) + throw (RuntimeException, SAXException) { return this; } - void characters( const OUString& /*aChars*/ ) {} + void characters( const OUString& /*aChars*/ ) + throw (RuntimeException, SAXException) + {} }; } // namespace
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits