summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2013-08-24 23:18:18 +0200
committerTomaž Vajngerl <quikee@gmail.com>2013-08-24 23:20:08 +0200
commitf8ed55b38c41a4fba3bbafaf03a39cf4718259e0 (patch)
tree33eff19f1cc1dd2ee5fbc32235b26e386bad8b04 /oox
parent3e1bc81ad888cab1e31382f5a4faa3d2f0373577 (diff)
Encryption: and add exceptions to methods that need it
Change-Id: I8101f00bc4820ec3100e2c08a9dd21248c909081
Diffstat (limited to 'oox')
-rw-r--r--oox/source/crypto/DocumentDecryption.cxx34
1 files changed, 26 insertions, 8 deletions
diff --git a/oox/source/crypto/DocumentDecryption.cxx b/oox/source/crypto/DocumentDecryption.cxx
index 64281981ab29..7514ede87880 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