diff options
Diffstat (limited to 'include/vbahelper')
-rw-r--r-- | include/vbahelper/vbaaccesshelper.hxx | 2 | ||||
-rw-r--r-- | include/vbahelper/vbaapplicationbase.hxx | 38 | ||||
-rw-r--r-- | include/vbahelper/vbacollectionimpl.hxx | 57 | ||||
-rw-r--r-- | include/vbahelper/vbadialogbase.hxx | 2 | ||||
-rw-r--r-- | include/vbahelper/vbadialogsbase.hxx | 4 | ||||
-rw-r--r-- | include/vbahelper/vbadocumentbase.hxx | 22 | ||||
-rw-r--r-- | include/vbahelper/vbadocumentsbase.hxx | 10 | ||||
-rw-r--r-- | include/vbahelper/vbaeventshelperbase.hxx | 37 | ||||
-rw-r--r-- | include/vbahelper/vbafontbase.hxx | 46 | ||||
-rw-r--r-- | include/vbahelper/vbaglobalbase.hxx | 6 | ||||
-rw-r--r-- | include/vbahelper/vbahelper.hxx | 39 | ||||
-rw-r--r-- | include/vbahelper/vbahelperinterface.hxx | 12 | ||||
-rw-r--r-- | include/vbahelper/vbapagesetupbase.hxx | 30 | ||||
-rw-r--r-- | include/vbahelper/vbapropvalue.hxx | 6 | ||||
-rw-r--r-- | include/vbahelper/vbareturntypes.hxx | 6 | ||||
-rw-r--r-- | include/vbahelper/vbashape.hxx | 95 | ||||
-rw-r--r-- | include/vbahelper/vbashaperange.hxx | 62 | ||||
-rw-r--r-- | include/vbahelper/vbashapes.hxx | 28 | ||||
-rw-r--r-- | include/vbahelper/vbatextframe.hxx | 22 | ||||
-rw-r--r-- | include/vbahelper/vbawindowbase.hxx | 34 |
20 files changed, 273 insertions, 285 deletions
diff --git a/include/vbahelper/vbaaccesshelper.hxx b/include/vbahelper/vbaaccesshelper.hxx index 9881090cd783..177bcddc2906 100644 --- a/include/vbahelper/vbaaccesshelper.hxx +++ b/include/vbahelper/vbaaccesshelper.hxx @@ -53,7 +53,7 @@ namespace ooo } /// @throws css::uno::Exception - inline css::uno::Reference< css::uno::XInterface > createVBAUnoAPIServiceWithArgs( SfxObjectShell* pShell, const sal_Char* _pAsciiName, const css::uno::Sequence< css::uno::Any >& aArgs ) throw (css::uno::Exception) + inline css::uno::Reference< css::uno::XInterface > createVBAUnoAPIServiceWithArgs( SfxObjectShell* pShell, const sal_Char* _pAsciiName, const css::uno::Sequence< css::uno::Any >& aArgs ) { OSL_PRECOND( pShell, "createVBAUnoAPIService: no shell!" ); OUString sVarName( OUString::createFromAscii( _pAsciiName ) ); diff --git a/include/vbahelper/vbaapplicationbase.hxx b/include/vbahelper/vbaapplicationbase.hxx index 8743dea2290e..f322098e35de 100644 --- a/include/vbahelper/vbaapplicationbase.hxx +++ b/include/vbahelper/vbaapplicationbase.hxx @@ -57,29 +57,29 @@ protected: virtual ~VbaApplicationBase() override; /// @throws css::uno::RuntimeException - virtual css::uno::Reference< css::frame::XModel > getCurrentDocument() throw (css::uno::RuntimeException) = 0; + virtual css::uno::Reference< css::frame::XModel > getCurrentDocument() = 0; public: // XHelperInterface ( parent is itself ) - virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL getParent( ) throw (css::script::BasicErrorException, css::uno::RuntimeException) override { return this; } + virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL getParent( ) override { return this; } - virtual sal_Bool SAL_CALL getScreenUpdating() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setScreenUpdating(sal_Bool bUpdate) throw (css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL getDisplayStatusBar() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setDisplayStatusBar(sal_Bool bDisplayStatusBar) throw (css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL getInteractive() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setInteractive( sal_Bool bInteractive ) throw (css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL getVisible() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setVisible( sal_Bool bVisible ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL OnKey( const OUString& Key, const css::uno::Any& Procedure ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL CommandBars( const css::uno::Any& aIndex ) throw (css::uno::RuntimeException, std::exception) override; - virtual OUString SAL_CALL getVersion() throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL getVBE() throw (css::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL getScreenUpdating() override; + virtual void SAL_CALL setScreenUpdating(sal_Bool bUpdate) override; + virtual sal_Bool SAL_CALL getDisplayStatusBar() override; + virtual void SAL_CALL setDisplayStatusBar(sal_Bool bDisplayStatusBar) override; + virtual sal_Bool SAL_CALL getInteractive() override; + virtual void SAL_CALL setInteractive( sal_Bool bInteractive ) override; + virtual sal_Bool SAL_CALL getVisible() override; + virtual void SAL_CALL setVisible( sal_Bool bVisible ) override; + virtual void SAL_CALL OnKey( const OUString& Key, const css::uno::Any& Procedure ) override; + virtual css::uno::Any SAL_CALL CommandBars( const css::uno::Any& aIndex ) override; + virtual OUString SAL_CALL getVersion() override; + virtual css::uno::Any SAL_CALL getVBE() override; - virtual css::uno::Any SAL_CALL Run( const OUString& MacroName, const css::uno::Any& varg1, const css::uno::Any& varg2, const css::uno::Any& varg3, const css::uno::Any& varg4, const css::uno::Any& varg5, const css::uno::Any& varg6, const css::uno::Any& varg7, const css::uno::Any& varg8, const css::uno::Any& varg9, const css::uno::Any& varg10, const css::uno::Any& varg11, const css::uno::Any& varg12, const css::uno::Any& varg13, const css::uno::Any& varg14, const css::uno::Any& varg15, const css::uno::Any& varg16, const css::uno::Any& varg17, const css::uno::Any& varg18, const css::uno::Any& varg19, const css::uno::Any& varg20, const css::uno::Any& varg21, const css::uno::Any& varg22, const css::uno::Any& varg23, const css::uno::Any& varg24, const css::uno::Any& varg25, const css::uno::Any& varg26, const css::uno::Any& varg27, const css::uno::Any& varg28, const css::uno::Any& varg29, const css::uno::Any& varg30 ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL OnTime( const css::uno::Any& aEarliestTime, const OUString& aFunction, const css::uno::Any& aLatestTime, const css::uno::Any& aSchedule ) throw (css::uno::RuntimeException, std::exception) override; - virtual float SAL_CALL CentimetersToPoints( float Centimeters ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL Undo() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL Quit() throw (css::uno::RuntimeException, std::exception) override; + virtual css::uno::Any SAL_CALL Run( const OUString& MacroName, const css::uno::Any& varg1, const css::uno::Any& varg2, const css::uno::Any& varg3, const css::uno::Any& varg4, const css::uno::Any& varg5, const css::uno::Any& varg6, const css::uno::Any& varg7, const css::uno::Any& varg8, const css::uno::Any& varg9, const css::uno::Any& varg10, const css::uno::Any& varg11, const css::uno::Any& varg12, const css::uno::Any& varg13, const css::uno::Any& varg14, const css::uno::Any& varg15, const css::uno::Any& varg16, const css::uno::Any& varg17, const css::uno::Any& varg18, const css::uno::Any& varg19, const css::uno::Any& varg20, const css::uno::Any& varg21, const css::uno::Any& varg22, const css::uno::Any& varg23, const css::uno::Any& varg24, const css::uno::Any& varg25, const css::uno::Any& varg26, const css::uno::Any& varg27, const css::uno::Any& varg28, const css::uno::Any& varg29, const css::uno::Any& varg30 ) override; + virtual void SAL_CALL OnTime( const css::uno::Any& aEarliestTime, const OUString& aFunction, const css::uno::Any& aLatestTime, const css::uno::Any& aSchedule ) override; + virtual float SAL_CALL CentimetersToPoints( float Centimeters ) override; + virtual void SAL_CALL Undo() override; + virtual void SAL_CALL Quit() override; // XHelperInterface virtual OUString getServiceImplName() override; diff --git a/include/vbahelper/vbacollectionimpl.hxx b/include/vbahelper/vbacollectionimpl.hxx index a9f4f861444f..33727621a9ee 100644 --- a/include/vbahelper/vbacollectionimpl.hxx +++ b/include/vbahelper/vbacollectionimpl.hxx @@ -72,15 +72,15 @@ class VBAHELPER_DLLPUBLIC SimpleIndexAccessToEnumeration : public EnumerationHel public: /// @throws css::uno::RuntimeException explicit SimpleIndexAccessToEnumeration( - const css::uno::Reference< css::container::XIndexAccess >& rxIndexAccess ) throw (css::uno::RuntimeException) : + const css::uno::Reference< css::container::XIndexAccess >& rxIndexAccess ) : mxIndexAccess( rxIndexAccess ), mnIndex( 0 ) {} - virtual sal_Bool SAL_CALL hasMoreElements() throw (css::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL hasMoreElements() override { return mnIndex < mxIndexAccess->getCount(); } - virtual css::uno::Any SAL_CALL nextElement() throw (css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override + virtual css::uno::Any SAL_CALL nextElement() override { if( !hasMoreElements() ) throw css::container::NoSuchElementException(); @@ -105,15 +105,15 @@ class VBAHELPER_DLLPUBLIC SimpleEnumerationBase : public EnumerationHelper_BASE public: /// @throws css::uno::RuntimeException explicit SimpleEnumerationBase( - const css::uno::Reference< css::container::XIndexAccess >& rxIndexAccess ) throw (css::uno::RuntimeException) : + const css::uno::Reference< css::container::XIndexAccess >& rxIndexAccess ) : mxEnumeration( new SimpleIndexAccessToEnumeration( rxIndexAccess ) ) {} - virtual sal_Bool SAL_CALL hasMoreElements() throw (css::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL hasMoreElements() override { return mxEnumeration->hasMoreElements(); } - virtual css::uno::Any SAL_CALL nextElement() throw (css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override + virtual css::uno::Any SAL_CALL nextElement() override { return createCollectionObject( mxEnumeration->nextElement() ); } @@ -136,8 +136,8 @@ protected: css::uno::Reference< css::container::XEnumeration > m_xEnumeration; public: /// @throws css::uno::RuntimeException - EnumerationHelperImpl( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XEnumeration >& xEnumeration ) throw ( css::uno::RuntimeException ) : m_xParent( xParent ), m_xContext( xContext ), m_xEnumeration( xEnumeration ) { } - virtual sal_Bool SAL_CALL hasMoreElements( ) throw (css::uno::RuntimeException, std::exception) override { return m_xEnumeration->hasMoreElements(); } + EnumerationHelperImpl( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XEnumeration >& xEnumeration ) : m_xParent( xParent ), m_xContext( xContext ), m_xEnumeration( xEnumeration ) { } + virtual sal_Bool SAL_CALL hasMoreElements( ) override { return m_xEnumeration->hasMoreElements(); } }; // a wrapper class for a providing a XIndexAccess, XNameAccess, XEnumerationAccess impl based on providing a vector of interfaces @@ -160,12 +160,12 @@ private: public: XNamedEnumerationHelper( const XNamedVec& sMap ) : mXNamedVec( sMap ), mIt( mXNamedVec.begin() ) {} - virtual sal_Bool SAL_CALL hasMoreElements( ) throw (css::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL hasMoreElements( ) override { return ( mIt != mXNamedVec.end() ); } - virtual css::uno::Any SAL_CALL nextElement( ) throw (css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override + virtual css::uno::Any SAL_CALL nextElement( ) override { if ( hasMoreElements() ) return css::uno::makeAny( *mIt++ ); @@ -179,16 +179,16 @@ protected: public: XNamedObjectCollectionHelper( const XNamedVec& sMap ) : mXNamedVec( sMap ), cachePos(mXNamedVec.begin()) {} // XElementAccess - virtual css::uno::Type SAL_CALL getElementType( ) throw (css::uno::RuntimeException, std::exception) override { return cppu::UnoType< OneIfc >::get(); } - virtual sal_Bool SAL_CALL hasElements( ) throw (css::uno::RuntimeException, std::exception) override { return ( mXNamedVec.size() > 0 ); } + virtual css::uno::Type SAL_CALL getElementType( ) override { return cppu::UnoType< OneIfc >::get(); } + virtual sal_Bool SAL_CALL hasElements( ) override { return ( mXNamedVec.size() > 0 ); } // XNameAccess - virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) throw (css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override + virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override { if ( !hasByName(aName) ) throw css::container::NoSuchElementException(); return css::uno::makeAny( *cachePos ); } - virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( ) throw (css::uno::RuntimeException, std::exception) override + virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( ) override { css::uno::Sequence< OUString > sNames( mXNamedVec.size() ); OUString* pString = sNames.getArray(); @@ -202,7 +202,7 @@ public: } return sNames; } - virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) throw (css::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override { cachePos = mXNamedVec.begin(); typename XNamedVec::iterator it_end = mXNamedVec.end(); @@ -216,8 +216,8 @@ public: } // XElementAccess - virtual ::sal_Int32 SAL_CALL getCount( ) throw (css::uno::RuntimeException, std::exception) override { return mXNamedVec.size(); } - virtual css::uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) throw (css::lang::IndexOutOfBoundsException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception ) override + virtual ::sal_Int32 SAL_CALL getCount( ) override { return mXNamedVec.size(); } + virtual css::uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) override { if ( Index < 0 || Index >= getCount() ) throw css::lang::IndexOutOfBoundsException(); @@ -226,7 +226,7 @@ public: } // XEnumerationAccess - virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration( ) throw (css::uno::RuntimeException, std::exception) override + virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration( ) override { return new XNamedEnumerationHelper( mXNamedVec ); } @@ -243,7 +243,7 @@ protected: bool mbIgnoreCase; /// @throws css::uno::RuntimeException - virtual css::uno::Any getItemByStringIndex( const OUString& sIndex ) throw (css::uno::RuntimeException) + virtual css::uno::Any getItemByStringIndex( const OUString& sIndex ) { if ( !m_xNameAccess.is() ) throw css::uno::RuntimeException("ScVbaCollectionBase string index access not supported by this object" ); @@ -265,7 +265,7 @@ protected: /// @throws css::uno::RuntimeException /// @throws css::lang::IndexOutOfBoundsException - virtual css::uno::Any getItemByIntIndex( const sal_Int32 nIndex ) throw (css::uno::RuntimeException, css::lang::IndexOutOfBoundsException) + virtual css::uno::Any getItemByIntIndex( const sal_Int32 nIndex ) { if ( !m_xIndexAccess.is() ) throw css::uno::RuntimeException("ScVbaCollectionBase numeric index access not supported by this object" ); @@ -289,13 +289,12 @@ public: ScVbaCollectionBase( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess, bool bIgnoreCase = false ) : BaseColBase( xParent, xContext ), m_xIndexAccess( xIndexAccess ), mbIgnoreCase( bIgnoreCase ) { m_xNameAccess.set(m_xIndexAccess, css::uno::UNO_QUERY); } //XCollection - virtual ::sal_Int32 SAL_CALL getCount() throw (css::uno::RuntimeException) override + virtual ::sal_Int32 SAL_CALL getCount() override { return m_xIndexAccess->getCount(); } - virtual css::uno::Any SAL_CALL Item(const css::uno::Any& Index1, const css::uno::Any& /*not processed in this base class*/) - throw (css::lang::IndexOutOfBoundsException, css::script::BasicErrorException, css::uno::RuntimeException) override + virtual css::uno::Any SAL_CALL Item(const css::uno::Any& Index1, const css::uno::Any& /*not processed in this base class*/) override { if ( Index1.getValueTypeClass() != css::uno::TypeClass_STRING ) { @@ -314,17 +313,17 @@ public: } // XDefaultMethod - OUString SAL_CALL getDefaultMethodName( ) throw (css::uno::RuntimeException) override + OUString SAL_CALL getDefaultMethodName( ) override { return OUString("Item"); } // XEnumerationAccess - virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw (css::uno::RuntimeException) override = 0; + virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override = 0; // XElementAccess - virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException) override = 0; + virtual css::uno::Type SAL_CALL getElementType() override = 0; // XElementAccess - virtual sal_Bool SAL_CALL hasElements() throw (css::uno::RuntimeException) override + virtual sal_Bool SAL_CALL hasElements() override { return ( m_xIndexAccess->getCount() > 0 ); } @@ -340,7 +339,7 @@ class VBAHELPER_DLLPUBLIC ScVbaCollectionBaseImpl : public CollImplBase { public: /// @throws css::uno::RuntimeException - ScVbaCollectionBaseImpl( const css::uno::Reference< ov::XHelperInterface > & xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess ) throw( css::uno::RuntimeException ) : CollImplBase( xParent, xContext, xIndexAccess){} + ScVbaCollectionBaseImpl( const css::uno::Reference< ov::XHelperInterface > & xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess ) : CollImplBase( xParent, xContext, xIndexAccess){} }; @@ -351,7 +350,7 @@ typedef ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > > ImplBase; public: /// @throws css::uno::RuntimeException - CollTestImplHelper( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess, bool bIgnoreCase = false ) throw( css::uno::RuntimeException ) : ImplBase( xParent, xContext, xIndexAccess, bIgnoreCase ) {} + CollTestImplHelper( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess, bool bIgnoreCase = false ) : ImplBase( xParent, xContext, xIndexAccess, bIgnoreCase ) {} }; diff --git a/include/vbahelper/vbadialogbase.hxx b/include/vbahelper/vbadialogbase.hxx index 81ef6613dc0d..c1f368293eba 100644 --- a/include/vbahelper/vbadialogbase.hxx +++ b/include/vbahelper/vbadialogbase.hxx @@ -52,7 +52,7 @@ public: virtual ~VbaDialogBase() override {} // Methods - virtual void SAL_CALL Show() throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL Show() override; virtual OUString mapIndexToName( sal_Int32 nIndex ) = 0; }; diff --git a/include/vbahelper/vbadialogsbase.hxx b/include/vbahelper/vbadialogsbase.hxx index 5fc8255a6156..e5e13d169449 100644 --- a/include/vbahelper/vbadialogsbase.hxx +++ b/include/vbahelper/vbadialogsbase.hxx @@ -51,8 +51,8 @@ public: virtual ~VbaDialogsBase() override {} // XCollection - virtual ::sal_Int32 SAL_CALL getCount() throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL Item( const css::uno::Any& Index ) throw (css::uno::RuntimeException, std::exception) override; + virtual ::sal_Int32 SAL_CALL getCount() override; + virtual css::uno::Any SAL_CALL Item( const css::uno::Any& Index ) override; }; #endif // INCLUDED_VBAHELPER_VBADIALOGSBASE_HXX diff --git a/include/vbahelper/vbadocumentbase.hxx b/include/vbahelper/vbadocumentbase.hxx index 00e8b55fdf84..7978ccc2f3df 100644 --- a/include/vbahelper/vbadocumentbase.hxx +++ b/include/vbahelper/vbadocumentbase.hxx @@ -59,22 +59,22 @@ public: virtual ~VbaDocumentBase() override {} // Attributes - virtual OUString SAL_CALL getName() throw (css::uno::RuntimeException, std::exception) override; - virtual OUString SAL_CALL getPath() throw (css::uno::RuntimeException, std::exception) override; - virtual OUString SAL_CALL getFullName() throw (css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL getSaved() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setSaved( sal_Bool bSave ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL getVBProject() throw (css::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getName() override; + virtual OUString SAL_CALL getPath() override; + virtual OUString SAL_CALL getFullName() override; + virtual sal_Bool SAL_CALL getSaved() override; + virtual void SAL_CALL setSaved( sal_Bool bSave ) override; + virtual css::uno::Any SAL_CALL getVBProject() override; // Methods virtual void SAL_CALL Close( const css::uno::Any &bSaveChanges, const css::uno::Any &aFileName, - const css::uno::Any &bRouteWorkbook ) throw (css::uno::RuntimeException, std::exception) override; + const css::uno::Any &bRouteWorkbook ) override; /// @throws css::uno::RuntimeException - virtual void SAL_CALL Protect( const css::uno::Any &aPassword ) throw (css::uno::RuntimeException); - virtual void SAL_CALL Unprotect( const css::uno::Any &aPassword ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL Save() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL Activate() throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL Protect( const css::uno::Any &aPassword ); + virtual void SAL_CALL Unprotect( const css::uno::Any &aPassword ) override; + virtual void SAL_CALL Save() override; + virtual void SAL_CALL Activate() override; // XHelperInterface virtual OUString getServiceImplName() override; diff --git a/include/vbahelper/vbadocumentsbase.hxx b/include/vbahelper/vbadocumentsbase.hxx index 92036f3bd465..5ca030bf8855 100644 --- a/include/vbahelper/vbadocumentsbase.hxx +++ b/include/vbahelper/vbadocumentsbase.hxx @@ -60,21 +60,21 @@ private: public: /// @throws css::uno::RuntimeException - VbaDocumentsBase( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, DOCUMENT_TYPE eDocType ) throw (css::uno::RuntimeException); + VbaDocumentsBase( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, DOCUMENT_TYPE eDocType ); virtual ~VbaDocumentsBase() override {} // XEnumerationAccess - virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException) override = 0; - virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw (css::uno::RuntimeException) override = 0; + virtual css::uno::Type SAL_CALL getElementType() override = 0; + virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override = 0; // VbaDocumentsBase_BASE virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource ) override = 0; protected: /// @throws css::uno::RuntimeException - css::uno::Any createDocument() throw (css::uno::RuntimeException, std::exception); + css::uno::Any createDocument(); /// @throws css::uno::RuntimeException - css::uno::Any openDocument( const OUString& Filename, const css::uno::Any& ReadOnly, const css::uno::Sequence< css::beans::PropertyValue >& rProps ) throw (css::uno::RuntimeException); + css::uno::Any openDocument( const OUString& Filename, const css::uno::Any& ReadOnly, const css::uno::Sequence< css::beans::PropertyValue >& rProps ); }; #endif /* SC_ INCLUDED_VBAHELPER_VBADOCUMENTSBASE_HXX */ 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; diff --git a/include/vbahelper/vbafontbase.hxx b/include/vbahelper/vbafontbase.hxx index 5e452e924f7d..8ea5195f55c7 100644 --- a/include/vbahelper/vbafontbase.hxx +++ b/include/vbahelper/vbafontbase.hxx @@ -79,32 +79,32 @@ public: const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xPalette, const css::uno::Reference< css::beans::XPropertySet >& xPropertySet, - bool bFormControl = false ) throw ( css::uno::RuntimeException ); + bool bFormControl = false ); virtual ~VbaFontBase() override;// {} // Attributes - virtual css::uno::Any SAL_CALL getSize() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setSize( const css::uno::Any& _size ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL getColorIndex() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setColorIndex( const css::uno::Any& _colorindex ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL getBold() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setBold( const css::uno::Any& _bold ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL getUnderline() throw (css::uno::RuntimeException, std::exception) override = 0; - virtual void SAL_CALL setUnderline( const css::uno::Any& _underline ) throw (css::uno::RuntimeException, std::exception) override = 0; - virtual css::uno::Any SAL_CALL getStrikethrough() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setStrikethrough( const css::uno::Any& _strikethrough ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL getShadow() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setShadow( const css::uno::Any& _shadow ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL getItalic() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setItalic( const css::uno::Any& _italic ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL getSubscript() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setSubscript( const css::uno::Any& _subscript ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL getSuperscript() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setSuperscript( const css::uno::Any& _superscript ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL getName() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setName( const css::uno::Any& _name ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL getColor() throw (css::uno::RuntimeException, std::exception) override ; - virtual void SAL_CALL setColor( const css::uno::Any& _color ) throw (css::uno::RuntimeException, std::exception) override ; + virtual css::uno::Any SAL_CALL getSize() override; + virtual void SAL_CALL setSize( const css::uno::Any& _size ) override; + virtual css::uno::Any SAL_CALL getColorIndex() override; + virtual void SAL_CALL setColorIndex( const css::uno::Any& _colorindex ) override; + virtual css::uno::Any SAL_CALL getBold() override; + virtual void SAL_CALL setBold( const css::uno::Any& _bold ) override; + virtual css::uno::Any SAL_CALL getUnderline() override = 0; + virtual void SAL_CALL setUnderline( const css::uno::Any& _underline ) override = 0; + virtual css::uno::Any SAL_CALL getStrikethrough() override; + virtual void SAL_CALL setStrikethrough( const css::uno::Any& _strikethrough ) override; + virtual css::uno::Any SAL_CALL getShadow() override; + virtual void SAL_CALL setShadow( const css::uno::Any& _shadow ) override; + virtual css::uno::Any SAL_CALL getItalic() override; + virtual void SAL_CALL setItalic( const css::uno::Any& _italic ) override; + virtual css::uno::Any SAL_CALL getSubscript() override; + virtual void SAL_CALL setSubscript( const css::uno::Any& _subscript ) override; + virtual css::uno::Any SAL_CALL getSuperscript() override; + virtual void SAL_CALL setSuperscript( const css::uno::Any& _superscript ) override; + virtual css::uno::Any SAL_CALL getName() override; + virtual void SAL_CALL setName( const css::uno::Any& _name ) override; + virtual css::uno::Any SAL_CALL getColor() override ; + virtual void SAL_CALL setColor( const css::uno::Any& _color ) override ; }; #endif diff --git a/include/vbahelper/vbaglobalbase.hxx b/include/vbahelper/vbaglobalbase.hxx index 6f0de82796a6..9390f42d040a 100644 --- a/include/vbahelper/vbaglobalbase.hxx +++ b/include/vbahelper/vbaglobalbase.hxx @@ -57,9 +57,9 @@ public: VbaGlobalsBase( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const OUString& sDocCtxName ); virtual ~VbaGlobalsBase() override; // XMultiServiceFactory - virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( const OUString& aServiceSpecifier ) throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override; - virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( const OUString& ServiceSpecifier, const css::uno::Sequence< css::uno::Any >& Arguments ) throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override; - virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames( ) throw (css::uno::RuntimeException, std::exception) override; + virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( const OUString& aServiceSpecifier ) override; + virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( const OUString& ServiceSpecifier, const css::uno::Sequence< css::uno::Any >& Arguments ) override; + virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames( ) override; }; #endif diff --git a/include/vbahelper/vbahelper.hxx b/include/vbahelper/vbahelper.hxx index e24e1e70752e..2f27dc88f0a2 100644 --- a/include/vbahelper/vbahelper.hxx +++ b/include/vbahelper/vbahelper.hxx @@ -58,7 +58,7 @@ namespace ooo { /// @throws css::lang::IllegalArgumentException template < class T > - css::uno::Reference< T > getXSomethingFromArgs( css::uno::Sequence< css::uno::Any > const & args, sal_Int32 nPos, bool bCanBeNull = true ) throw (css::lang::IllegalArgumentException) + css::uno::Reference< T > getXSomethingFromArgs( css::uno::Sequence< css::uno::Any > const & args, sal_Int32 nPos, bool bCanBeNull = true ) { if ( args.getLength() < ( nPos + 1) ) throw css::lang::IllegalArgumentException(); @@ -74,23 +74,23 @@ namespace ooo VBAHELPER_DLLPUBLIC css::uno::Reference< XHelperInterface > getVBADocument( const css::uno::Reference< css::frame::XModel >& xModel ); VBAHELPER_DLLPUBLIC css::uno::Reference< XHelperInterface > getUnoDocModule( const OUString& aModName, SfxObjectShell* pShell ); /// @throws css::uno::RuntimeException - VBAHELPER_DLLPUBLIC SfxObjectShell* getSfxObjShell( const css::uno::Reference< css::frame::XModel >& xModel ) throw ( css::uno::RuntimeException); + VBAHELPER_DLLPUBLIC SfxObjectShell* getSfxObjShell( const css::uno::Reference< css::frame::XModel >& xModel ); /// @throws css::uno::RuntimeException - css::uno::Reference< css::frame::XModel > getCurrentDoc( const OUString& sKey ) throw (css::uno::RuntimeException); + css::uno::Reference< css::frame::XModel > getCurrentDoc( const OUString& sKey ); /// @throws css::uno::RuntimeException - VBAHELPER_DLLPUBLIC css::uno::Reference< css::frame::XModel > getThisExcelDoc( const css::uno::Reference< css::uno::XComponentContext >& xContext ) throw (css::uno::RuntimeException); + VBAHELPER_DLLPUBLIC css::uno::Reference< css::frame::XModel > getThisExcelDoc( const css::uno::Reference< css::uno::XComponentContext >& xContext ); /// @throws css::uno::RuntimeException - VBAHELPER_DLLPUBLIC css::uno::Reference< css::frame::XModel > getThisWordDoc( const css::uno::Reference< css::uno::XComponentContext >& xContext ) throw (css::uno::RuntimeException); + VBAHELPER_DLLPUBLIC css::uno::Reference< css::frame::XModel > getThisWordDoc( const css::uno::Reference< css::uno::XComponentContext >& xContext ); /// @throws css::uno::RuntimeException - VBAHELPER_DLLPUBLIC css::uno::Reference< css::frame::XModel > getCurrentExcelDoc( const css::uno::Reference< css::uno::XComponentContext >& xContext ) throw (css::uno::RuntimeException); + VBAHELPER_DLLPUBLIC css::uno::Reference< css::frame::XModel > getCurrentExcelDoc( const css::uno::Reference< css::uno::XComponentContext >& xContext ); /// @throws css::uno::RuntimeException - VBAHELPER_DLLPUBLIC css::uno::Reference< css::frame::XModel > getCurrentWordDoc( const css::uno::Reference< css::uno::XComponentContext >& xContext ) throw (css::uno::RuntimeException); + VBAHELPER_DLLPUBLIC css::uno::Reference< css::frame::XModel > getCurrentWordDoc( const css::uno::Reference< css::uno::XComponentContext >& xContext ); /// @throws css::uno::RuntimeException - VBAHELPER_DLLPUBLIC css::uno::Reference< css::beans::XIntrospectionAccess > getIntrospectionAccess( const css::uno::Any& aObject ) throw (css::uno::RuntimeException); + VBAHELPER_DLLPUBLIC css::uno::Reference< css::beans::XIntrospectionAccess > getIntrospectionAccess( const css::uno::Any& aObject ); /// @throws css::uno::RuntimeException - VBAHELPER_DLLPUBLIC css::uno::Reference< css::script::XTypeConverter > const & getTypeConverter( const css::uno::Reference< css::uno::XComponentContext >& xContext ) throw (css::uno::RuntimeException); + VBAHELPER_DLLPUBLIC css::uno::Reference< css::script::XTypeConverter > const & getTypeConverter( const css::uno::Reference< css::uno::XComponentContext >& xContext ); VBAHELPER_DLLPUBLIC void dispatchRequests( const css::uno::Reference< css::frame::XModel>& xModel, const OUString& aUrl ); VBAHELPER_DLLPUBLIC void dispatchRequests (const css::uno::Reference< css::frame::XModel>& xModel, const OUString & aUrl, const css::uno::Sequence< css::beans::PropertyValue >& sProps ); @@ -109,18 +109,18 @@ namespace ooo /** Extracts a boolean value from the passed Any, which may contain a Boolean or an integer or floating-point value. @throws css::uno::RuntimeException if the Any is empty or contains an incompatible type. */ - VBAHELPER_DLLPUBLIC bool extractBoolFromAny( const css::uno::Any& rAny ) throw (css::uno::RuntimeException); + VBAHELPER_DLLPUBLIC bool extractBoolFromAny( const css::uno::Any& rAny ); /** Extracts a string from the passed Any, which may contain a Boolean, a value, or a string. @throws css::uno::RuntimeException if the Any is empty or contains an incompatible type. */ - VBAHELPER_DLLPUBLIC OUString extractStringFromAny( const css::uno::Any& rAny, bool bUppercaseBool = false ) throw (css::uno::RuntimeException); + VBAHELPER_DLLPUBLIC OUString extractStringFromAny( const css::uno::Any& rAny, bool bUppercaseBool = false ); /** Extracts a string from the passed Any, which may contain a Boolean, a value, or a string. Returns rDefault, if rAny is empty. @throws css::uno::RuntimeException if the Any contains an incompatible type. */ - VBAHELPER_DLLPUBLIC OUString extractStringFromAny( const css::uno::Any& rAny, const OUString& rDefault, bool bUppercaseBool ) throw (css::uno::RuntimeException); + VBAHELPER_DLLPUBLIC OUString extractStringFromAny( const css::uno::Any& rAny, const OUString& rDefault, bool bUppercaseBool ); /// @throws css::uno::RuntimeException - VBAHELPER_DLLPUBLIC OUString getAnyAsString( const css::uno::Any& pvargItem ) throw ( css::uno::RuntimeException ); + VBAHELPER_DLLPUBLIC OUString getAnyAsString( const css::uno::Any& pvargItem ); VBAHELPER_DLLPUBLIC OUString VBAToRegexp(const OUString &rIn); // needs to be in an uno service ( already this code is duplicated in basic ) VBAHELPER_DLLPUBLIC double getPixelTo100thMillimeterConversionFactor( const css::uno::Reference< css::awt::XDevice >& xDevice, bool bVertical); VBAHELPER_DLLPUBLIC double PointsToPixels( const css::uno::Reference< css::awt::XDevice >& xDevice, double fPoints, bool bVertical); @@ -130,7 +130,7 @@ namespace ooo VBAHELPER_DLLPUBLIC PointerStyle getPointerStyle( const css::uno::Reference< css::frame::XModel >& ); VBAHELPER_DLLPUBLIC void setCursorHelper( const css::uno::Reference< css::frame::XModel >& xModel, const Pointer& rPointer, bool bOverWrite ); /// @throws css::uno::RuntimeException - VBAHELPER_DLLPUBLIC void setDefaultPropByIntrospection( const css::uno::Any& aObj, const css::uno::Any& aValue ) throw ( css::uno::RuntimeException ); + VBAHELPER_DLLPUBLIC void setDefaultPropByIntrospection( const css::uno::Any& aObj, const css::uno::Any& aValue ); VBAHELPER_DLLPUBLIC css::uno::Any getPropertyValue( const css::uno::Sequence< css::beans::PropertyValue >& aProp, const OUString& aName ); VBAHELPER_DLLPUBLIC bool setPropertyValue( css::uno::Sequence< css::beans::PropertyValue >& aProp, const OUString& aName, const css::uno::Any& aValue ); VBAHELPER_DLLPUBLIC void setOrAppendPropertyValue( css::uno::Sequence< css::beans::PropertyValue >& aProp, const OUString& aName, const css::uno::Any& aValue ); @@ -180,8 +180,7 @@ protected: public: /// @throws css::script::BasicErrorException /// @throws css::uno::RuntimeException - ShapeHelper( const css::uno::Reference< css::drawing::XShape >& _xShape) - throw (css::script::BasicErrorException, css::uno::RuntimeException); + ShapeHelper( const css::uno::Reference< css::drawing::XShape >& _xShape); double getHeight() const; void setHeight(double _fheight); @@ -263,16 +262,16 @@ class VBAHELPER_DLLPUBLIC DebugHelper { public: /// @throws css::script::BasicErrorException - static void basicexception( const OUString& DetailedMessage, const css::uno::Exception& ex, int err, const OUString& /*additionalArgument*/ ) throw( css::script::BasicErrorException ); + static void basicexception( const OUString& DetailedMessage, const css::uno::Exception& ex, int err, const OUString& /*additionalArgument*/ ); /// @throws css::script::BasicErrorException - static void basicexception( int err, const OUString& additionalArgument ) throw( css::script::BasicErrorException ); + static void basicexception( int err, const OUString& additionalArgument ); /// @throws css::script::BasicErrorException - static void basicexception( const css::uno::Exception& ex ) throw( css::script::BasicErrorException ); + static void basicexception( const css::uno::Exception& ex ); /// @throws css::script::BasicErrorException - static void runtimeexception( int err, const OUString& additionalArgument ) throw( css::uno::RuntimeException ); + static void runtimeexception( int err, const OUString& additionalArgument ); }; } // vba diff --git a/include/vbahelper/vbahelperinterface.hxx b/include/vbahelper/vbahelperinterface.hxx index 39a460b7c5ee..458cbb9e13a8 100644 --- a/include/vbahelper/vbahelperinterface.hxx +++ b/include/vbahelper/vbahelperinterface.hxx @@ -75,13 +75,13 @@ public: virtual css::uno::Sequence<OUString> getServiceNames() = 0; // XHelperInterface Methods - virtual ::sal_Int32 SAL_CALL getCreator() throw (css::script::BasicErrorException, css::uno::RuntimeException) override + virtual ::sal_Int32 SAL_CALL getCreator() override { return 0x53756E4F; } - virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL getParent( ) throw (css::script::BasicErrorException, css::uno::RuntimeException) override { return mxParent; } + virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL getParent( ) override { return mxParent; } - virtual css::uno::Any SAL_CALL Application( ) throw (css::script::BasicErrorException, css::uno::RuntimeException) override { + virtual css::uno::Any SAL_CALL Application( ) override { // The application could certainly be passed around in the context - seems // to make sense css::uno::Reference< css::container::XNameAccess > xNameAccess( mxContext, css::uno::UNO_QUERY_THROW ); @@ -89,8 +89,8 @@ public: } // XServiceInfo Methods - virtual OUString SAL_CALL getImplementationName( ) throw (css::uno::RuntimeException) override { return getServiceImplName(); } - virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (css::uno::RuntimeException) override + virtual OUString SAL_CALL getImplementationName( ) override { return getServiceImplName(); } + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override { css::uno::Sequence< OUString > sServices = getSupportedServiceNames(); const OUString* pStart = sServices.getConstArray(); @@ -100,7 +100,7 @@ public: return true; return false; } - virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (css::uno::RuntimeException) override + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override { css::uno::Sequence< OUString > aNames = getServiceNames(); return aNames; diff --git a/include/vbahelper/vbapagesetupbase.hxx b/include/vbahelper/vbapagesetupbase.hxx index d052590929ce..ce921b9fa1a1 100644 --- a/include/vbahelper/vbapagesetupbase.hxx +++ b/include/vbahelper/vbapagesetupbase.hxx @@ -51,29 +51,29 @@ protected: /// @throws css::uno::RuntimeException VbaPageSetupBase( const css::uno::Reference< ov::XHelperInterface >& xParent, - const css::uno::Reference< css::uno::XComponentContext >& xContext ) throw (css::uno::RuntimeException); + const css::uno::Reference< css::uno::XComponentContext >& xContext ); public: virtual ~VbaPageSetupBase() override {} // Attribute - virtual double SAL_CALL getTopMargin() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setTopMargin( double margin ) throw (css::uno::RuntimeException, std::exception) override; - virtual double SAL_CALL getBottomMargin() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setBottomMargin( double margin ) throw (css::uno::RuntimeException, std::exception) override; - virtual double SAL_CALL getRightMargin() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setRightMargin( double margin ) throw (css::uno::RuntimeException, std::exception) override; - virtual double SAL_CALL getLeftMargin() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setLeftMargin( double margin ) throw (css::uno::RuntimeException, std::exception) override; + virtual double SAL_CALL getTopMargin() override; + virtual void SAL_CALL setTopMargin( double margin ) override; + virtual double SAL_CALL getBottomMargin() override; + virtual void SAL_CALL setBottomMargin( double margin ) override; + virtual double SAL_CALL getRightMargin() override; + virtual void SAL_CALL setRightMargin( double margin ) override; + virtual double SAL_CALL getLeftMargin() override; + virtual void SAL_CALL setLeftMargin( double margin ) override; /// @throws css::uno::RuntimeException - virtual double SAL_CALL getHeaderMargin() throw (css::uno::RuntimeException); + virtual double SAL_CALL getHeaderMargin(); /// @throws css::uno::RuntimeException - virtual void SAL_CALL setHeaderMargin( double margin ) throw (css::uno::RuntimeException); + virtual void SAL_CALL setHeaderMargin( double margin ); /// @throws css::uno::RuntimeException - virtual double SAL_CALL getFooterMargin() throw (css::uno::RuntimeException); + virtual double SAL_CALL getFooterMargin(); /// @throws css::uno::RuntimeException - virtual void SAL_CALL setFooterMargin( double margin ) throw (css::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getOrientation() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setOrientation( sal_Int32 orientation ) throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL setFooterMargin( double margin ); + virtual sal_Int32 SAL_CALL getOrientation() override; + virtual void SAL_CALL setOrientation( sal_Int32 orientation ) override; }; #endif diff --git a/include/vbahelper/vbapropvalue.hxx b/include/vbahelper/vbapropvalue.hxx index d420c77ef10a..23d9d3e743aa 100644 --- a/include/vbahelper/vbapropvalue.hxx +++ b/include/vbahelper/vbapropvalue.hxx @@ -50,10 +50,10 @@ public: ScVbaPropValue( PropListener* pListener ); // Attributes - virtual css::uno::Any SAL_CALL getValue() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setValue( const css::uno::Any& _value ) throw (css::uno::RuntimeException, std::exception) override; + virtual css::uno::Any SAL_CALL getValue() override; + virtual void SAL_CALL setValue( const css::uno::Any& _value ) override; - OUString SAL_CALL getDefaultPropertyName() throw (css::uno::RuntimeException, std::exception) override { return OUString("Value"); } + OUString SAL_CALL getDefaultPropertyName() override { return OUString("Value"); } }; #endif //SC_VBA_PROPVALULE_HXX diff --git a/include/vbahelper/vbareturntypes.hxx b/include/vbahelper/vbareturntypes.hxx index b98e8296d284..47d74bc51530 100644 --- a/include/vbahelper/vbareturntypes.hxx +++ b/include/vbahelper/vbareturntypes.hxx @@ -37,9 +37,9 @@ namespace ooo T1 mnValue; public: DefaultReturnHelper( const T1& nValue ) : mnValue( nValue ) {} - virtual void SAL_CALL setValue( T1 nValue ) throw (css::uno::RuntimeException) SAL_OVERRIDE { mnValue = nValue; } - virtual T1 SAL_CALL getValue() throw (css::uno::RuntimeException) SAL_OVERRIDE { return mnValue; } - OUString SAL_CALL getDefaultPropertyName( ) throw (css::uno::RuntimeException) SAL_OVERRIDE { return OUString("Value"); } + virtual void SAL_CALL setValue( T1 nValue ) SAL_OVERRIDE { mnValue = nValue; } + virtual T1 SAL_CALL getValue() SAL_OVERRIDE { return mnValue; } + OUString SAL_CALL getDefaultPropertyName( ) SAL_OVERRIDE { return OUString("Value"); } }; typedef DefaultReturnHelper< sal_Int32, ov::msforms::XReturnInteger > ReturnInteger_BASE; diff --git a/include/vbahelper/vbashape.hxx b/include/vbahelper/vbashape.hxx index 8ded06cb573d..17f459fa4ad6 100644 --- a/include/vbahelper/vbashape.hxx +++ b/include/vbahelper/vbashape.hxx @@ -69,72 +69,67 @@ protected: css::uno::Any m_aRange; void addListeners(); /// @throws css::uno::RuntimeException - void removeShapeListener() throw( css::uno::RuntimeException ); + void removeShapeListener(); /// @throws css::uno::RuntimeException - void removeShapesListener() throw( css::uno::RuntimeException ); + void removeShapesListener(); virtual OUString getServiceImplName() override; virtual css::uno::Sequence<OUString> getServiceNames() override; public: /// @throws css::lang::IllegalArgumentException /// @throws css::uno::RuntimeException - ScVbaShape( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::drawing::XShape >& xShape, const css::uno::Reference< css::drawing::XShapes >& xShapes, const css::uno::Reference< css::frame::XModel >& xModel, sal_Int32 nType ) - throw (css::lang::IllegalArgumentException, css::uno::RuntimeException); + ScVbaShape( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::drawing::XShape >& xShape, const css::uno::Reference< css::drawing::XShapes >& xShapes, const css::uno::Reference< css::frame::XModel >& xModel, sal_Int32 nType ); virtual ~ScVbaShape() override; void setRange( css::uno::Any aRange ) { m_aRange = aRange; }; /// @throws css::uno::RuntimeException - static sal_Int32 getType( const css::uno::Reference< css::drawing::XShape >& rShape ) throw (css::uno::RuntimeException); + static sal_Int32 getType( const css::uno::Reference< css::drawing::XShape >& rShape ); // Attributes - virtual OUString SAL_CALL getName() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setName( const OUString& _name ) throw (css::uno::RuntimeException, std::exception) override; - virtual OUString SAL_CALL getAlternativeText() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setAlternativeText( const OUString& _name ) throw (css::uno::RuntimeException, std::exception) override; - virtual double SAL_CALL getHeight() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setHeight(double _height) - throw (css::uno::RuntimeException, std::exception) override; - virtual double SAL_CALL getWidth() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setWidth(double _width) - throw (css::uno::RuntimeException, std::exception) override; - virtual double SAL_CALL getLeft() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setLeft( double _left ) throw (css::uno::RuntimeException, std::exception) override; - virtual double SAL_CALL getTop() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setTop( double _top ) throw (css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL getVisible() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setVisible( sal_Bool _visible ) throw (css::uno::RuntimeException, std::exception) override; - virtual sal_Int32 SAL_CALL getZOrderPosition() throw (css::uno::RuntimeException, std::exception) override; - virtual sal_Int32 SAL_CALL getType() throw (css::uno::RuntimeException, std::exception) override; - virtual double SAL_CALL getRotation() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setRotation( double _rotation ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Reference< ov::msforms::XLineFormat > SAL_CALL getLine() throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Reference< ov::msforms::XFillFormat > SAL_CALL getFill() throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Reference< ov::msforms::XPictureFormat > SAL_CALL getPictureFormat() throw (css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL getLockAspectRatio() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setLockAspectRatio( sal_Bool _lockaspectratio ) throw (css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL getLockAnchor() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setLockAnchor( sal_Bool _lockanchor ) throw (css::uno::RuntimeException, std::exception) override; - virtual ::sal_Int32 SAL_CALL getRelativeHorizontalPosition() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setRelativeHorizontalPosition(::sal_Int32 _relativehorizontalposition) - throw (css::uno::RuntimeException, std::exception) override; - virtual ::sal_Int32 SAL_CALL getRelativeVerticalPosition() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setRelativeVerticalPosition(::sal_Int32 _relativeverticalposition) - throw (css::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getName() override; + virtual void SAL_CALL setName( const OUString& _name ) override; + virtual OUString SAL_CALL getAlternativeText() override; + virtual void SAL_CALL setAlternativeText( const OUString& _name ) override; + virtual double SAL_CALL getHeight() override; + virtual void SAL_CALL setHeight(double _height) override; + virtual double SAL_CALL getWidth() override; + virtual void SAL_CALL setWidth(double _width) override; + virtual double SAL_CALL getLeft() override; + virtual void SAL_CALL setLeft( double _left ) override; + virtual double SAL_CALL getTop() override; + virtual void SAL_CALL setTop( double _top ) override; + virtual sal_Bool SAL_CALL getVisible() override; + virtual void SAL_CALL setVisible( sal_Bool _visible ) override; + virtual sal_Int32 SAL_CALL getZOrderPosition() override; + virtual sal_Int32 SAL_CALL getType() override; + virtual double SAL_CALL getRotation() override; + virtual void SAL_CALL setRotation( double _rotation ) override; + virtual css::uno::Reference< ov::msforms::XLineFormat > SAL_CALL getLine() override; + virtual css::uno::Reference< ov::msforms::XFillFormat > SAL_CALL getFill() override; + virtual css::uno::Reference< ov::msforms::XPictureFormat > SAL_CALL getPictureFormat() override; + virtual sal_Bool SAL_CALL getLockAspectRatio() override; + virtual void SAL_CALL setLockAspectRatio( sal_Bool _lockaspectratio ) override; + virtual sal_Bool SAL_CALL getLockAnchor() override; + virtual void SAL_CALL setLockAnchor( sal_Bool _lockanchor ) override; + virtual ::sal_Int32 SAL_CALL getRelativeHorizontalPosition() override; + virtual void SAL_CALL setRelativeHorizontalPosition(::sal_Int32 _relativehorizontalposition) override; + virtual ::sal_Int32 SAL_CALL getRelativeVerticalPosition() override; + virtual void SAL_CALL setRelativeVerticalPosition(::sal_Int32 _relativeverticalposition) override; // Methods - virtual css::uno::Any SAL_CALL SAL_CALL TextFrame( ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL SAL_CALL WrapFormat( ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL Delete() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL ZOrder( sal_Int32 ZOrderCmd ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL IncrementRotation( double Increment ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL IncrementLeft( double Increment ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL IncrementTop( double Increment ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL ScaleHeight( double Factor, sal_Bool RelativeToOriginalSize, sal_Int32 Scale ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL ScaleWidth( double Factor, sal_Bool RelativeToOriginalSize, sal_Int32 Scale ) throw (css::uno::RuntimeException, std::exception) override; + virtual css::uno::Any SAL_CALL SAL_CALL TextFrame( ) override; + virtual css::uno::Any SAL_CALL SAL_CALL WrapFormat( ) override; + virtual void SAL_CALL Delete() override; + virtual void SAL_CALL ZOrder( sal_Int32 ZOrderCmd ) override; + virtual void SAL_CALL IncrementRotation( double Increment ) override; + virtual void SAL_CALL IncrementLeft( double Increment ) override; + virtual void SAL_CALL IncrementTop( double Increment ) override; + virtual void SAL_CALL ScaleHeight( double Factor, sal_Bool RelativeToOriginalSize, sal_Int32 Scale ) override; + virtual void SAL_CALL ScaleWidth( double Factor, sal_Bool RelativeToOriginalSize, sal_Int32 Scale ) override; // Replace?? - virtual void SAL_CALL Select( const css::uno::Any& Replace ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL ShapeRange( const css::uno::Any& index ) throw ( css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL Select( const css::uno::Any& Replace ) override; + virtual css::uno::Any SAL_CALL ShapeRange( const css::uno::Any& index ) override; // XEventListener - virtual void SAL_CALL disposing( const css::lang::EventObject& rEventObject ) throw( css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL disposing( const css::lang::EventObject& rEventObject ) override; }; #endif // INCLUDED_VBAHELPER_VBASHAPE_HXX diff --git a/include/vbahelper/vbashaperange.hxx b/include/vbahelper/vbashaperange.hxx index 736f3cfcc2b0..9a6a798c4cb0 100644 --- a/include/vbahelper/vbashaperange.hxx +++ b/include/vbahelper/vbashaperange.hxx @@ -61,42 +61,42 @@ protected: virtual OUString getServiceImplName() override; virtual css::uno::Sequence<OUString> getServiceNames() override; /// @throws css::uno::RuntimeException - css::uno::Reference< css::drawing::XShapes > const & getShapes() throw (css::uno::RuntimeException) ; + css::uno::Reference< css::drawing::XShapes > const & getShapes() ; public: ScVbaShapeRange( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xShapes, const css::uno::Reference< css::drawing::XDrawPage>& xDrawShape, const css::uno::Reference< css::frame::XModel >& xModel ); // Methods - virtual void SAL_CALL Select( ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Reference< ::ooo::vba::msforms::XShape > SAL_CALL Group() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL IncrementRotation( double Increment ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL IncrementLeft( double Increment ) throw (css::uno::RuntimeException, std::exception) override ; - virtual void SAL_CALL IncrementTop( double Increment ) throw (css::uno::RuntimeException, std::exception) override; - virtual OUString SAL_CALL getName() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setName( const OUString& _name ) throw (css::uno::RuntimeException, std::exception) override; - virtual double SAL_CALL getHeight() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setHeight( double _height ) throw (css::uno::RuntimeException, std::exception) override; - virtual double SAL_CALL getWidth() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setWidth( double _width ) throw (css::uno::RuntimeException, std::exception) override; - virtual double SAL_CALL getLeft() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setLeft( double _left ) throw (css::uno::RuntimeException, std::exception) override; - virtual double SAL_CALL getTop() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setTop( double _top ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Reference< ov::msforms::XLineFormat > SAL_CALL getLine() throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Reference< ov::msforms::XFillFormat > SAL_CALL getFill() throw (css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL getLockAspectRatio() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setLockAspectRatio( sal_Bool _lockaspectratio ) throw (css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL getLockAnchor() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setLockAnchor( sal_Bool _lockanchor ) throw (css::uno::RuntimeException, std::exception) override; - virtual ::sal_Int32 SAL_CALL getRelativeHorizontalPosition() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setRelativeHorizontalPosition( ::sal_Int32 _relativehorizontalposition ) throw (css::uno::RuntimeException, std::exception) override; - virtual ::sal_Int32 SAL_CALL getRelativeVerticalPosition() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setRelativeVerticalPosition( ::sal_Int32 _relativeverticalposition ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL SAL_CALL TextFrame( ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL SAL_CALL WrapFormat( ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL ZOrder( sal_Int32 ZOrderCmd ) throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL Select( ) override; + virtual css::uno::Reference< ::ooo::vba::msforms::XShape > SAL_CALL Group() override; + virtual void SAL_CALL IncrementRotation( double Increment ) override; + virtual void SAL_CALL IncrementLeft( double Increment ) override ; + virtual void SAL_CALL IncrementTop( double Increment ) override; + virtual OUString SAL_CALL getName() override; + virtual void SAL_CALL setName( const OUString& _name ) override; + virtual double SAL_CALL getHeight() override; + virtual void SAL_CALL setHeight( double _height ) override; + virtual double SAL_CALL getWidth() override; + virtual void SAL_CALL setWidth( double _width ) override; + virtual double SAL_CALL getLeft() override; + virtual void SAL_CALL setLeft( double _left ) override; + virtual double SAL_CALL getTop() override; + virtual void SAL_CALL setTop( double _top ) override; + virtual css::uno::Reference< ov::msforms::XLineFormat > SAL_CALL getLine() override; + virtual css::uno::Reference< ov::msforms::XFillFormat > SAL_CALL getFill() override; + virtual sal_Bool SAL_CALL getLockAspectRatio() override; + virtual void SAL_CALL setLockAspectRatio( sal_Bool _lockaspectratio ) override; + virtual sal_Bool SAL_CALL getLockAnchor() override; + virtual void SAL_CALL setLockAnchor( sal_Bool _lockanchor ) override; + virtual ::sal_Int32 SAL_CALL getRelativeHorizontalPosition() override; + virtual void SAL_CALL setRelativeHorizontalPosition( ::sal_Int32 _relativehorizontalposition ) override; + virtual ::sal_Int32 SAL_CALL getRelativeVerticalPosition() override; + virtual void SAL_CALL setRelativeVerticalPosition( ::sal_Int32 _relativeverticalposition ) override; + virtual css::uno::Any SAL_CALL SAL_CALL TextFrame( ) override; + virtual css::uno::Any SAL_CALL SAL_CALL WrapFormat( ) override; + virtual void SAL_CALL ZOrder( sal_Int32 ZOrderCmd ) override; //XEnumerationAccess - virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException) override; - virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw (css::uno::RuntimeException) override; + virtual css::uno::Type SAL_CALL getElementType() override; + virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override; // ScVbaCollectionBaseImpl virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource ) override; }; diff --git a/include/vbahelper/vbashapes.hxx b/include/vbahelper/vbashapes.hxx index 34d5336dfbaf..118ac007c270 100644 --- a/include/vbahelper/vbashapes.hxx +++ b/include/vbahelper/vbashapes.hxx @@ -64,15 +64,15 @@ protected: virtual OUString getServiceImplName() override; virtual css::uno::Sequence<OUString> getServiceNames() override; /// @throws css::uno::RuntimeException - css::uno::Reference< css::container::XIndexAccess > getShapesByArrayIndices( const css::uno::Any& Index ) throw (css::uno::RuntimeException); + css::uno::Reference< css::container::XIndexAccess > getShapesByArrayIndices( const css::uno::Any& Index ); /// @throws css::uno::RuntimeException - css::uno::Reference< css::drawing::XShape > createShape( const OUString& service ) throw (css::uno::RuntimeException); + css::uno::Reference< css::drawing::XShape > createShape( const OUString& service ); /// @throws css::uno::RuntimeException - css::uno::Any AddRectangle( sal_Int32 startX, sal_Int32 startY, sal_Int32 nLineWidth, sal_Int32 nLineHeight, const css::uno::Any& rRange ) throw (css::uno::RuntimeException); + css::uno::Any AddRectangle( sal_Int32 startX, sal_Int32 startY, sal_Int32 nLineWidth, sal_Int32 nLineHeight, const css::uno::Any& rRange ); /// @throws css::uno::RuntimeException - css::uno::Any AddEllipse( sal_Int32 startX, sal_Int32 startY, sal_Int32 nLineWidth, sal_Int32 nLineHeight, const css::uno::Any& rRange ) throw (css::uno::RuntimeException); + css::uno::Any AddEllipse( sal_Int32 startX, sal_Int32 startY, sal_Int32 nLineWidth, sal_Int32 nLineHeight, const css::uno::Any& rRange ); /// @throws css::uno::RuntimeException - css::uno::Any AddTextboxInWriter( sal_Int32 _nOrientation, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight ) throw (css::uno::RuntimeException); + css::uno::Any AddTextboxInWriter( sal_Int32 _nOrientation, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight ); OUString createName( const OUString& sName ); //TODO helperapi using a writer document //css::awt::Point calculateTopLeftMargin( css::uno::Reference< ov::XHelperInterface > xDocument ); @@ -80,20 +80,20 @@ protected: public: ScVbaShapes( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xShapes, const css::uno::Reference< css::frame::XModel >& xModel ); /// @throws css::uno::RuntimeException - static void setDefaultShapeProperties( const css::uno::Reference< css::drawing::XShape >& xShape ) throw (css::uno::RuntimeException); + static void setDefaultShapeProperties( const css::uno::Reference< css::drawing::XShape >& xShape ); static void setShape_NameProperty( const css::uno::Reference< css::drawing::XShape >& xShape, const OUString& sName ); //XEnumerationAccess - virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException) override; - virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw (css::uno::RuntimeException) override; + virtual css::uno::Type SAL_CALL getElementType() override; + virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override; - virtual void SAL_CALL SelectAll() throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL SelectAll() override; //helper::calc - virtual css::uno::Any SAL_CALL AddLine( sal_Int32 StartX, sal_Int32 StartY, sal_Int32 endX, sal_Int32 endY ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL AddShape( sal_Int32 _nType, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL AddTextbox( sal_Int32 _nOrientation, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight ) throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Reference< ov::msforms::XShapeRange > SAL_CALL Range( const css::uno::Any& shapes ) throw (css::uno::RuntimeException, std::exception) override; + virtual css::uno::Any SAL_CALL AddLine( sal_Int32 StartX, sal_Int32 StartY, sal_Int32 endX, sal_Int32 endY ) override; + virtual css::uno::Any SAL_CALL AddShape( sal_Int32 _nType, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight ) override; + virtual css::uno::Any SAL_CALL AddTextbox( sal_Int32 _nOrientation, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight ) override; + virtual css::uno::Reference< ov::msforms::XShapeRange > SAL_CALL Range( const css::uno::Any& shapes ) override; // ScVbaCollectionBaseImpl - virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource ) throw (css::uno::RuntimeException) override; + virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource ) override; }; #endif // INCLUDED_VBAHELPER_VBASHAPES_HXX diff --git a/include/vbahelper/vbatextframe.hxx b/include/vbahelper/vbatextframe.hxx index 675a52839c54..4fe32615b638 100644 --- a/include/vbahelper/vbatextframe.hxx +++ b/include/vbahelper/vbatextframe.hxx @@ -59,19 +59,19 @@ public: VbaTextFrame( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext , css::uno::Reference< css::drawing::XShape > const & xShape); virtual ~VbaTextFrame() override {} // Attributes - virtual sal_Bool SAL_CALL getAutoSize() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setAutoSize( sal_Bool _autosize ) throw (css::uno::RuntimeException, std::exception) override; - virtual float SAL_CALL getMarginBottom() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setMarginBottom( float _marginbottom ) throw (css::uno::RuntimeException, std::exception) override; - virtual float SAL_CALL getMarginTop() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setMarginTop( float _margintop ) throw (css::uno::RuntimeException, std::exception) override; - virtual float SAL_CALL getMarginLeft() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setMarginLeft( float _marginleft ) throw (css::uno::RuntimeException, std::exception) override; - virtual float SAL_CALL getMarginRight() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setMarginRight( float _marginright ) throw (css::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL getAutoSize() override; + virtual void SAL_CALL setAutoSize( sal_Bool _autosize ) override; + virtual float SAL_CALL getMarginBottom() override; + virtual void SAL_CALL setMarginBottom( float _marginbottom ) override; + virtual float SAL_CALL getMarginTop() override; + virtual void SAL_CALL setMarginTop( float _margintop ) override; + virtual float SAL_CALL getMarginLeft() override; + virtual void SAL_CALL setMarginLeft( float _marginleft ) override; + virtual float SAL_CALL getMarginRight() override; + virtual void SAL_CALL setMarginRight( float _marginright ) override; // Methods - virtual css::uno::Any SAL_CALL Characters( ) throw (css::uno::RuntimeException, std::exception) override; + virtual css::uno::Any SAL_CALL Characters( ) override; }; diff --git a/include/vbahelper/vbawindowbase.hxx b/include/vbahelper/vbawindowbase.hxx index b91e63f06dd9..64f70b0edf35 100644 --- a/include/vbahelper/vbawindowbase.hxx +++ b/include/vbahelper/vbawindowbase.hxx @@ -56,25 +56,23 @@ public: const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::frame::XModel >& xModel, - const css::uno::Reference< css::frame::XController >& xController ) - throw (css::uno::RuntimeException); + const css::uno::Reference< css::frame::XController >& xController ); /// @throws css::uno::RuntimeException VbaWindowBase( css::uno::Sequence< css::uno::Any > const& aArgs, - css::uno::Reference< css::uno::XComponentContext > const& xContext ) - throw (css::uno::RuntimeException); + css::uno::Reference< css::uno::XComponentContext > const& xContext ); // XWindowBase - virtual sal_Int32 SAL_CALL getHeight() throw (css::uno::RuntimeException, std::exception) override ; - virtual void SAL_CALL setHeight( sal_Int32 _height ) throw (css::uno::RuntimeException, std::exception) override ; - virtual sal_Int32 SAL_CALL getLeft() throw (css::uno::RuntimeException, std::exception) override ; - virtual void SAL_CALL setLeft( sal_Int32 _left ) throw (css::uno::RuntimeException, std::exception) override ; - virtual sal_Int32 SAL_CALL getTop() throw (css::uno::RuntimeException, std::exception) override ; - virtual void SAL_CALL setTop( sal_Int32 _top ) throw (css::uno::RuntimeException, std::exception) override ; - virtual sal_Bool SAL_CALL getVisible() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setVisible( sal_Bool _visible ) throw (css::uno::RuntimeException, std::exception) override; - virtual sal_Int32 SAL_CALL getWidth() throw (css::uno::RuntimeException, std::exception) override ; - virtual void SAL_CALL setWidth( sal_Int32 _width ) throw (css::uno::RuntimeException, std::exception) override ; + virtual sal_Int32 SAL_CALL getHeight() override ; + virtual void SAL_CALL setHeight( sal_Int32 _height ) override ; + virtual sal_Int32 SAL_CALL getLeft() override ; + virtual void SAL_CALL setLeft( sal_Int32 _left ) override ; + virtual sal_Int32 SAL_CALL getTop() override ; + virtual void SAL_CALL setTop( sal_Int32 _top ) override ; + virtual sal_Bool SAL_CALL getVisible() override; + virtual void SAL_CALL setVisible( sal_Bool _visible ) override; + virtual sal_Int32 SAL_CALL getWidth() override ; + virtual void SAL_CALL setWidth( sal_Int32 _width ) override ; // XHelperInterface virtual OUString getServiceImplName() override; @@ -82,17 +80,17 @@ public: protected: /// @throws css::uno::RuntimeException - css::uno::Reference< css::frame::XController > getController() throw (css::uno::RuntimeException); + css::uno::Reference< css::frame::XController > getController(); /// @throws css::uno::RuntimeException - css::uno::Reference< css::awt::XWindow > getWindow() throw (css::uno::RuntimeException); + css::uno::Reference< css::awt::XWindow > getWindow(); /// @throws css::uno::RuntimeException - css::uno::Reference< css::awt::XWindow2 > getWindow2() throw (css::uno::RuntimeException); + css::uno::Reference< css::awt::XWindow2 > getWindow2(); css::uno::Reference< css::frame::XModel > m_xModel; private: /// @throws css::uno::RuntimeException - void construct( const css::uno::Reference< css::frame::XController >& xController ) throw (css::uno::RuntimeException); + void construct( const css::uno::Reference< css::frame::XController >& xController ); css::uno::WeakReference< css::frame::XController > m_xController; css::uno::WeakReference< css::awt::XWindow > m_xWindow; |