diff options
Diffstat (limited to 'sc/source/ui/vba/vbaglobals.cxx')
-rw-r--r-- | sc/source/ui/vba/vbaglobals.cxx | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/sc/source/ui/vba/vbaglobals.cxx b/sc/source/ui/vba/vbaglobals.cxx index b0159503071f..598390fc8074 100644 --- a/sc/source/ui/vba/vbaglobals.cxx +++ b/sc/source/ui/vba/vbaglobals.cxx @@ -56,7 +56,7 @@ ScVbaGlobals::~ScVbaGlobals() // XGlobals uno::Reference<excel::XApplication > const & -ScVbaGlobals::getApplication() throw (uno::RuntimeException) +ScVbaGlobals::getApplication() { if ( !mxApplication.is() ) mxApplication.set( new ScVbaApplication( mxContext) ); @@ -64,13 +64,13 @@ ScVbaGlobals::getApplication() throw (uno::RuntimeException) } uno::Reference<excel::XApplication > SAL_CALL -ScVbaGlobals::getExcel() throw (uno::RuntimeException, std::exception) +ScVbaGlobals::getExcel() { return getApplication(); } uno::Reference< excel::XWorkbook > SAL_CALL -ScVbaGlobals::getActiveWorkbook() throw (uno::RuntimeException, std::exception) +ScVbaGlobals::getActiveWorkbook() { uno::Reference< excel::XWorkbook > xWorkbook( getApplication()->getActiveWorkbook(), uno::UNO_QUERY); if ( xWorkbook.is() ) @@ -82,131 +82,131 @@ ScVbaGlobals::getActiveWorkbook() throw (uno::RuntimeException, std::exception) } uno::Reference< excel::XWindow > SAL_CALL -ScVbaGlobals::getActiveWindow() throw (uno::RuntimeException, std::exception) +ScVbaGlobals::getActiveWindow() { return getApplication()->getActiveWindow(); } uno::Reference< excel::XWorksheet > SAL_CALL -ScVbaGlobals::getActiveSheet() throw (uno::RuntimeException, std::exception) +ScVbaGlobals::getActiveSheet() { return getApplication()->getActiveSheet(); } uno::Any SAL_CALL -ScVbaGlobals::WorkBooks( const uno::Any& aIndex ) throw (uno::RuntimeException, std::exception) +ScVbaGlobals::WorkBooks( const uno::Any& aIndex ) { return uno::Any( getApplication()->Workbooks(aIndex) ); } uno::Any SAL_CALL -ScVbaGlobals::WorkSheets(const uno::Any& aIndex) throw (uno::RuntimeException, std::exception) +ScVbaGlobals::WorkSheets(const uno::Any& aIndex) { return getApplication()->Worksheets( aIndex ); } uno::Any SAL_CALL -ScVbaGlobals::Sheets( const uno::Any& aIndex ) throw (uno::RuntimeException, std::exception) +ScVbaGlobals::Sheets( const uno::Any& aIndex ) { return WorkSheets( aIndex ); } uno::Any SAL_CALL -ScVbaGlobals::Range( const uno::Any& Cell1, const uno::Any& Cell2 ) throw (uno::RuntimeException, std::exception) +ScVbaGlobals::Range( const uno::Any& Cell1, const uno::Any& Cell2 ) { return getApplication()->Range( Cell1, Cell2 ); } uno::Any SAL_CALL -ScVbaGlobals::Names( const css::uno::Any& aIndex ) throw ( uno::RuntimeException, std::exception ) +ScVbaGlobals::Names( const css::uno::Any& aIndex ) { return getApplication()->Names( aIndex ); } uno::Reference< excel::XRange > SAL_CALL -ScVbaGlobals::getActiveCell() throw (uno::RuntimeException, std::exception) +ScVbaGlobals::getActiveCell() { return getApplication()->getActiveCell(); } uno::Reference< XAssistant > SAL_CALL -ScVbaGlobals::getAssistant() throw (uno::RuntimeException, std::exception) +ScVbaGlobals::getAssistant() { return getApplication()->getAssistant(); } uno::Any SAL_CALL -ScVbaGlobals::getSelection() throw (uno::RuntimeException, std::exception) +ScVbaGlobals::getSelection() { return getApplication()->getSelection(); } uno::Reference< excel::XWorkbook > SAL_CALL -ScVbaGlobals::getThisWorkbook() throw (uno::RuntimeException, std::exception) +ScVbaGlobals::getThisWorkbook() { return getApplication()->getThisWorkbook(); } void SAL_CALL -ScVbaGlobals::Calculate() throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) +ScVbaGlobals::Calculate() { return getApplication()->Calculate(); } uno::Reference< excel::XRange > SAL_CALL -ScVbaGlobals::Cells( const uno::Any& RowIndex, const uno::Any& ColumnIndex ) throw (uno::RuntimeException, std::exception) +ScVbaGlobals::Cells( const uno::Any& RowIndex, const uno::Any& ColumnIndex ) { return getApplication()->getActiveSheet()->Cells( RowIndex, ColumnIndex ); } uno::Reference< excel::XRange > SAL_CALL -ScVbaGlobals::Columns( const uno::Any& aIndex ) throw (uno::RuntimeException, std::exception) +ScVbaGlobals::Columns( const uno::Any& aIndex ) { return getApplication()->getActiveSheet()->Columns( aIndex ); } uno::Any SAL_CALL -ScVbaGlobals::CommandBars( const uno::Any& aIndex ) throw (uno::RuntimeException, std::exception) +ScVbaGlobals::CommandBars( const uno::Any& aIndex ) { uno::Reference< XApplicationBase > xBase( getApplication(), uno::UNO_QUERY_THROW ); return xBase->CommandBars( aIndex ); } css::uno::Reference< ov::excel::XRange > SAL_CALL -ScVbaGlobals::Union( const css::uno::Reference< ov::excel::XRange >& Arg1, const css::uno::Reference< ov::excel::XRange >& Arg2, const css::uno::Any& Arg3, const css::uno::Any& Arg4, const css::uno::Any& Arg5, const css::uno::Any& Arg6, const css::uno::Any& Arg7, const css::uno::Any& Arg8, const css::uno::Any& Arg9, const css::uno::Any& Arg10, const css::uno::Any& Arg11, const css::uno::Any& Arg12, const css::uno::Any& Arg13, const css::uno::Any& Arg14, const css::uno::Any& Arg15, const css::uno::Any& Arg16, const css::uno::Any& Arg17, const css::uno::Any& Arg18, const css::uno::Any& Arg19, const css::uno::Any& Arg20, const css::uno::Any& Arg21, const css::uno::Any& Arg22, const css::uno::Any& Arg23, const css::uno::Any& Arg24, const css::uno::Any& Arg25, const css::uno::Any& Arg26, const css::uno::Any& Arg27, const css::uno::Any& Arg28, const css::uno::Any& Arg29, const css::uno::Any& Arg30 ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) +ScVbaGlobals::Union( const css::uno::Reference< ov::excel::XRange >& Arg1, const css::uno::Reference< ov::excel::XRange >& Arg2, const css::uno::Any& Arg3, const css::uno::Any& Arg4, const css::uno::Any& Arg5, const css::uno::Any& Arg6, const css::uno::Any& Arg7, const css::uno::Any& Arg8, const css::uno::Any& Arg9, const css::uno::Any& Arg10, const css::uno::Any& Arg11, const css::uno::Any& Arg12, const css::uno::Any& Arg13, const css::uno::Any& Arg14, const css::uno::Any& Arg15, const css::uno::Any& Arg16, const css::uno::Any& Arg17, const css::uno::Any& Arg18, const css::uno::Any& Arg19, const css::uno::Any& Arg20, const css::uno::Any& Arg21, const css::uno::Any& Arg22, const css::uno::Any& Arg23, const css::uno::Any& Arg24, const css::uno::Any& Arg25, const css::uno::Any& Arg26, const css::uno::Any& Arg27, const css::uno::Any& Arg28, const css::uno::Any& Arg29, const css::uno::Any& Arg30 ) { return getApplication()->Union( Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14, Arg15, Arg16, Arg17, Arg18, Arg19, Arg20, Arg21, Arg22, Arg23, Arg24, Arg25, Arg26, Arg27, Arg28, Arg29, Arg30 ); } css::uno::Reference< ov::excel::XRange > SAL_CALL -ScVbaGlobals::Intersect( const css::uno::Reference< ov::excel::XRange >& Arg1, const css::uno::Reference< ov::excel::XRange >& Arg2, const css::uno::Any& Arg3, const css::uno::Any& Arg4, const css::uno::Any& Arg5, const css::uno::Any& Arg6, const css::uno::Any& Arg7, const css::uno::Any& Arg8, const css::uno::Any& Arg9, const css::uno::Any& Arg10, const css::uno::Any& Arg11, const css::uno::Any& Arg12, const css::uno::Any& Arg13, const css::uno::Any& Arg14, const css::uno::Any& Arg15, const css::uno::Any& Arg16, const css::uno::Any& Arg17, const css::uno::Any& Arg18, const css::uno::Any& Arg19, const css::uno::Any& Arg20, const css::uno::Any& Arg21, const css::uno::Any& Arg22, const css::uno::Any& Arg23, const css::uno::Any& Arg24, const css::uno::Any& Arg25, const css::uno::Any& Arg26, const css::uno::Any& Arg27, const css::uno::Any& Arg28, const css::uno::Any& Arg29, const css::uno::Any& Arg30 ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) +ScVbaGlobals::Intersect( const css::uno::Reference< ov::excel::XRange >& Arg1, const css::uno::Reference< ov::excel::XRange >& Arg2, const css::uno::Any& Arg3, const css::uno::Any& Arg4, const css::uno::Any& Arg5, const css::uno::Any& Arg6, const css::uno::Any& Arg7, const css::uno::Any& Arg8, const css::uno::Any& Arg9, const css::uno::Any& Arg10, const css::uno::Any& Arg11, const css::uno::Any& Arg12, const css::uno::Any& Arg13, const css::uno::Any& Arg14, const css::uno::Any& Arg15, const css::uno::Any& Arg16, const css::uno::Any& Arg17, const css::uno::Any& Arg18, const css::uno::Any& Arg19, const css::uno::Any& Arg20, const css::uno::Any& Arg21, const css::uno::Any& Arg22, const css::uno::Any& Arg23, const css::uno::Any& Arg24, const css::uno::Any& Arg25, const css::uno::Any& Arg26, const css::uno::Any& Arg27, const css::uno::Any& Arg28, const css::uno::Any& Arg29, const css::uno::Any& Arg30 ) { return getApplication()->Intersect( Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14, Arg15, Arg16, Arg17, Arg18, Arg19, Arg20, Arg21, Arg22, Arg23, Arg24, Arg25, Arg26, Arg27, Arg28, Arg29, Arg30 ); } uno::Any SAL_CALL -ScVbaGlobals::Evaluate( const OUString& Name ) throw (uno::RuntimeException, std::exception) +ScVbaGlobals::Evaluate( const OUString& Name ) { return getApplication()->Evaluate( Name ); } css::uno::Any SAL_CALL -ScVbaGlobals::WorksheetFunction( ) throw (css::uno::RuntimeException, std::exception) +ScVbaGlobals::WorksheetFunction( ) { return getApplication()->WorksheetFunction(); } uno::Any SAL_CALL -ScVbaGlobals::Windows( const uno::Any& aIndex ) throw (uno::RuntimeException, std::exception) +ScVbaGlobals::Windows( const uno::Any& aIndex ) { return getApplication()->Windows( aIndex ); } uno::Reference< excel::XRange > SAL_CALL -ScVbaGlobals::Rows( const uno::Any& aIndex ) throw (uno::RuntimeException, std::exception) +ScVbaGlobals::Rows( const uno::Any& aIndex ) { return getApplication()->getActiveSheet()->Rows( aIndex ); } uno::Any SAL_CALL -ScVbaGlobals::getDebug() throw (uno::RuntimeException, std::exception) +ScVbaGlobals::getDebug() { try // return empty object on error { @@ -222,13 +222,13 @@ ScVbaGlobals::getDebug() throw (uno::RuntimeException, std::exception) } uno::Any SAL_CALL -ScVbaGlobals::MenuBars( const uno::Any& aIndex ) throw (uno::RuntimeException, std::exception) +ScVbaGlobals::MenuBars( const uno::Any& aIndex ) { return uno::Any( getApplication()->MenuBars(aIndex) ); } uno::Sequence< OUString > SAL_CALL -ScVbaGlobals::getAvailableServiceNames( ) throw (uno::RuntimeException, std::exception) +ScVbaGlobals::getAvailableServiceNames( ) { static bool bInit = false; static uno::Sequence< OUString > serviceNames( ScVbaGlobals_BASE::getAvailableServiceNames() ); |