summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbaapplication.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbaapplication.cxx')
-rw-r--r--sw/source/ui/vba/vbaapplication.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx
index 6922ccee9867..282ca8979bfd 100644
--- a/sw/source/ui/vba/vbaapplication.cxx
+++ b/sw/source/ui/vba/vbaapplication.cxx
@@ -47,19 +47,19 @@ SwVbaApplication::~SwVbaApplication()
}
OUString SAL_CALL
-SwVbaApplication::getName() throw (uno::RuntimeException, std::exception)
+SwVbaApplication::getName()
{
return OUString("Microsoft Word" );
}
uno::Reference< word::XDocument > SAL_CALL
-SwVbaApplication::getActiveDocument() throw (uno::RuntimeException, std::exception)
+SwVbaApplication::getActiveDocument()
{
return new SwVbaDocument( this, mxContext, getCurrentDocument() );
}
uno::Reference< word::XWindow > SAL_CALL
-SwVbaApplication::getActiveWindow() throw (uno::RuntimeException, std::exception)
+SwVbaApplication::getActiveWindow()
{
// #FIXME so far can't determine Parent
uno::Reference< frame::XModel > xModel( getCurrentDocument(), uno::UNO_SET_THROW );
@@ -68,31 +68,31 @@ SwVbaApplication::getActiveWindow() throw (uno::RuntimeException, std::exception
}
uno::Reference<word::XSystem > SAL_CALL
-SwVbaApplication::getSystem() throw (uno::RuntimeException, std::exception)
+SwVbaApplication::getSystem()
{
return uno::Reference< word::XSystem >( new SwVbaSystem( mxContext ) );
}
uno::Reference<word::XOptions > SAL_CALL
-SwVbaApplication::getOptions() throw (uno::RuntimeException, std::exception)
+SwVbaApplication::getOptions()
{
return uno::Reference< word::XOptions >( new SwVbaOptions( mxContext ) );
}
uno::Any SAL_CALL
-SwVbaApplication::CommandBars( const uno::Any& aIndex ) throw (uno::RuntimeException, std::exception)
+SwVbaApplication::CommandBars( const uno::Any& aIndex )
{
return VbaApplicationBase::CommandBars( aIndex );
}
uno::Reference< word::XSelection > SAL_CALL
-SwVbaApplication::getSelection() throw (uno::RuntimeException, std::exception)
+SwVbaApplication::getSelection()
{
return new SwVbaSelection( this, mxContext, getCurrentDocument() );
}
uno::Any SAL_CALL
-SwVbaApplication::Documents( const uno::Any& index ) throw (uno::RuntimeException, std::exception)
+SwVbaApplication::Documents( const uno::Any& index )
{
uno::Reference< XCollection > xCol( new SwVbaDocuments( this, mxContext ) );
if ( index.hasValue() )
@@ -101,7 +101,7 @@ SwVbaApplication::Documents( const uno::Any& index ) throw (uno::RuntimeExceptio
}
uno::Any SAL_CALL
-SwVbaApplication::Addins( const uno::Any& index ) throw (uno::RuntimeException, std::exception)
+SwVbaApplication::Addins( const uno::Any& index )
{
static uno::Reference< XCollection > xCol( new SwVbaAddins( this, mxContext ) );
if ( index.hasValue() )
@@ -110,7 +110,7 @@ SwVbaApplication::Addins( const uno::Any& index ) throw (uno::RuntimeException,
}
uno::Any SAL_CALL
-SwVbaApplication::Dialogs( const uno::Any& index ) throw (uno::RuntimeException, std::exception)
+SwVbaApplication::Dialogs( const uno::Any& index )
{
uno::Reference< word::XDialogs > xCol( new SwVbaDialogs( this, mxContext, getCurrentDocument() ));
if ( index.hasValue() )
@@ -119,7 +119,7 @@ SwVbaApplication::Dialogs( const uno::Any& index ) throw (uno::RuntimeException,
}
uno::Any SAL_CALL
-SwVbaApplication::ListGalleries( const uno::Any& index ) throw (uno::RuntimeException, std::exception)
+SwVbaApplication::ListGalleries( const uno::Any& index )
{
uno::Reference< text::XTextDocument > xTextDoc( getCurrentDocument(), uno::UNO_QUERY_THROW );
uno::Reference< XCollection > xCol( new SwVbaListGalleries( this, mxContext, xTextDoc ) );
@@ -128,34 +128,34 @@ SwVbaApplication::ListGalleries( const uno::Any& index ) throw (uno::RuntimeExce
return uno::makeAny( xCol );
}
-sal_Bool SAL_CALL SwVbaApplication::getDisplayAutoCompleteTips() throw (css::uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL SwVbaApplication::getDisplayAutoCompleteTips()
{
return SvxAutoCorrCfg::Get().IsAutoTextTip();
}
-void SAL_CALL SwVbaApplication::setDisplayAutoCompleteTips( sal_Bool _displayAutoCompleteTips ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL SwVbaApplication::setDisplayAutoCompleteTips( sal_Bool _displayAutoCompleteTips )
{
SvxAutoCorrCfg::Get().SetAutoTextTip( _displayAutoCompleteTips );
}
-sal_Int32 SAL_CALL SwVbaApplication::getEnableCancelKey() throw (css::uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL SwVbaApplication::getEnableCancelKey()
{
// the default value is wdCancelInterrupt in Word
return word::WdEnableCancelKey::wdCancelInterrupt;
}
-void SAL_CALL SwVbaApplication::setEnableCancelKey( sal_Int32/* _enableCancelKey */) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL SwVbaApplication::setEnableCancelKey( sal_Int32/* _enableCancelKey */)
{
// seems not supported in Writer
}
-float SAL_CALL SwVbaApplication::CentimetersToPoints( float Centimeters ) throw (uno::RuntimeException, std::exception)
+float SAL_CALL SwVbaApplication::CentimetersToPoints( float Centimeters )
{
return VbaApplicationBase::CentimetersToPoints( Centimeters );
}
uno::Reference< frame::XModel >
-SwVbaApplication::getCurrentDocument() throw (css::uno::RuntimeException)
+SwVbaApplication::getCurrentDocument()
{
return getCurrentWordDoc( mxContext );
}