summaryrefslogtreecommitdiff
path: root/include/vbahelper/vbaeventshelperbase.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/vbahelper/vbaeventshelperbase.hxx')
-rw-r--r--include/vbahelper/vbaeventshelperbase.hxx37
1 files changed, 17 insertions, 20 deletions
diff --git a/include/vbahelper/vbaeventshelperbase.hxx b/include/vbahelper/vbaeventshelperbase.hxx
index 5194d07f186e..570a8d2a7a3d 100644
--- a/include/vbahelper/vbaeventshelperbase.hxx
+++ b/include/vbahelper/vbaeventshelperbase.hxx
@@ -66,20 +66,19 @@ public:
virtual ~VbaEventsHelperBase() override;
// script::vba::XVBAEventProcessor
- virtual sal_Bool SAL_CALL hasVbaEventHandler( sal_Int32 nEventId, const css::uno::Sequence< css::uno::Any >& rArgs ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL processVbaEvent( sal_Int32 nEventId, const css::uno::Sequence< css::uno::Any >& rArgs ) throw (css::lang::IllegalArgumentException, css::util::VetoException, css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL hasVbaEventHandler( sal_Int32 nEventId, const css::uno::Sequence< css::uno::Any >& rArgs ) override;
+ virtual sal_Bool SAL_CALL processVbaEvent( sal_Int32 nEventId, const css::uno::Sequence< css::uno::Any >& rArgs ) override;
// document::XEventListener
- virtual void SAL_CALL notifyEvent( const css::document::EventObject& rEvent ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL notifyEvent( const css::document::EventObject& rEvent ) override;
// util::XChangesListener
- virtual void SAL_CALL changesOccurred( const css::util::ChangesEvent& rEvent ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL changesOccurred( const css::util::ChangesEvent& rEvent ) override;
// lang::XEventListener
- virtual void SAL_CALL disposing( const css::lang::EventObject& rEvent ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& rEvent ) override;
- sal_Bool SAL_CALL supportsService(OUString const & ServiceName)
- throw (css::uno::RuntimeException, std::exception) override;
+ sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
// little helpers ---------------------------------------------------------
@@ -87,12 +86,12 @@ public:
void processVbaEventNoThrow( sal_Int32 nEventId, const css::uno::Sequence< css::uno::Any >& rArgs );
/** @throws css::lang::IllegalArgumentException if the passed sequence does not contain a value at the specified index. */
- static inline void checkArgument( const css::uno::Sequence< css::uno::Any >& rArgs, sal_Int32 nIndex ) throw (css::lang::IllegalArgumentException)
+ static inline void checkArgument( const css::uno::Sequence< css::uno::Any >& rArgs, sal_Int32 nIndex )
{ if( (nIndex < 0) || (nIndex >= rArgs.getLength()) ) throw css::lang::IllegalArgumentException(); }
/** @throws css::lang::IllegalArgumentException if the passed sequence does not contain a value of a specific at the specified index. */
template< typename Type >
- static inline void checkArgumentType( const css::uno::Sequence< css::uno::Any >& rArgs, sal_Int32 nIndex ) throw (css::lang::IllegalArgumentException)
+ static inline void checkArgumentType( const css::uno::Sequence< css::uno::Any >& rArgs, sal_Int32 nIndex )
{ checkArgument( rArgs, nIndex ); if( !rArgs[ nIndex ].has< Type >() ) throw css::lang::IllegalArgumentException(); }
protected:
@@ -139,7 +138,7 @@ protected:
virtual bool implPrepareEvent(
EventQueue& rEventQueue,
const EventHandlerInfo& rInfo,
- const css::uno::Sequence< css::uno::Any >& rArgs ) throw (css::uno::RuntimeException) = 0;
+ const css::uno::Sequence< css::uno::Any >& rArgs ) = 0;
/** Derived classes have to return the argument list for the specified VBA event handler.
@@ -148,7 +147,7 @@ protected:
*/
virtual css::uno::Sequence< css::uno::Any > implBuildArgumentList(
const EventHandlerInfo& rInfo,
- const css::uno::Sequence< css::uno::Any >& rArgs ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) = 0;
+ const css::uno::Sequence< css::uno::Any >& rArgs ) = 0;
/** Derived classes may do additional postprocessing. Called even if the
event handler does not exist, or if an error occurred during execution.
@@ -158,7 +157,7 @@ protected:
virtual void implPostProcessEvent(
EventQueue& rEventQueue,
const EventHandlerInfo& rInfo,
- bool bCancel ) throw (css::uno::RuntimeException) = 0;
+ bool bCancel ) = 0;
/** Derived classes have to return the name of the Basic document module.
@@ -167,9 +166,7 @@ protected:
*/
virtual OUString implGetDocumentModuleName(
const EventHandlerInfo& rInfo,
- const css::uno::Sequence< css::uno::Any >& rArgs ) const
- throw (css::lang::IllegalArgumentException,
- css::uno::RuntimeException) = 0;
+ const css::uno::Sequence< css::uno::Any >& rArgs ) const = 0;
private:
typedef ::std::map< sal_Int32, OUString > ModulePathMap;
@@ -184,7 +181,7 @@ private:
@throws css::lang::IllegalArgumentException
*/
- const EventHandlerInfo& getEventHandlerInfo( sal_Int32 nEventId ) const throw (css::lang::IllegalArgumentException);
+ const EventHandlerInfo& getEventHandlerInfo( sal_Int32 nEventId ) const;
/** Searches the event handler in the document and returns its full script path.
@@ -194,25 +191,25 @@ private:
*/
OUString getEventHandlerPath(
const EventHandlerInfo& rInfo,
- const css::uno::Sequence< css::uno::Any >& rArgs ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception);
+ const css::uno::Sequence< css::uno::Any >& rArgs );
/** On first call, accesses the Basic library containing the VBA source code.
@throws css::uno::RuntimeException
*/
- void ensureVBALibrary() throw (css::uno::RuntimeException);
+ void ensureVBALibrary();
/** Returns the type of the Basic module with the specified name.
@throws css::uno::RuntimeException
*/
- sal_Int32 getModuleType( const OUString& rModuleName ) throw (css::uno::RuntimeException);
+ sal_Int32 getModuleType( const OUString& rModuleName );
/** Updates the map containing paths to event handlers for a Basic module.
@throws css::uno::RuntimeException
*/
- ModulePathMap& updateModulePathMap( const OUString& rModuleName ) throw (css::uno::RuntimeException, std::exception);
+ ModulePathMap& updateModulePathMap( const OUString& rModuleName );
protected:
css::uno::Reference< css::frame::XModel > mxModel;