summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 12:28:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 12:54:43 +0000
commite57ca02849c3d87142ff5ff9099a212e72b8139c (patch)
treebcce66b27261553c308779f3e8663a269ed3a671 /vbahelper
parent8802ebd5172ec4bc412a59d136c82b77ab452281 (diff)
Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/msforms/vbabutton.cxx30
-rw-r--r--vbahelper/source/msforms/vbabutton.hxx30
-rw-r--r--vbahelper/source/msforms/vbacheckbox.cxx22
-rw-r--r--vbahelper/source/msforms/vbacheckbox.hxx24
-rw-r--r--vbahelper/source/msforms/vbacombobox.cxx68
-rw-r--r--vbahelper/source/msforms/vbacombobox.hxx70
-rw-r--r--vbahelper/source/msforms/vbacontrol.cxx87
-rw-r--r--vbahelper/source/msforms/vbacontrol.hxx82
-rw-r--r--vbahelper/source/msforms/vbacontrols.cxx26
-rw-r--r--vbahelper/source/msforms/vbacontrols.hxx10
-rw-r--r--vbahelper/source/msforms/vbaframe.cxx16
-rw-r--r--vbahelper/source/msforms/vbaframe.hxx18
-rw-r--r--vbahelper/source/msforms/vbaimage.cxx4
-rw-r--r--vbahelper/source/msforms/vbaimage.hxx4
-rw-r--r--vbahelper/source/msforms/vbalabel.cxx22
-rw-r--r--vbahelper/source/msforms/vbalabel.hxx24
-rw-r--r--vbahelper/source/msforms/vbalistbox.cxx32
-rw-r--r--vbahelper/source/msforms/vbalistbox.hxx34
-rw-r--r--vbahelper/source/msforms/vbalistcontrolhelper.cxx12
-rw-r--r--vbahelper/source/msforms/vbalistcontrolhelper.hxx12
-rw-r--r--vbahelper/source/msforms/vbamultipage.cxx14
-rw-r--r--vbahelper/source/msforms/vbamultipage.hxx6
-rw-r--r--vbahelper/source/msforms/vbanewfont.cxx34
-rw-r--r--vbahelper/source/msforms/vbanewfont.hxx34
-rw-r--r--vbahelper/source/msforms/vbapages.cxx6
-rw-r--r--vbahelper/source/msforms/vbapages.hxx6
-rw-r--r--vbahelper/source/msforms/vbaprogressbar.cxx4
-rw-r--r--vbahelper/source/msforms/vbaprogressbar.hxx6
-rw-r--r--vbahelper/source/msforms/vbaradiobutton.cxx10
-rw-r--r--vbahelper/source/msforms/vbaradiobutton.hxx12
-rw-r--r--vbahelper/source/msforms/vbascrollbar.cxx20
-rw-r--r--vbahelper/source/msforms/vbascrollbar.hxx20
-rw-r--r--vbahelper/source/msforms/vbaspinbutton.cxx12
-rw-r--r--vbahelper/source/msforms/vbaspinbutton.hxx12
-rw-r--r--vbahelper/source/msforms/vbasystemaxcontrol.cxx6
-rw-r--r--vbahelper/source/msforms/vbasystemaxcontrol.hxx12
-rw-r--r--vbahelper/source/msforms/vbatextbox.cxx40
-rw-r--r--vbahelper/source/msforms/vbatextbox.hxx42
-rw-r--r--vbahelper/source/msforms/vbatogglebutton.cxx34
-rw-r--r--vbahelper/source/msforms/vbatogglebutton.hxx36
-rw-r--r--vbahelper/source/msforms/vbauserform.cxx40
-rw-r--r--vbahelper/source/msforms/vbauserform.hxx40
-rw-r--r--vbahelper/source/vbahelper/vbaapplicationbase.cxx30
-rw-r--r--vbahelper/source/vbahelper/vbacolorformat.cxx8
-rw-r--r--vbahelper/source/vbahelper/vbacolorformat.hxx8
-rw-r--r--vbahelper/source/vbahelper/vbacommandbar.cxx44
-rw-r--r--vbahelper/source/vbahelper/vbacommandbar.hxx44
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarcontrol.cxx32
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarcontrol.hxx38
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarcontrols.cxx32
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarcontrols.hxx20
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarhelper.cxx18
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarhelper.hxx20
-rw-r--r--vbahelper/source/vbahelper/vbacommandbars.cxx18
-rw-r--r--vbahelper/source/vbahelper/vbacommandbars.hxx12
-rw-r--r--vbahelper/source/vbahelper/vbadialogbase.cxx2
-rw-r--r--vbahelper/source/vbahelper/vbadialogsbase.cxx4
-rw-r--r--vbahelper/source/vbahelper/vbadocumentbase.cxx22
-rw-r--r--vbahelper/source/vbahelper/vbadocumentsbase.cxx32
-rw-r--r--vbahelper/source/vbahelper/vbaeventshelperbase.cxx19
-rw-r--r--vbahelper/source/vbahelper/vbafillformat.cxx20
-rw-r--r--vbahelper/source/vbahelper/vbafillformat.hxx20
-rw-r--r--vbahelper/source/vbahelper/vbafontbase.cxx42
-rw-r--r--vbahelper/source/vbahelper/vbaglobalbase.cxx6
-rw-r--r--vbahelper/source/vbahelper/vbahelper.cxx37
-rw-r--r--vbahelper/source/vbahelper/vbalineformat.cxx50
-rw-r--r--vbahelper/source/vbahelper/vbalineformat.hxx50
-rw-r--r--vbahelper/source/vbahelper/vbapagesetupbase.cxx30
-rw-r--r--vbahelper/source/vbahelper/vbapictureformat.cxx15
-rw-r--r--vbahelper/source/vbahelper/vbapictureformat.hxx17
-rw-r--r--vbahelper/source/vbahelper/vbapropvalue.cxx4
-rw-r--r--vbahelper/source/vbahelper/vbashape.cxx85
-rw-r--r--vbahelper/source/vbahelper/vbashaperange.cxx66
-rw-r--r--vbahelper/source/vbahelper/vbashapes.cxx32
-rw-r--r--vbahelper/source/vbahelper/vbatextframe.cxx22
-rw-r--r--vbahelper/source/vbahelper/vbawindowbase.cxx32
76 files changed, 989 insertions, 1015 deletions
diff --git a/vbahelper/source/msforms/vbabutton.cxx b/vbahelper/source/msforms/vbabutton.cxx
index cfae8b095f58..5070bade10b2 100644
--- a/vbahelper/source/msforms/vbabutton.cxx
+++ b/vbahelper/source/msforms/vbabutton.cxx
@@ -29,7 +29,7 @@ VbaButton::VbaButton( const uno::Reference< XHelperInterface >& xParent, const u
// Attributes
OUString SAL_CALL
-VbaButton::getCaption() throw (css::uno::RuntimeException, std::exception)
+VbaButton::getCaption()
{
OUString Label;
m_xProps->getPropertyValue( "Label" ) >>= Label;
@@ -37,73 +37,73 @@ VbaButton::getCaption() throw (css::uno::RuntimeException, std::exception)
}
void SAL_CALL
-VbaButton::setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception)
+VbaButton::setCaption( const OUString& _caption )
{
m_xProps->setPropertyValue( "Label", uno::makeAny( _caption ) );
}
-sal_Bool SAL_CALL VbaButton::getAutoSize() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL VbaButton::getAutoSize()
{
return ScVbaControl::getAutoSize();
}
-void SAL_CALL VbaButton::setAutoSize( sal_Bool bAutoSize ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaButton::setAutoSize( sal_Bool bAutoSize )
{
ScVbaControl::setAutoSize( bAutoSize );
}
-sal_Bool SAL_CALL VbaButton::getLocked() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL VbaButton::getLocked()
{
return ScVbaControl::getLocked();
}
-void SAL_CALL VbaButton::setLocked( sal_Bool bLocked ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaButton::setLocked( sal_Bool bLocked )
{
ScVbaControl::setLocked( bLocked );
}
-sal_Bool SAL_CALL VbaButton::getCancel() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL VbaButton::getCancel()
{
return false;
}
-void SAL_CALL VbaButton::setCancel( sal_Bool /*bCancel*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaButton::setCancel( sal_Bool /*bCancel*/ )
{
// #STUB
}
-sal_Bool SAL_CALL VbaButton::getDefault() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL VbaButton::getDefault()
{
// #STUB
return false;
}
-void SAL_CALL VbaButton::setDefault( sal_Bool /*bDefault*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaButton::setDefault( sal_Bool /*bDefault*/ )
{
// #STUB
}
-sal_Int32 SAL_CALL VbaButton::getBackColor() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL VbaButton::getBackColor()
{
return ScVbaControl::getBackColor();
}
-void SAL_CALL VbaButton::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaButton::setBackColor( sal_Int32 nBackColor )
{
ScVbaControl::setBackColor( nBackColor );
}
-sal_Int32 SAL_CALL VbaButton::getForeColor() throw (uno::RuntimeException)
+sal_Int32 SAL_CALL VbaButton::getForeColor()
{
return ScVbaControl::getForeColor();
}
-void SAL_CALL VbaButton::setForeColor( sal_Int32 /*nForeColor*/ ) throw (uno::RuntimeException)
+void SAL_CALL VbaButton::setForeColor( sal_Int32 /*nForeColor*/ )
{
// #STUB
}
-uno::Reference< msforms::XNewFont > SAL_CALL VbaButton::getFont() throw (uno::RuntimeException, std::exception)
+uno::Reference< msforms::XNewFont > SAL_CALL VbaButton::getFont()
{
return new VbaNewFont( m_xProps );
}
diff --git a/vbahelper/source/msforms/vbabutton.hxx b/vbahelper/source/msforms/vbabutton.hxx
index 868496b70b5d..af6ab6a10d65 100644
--- a/vbahelper/source/msforms/vbabutton.hxx
+++ b/vbahelper/source/msforms/vbabutton.hxx
@@ -31,21 +31,21 @@ class VbaButton : public ButtonImpl_BASE
public:
VbaButton( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XInterface >& xControl, const css::uno::Reference< css::frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper );
// Attributes
- virtual OUString SAL_CALL getCaption() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getAutoSize() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setAutoSize( sal_Bool bAutoSize ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getCancel() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setCancel( sal_Bool bCancel ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getDefault() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setDefault( sal_Bool bDefault ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getBackColor() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBackColor( sal_Int32 nBackColor ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getForeColor() throw (css::uno::RuntimeException) override;
- virtual void SAL_CALL setForeColor( sal_Int32 nForeColor ) throw (css::uno::RuntimeException) override;
- virtual sal_Bool SAL_CALL getLocked() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setLocked( sal_Bool bAutoSize ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getCaption() override;
+ virtual void SAL_CALL setCaption( const OUString& _caption ) override;
+ virtual sal_Bool SAL_CALL getAutoSize() override;
+ virtual void SAL_CALL setAutoSize( sal_Bool bAutoSize ) override;
+ virtual sal_Bool SAL_CALL getCancel() override;
+ virtual void SAL_CALL setCancel( sal_Bool bCancel ) override;
+ virtual sal_Bool SAL_CALL getDefault() override;
+ virtual void SAL_CALL setDefault( sal_Bool bDefault ) override;
+ virtual sal_Int32 SAL_CALL getBackColor() override;
+ virtual void SAL_CALL setBackColor( sal_Int32 nBackColor ) override;
+ virtual sal_Int32 SAL_CALL getForeColor() override;
+ virtual void SAL_CALL setForeColor( sal_Int32 nForeColor ) override;
+ virtual sal_Bool SAL_CALL getLocked() override;
+ virtual void SAL_CALL setLocked( sal_Bool bAutoSize ) override;
+ virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() override;
//XHelperInterface
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
diff --git a/vbahelper/source/msforms/vbacheckbox.cxx b/vbahelper/source/msforms/vbacheckbox.cxx
index e00270f80646..41b8b941c5ce 100644
--- a/vbahelper/source/msforms/vbacheckbox.cxx
+++ b/vbahelper/source/msforms/vbacheckbox.cxx
@@ -30,7 +30,7 @@ ScVbaCheckbox::ScVbaCheckbox( const uno::Reference< ov::XHelperInterface >& xPar
// Attributes
OUString SAL_CALL
-ScVbaCheckbox::getCaption() throw (css::uno::RuntimeException, std::exception)
+ScVbaCheckbox::getCaption()
{
OUString Label;
m_xProps->getPropertyValue( "Label" ) >>= Label;
@@ -38,13 +38,13 @@ ScVbaCheckbox::getCaption() throw (css::uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaCheckbox::setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception)
+ScVbaCheckbox::setCaption( const OUString& _caption )
{
m_xProps->setPropertyValue( "Label", uno::makeAny( _caption ) );
}
uno::Any SAL_CALL
-ScVbaCheckbox::getValue() throw (css::uno::RuntimeException, std::exception)
+ScVbaCheckbox::getValue()
{
sal_Int16 nValue = -1;
m_xProps->getPropertyValue( "State" ) >>= nValue;
@@ -57,7 +57,7 @@ ScVbaCheckbox::getValue() throw (css::uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaCheckbox::setValue( const uno::Any& _value ) throw (css::uno::RuntimeException, std::exception)
+ScVbaCheckbox::setValue( const uno::Any& _value )
{
sal_Int16 nValue = 0;
sal_Int16 nOldValue = 0;
@@ -77,7 +77,7 @@ ScVbaCheckbox::setValue( const uno::Any& _value ) throw (css::uno::RuntimeExcept
fireClickEvent();
}
-uno::Reference< msforms::XNewFont > SAL_CALL ScVbaCheckbox::getFont() throw (uno::RuntimeException, std::exception)
+uno::Reference< msforms::XNewFont > SAL_CALL ScVbaCheckbox::getFont()
{
return new VbaNewFont( m_xProps );
}
@@ -100,32 +100,32 @@ ScVbaCheckbox::getServiceNames()
return aServiceNames;
}
-sal_Int32 SAL_CALL ScVbaCheckbox::getBackColor() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaCheckbox::getBackColor()
{
return ScVbaControl::getBackColor();
}
-void SAL_CALL ScVbaCheckbox::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaCheckbox::setBackColor( sal_Int32 nBackColor )
{
ScVbaControl::setBackColor( nBackColor );
}
-sal_Bool SAL_CALL ScVbaCheckbox::getAutoSize() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaCheckbox::getAutoSize()
{
return ScVbaControl::getAutoSize();
}
-void SAL_CALL ScVbaCheckbox::setAutoSize( sal_Bool bAutoSize ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaCheckbox::setAutoSize( sal_Bool bAutoSize )
{
ScVbaControl::setAutoSize( bAutoSize );
}
-sal_Bool SAL_CALL ScVbaCheckbox::getLocked() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaCheckbox::getLocked()
{
return ScVbaControl::getLocked();
}
-void SAL_CALL ScVbaCheckbox::setLocked( sal_Bool bLocked ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaCheckbox::setLocked( sal_Bool bLocked )
{
ScVbaControl::setLocked( bLocked );
}
diff --git a/vbahelper/source/msforms/vbacheckbox.hxx b/vbahelper/source/msforms/vbacheckbox.hxx
index 1b799a41fada..9ae55579f839 100644
--- a/vbahelper/source/msforms/vbacheckbox.hxx
+++ b/vbahelper/source/msforms/vbacheckbox.hxx
@@ -31,19 +31,19 @@ class ScVbaCheckbox : public CheckBoxImpl_BASE
public:
ScVbaCheckbox( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XInterface >& xControl, const css::uno::Reference< css::frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper );
// Attributes
- virtual OUString SAL_CALL getCaption() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception) override;
- 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::Reference< ov::msforms::XNewFont > SAL_CALL getFont() throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getBackColor() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBackColor( sal_Int32 nBackColor ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getAutoSize() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setAutoSize( sal_Bool bAutoSize ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getLocked() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setLocked( sal_Bool bAutoSize ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getCaption() override;
+ virtual void SAL_CALL setCaption( const OUString& _caption ) override;
+ virtual css::uno::Any SAL_CALL getValue() override;
+ virtual void SAL_CALL setValue( const css::uno::Any& _value ) override;
+ virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() override;
+ virtual sal_Int32 SAL_CALL getBackColor() override;
+ virtual void SAL_CALL setBackColor( sal_Int32 nBackColor ) override;
+ virtual sal_Bool SAL_CALL getAutoSize() override;
+ virtual void SAL_CALL setAutoSize( sal_Bool bAutoSize ) override;
+ virtual sal_Bool SAL_CALL getLocked() override;
+ virtual void SAL_CALL setLocked( sal_Bool bAutoSize ) override;
// XDefaultProperty
- OUString SAL_CALL getDefaultPropertyName( ) throw (css::uno::RuntimeException, std::exception) override { return OUString("Value"); }
+ OUString SAL_CALL getDefaultPropertyName( ) override { return OUString("Value"); }
//XHelperInterface
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
diff --git a/vbahelper/source/msforms/vbacombobox.cxx b/vbahelper/source/msforms/vbacombobox.cxx
index dc7189b64f88..ab26e01b3ae9 100644
--- a/vbahelper/source/msforms/vbacombobox.cxx
+++ b/vbahelper/source/msforms/vbacombobox.cxx
@@ -57,13 +57,13 @@ ScVbaComboBox::ScVbaComboBox( const uno::Reference< XHelperInterface >& xParent,
// Value, [read] e.g. getValue returns the value of ooo Text propery e.g. the value in
// the drop down
uno::Any SAL_CALL
-ScVbaComboBox::getValue() throw (uno::RuntimeException, std::exception)
+ScVbaComboBox::getValue()
{
return m_xProps->getPropertyValue( sSourceName );
}
void SAL_CALL
-ScVbaComboBox::setListIndex( const uno::Any& _value ) throw (uno::RuntimeException, std::exception)
+ScVbaComboBox::setListIndex( const uno::Any& _value )
{
sal_Int16 nIndex = 0;
if( _value >>= nIndex )
@@ -85,7 +85,7 @@ ScVbaComboBox::setListIndex( const uno::Any& _value ) throw (uno::RuntimeExcepti
}
uno::Any SAL_CALL
-ScVbaComboBox::getListIndex() throw (uno::RuntimeException, std::exception)
+ScVbaComboBox::getListIndex()
{
uno::Sequence< OUString > sItems;
m_xProps->getPropertyValue( "StringItemList" ) >>= sItems;
@@ -112,7 +112,7 @@ ScVbaComboBox::getListIndex() throw (uno::RuntimeException, std::exception)
// Value, [write]e.g. setValue sets the value in the drop down, and if the value is one
// of the values in the list then the selection is also set
void SAL_CALL
-ScVbaComboBox::setValue( const uno::Any& _value ) throw (uno::RuntimeException, std::exception)
+ScVbaComboBox::setValue( const uno::Any& _value )
{
// booleans are converted to uppercase strings
OUString oldValue = extractStringFromAny( getValue(), OUString(), true );
@@ -133,7 +133,7 @@ ScVbaComboBox::setValue( const uno::Any& _value ) throw (uno::RuntimeException,
// see Value
OUString SAL_CALL
-ScVbaComboBox::getText() throw (uno::RuntimeException, std::exception)
+ScVbaComboBox::getText()
{
OUString result;
getValue() >>= result;
@@ -141,109 +141,109 @@ ScVbaComboBox::getText() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaComboBox::setText( const OUString& _text ) throw (uno::RuntimeException, std::exception)
+ScVbaComboBox::setText( const OUString& _text )
{
setValue( uno::makeAny( _text ) ); // seems the same
}
// Methods
void SAL_CALL
-ScVbaComboBox::AddItem( const uno::Any& pvargItem, const uno::Any& pvargIndex ) throw (uno::RuntimeException, std::exception)
+ScVbaComboBox::AddItem( const uno::Any& pvargItem, const uno::Any& pvargIndex )
{
mpListHelper->AddItem( pvargItem, pvargIndex );
}
void SAL_CALL
-ScVbaComboBox::removeItem( const uno::Any& index ) throw (uno::RuntimeException, std::exception)
+ScVbaComboBox::removeItem( const uno::Any& index )
{
mpListHelper->removeItem( index );
}
void SAL_CALL
-ScVbaComboBox::Clear( ) throw (uno::RuntimeException, std::exception)
+ScVbaComboBox::Clear( )
{
mpListHelper->Clear();
}
void SAL_CALL
-ScVbaComboBox::setRowSource( const OUString& _rowsource ) throw (css::uno::RuntimeException, std::exception)
+ScVbaComboBox::setRowSource( const OUString& _rowsource )
{
ScVbaControl::setRowSource( _rowsource );
mpListHelper->setRowSource( _rowsource );
}
sal_Int32 SAL_CALL
-ScVbaComboBox::getListCount() throw (uno::RuntimeException, std::exception)
+ScVbaComboBox::getListCount()
{
return mpListHelper->getListCount();
}
uno::Any SAL_CALL
-ScVbaComboBox::List( const ::uno::Any& pvargIndex, const uno::Any& pvarColumn ) throw (uno::RuntimeException, std::exception)
+ScVbaComboBox::List( const ::uno::Any& pvargIndex, const uno::Any& pvarColumn )
{
return mpListHelper->List( pvargIndex, pvarColumn );
}
-sal_Int32 SAL_CALL ScVbaComboBox::getStyle() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaComboBox::getStyle()
{
return msforms::fmStyle::fmStyleDropDownCombo;
}
-void SAL_CALL ScVbaComboBox::setStyle( sal_Int32 /*nStyle*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaComboBox::setStyle( sal_Int32 /*nStyle*/ )
{
}
-sal_Int32 SAL_CALL ScVbaComboBox::getDropButtonStyle() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaComboBox::getDropButtonStyle()
{
return msforms::fmDropButtonStyle::fmDropButtonStyleArrow;
}
-void SAL_CALL ScVbaComboBox::setDropButtonStyle( sal_Int32 /*nDropButtonStyle*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaComboBox::setDropButtonStyle( sal_Int32 /*nDropButtonStyle*/ )
{
}
-sal_Int32 SAL_CALL ScVbaComboBox::getDragBehavior() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaComboBox::getDragBehavior()
{
return msforms::fmDragBehavior::fmDragBehaviorDisabled;
}
-void SAL_CALL ScVbaComboBox::setDragBehavior( sal_Int32 /*nDragBehavior*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaComboBox::setDragBehavior( sal_Int32 /*nDragBehavior*/ )
{
}
-sal_Int32 SAL_CALL ScVbaComboBox::getEnterFieldBehavior() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaComboBox::getEnterFieldBehavior()
{
return msforms::fmEnterFieldBehavior::fmEnterFieldBehaviorSelectAll;
}
-void SAL_CALL ScVbaComboBox::setEnterFieldBehavior( sal_Int32 /*nEnterFieldBehavior*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaComboBox::setEnterFieldBehavior( sal_Int32 /*nEnterFieldBehavior*/ )
{
}
-sal_Int32 SAL_CALL ScVbaComboBox::getListStyle() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaComboBox::getListStyle()
{
return msforms::fmListStyle::fmListStylePlain;
}
-void SAL_CALL ScVbaComboBox::setListStyle( sal_Int32 /*nListStyle*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaComboBox::setListStyle( sal_Int32 /*nListStyle*/ )
{
}
-sal_Int32 SAL_CALL ScVbaComboBox::getTextAlign() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaComboBox::getTextAlign()
{
return msforms::fmTextAlign::fmTextAlignLeft;
}
-void SAL_CALL ScVbaComboBox::setTextAlign( sal_Int32 /*nTextAlign*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaComboBox::setTextAlign( sal_Int32 /*nTextAlign*/ )
{
}
-sal_Int32 SAL_CALL ScVbaComboBox::getTextLength() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaComboBox::getTextLength()
{
return getText().getLength();
}
-uno::Reference< msforms::XNewFont > SAL_CALL ScVbaComboBox::getFont() throw (uno::RuntimeException, std::exception)
+uno::Reference< msforms::XNewFont > SAL_CALL ScVbaComboBox::getFont()
{
return new VbaNewFont( m_xProps );
}
@@ -254,42 +254,42 @@ ScVbaComboBox::getServiceImplName()
return OUString("ScVbaComboBox");
}
-sal_Int32 SAL_CALL ScVbaComboBox::getBackColor() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaComboBox::getBackColor()
{
return ScVbaControl::getBackColor();
}
-void SAL_CALL ScVbaComboBox::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaComboBox::setBackColor( sal_Int32 nBackColor )
{
ScVbaControl::setBackColor( nBackColor );
}
-sal_Bool SAL_CALL ScVbaComboBox::getAutoSize() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaComboBox::getAutoSize()
{
return ScVbaControl::getAutoSize();
}
-void SAL_CALL ScVbaComboBox::setAutoSize( sal_Bool bAutoSize ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaComboBox::setAutoSize( sal_Bool bAutoSize )
{
ScVbaControl::setAutoSize( bAutoSize );
}
-sal_Bool SAL_CALL ScVbaComboBox::getLocked() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaComboBox::getLocked()
{
return ScVbaControl::getLocked();
}
-void SAL_CALL ScVbaComboBox::setLocked( sal_Bool bLocked ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaComboBox::setLocked( sal_Bool bLocked )
{
ScVbaControl::setLocked( bLocked );
}
-OUString SAL_CALL ScVbaComboBox::getLinkedCell() throw (uno::RuntimeException, std::exception)
+OUString SAL_CALL ScVbaComboBox::getLinkedCell()
{
return ScVbaControl::getControlSource();
}
-void SAL_CALL ScVbaComboBox::setLinkedCell( const OUString& _linkedcell ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaComboBox::setLinkedCell( const OUString& _linkedcell )
{
ScVbaControl::setControlSource( _linkedcell );
}
diff --git a/vbahelper/source/msforms/vbacombobox.hxx b/vbahelper/source/msforms/vbacombobox.hxx
index 18bfa92def4e..1fbd26ba5ec9 100644
--- a/vbahelper/source/msforms/vbacombobox.hxx
+++ b/vbahelper/source/msforms/vbacombobox.hxx
@@ -41,46 +41,46 @@ public:
ScVbaComboBox( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XInterface >& xControl, const css::uno::Reference< css::frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper );
// Attributes
- virtual css::uno::Any SAL_CALL getListIndex() throw (css::uno::RuntimeException, std::exception) override;
- virtual ::sal_Int32 SAL_CALL getListCount() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setListIndex( const css::uno::Any& _value ) throw (css::uno::RuntimeException, std::exception) override;
- 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 OUString SAL_CALL getText() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setText( const OUString& _text ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getStyle() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setStyle( sal_Int32 nStyle ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getDropButtonStyle() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setDropButtonStyle( sal_Int32 nDropButtonStyle ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getDragBehavior() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setDragBehavior( sal_Int32 nDragBehavior ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getEnterFieldBehavior() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setEnterFieldBehavior( sal_Int32 nEnterFieldBehavior ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getListStyle() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setListStyle( sal_Int32 nListStyle ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getTextAlign() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setTextAlign( sal_Int32 nTextAlign ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getTextLength() throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getBackColor() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBackColor( sal_Int32 nBackColor ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getAutoSize() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setAutoSize( sal_Bool bAutoSize ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getLocked() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setLocked( sal_Bool bAutoSize ) throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getLinkedCell() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setLinkedCell( const OUString& _linkedcell ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL getListIndex() override;
+ virtual ::sal_Int32 SAL_CALL getListCount() override;
+ virtual void SAL_CALL setListIndex( const css::uno::Any& _value ) override;
+ virtual css::uno::Any SAL_CALL getValue() override;
+ virtual void SAL_CALL setValue( const css::uno::Any& _value ) override;
+ virtual OUString SAL_CALL getText() override;
+ virtual void SAL_CALL setText( const OUString& _text ) override;
+ virtual sal_Int32 SAL_CALL getStyle() override;
+ virtual void SAL_CALL setStyle( sal_Int32 nStyle ) override;
+ virtual sal_Int32 SAL_CALL getDropButtonStyle() override;
+ virtual void SAL_CALL setDropButtonStyle( sal_Int32 nDropButtonStyle ) override;
+ virtual sal_Int32 SAL_CALL getDragBehavior() override;
+ virtual void SAL_CALL setDragBehavior( sal_Int32 nDragBehavior ) override;
+ virtual sal_Int32 SAL_CALL getEnterFieldBehavior() override;
+ virtual void SAL_CALL setEnterFieldBehavior( sal_Int32 nEnterFieldBehavior ) override;
+ virtual sal_Int32 SAL_CALL getListStyle() override;
+ virtual void SAL_CALL setListStyle( sal_Int32 nListStyle ) override;
+ virtual sal_Int32 SAL_CALL getTextAlign() override;
+ virtual void SAL_CALL setTextAlign( sal_Int32 nTextAlign ) override;
+ virtual sal_Int32 SAL_CALL getTextLength() override;
+ virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() override;
+ virtual sal_Int32 SAL_CALL getBackColor() override;
+ virtual void SAL_CALL setBackColor( sal_Int32 nBackColor ) override;
+ virtual sal_Bool SAL_CALL getAutoSize() override;
+ virtual void SAL_CALL setAutoSize( sal_Bool bAutoSize ) override;
+ virtual sal_Bool SAL_CALL getLocked() override;
+ virtual void SAL_CALL setLocked( sal_Bool bAutoSize ) override;
+ virtual OUString SAL_CALL getLinkedCell() override;
+ virtual void SAL_CALL setLinkedCell( const OUString& _linkedcell ) override;
// Methods
- virtual void SAL_CALL AddItem( const css::uno::Any& pvargItem, const css::uno::Any& pvargIndex ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeItem( const css::uno::Any& index ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL Clear( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL List( const css::uno::Any& pvargIndex, const css::uno::Any& pvarColumn ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL AddItem( const css::uno::Any& pvargItem, const css::uno::Any& pvargIndex ) override;
+ virtual void SAL_CALL removeItem( const css::uno::Any& index ) override;
+ virtual void SAL_CALL Clear( ) override;
+ virtual css::uno::Any SAL_CALL List( const css::uno::Any& pvargIndex, const css::uno::Any& pvarColumn ) override;
// XControl
- virtual void SAL_CALL setRowSource( const OUString& _rowsource ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setRowSource( const OUString& _rowsource ) override;
// XDefaultProperty
- OUString SAL_CALL getDefaultPropertyName( ) throw (css::uno::RuntimeException, std::exception) override { return OUString("Value"); }
+ OUString SAL_CALL getDefaultPropertyName( ) override { return OUString("Value"); }
//XHelperInterface
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
diff --git a/vbahelper/source/msforms/vbacontrol.cxx b/vbahelper/source/msforms/vbacontrol.cxx
index cf59d6bcae1d..0521d4826d0b 100644
--- a/vbahelper/source/msforms/vbacontrol.cxx
+++ b/vbahelper/source/msforms/vbacontrol.cxx
@@ -67,7 +67,7 @@ using namespace com::sun::star;
using namespace ooo::vba;
uno::Reference< css::awt::XWindowPeer >
-ScVbaControl::getWindowPeer() throw (uno::RuntimeException)
+ScVbaControl::getWindowPeer()
{
uno::Reference< drawing::XControlShape > xControlShape( m_xControl, uno::UNO_QUERY );
@@ -104,7 +104,7 @@ private:
public:
explicit ScVbaControlListener( ScVbaControl *pTmpControl );
- virtual void SAL_CALL disposing( const lang::EventObject& rEventObject ) throw( uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL disposing( const lang::EventObject& rEventObject ) override;
};
ScVbaControlListener::ScVbaControlListener( ScVbaControl *pTmpControl ): pControl( pTmpControl )
@@ -112,7 +112,7 @@ ScVbaControlListener::ScVbaControlListener( ScVbaControl *pTmpControl ): pContro
}
void SAL_CALL
-ScVbaControlListener::disposing( const lang::EventObject& ) throw( uno::RuntimeException, std::exception )
+ScVbaControlListener::disposing( const lang::EventObject& )
{
if( pControl )
{
@@ -164,7 +164,7 @@ ScVbaControl::setGeometryHelper( AbstractGeometryAttributes* pHelper )
mpGeometryHelper.reset( pHelper );
}
-void ScVbaControl::removeResource() throw( uno::RuntimeException )
+void ScVbaControl::removeResource()
{
uno::Reference< lang::XComponent > xComponent( m_xControl, uno::UNO_QUERY_THROW );
xComponent->removeEventListener( m_xEventListener );
@@ -173,7 +173,7 @@ void ScVbaControl::removeResource() throw( uno::RuntimeException )
}
//In design model has different behavior
-sal_Bool SAL_CALL ScVbaControl::getEnabled() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaControl::getEnabled()
{
uno::Any aValue = m_xProps->getPropertyValue ( "Enabled" );
bool bRet = false;
@@ -181,14 +181,14 @@ sal_Bool SAL_CALL ScVbaControl::getEnabled() throw (uno::RuntimeException, std::
return bRet;
}
-void SAL_CALL ScVbaControl::setEnabled( sal_Bool bVisible ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaControl::setEnabled( sal_Bool bVisible )
{
uno::Any aValue( bVisible );
m_xProps->setPropertyValue( "Enabled" , aValue);
}
-sal_Bool SAL_CALL ScVbaControl::getVisible() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaControl::getVisible()
{
bool bVisible( true );
m_xProps->getPropertyValue ( "EnableVisible" ) >>= bVisible;
@@ -205,7 +205,7 @@ sal_Bool SAL_CALL ScVbaControl::getVisible() throw (uno::RuntimeException, std::
return bVisible;
}
-void SAL_CALL ScVbaControl::setVisible( sal_Bool bVisible ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaControl::setVisible( sal_Bool bVisible )
{
uno::Any aValue( bVisible );
m_xProps->setPropertyValue( "EnableVisible" , aValue);
@@ -216,63 +216,62 @@ void SAL_CALL ScVbaControl::setVisible( sal_Bool bVisible ) throw (uno::RuntimeE
xProps->setPropertyValue ( "Visible", aValue );
}
}
-double SAL_CALL ScVbaControl::getHeight() throw (uno::RuntimeException, std::exception)
+double SAL_CALL ScVbaControl::getHeight()
{
return mpGeometryHelper->getHeight();
}
-void SAL_CALL ScVbaControl::setHeight( double _height ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaControl::setHeight( double _height )
{
mpGeometryHelper->setHeight( _height );
}
-double SAL_CALL ScVbaControl::getWidth() throw (uno::RuntimeException, std::exception)
+double SAL_CALL ScVbaControl::getWidth()
{
return mpGeometryHelper->getWidth();
}
-void SAL_CALL ScVbaControl::setWidth( double _width ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaControl::setWidth( double _width )
{
mpGeometryHelper->setWidth( _width );
}
double SAL_CALL
-ScVbaControl::getLeft() throw (uno::RuntimeException, std::exception)
+ScVbaControl::getLeft()
{
return mpGeometryHelper->getLeft();
}
void SAL_CALL
-ScVbaControl::setLeft( double _left ) throw (uno::RuntimeException, std::exception)
+ScVbaControl::setLeft( double _left )
{
mpGeometryHelper->setLeft( _left );
}
double SAL_CALL
-ScVbaControl::getTop() throw (uno::RuntimeException, std::exception)
+ScVbaControl::getTop()
{
return mpGeometryHelper->getTop();
}
void SAL_CALL
-ScVbaControl::setTop( double _top ) throw (uno::RuntimeException, std::exception)
+ScVbaControl::setTop( double _top )
{
mpGeometryHelper->setTop( _top );
}
uno::Reference< uno::XInterface > SAL_CALL
-ScVbaControl::getObject() throw (uno::RuntimeException, std::exception)
+ScVbaControl::getObject()
{
uno::Reference< msforms::XControl > xRet( this );
return xRet;
}
-void SAL_CALL ScVbaControl::SetFocus() throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaControl::SetFocus()
{
uno::Reference< awt::XWindow > xWin( m_xControl, uno::UNO_QUERY_THROW );
xWin->setFocus();
}
void SAL_CALL ScVbaControl::Move( double Left, double Top, const uno::Any& Width, const uno::Any& Height )
- throw ( uno::RuntimeException, std::exception )
{
double nWidth = 0.0;
double nHeight = 0.0;
@@ -288,7 +287,7 @@ void SAL_CALL ScVbaControl::Move( double Left, double Top, const uno::Any& Width
}
OUString SAL_CALL
-ScVbaControl::getControlSource() throw (uno::RuntimeException, std::exception)
+ScVbaControl::getControlSource()
{
// #FIXME I *hate* having these upstream differences
// but this is necessary until I manage to upstream other
@@ -315,7 +314,7 @@ ScVbaControl::getControlSource() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaControl::setControlSource( const OUString& _controlsource ) throw (uno::RuntimeException, std::exception)
+ScVbaControl::setControlSource( const OUString& _controlsource )
{
// afaik this is only relevant for Excel documents ( and we need to set up a
// reference tab in case no Sheet is specified in "_controlsource"
@@ -354,7 +353,7 @@ ScVbaControl::setControlSource( const OUString& _controlsource ) throw (uno::Run
}
OUString SAL_CALL
-ScVbaControl::getRowSource() throw (uno::RuntimeException, std::exception)
+ScVbaControl::getRowSource()
{
OUString sRowSource;
uno::Reference< form::binding::XListEntrySink > xListSink( m_xProps, uno::UNO_QUERY );
@@ -379,13 +378,13 @@ ScVbaControl::getRowSource() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaControl::setRowSource( const OUString& _rowsource ) throw (uno::RuntimeException, std::exception)
+ScVbaControl::setRowSource( const OUString& _rowsource )
{
svt::BindableControlHelper::ApplyListSourceAndBindableData( m_xModel, m_xProps, "", _rowsource );
}
OUString SAL_CALL
-ScVbaControl::getName() throw (uno::RuntimeException, std::exception)
+ScVbaControl::getName()
{
OUString sName;
m_xProps->getPropertyValue( "Name" ) >>= sName;
@@ -394,13 +393,13 @@ ScVbaControl::getName() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaControl::setName( const OUString& _name ) throw (uno::RuntimeException, std::exception)
+ScVbaControl::setName( const OUString& _name )
{
m_xProps->setPropertyValue( "Name" , uno::makeAny( _name ) );
}
OUString SAL_CALL
-ScVbaControl::getControlTipText() throw (css::uno::RuntimeException, std::exception)
+ScVbaControl::getControlTipText()
{
OUString sName;
m_xProps->getPropertyValue( "HelpText" ) >>= sName;
@@ -408,24 +407,22 @@ ScVbaControl::getControlTipText() throw (css::uno::RuntimeException, std::except
}
void SAL_CALL
-ScVbaControl::setControlTipText( const OUString& rsToolTip ) throw (css::uno::RuntimeException, std::exception)
+ScVbaControl::setControlTipText( const OUString& rsToolTip )
{
m_xProps->setPropertyValue( "HelpText" , uno::makeAny( rsToolTip ) );
}
OUString SAL_CALL ScVbaControl::getTag()
- throw (css::uno::RuntimeException, std::exception)
{
return m_aControlTag;
}
void SAL_CALL ScVbaControl::setTag( const OUString& aTag )
- throw (css::uno::RuntimeException, std::exception)
{
m_aControlTag = aTag;
}
-::sal_Int32 SAL_CALL ScVbaControl::getForeColor() throw (css::uno::RuntimeException)
+::sal_Int32 SAL_CALL ScVbaControl::getForeColor()
{
sal_Int32 nForeColor = -1;
m_xProps->getPropertyValue( "TextColor" ) >>= nForeColor;
@@ -489,7 +486,7 @@ static Pointer lcl_msoPointerToLOPointer( long msoPointerStyle )
}
::sal_Int32 SAL_CALL
-ScVbaControl::getMousePointer() throw (css::uno::RuntimeException, std::exception)
+ScVbaControl::getMousePointer()
{
PointerStyle eType = PointerStyle::Arrow; // default ?
VclPtr<vcl::Window> pWindow = VCLUnoHelper::GetWindow( getWindowPeer() );
@@ -501,7 +498,7 @@ ScVbaControl::getMousePointer() throw (css::uno::RuntimeException, std::exceptio
}
void SAL_CALL
-ScVbaControl::setMousePointer( ::sal_Int32 _mousepointer ) throw (css::uno::RuntimeException, std::exception)
+ScVbaControl::setMousePointer( ::sal_Int32 _mousepointer )
{
VclPtr<vcl::Window> pWindow = VCLUnoHelper::GetWindow( getWindowPeer() );
if ( pWindow )
@@ -512,7 +509,7 @@ ScVbaControl::setMousePointer( ::sal_Int32 _mousepointer ) throw (css::uno::Runt
}
}
-void SAL_CALL ScVbaControl::fireEvent( const script::ScriptEvent& rEvt ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaControl::fireEvent( const script::ScriptEvent& rEvt )
{
script::ScriptEvent evt( rEvt );
uno::Reference<lang::XMultiComponentFactory > xServiceManager( mxContext->getServiceManager(), uno::UNO_QUERY_THROW );
@@ -583,12 +580,12 @@ void ScVbaControl::fireClickEvent()
fireEvent( evt );
}
-sal_Int32 SAL_CALL ScVbaControl::getTabIndex() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaControl::getTabIndex()
{
return 1;
}
-void SAL_CALL ScVbaControl::setTabIndex( sal_Int32 /*nTabIndex*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaControl::setTabIndex( sal_Int32 /*nTabIndex*/ )
{
}
@@ -597,7 +594,7 @@ void SAL_CALL ScVbaControl::setTabIndex( sal_Int32 /*nTabIndex*/ ) throw (uno::R
/*static*/ uno::Reference< msforms::XControl > ScVbaControlFactory::createShapeControl(
const uno::Reference< uno::XComponentContext >& xContext,
const uno::Reference< drawing::XControlShape >& xControlShape,
- const uno::Reference< frame::XModel >& xModel ) throw (uno::RuntimeException)
+ const uno::Reference< frame::XModel >& xModel )
{
uno::Reference< beans::XPropertySet > xProps( xControlShape->getControl(), uno::UNO_QUERY_THROW );
sal_Int32 nClassId = -1;
@@ -643,7 +640,7 @@ void SAL_CALL ScVbaControl::setTabIndex( sal_Int32 /*nTabIndex*/ ) throw (uno::R
const uno::Reference< awt::XControl >& xControl,
const uno::Reference< awt::XControl >& xDialog,
const uno::Reference< frame::XModel >& xModel,
- double fOffsetX, double fOffsetY ) throw (uno::RuntimeException)
+ double fOffsetX, double fOffsetY )
{
uno::Reference< beans::XPropertySet > xProps( xControl->getModel(), uno::UNO_QUERY_THROW );
uno::Reference< lang::XServiceInfo > xServiceInfo( xProps, uno::UNO_QUERY_THROW );
@@ -716,14 +713,14 @@ ScVbaControl::getServiceNames()
sal_Int32 const nSysCols[] = { 0xC8D0D4, 0x0, 0x6A240A, 0x808080, 0xE4E4E4, 0xFFFFFF, 0x0, 0x0, 0x0, 0xFFFFFF, 0xE4E4E4, 0xE4E4E4, 0x808080, 0x6A240A, 0xFFFFFF, 0xE4E4E4, 0x808080, 0x808080, 0x0, 0xC8D0D4, 0xFFFFFF, 0x404040, 0xE4E4E4, 0x0, 0xE1FFFF };
-sal_Int32 ScVbaControl::getBackColor() throw (uno::RuntimeException)
+sal_Int32 ScVbaControl::getBackColor()
{
sal_Int32 nBackColor = 0;
m_xProps->getPropertyValue( "BackgroundColor" ) >>= nBackColor;
return nBackColor;
}
-void ScVbaControl::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeException)
+void ScVbaControl::setBackColor( sal_Int32 nBackColor )
{
if ( ( (sal_uInt32)nBackColor >= (sal_uInt32)0x80000000 ) &&
( (sal_uInt32)nBackColor <= (sal_uInt32)0x80000000 + SAL_N_ELEMENTS(nSysCols) ) )
@@ -733,7 +730,7 @@ void ScVbaControl::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeExcep
m_xProps->setPropertyValue( "BackgroundColor" , uno::makeAny( XLRGBToOORGB( nBackColor ) ) );
}
-bool ScVbaControl::getAutoSize() throw (uno::RuntimeException)
+bool ScVbaControl::getAutoSize()
{
bool bIsResizeEnabled = false;
uno::Reference< uno::XInterface > xIf( m_xControl, uno::UNO_QUERY_THROW );
@@ -744,7 +741,7 @@ bool ScVbaControl::getAutoSize() throw (uno::RuntimeException)
}
// currently no implementation for this
-void ScVbaControl::setAutoSize( bool bAutoSize ) throw (uno::RuntimeException)
+void ScVbaControl::setAutoSize( bool bAutoSize )
{
uno::Reference< uno::XInterface > xIf( m_xControl, uno::UNO_QUERY_THROW );
SdrObject* pObj = SdrObject::getSdrObjectFromXShape( xIf );
@@ -752,14 +749,14 @@ void ScVbaControl::setAutoSize( bool bAutoSize ) throw (uno::RuntimeException)
pObj->SetResizeProtect( !bAutoSize );
}
-bool ScVbaControl::getLocked() throw (uno::RuntimeException)
+bool ScVbaControl::getLocked()
{
bool bRes( false );
m_xProps->getPropertyValue( "ReadOnly" ) >>= bRes;
return bRes;
}
-void ScVbaControl::setLocked( bool bLocked ) throw (uno::RuntimeException)
+void ScVbaControl::setLocked( bool bLocked )
{
m_xProps->setPropertyValue( "ReadOnly" , uno::makeAny( bLocked ) );
}
@@ -769,11 +766,11 @@ class ControlProviderImpl : public cppu::WeakImplHelper< XControlProvider >
uno::Reference< uno::XComponentContext > m_xCtx;
public:
explicit ControlProviderImpl( const uno::Reference< uno::XComponentContext >& xCtx ) : m_xCtx( xCtx ) {}
- virtual uno::Reference< msforms::XControl > SAL_CALL createControl( const uno::Reference< drawing::XControlShape >& xControl, const uno::Reference< frame::XModel >& xDocOwner ) throw (uno::RuntimeException, std::exception) override;
+ virtual uno::Reference< msforms::XControl > SAL_CALL createControl( const uno::Reference< drawing::XControlShape >& xControl, const uno::Reference< frame::XModel >& xDocOwner ) override;
};
uno::Reference< msforms::XControl > SAL_CALL
-ControlProviderImpl::createControl( const uno::Reference< drawing::XControlShape >& xControlShape, const uno::Reference< frame::XModel >& xDocOwner ) throw (uno::RuntimeException, std::exception)
+ControlProviderImpl::createControl( const uno::Reference< drawing::XControlShape >& xControlShape, const uno::Reference< frame::XModel >& xDocOwner )
{
uno::Reference< msforms::XControl > xControlToReturn;
if ( xControlShape.is() )
diff --git a/vbahelper/source/msforms/vbacontrol.hxx b/vbahelper/source/msforms/vbacontrol.hxx
index acbe760e9f8a..51bcb958480d 100644
--- a/vbahelper/source/msforms/vbacontrol.hxx
+++ b/vbahelper/source/msforms/vbacontrol.hxx
@@ -52,7 +52,7 @@ protected:
css::uno::Reference< css::frame::XModel > m_xModel;
/// @throws css::uno::RuntimeException
- css::uno::Reference< css::awt::XWindowPeer > getWindowPeer() throw (css::uno::RuntimeException);
+ css::uno::Reference< css::awt::XWindowPeer > getWindowPeer();
void fireChangeEvent();
void fireClickEvent();
public:
@@ -66,59 +66,59 @@ public:
void setLibraryAndCodeName( const OUString& sLibCodeName ) { m_sLibraryAndCodeName = sLibCodeName; }
// XControl
- virtual sal_Bool SAL_CALL getEnabled() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setEnabled( sal_Bool _enabled ) 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 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 void SAL_CALL SetFocus( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL Move( double Left, double Top, const css::uno::Any& Width, const css::uno::Any& Height ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL fireEvent( const css::script::ScriptEvent& evt ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL getEnabled() override;
+ virtual void SAL_CALL setEnabled( sal_Bool _enabled ) override;
+ virtual sal_Bool SAL_CALL getVisible() override;
+ virtual void SAL_CALL setVisible( sal_Bool _visible ) 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 void SAL_CALL SetFocus( ) override;
+ virtual void SAL_CALL Move( double Left, double Top, const css::uno::Any& Width, const css::uno::Any& Height ) override;
+ virtual void SAL_CALL fireEvent( const css::script::ScriptEvent& evt ) override;
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getObject() throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getControlSource() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setControlSource( const OUString& _controlsource ) throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getRowSource() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setRowSource( const OUString& _rowsource ) 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 OUString SAL_CALL getControlTipText() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setControlTipText( const OUString& ) throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getTag() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setTag( const OUString& aTag ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getTabIndex() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setTabIndex( sal_Int32 nTabIndex ) throw (css::uno::RuntimeException, std::exception) override;
- virtual ::sal_Int32 SAL_CALL getMousePointer() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setMousePointer( ::sal_Int32 _mousepointer ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getObject() override;
+ virtual OUString SAL_CALL getControlSource() override;
+ virtual void SAL_CALL setControlSource( const OUString& _controlsource ) override;
+ virtual OUString SAL_CALL getRowSource() override;
+ virtual void SAL_CALL setRowSource( const OUString& _rowsource ) override;
+ virtual OUString SAL_CALL getName() override;
+ virtual void SAL_CALL setName( const OUString& _name ) override;
+ virtual OUString SAL_CALL getControlTipText() override;
+ virtual void SAL_CALL setControlTipText( const OUString& ) override;
+ virtual OUString SAL_CALL getTag() override;
+ virtual void SAL_CALL setTag( const OUString& aTag ) override;
+ virtual sal_Int32 SAL_CALL getTabIndex() override;
+ virtual void SAL_CALL setTabIndex( sal_Int32 nTabIndex ) override;
+ virtual ::sal_Int32 SAL_CALL getMousePointer() override;
+ virtual void SAL_CALL setMousePointer( ::sal_Int32 _mousepointer ) override;
//remove resource because ooo.vba.excel.XControl is a wrapper of com.sun.star.drawing.XControlShape
/// @throws css::uno::RuntimeException
- void removeResource() throw( css::uno::RuntimeException );
+ void removeResource();
/// @throws css::uno::RuntimeException
- virtual ::sal_Int32 SAL_CALL getForeColor() throw (css::uno::RuntimeException);
+ virtual ::sal_Int32 SAL_CALL getForeColor();
//XHelperInterface
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
//General helper methods for properties (may or may not be relevant for all
//controls)
/// @throws css::uno::RuntimeException
- sal_Int32 getBackColor() throw (css::uno::RuntimeException);
+ sal_Int32 getBackColor();
/// @throws css::uno::RuntimeException
- void setBackColor( sal_Int32 nBackColor ) throw (css::uno::RuntimeException);
+ void setBackColor( sal_Int32 nBackColor );
/// @throws css::uno::RuntimeException
- bool getAutoSize() throw (css::uno::RuntimeException);
+ bool getAutoSize();
/// @throws css::uno::RuntimeException
- void setAutoSize( bool bAutoSize ) throw (css::uno::RuntimeException);
+ void setAutoSize( bool bAutoSize );
/// @throws css::uno::RuntimeException
- bool getLocked() throw (css::uno::RuntimeException);
+ bool getLocked();
/// @throws css::uno::RuntimeException
- void setLocked( bool bAutoSize ) throw (css::uno::RuntimeException);
+ void setLocked( bool bAutoSize );
};
@@ -128,7 +128,7 @@ namespace ScVbaControlFactory
css::uno::Reference< ov::msforms::XControl > createShapeControl(
const css::uno::Reference< css::uno::XComponentContext >& xContext,
const css::uno::Reference< css::drawing::XControlShape >& xControlShape,
- const css::uno::Reference< css::frame::XModel >& xModel ) throw (css::uno::RuntimeException);
+ const css::uno::Reference< css::frame::XModel >& xModel );
/// @throws css::uno::RuntimeException
css::uno::Reference< ov::msforms::XControl > createUserformControl(
@@ -136,7 +136,7 @@ namespace ScVbaControlFactory
const css::uno::Reference< css::awt::XControl >& xControl,
const css::uno::Reference< css::awt::XControl >& xDialog,
const css::uno::Reference< css::frame::XModel >& xModel,
- double fOffsetX, double fOffsetY ) throw (css::uno::RuntimeException);
+ double fOffsetX, double fOffsetY );
}
#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBACONTROL_HXX
diff --git a/vbahelper/source/msforms/vbacontrols.cxx b/vbahelper/source/msforms/vbacontrols.cxx
index cfe9f06dd640..0fb456a99829 100644
--- a/vbahelper/source/msforms/vbacontrols.cxx
+++ b/vbahelper/source/msforms/vbacontrols.cxx
@@ -111,42 +111,42 @@ public:
// XElementAccess
- virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException, std::exception) override
+ virtual uno::Type SAL_CALL getElementType( ) override
{
return cppu::UnoType<awt::XControl>::get();
}
- virtual sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasElements( ) override
{
return ( !mControls.empty() );
}
// XNameAccess
- virtual uno::Any SAL_CALL getByName( const OUString& aName ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception) override
+ virtual uno::Any SAL_CALL getByName( const OUString& aName ) override
{
if ( !hasByName( aName ) )
throw container::NoSuchElementException();
return getByIndex( mIndices[ aName ] );
}
- virtual uno::Sequence< OUString > SAL_CALL getElementNames( ) throw (uno::RuntimeException, std::exception) override
+ virtual uno::Sequence< OUString > SAL_CALL getElementNames( ) override
{
return msNames;
}
- 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
{
ControlIndexMap::iterator it = mIndices.find( aName );
return it != mIndices.end();
}
// XElementAccess
- virtual ::sal_Int32 SAL_CALL getCount( ) throw (css::uno::RuntimeException, std::exception) override
+ virtual ::sal_Int32 SAL_CALL getCount( ) override
{
return mControls.size();
}
- virtual uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException, std::exception ) override
+ virtual uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) override
{
if ( Index < 0 || Index >= static_cast< sal_Int32 >( mControls.size() ) )
throw lang::IndexOutOfBoundsException();
@@ -181,12 +181,12 @@ public:
mfOffsetY( fOffsetY ),
nIndex( 0 ) {}
- virtual sal_Bool SAL_CALL hasMoreElements( ) throw (uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasMoreElements( ) override
{
return ( nIndex < m_xIndexAccess->getCount() );
}
- virtual uno::Any SAL_CALL nextElement( ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception) override
+ virtual uno::Any SAL_CALL nextElement( ) override
{
if ( nIndex < m_xIndexAccess->getCount() )
{
@@ -225,7 +225,7 @@ ScVbaControls::ScVbaControls(
}
uno::Reference< container::XEnumeration >
-ScVbaControls::createEnumeration() throw (uno::RuntimeException)
+ScVbaControls::createEnumeration()
{
uno::Reference< container::XEnumeration > xEnum( new ControlsEnumWrapper( mxContext, m_xIndexAccess, mxDialog, mxModel, mfOffsetX, mfOffsetY ) );
if ( !xEnum.is() )
@@ -243,7 +243,7 @@ ScVbaControls::createCollectionObject( const css::uno::Any& aSource )
}
void SAL_CALL
-ScVbaControls::Move( double cx, double cy ) throw (uno::RuntimeException, std::exception)
+ScVbaControls::Move( double cx, double cy )
{
uno::Reference< container::XEnumeration > xEnum( createEnumeration() );
while ( xEnum->hasMoreElements() )
@@ -255,7 +255,6 @@ ScVbaControls::Move( double cx, double cy ) throw (uno::RuntimeException, std::e
}
uno::Any SAL_CALL ScVbaControls::Add( const uno::Any& Object, const uno::Any& StringKey, const uno::Any& /*Before*/, const uno::Any& /*After*/ )
- throw (uno::RuntimeException, std::exception)
{
uno::Any aResult;
OUString aComServiceName;
@@ -438,7 +437,6 @@ uno::Any SAL_CALL ScVbaControls::Add( const uno::Any& Object, const uno::Any& St
}
void SAL_CALL ScVbaControls::Remove( const uno::Any& StringKeyOrIndex )
- throw (uno::RuntimeException, std::exception)
{
OUString aControlName;
sal_Int32 nIndex = -1;
@@ -492,7 +490,7 @@ void SAL_CALL ScVbaControls::Remove( const uno::Any& StringKeyOrIndex )
uno::Type
-ScVbaControls::getElementType() throw (uno::RuntimeException)
+ScVbaControls::getElementType()
{
return cppu::UnoType<ooo::vba::msforms::XControl>::get();
}
diff --git a/vbahelper/source/msforms/vbacontrols.hxx b/vbahelper/source/msforms/vbacontrols.hxx
index f123b018da69..1e9d95042633 100644
--- a/vbahelper/source/msforms/vbacontrols.hxx
+++ b/vbahelper/source/msforms/vbacontrols.hxx
@@ -37,13 +37,13 @@ public:
const css::uno::Reference< css::frame::XModel >& xModel,
double fOffsetX, double fOffsetY );
// XControls
- virtual void SAL_CALL Move( double cx, double cy ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL Add( const css::uno::Any& Object, const css::uno::Any& StringKey, const css::uno::Any& Before, const css::uno::Any& After ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL Remove( const css::uno::Any& StringKeyOrIndex ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL Move( double cx, double cy ) override;
+ virtual css::uno::Any SAL_CALL Add( const css::uno::Any& Object, const css::uno::Any& StringKey, const css::uno::Any& Before, const css::uno::Any& After ) override;
+ virtual void SAL_CALL Remove( const css::uno::Any& StringKeyOrIndex ) 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/vbahelper/source/msforms/vbaframe.cxx b/vbahelper/source/msforms/vbaframe.cxx
index 775b3810cb1e..e85e313148b6 100644
--- a/vbahelper/source/msforms/vbaframe.cxx
+++ b/vbahelper/source/msforms/vbaframe.cxx
@@ -40,47 +40,47 @@ ScVbaFrame::ScVbaFrame(
// XFrame attributes
-OUString SAL_CALL ScVbaFrame::getCaption() throw (css::uno::RuntimeException, std::exception)
+OUString SAL_CALL ScVbaFrame::getCaption()
{
OUString Label;
m_xProps->getPropertyValue( "Label" ) >>= Label;
return Label;
}
-void SAL_CALL ScVbaFrame::setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaFrame::setCaption( const OUString& _caption )
{
m_xProps->setPropertyValue( "Label", uno::makeAny( _caption ) );
}
-sal_Int32 SAL_CALL ScVbaFrame::getSpecialEffect() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaFrame::getSpecialEffect()
{
return msforms::fmSpecialEffect::fmSpecialEffectEtched;
}
-void SAL_CALL ScVbaFrame::setSpecialEffect( sal_Int32 /*nSpecialEffect*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaFrame::setSpecialEffect( sal_Int32 /*nSpecialEffect*/ )
{
// #STUB
}
-sal_Int32 SAL_CALL ScVbaFrame::getBorderStyle() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaFrame::getBorderStyle()
{
return msforms::fmBorderStyle::fmBorderStyleNone;
}
-void SAL_CALL ScVbaFrame::setBorderStyle( sal_Int32 /*nBorderStyle*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaFrame::setBorderStyle( sal_Int32 /*nBorderStyle*/ )
{
// #STUB
}
-uno::Reference< msforms::XNewFont > SAL_CALL ScVbaFrame::getFont() throw (uno::RuntimeException, std::exception)
+uno::Reference< msforms::XNewFont > SAL_CALL ScVbaFrame::getFont()
{
return new VbaNewFont( m_xProps );
}
// XFrame methods
-uno::Any SAL_CALL ScVbaFrame::Controls( const uno::Any& rIndex ) throw (uno::RuntimeException, std::exception)
+uno::Any SAL_CALL ScVbaFrame::Controls( const uno::Any& rIndex )
{
// horizontal anchor of frame children is inside border line (add one unit to compensate border line width)
double fOffsetX = mpGeometryHelper->getOffsetX() + getLeft() + 1.0;
diff --git a/vbahelper/source/msforms/vbaframe.hxx b/vbahelper/source/msforms/vbaframe.hxx
index 6fe40c67b369..10e2374cde38 100644
--- a/vbahelper/source/msforms/vbaframe.hxx
+++ b/vbahelper/source/msforms/vbaframe.hxx
@@ -40,16 +40,16 @@ public:
const css::uno::Reference< css::awt::XControl >& xDialog );
// XFrame attributes
- virtual OUString SAL_CALL getCaption() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception) override;
-
- virtual sal_Int32 SAL_CALL getSpecialEffect() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setSpecialEffect( sal_Int32 nSpecialEffect ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getBorderStyle() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBorderStyle( sal_Int32 nBorderStyle ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getCaption() override;
+ virtual void SAL_CALL setCaption( const OUString& _caption ) override;
+
+ virtual sal_Int32 SAL_CALL getSpecialEffect() override;
+ virtual void SAL_CALL setSpecialEffect( sal_Int32 nSpecialEffect ) override;
+ virtual sal_Int32 SAL_CALL getBorderStyle() override;
+ virtual void SAL_CALL setBorderStyle( sal_Int32 nBorderStyle ) override;
+ virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() override;
// XFrame methods
- css::uno::Any SAL_CALL Controls( const css::uno::Any& rIndex ) throw (css::uno::RuntimeException, std::exception) override;
+ css::uno::Any SAL_CALL Controls( const css::uno::Any& rIndex ) override;
//XHelperInterface
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
diff --git a/vbahelper/source/msforms/vbaimage.cxx b/vbahelper/source/msforms/vbaimage.cxx
index 0515a111bcf0..26f85fa9ac1a 100644
--- a/vbahelper/source/msforms/vbaimage.cxx
+++ b/vbahelper/source/msforms/vbaimage.cxx
@@ -44,12 +44,12 @@ ScVbaImage::getServiceNames()
return aServiceNames;
}
-sal_Int32 SAL_CALL ScVbaImage::getBackColor() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaImage::getBackColor()
{
return ScVbaControl::getBackColor();
}
-void SAL_CALL ScVbaImage::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaImage::setBackColor( sal_Int32 nBackColor )
{
ScVbaControl::setBackColor( nBackColor );
}
diff --git a/vbahelper/source/msforms/vbaimage.hxx b/vbahelper/source/msforms/vbaimage.hxx
index 1d254b255dd9..ac6f5e803b36 100644
--- a/vbahelper/source/msforms/vbaimage.hxx
+++ b/vbahelper/source/msforms/vbaimage.hxx
@@ -30,8 +30,8 @@ class ScVbaImage : public ImageImpl_BASE
{
public:
ScVbaImage( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XInterface >& xControl, const css::uno::Reference< css::frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper );
- virtual sal_Int32 SAL_CALL getBackColor() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBackColor( sal_Int32 nBackColor ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getBackColor() override;
+ virtual void SAL_CALL setBackColor( sal_Int32 nBackColor ) override;
//XHelperInterface
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
diff --git a/vbahelper/source/msforms/vbalabel.cxx b/vbahelper/source/msforms/vbalabel.cxx
index eb714c8121eb..e952d663e358 100644
--- a/vbahelper/source/msforms/vbalabel.cxx
+++ b/vbahelper/source/msforms/vbalabel.cxx
@@ -29,7 +29,7 @@ ScVbaLabel::ScVbaLabel( const css::uno::Reference< XHelperInterface >& xParent,
// Attributes
OUString SAL_CALL
-ScVbaLabel::getCaption() throw (css::uno::RuntimeException, std::exception)
+ScVbaLabel::getCaption()
{
OUString Label;
m_xProps->getPropertyValue( "Label" ) >>= Label;
@@ -37,18 +37,18 @@ ScVbaLabel::getCaption() throw (css::uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaLabel::setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception)
+ScVbaLabel::setCaption( const OUString& _caption )
{
m_xProps->setPropertyValue( "Label", uno::makeAny( _caption ) );
}
uno::Any SAL_CALL
-ScVbaLabel::getValue() throw (css::uno::RuntimeException, std::exception)
+ScVbaLabel::getValue()
{
return uno::makeAny( getCaption() );
}
void SAL_CALL
-ScVbaLabel::setValue( const uno::Any& _value ) throw (css::uno::RuntimeException, std::exception)
+ScVbaLabel::setValue( const uno::Any& _value )
{
OUString sCaption;
_value >>= sCaption;
@@ -56,19 +56,19 @@ ScVbaLabel::setValue( const uno::Any& _value ) throw (css::uno::RuntimeException
}
OUString SAL_CALL
-ScVbaLabel::getAccelerator() throw (css::uno::RuntimeException, std::exception)
+ScVbaLabel::getAccelerator()
{
// #STUB
return OUString();
}
void SAL_CALL
-ScVbaLabel::setAccelerator( const OUString& /*_accelerator*/ ) throw (css::uno::RuntimeException, std::exception)
+ScVbaLabel::setAccelerator( const OUString& /*_accelerator*/ )
{
// #STUB
}
-uno::Reference< msforms::XNewFont > SAL_CALL ScVbaLabel::getFont() throw (uno::RuntimeException, std::exception)
+uno::Reference< msforms::XNewFont > SAL_CALL ScVbaLabel::getFont()
{
return new VbaNewFont( m_xProps );
}
@@ -78,22 +78,22 @@ OUString ScVbaLabel::getServiceImplName()
return OUString( "ScVbaLabel" );
}
-sal_Int32 SAL_CALL ScVbaLabel::getBackColor() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaLabel::getBackColor()
{
return ScVbaControl::getBackColor();
}
-void SAL_CALL ScVbaLabel::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaLabel::setBackColor( sal_Int32 nBackColor )
{
ScVbaControl::setBackColor( nBackColor );
}
-sal_Bool SAL_CALL ScVbaLabel::getAutoSize() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaLabel::getAutoSize()
{
return ScVbaControl::getAutoSize();
}
-void SAL_CALL ScVbaLabel::setAutoSize( sal_Bool bAutoSize ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaLabel::setAutoSize( sal_Bool bAutoSize )
{
ScVbaControl::setAutoSize( bAutoSize );
}
diff --git a/vbahelper/source/msforms/vbalabel.hxx b/vbahelper/source/msforms/vbalabel.hxx
index 047b466c6571..798952faa587 100644
--- a/vbahelper/source/msforms/vbalabel.hxx
+++ b/vbahelper/source/msforms/vbalabel.hxx
@@ -31,22 +31,22 @@ class ScVbaLabel : public LabelImpl_BASE
public:
ScVbaLabel( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XInterface >& xControl, const css::uno::Reference< css::frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper );
// 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 OUString SAL_CALL getCaption() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getAccelerator() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setAccelerator( const OUString& _accelerator ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getBackColor() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBackColor( sal_Int32 nBackColor ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getAutoSize() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setAutoSize( sal_Bool bAutoSize ) 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;
+ virtual OUString SAL_CALL getCaption() override;
+ virtual void SAL_CALL setCaption( const OUString& _caption ) override;
+ virtual OUString SAL_CALL getAccelerator() override;
+ virtual void SAL_CALL setAccelerator( const OUString& _accelerator ) override;
+ virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() override;
+ virtual sal_Int32 SAL_CALL getBackColor() override;
+ virtual void SAL_CALL setBackColor( sal_Int32 nBackColor ) override;
+ virtual sal_Bool SAL_CALL getAutoSize() override;
+ virtual void SAL_CALL setAutoSize( sal_Bool bAutoSize ) override;
//XHelperInterface
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
// XDefaultProperty
- OUString SAL_CALL getDefaultPropertyName( ) throw (css::uno::RuntimeException, std::exception) override { return OUString("Value"); }
+ OUString SAL_CALL getDefaultPropertyName( ) override { return OUString("Value"); }
};
#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBALABEL_HXX
diff --git a/vbahelper/source/msforms/vbalistbox.cxx b/vbahelper/source/msforms/vbalistbox.cxx
index 19d3ce26129a..3e94440f5a1a 100644
--- a/vbahelper/source/msforms/vbalistbox.cxx
+++ b/vbahelper/source/msforms/vbalistbox.cxx
@@ -36,7 +36,7 @@ ScVbaListBox::ScVbaListBox( const uno::Reference< XHelperInterface >& xParent, c
// Attributes
void SAL_CALL
-ScVbaListBox::setListIndex( const uno::Any& _value ) throw (uno::RuntimeException, std::exception)
+ScVbaListBox::setListIndex( const uno::Any& _value )
{
sal_Int32 nIndex = 0;
_value >>= nIndex;
@@ -45,7 +45,7 @@ ScVbaListBox::setListIndex( const uno::Any& _value ) throw (uno::RuntimeExceptio
}
uno::Any SAL_CALL
-ScVbaListBox::getListIndex() throw (uno::RuntimeException, std::exception)
+ScVbaListBox::getListIndex()
{
uno::Sequence< sal_Int16 > sSelection;
m_xProps->getPropertyValue( "SelectedItems" ) >>= sSelection;
@@ -55,7 +55,7 @@ ScVbaListBox::getListIndex() throw (uno::RuntimeException, std::exception)
}
uno::Any SAL_CALL
-ScVbaListBox::getValue() throw (uno::RuntimeException, std::exception)
+ScVbaListBox::getValue()
{
uno::Sequence< sal_Int16 > sSelection;
uno::Sequence< OUString > sItems;
@@ -70,7 +70,7 @@ ScVbaListBox::getValue() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaListBox::setValue( const uno::Any& _value ) throw (uno::RuntimeException, std::exception)
+ScVbaListBox::setValue( const uno::Any& _value )
{
if( getMultiSelect() )
{
@@ -103,7 +103,7 @@ ScVbaListBox::setValue( const uno::Any& _value ) throw (uno::RuntimeException, s
}
OUString SAL_CALL
-ScVbaListBox::getText() throw (uno::RuntimeException, std::exception)
+ScVbaListBox::getText()
{
OUString result;
getValue() >>= result;
@@ -111,13 +111,13 @@ ScVbaListBox::getText() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaListBox::setText( const OUString& _text ) throw (uno::RuntimeException, std::exception)
+ScVbaListBox::setText( const OUString& _text )
{
setValue( uno::makeAny( _text ) ); // seems the same
}
sal_Int32 SAL_CALL
-ScVbaListBox::getMultiSelect() throw (css::uno::RuntimeException, std::exception)
+ScVbaListBox::getMultiSelect()
{
bool bMultiSelect = false;
m_xProps->getPropertyValue( "MultiSelection" ) >>= bMultiSelect;
@@ -126,7 +126,7 @@ ScVbaListBox::getMultiSelect() throw (css::uno::RuntimeException, std::exception
}
void SAL_CALL
-ScVbaListBox::setMultiSelect( sal_Int32 _multiselect ) throw (css::uno::RuntimeException, std::exception)
+ScVbaListBox::setMultiSelect( sal_Int32 _multiselect )
{
bool bBoolVal = false;
switch ( _multiselect )
@@ -147,7 +147,7 @@ ScVbaListBox::setMultiSelect( sal_Int32 _multiselect ) throw (css::uno::RuntimeE
css::uno::Any SAL_CALL
-ScVbaListBox::Selected( sal_Int32 index ) throw (css::uno::RuntimeException, std::exception)
+ScVbaListBox::Selected( sal_Int32 index )
{
uno::Sequence< OUString > sList;
m_xProps->getPropertyValue( "StringItemList" ) >>= sList;
@@ -163,19 +163,19 @@ ScVbaListBox::Selected( sal_Int32 index ) throw (css::uno::RuntimeException, std
// Methods
void SAL_CALL
-ScVbaListBox::AddItem( const uno::Any& pvargItem, const uno::Any& pvargIndex ) throw (uno::RuntimeException, std::exception)
+ScVbaListBox::AddItem( const uno::Any& pvargItem, const uno::Any& pvargIndex )
{
mpListHelper->AddItem( pvargItem, pvargIndex );
}
void SAL_CALL
-ScVbaListBox::removeItem( const uno::Any& index ) throw (uno::RuntimeException, std::exception)
+ScVbaListBox::removeItem( const uno::Any& index )
{
mpListHelper->removeItem( index );
}
void SAL_CALL
-ScVbaListBox::Clear( ) throw (uno::RuntimeException, std::exception)
+ScVbaListBox::Clear( )
{
mpListHelper->Clear();
}
@@ -254,25 +254,25 @@ ScVbaListBox::getValueEvent()
}
void SAL_CALL
-ScVbaListBox::setRowSource( const OUString& _rowsource ) throw (uno::RuntimeException, std::exception)
+ScVbaListBox::setRowSource( const OUString& _rowsource )
{
ScVbaControl::setRowSource( _rowsource );
mpListHelper->setRowSource( _rowsource );
}
sal_Int32 SAL_CALL
-ScVbaListBox::getListCount() throw (uno::RuntimeException, std::exception)
+ScVbaListBox::getListCount()
{
return mpListHelper->getListCount();
}
uno::Any SAL_CALL
-ScVbaListBox::List( const ::uno::Any& pvargIndex, const uno::Any& pvarColumn ) throw (uno::RuntimeException, std::exception)
+ScVbaListBox::List( const ::uno::Any& pvargIndex, const uno::Any& pvarColumn )
{
return mpListHelper->List( pvargIndex, pvarColumn );
}
-uno::Reference< msforms::XNewFont > SAL_CALL ScVbaListBox::getFont() throw (uno::RuntimeException, std::exception)
+uno::Reference< msforms::XNewFont > SAL_CALL ScVbaListBox::getFont()
{
return new VbaNewFont( m_xProps );
}
diff --git a/vbahelper/source/msforms/vbalistbox.hxx b/vbahelper/source/msforms/vbalistbox.hxx
index d2f939a6376f..d51410d31e9c 100644
--- a/vbahelper/source/msforms/vbalistbox.hxx
+++ b/vbahelper/source/msforms/vbalistbox.hxx
@@ -41,28 +41,28 @@ public:
ScVbaListBox( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XInterface >& xControl, const css::uno::Reference< css::frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper );
// Attributes
- virtual css::uno::Any SAL_CALL getListIndex() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setListIndex( const css::uno::Any& _value ) throw (css::uno::RuntimeException, std::exception) override;
- virtual ::sal_Int32 SAL_CALL getListCount() throw (css::uno::RuntimeException, std::exception) override;
- 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 OUString SAL_CALL getText() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setText( const OUString& _text ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMultiSelect() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setMultiSelect( sal_Int32 _multiselect ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL getListIndex() override;
+ virtual void SAL_CALL setListIndex( const css::uno::Any& _value ) override;
+ virtual ::sal_Int32 SAL_CALL getListCount() override;
+ virtual css::uno::Any SAL_CALL getValue() override;
+ virtual void SAL_CALL setValue( const css::uno::Any& _value ) override;
+ virtual OUString SAL_CALL getText() override;
+ virtual void SAL_CALL setText( const OUString& _text ) override;
+ virtual sal_Int32 SAL_CALL getMultiSelect() override;
+ virtual void SAL_CALL setMultiSelect( sal_Int32 _multiselect ) override;
+ virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() override;
// Methods
- virtual css::uno::Any SAL_CALL Selected( ::sal_Int32 index ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL AddItem( const css::uno::Any& pvargItem, const css::uno::Any& pvargIndex ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeItem( const css::uno::Any& index ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL Clear( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL List( const css::uno::Any& pvargIndex, const css::uno::Any& pvarColumn ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL Selected( ::sal_Int32 index ) override;
+ virtual void SAL_CALL AddItem( const css::uno::Any& pvargItem, const css::uno::Any& pvargIndex ) override;
+ virtual void SAL_CALL removeItem( const css::uno::Any& index ) override;
+ virtual void SAL_CALL Clear( ) override;
+ virtual css::uno::Any SAL_CALL List( const css::uno::Any& pvargIndex, const css::uno::Any& pvarColumn ) override;
// XControl
- virtual void SAL_CALL setRowSource( const OUString& _rowsource ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setRowSource( const OUString& _rowsource ) override;
// XDefaultProperty
- OUString SAL_CALL getDefaultPropertyName( ) throw (css::uno::RuntimeException, std::exception) override { return OUString("Value"); }
+ OUString SAL_CALL getDefaultPropertyName( ) override { return OUString("Value"); }
//XHelperInterface
virtual OUString getServiceImplName() override;
diff --git a/vbahelper/source/msforms/vbalistcontrolhelper.cxx b/vbahelper/source/msforms/vbalistcontrolhelper.cxx
index 6166154ca0d8..a0a9c73b3964 100644
--- a/vbahelper/source/msforms/vbalistcontrolhelper.cxx
+++ b/vbahelper/source/msforms/vbalistcontrolhelper.cxx
@@ -81,7 +81,7 @@ uno::Any ListPropListener::getValueEvent()
}
void SAL_CALL
-ListControlHelper::AddItem( const uno::Any& pvargItem, const uno::Any& pvargIndex ) throw (uno::RuntimeException)
+ListControlHelper::AddItem( const uno::Any& pvargItem, const uno::Any& pvargIndex )
{
if ( pvargItem.hasValue() )
{
@@ -136,7 +136,7 @@ ListControlHelper::AddItem( const uno::Any& pvargItem, const uno::Any& pvargInde
}
void SAL_CALL
-ListControlHelper::removeItem( const uno::Any& index ) throw (uno::RuntimeException)
+ListControlHelper::removeItem( const uno::Any& index )
{
sal_Int32 nIndex = 0;
// for int index
@@ -165,7 +165,7 @@ ListControlHelper::removeItem( const uno::Any& index ) throw (uno::RuntimeExcept
}
void SAL_CALL
-ListControlHelper::Clear( ) throw (uno::RuntimeException)
+ListControlHelper::Clear( )
{
// urk, setValue doesn't seem to work !!
//setValue( uno::makeAny( sal_Int16() ) );
@@ -173,14 +173,14 @@ ListControlHelper::Clear( ) throw (uno::RuntimeException)
}
void SAL_CALL
-ListControlHelper::setRowSource( const OUString& _rowsource ) throw (uno::RuntimeException)
+ListControlHelper::setRowSource( const OUString& _rowsource )
{
if ( _rowsource.isEmpty() )
Clear();
}
sal_Int32 SAL_CALL
-ListControlHelper::getListCount() throw (uno::RuntimeException)
+ListControlHelper::getListCount()
{
uno::Sequence< OUString > sList;
m_xProps->getPropertyValue( "StringItemList" ) >>= sList;
@@ -188,7 +188,7 @@ ListControlHelper::getListCount() throw (uno::RuntimeException)
}
uno::Any SAL_CALL
-ListControlHelper::List( const ::uno::Any& pvargIndex, const uno::Any& pvarColumn ) throw (uno::RuntimeException)
+ListControlHelper::List( const ::uno::Any& pvargIndex, const uno::Any& pvarColumn )
{
return uno::makeAny( uno::Reference< XPropValue > ( new ScVbaPropValue( new ListPropListener( m_xProps, pvargIndex, pvarColumn ) ) ) );
}
diff --git a/vbahelper/source/msforms/vbalistcontrolhelper.hxx b/vbahelper/source/msforms/vbalistcontrolhelper.hxx
index d83734d93802..334f7347603f 100644
--- a/vbahelper/source/msforms/vbalistcontrolhelper.hxx
+++ b/vbahelper/source/msforms/vbalistcontrolhelper.hxx
@@ -29,17 +29,17 @@ class ListControlHelper final
public:
explicit ListControlHelper( const css::uno::Reference< css::beans::XPropertySet >& rxControl ) : m_xProps( rxControl ){}
/// @throws css::uno::RuntimeException
- void SAL_CALL AddItem( const css::uno::Any& pvargItem, const css::uno::Any& pvargIndex ) throw (css::uno::RuntimeException);
+ void SAL_CALL AddItem( const css::uno::Any& pvargItem, const css::uno::Any& pvargIndex );
/// @throws css::uno::RuntimeException
- void SAL_CALL removeItem( const css::uno::Any& index ) throw (css::uno::RuntimeException);
+ void SAL_CALL removeItem( const css::uno::Any& index );
/// @throws css::uno::RuntimeException
- void SAL_CALL setRowSource( const OUString& _rowsource ) throw (css::uno::RuntimeException);
+ void SAL_CALL setRowSource( const OUString& _rowsource );
/// @throws css::uno::RuntimeException
- ::sal_Int32 SAL_CALL getListCount() throw (css::uno::RuntimeException);
+ ::sal_Int32 SAL_CALL getListCount();
/// @throws css::uno::RuntimeException
- css::uno::Any SAL_CALL List( const css::uno::Any& pvargIndex, const css::uno::Any& pvarColumn ) throw (css::uno::RuntimeException);
+ css::uno::Any SAL_CALL List( const css::uno::Any& pvargIndex, const css::uno::Any& pvarColumn );
/// @throws css::uno::RuntimeException
- void SAL_CALL Clear( ) throw (css::uno::RuntimeException);
+ void SAL_CALL Clear( );
};
#endif
diff --git a/vbahelper/source/msforms/vbamultipage.cxx b/vbahelper/source/msforms/vbamultipage.cxx
index 5ac79e3ad333..89282b4b1249 100644
--- a/vbahelper/source/msforms/vbamultipage.cxx
+++ b/vbahelper/source/msforms/vbamultipage.cxx
@@ -32,21 +32,21 @@ class PagesImpl : public cppu::WeakImplHelper< container::XIndexAccess >
sal_Int32 mnPages;
public:
explicit PagesImpl( sal_Int32 nPages ) : mnPages( nPages ) {}
- virtual ::sal_Int32 SAL_CALL getCount() throw (uno::RuntimeException, std::exception) override { return mnPages; }
- virtual uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, ::uno::RuntimeException, std::exception) override
+ virtual ::sal_Int32 SAL_CALL getCount() override { return mnPages; }
+ virtual uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) override
{
if ( Index < 0 || Index > mnPages )
throw lang::IndexOutOfBoundsException();
return uno::makeAny( uno::Reference< uno::XInterface >() );
}
// XElementAccess
- virtual uno::Type SAL_CALL getElementType() throw (uno::RuntimeException, std::exception) override
+ virtual uno::Type SAL_CALL getElementType() override
{
// no Pages object yet #FIXME
//return cppu::UnoType<msforms::XPage>::get();
return cppu::UnoType<uno::XInterface>::get();
}
- virtual sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasElements( ) override
{
return ( mnPages > 0 );
}
@@ -64,7 +64,7 @@ ScVbaMultiPage::ScVbaMultiPage(
// Attributes
sal_Int32 SAL_CALL
-ScVbaMultiPage::getValue() throw (css::uno::RuntimeException, std::exception)
+ScVbaMultiPage::getValue()
{
sal_Int32 nValue = 0;
m_xProps->getPropertyValue( SVALUE ) >>= nValue;
@@ -73,7 +73,7 @@ ScVbaMultiPage::getValue() throw (css::uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaMultiPage::setValue( const sal_Int32 _value ) throw (css::uno::RuntimeException, std::exception)
+ScVbaMultiPage::setValue( const sal_Int32 _value )
{
// Openoffice 1 based tab index
sal_Int32 nVal = _value + 1;
@@ -90,7 +90,7 @@ ScVbaMultiPage::getServiceImplName()
}
uno::Any SAL_CALL
-ScVbaMultiPage::Pages( const uno::Any& index ) throw (uno::RuntimeException, std::exception)
+ScVbaMultiPage::Pages( const uno::Any& index )
{
// get the container model
uno::Reference< container::XNameContainer > xContainer( m_xProps, uno::UNO_QUERY_THROW );
diff --git a/vbahelper/source/msforms/vbamultipage.hxx b/vbahelper/source/msforms/vbamultipage.hxx
index ba260cfb0cc0..d6d306eaa4b6 100644
--- a/vbahelper/source/msforms/vbamultipage.hxx
+++ b/vbahelper/source/msforms/vbamultipage.hxx
@@ -40,9 +40,9 @@ public:
ov::AbstractGeometryAttributes* pGeomHelper);
// Attributes
- virtual sal_Int32 SAL_CALL getValue() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setValue( sal_Int32 _value ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL Pages( const css::uno::Any& index ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getValue() override;
+ virtual void SAL_CALL setValue( sal_Int32 _value ) override;
+ virtual css::uno::Any SAL_CALL Pages( const css::uno::Any& index ) override;
//XHelperInterface
virtual OUString getServiceImplName() override;
diff --git a/vbahelper/source/msforms/vbanewfont.cxx b/vbahelper/source/msforms/vbanewfont.cxx
index 39293ade4095..30860e10a0ef 100644
--- a/vbahelper/source/msforms/vbanewfont.cxx
+++ b/vbahelper/source/msforms/vbanewfont.cxx
@@ -30,42 +30,42 @@ using namespace ::ooo::vba;
VbaNewFont::VbaNewFont(
- const uno::Reference< beans::XPropertySet >& rxModelProps ) throw (uno::RuntimeException) :
+ const uno::Reference< beans::XPropertySet >& rxModelProps ) :
mxProps( rxModelProps, uno::UNO_SET_THROW )
{
}
// XNewFont attributes
-OUString SAL_CALL VbaNewFont::getName() throw (uno::RuntimeException, std::exception)
+OUString SAL_CALL VbaNewFont::getName()
{
uno::Any aAny = mxProps->getPropertyValue( "FontName" );
return aAny.get< OUString >();
}
-void SAL_CALL VbaNewFont::setName( const OUString& rName ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaNewFont::setName( const OUString& rName )
{
mxProps->setPropertyValue( "FontName" , uno::Any( rName ) );
}
-double SAL_CALL VbaNewFont::getSize() throw (uno::RuntimeException, std::exception)
+double SAL_CALL VbaNewFont::getSize()
{
uno::Any aAny = mxProps->getPropertyValue( "FontHeight" );
return aAny.get< float >();
}
-void SAL_CALL VbaNewFont::setSize( double fSize ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaNewFont::setSize( double fSize )
{
mxProps->setPropertyValue( "FontHeight" , uno::Any( static_cast< float >( fSize ) ) );
}
-sal_Int16 SAL_CALL VbaNewFont::getCharset() throw (uno::RuntimeException, std::exception)
+sal_Int16 SAL_CALL VbaNewFont::getCharset()
{
uno::Any aAny = mxProps->getPropertyValue( "FontCharset" );
return rtl_getBestWindowsCharsetFromTextEncoding( static_cast< rtl_TextEncoding >( aAny.get< sal_Int16 >() ) );
}
-void SAL_CALL VbaNewFont::setCharset( sal_Int16 nCharset ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaNewFont::setCharset( sal_Int16 nCharset )
{
rtl_TextEncoding eFontEnc = RTL_TEXTENCODING_DONTKNOW;
if( (0 <= nCharset) && (nCharset <= SAL_MAX_UINT8) )
@@ -75,56 +75,56 @@ void SAL_CALL VbaNewFont::setCharset( sal_Int16 nCharset ) throw (uno::RuntimeEx
mxProps->setPropertyValue( "FontCharset" , uno::Any( static_cast< sal_Int16 >( eFontEnc ) ) );
}
-sal_Int16 SAL_CALL VbaNewFont::getWeight() throw (uno::RuntimeException, std::exception)
+sal_Int16 SAL_CALL VbaNewFont::getWeight()
{
return getBold() ? 700 : 400;
}
-void SAL_CALL VbaNewFont::setWeight( sal_Int16 nWeight ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaNewFont::setWeight( sal_Int16 nWeight )
{
setBold( nWeight >= 700 );
}
-sal_Bool SAL_CALL VbaNewFont::getBold() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL VbaNewFont::getBold()
{
uno::Any aAny = mxProps->getPropertyValue( "FontWeight" );
return aAny.get< float >() > awt::FontWeight::NORMAL;
}
-void SAL_CALL VbaNewFont::setBold( sal_Bool bBold ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaNewFont::setBold( sal_Bool bBold )
{
mxProps->setPropertyValue( "FontWeight" , uno::Any( bBold ? awt::FontWeight::BOLD : awt::FontWeight::NORMAL ) );
}
-sal_Bool SAL_CALL VbaNewFont::getItalic() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL VbaNewFont::getItalic()
{
uno::Any aAny = mxProps->getPropertyValue( "FontSlant" );
return aAny.get< awt::FontSlant >() != awt::FontSlant_NONE;
}
-void SAL_CALL VbaNewFont::setItalic( sal_Bool bItalic ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaNewFont::setItalic( sal_Bool bItalic )
{
mxProps->setPropertyValue( "FontSlant" , uno::Any( bItalic ? awt::FontSlant_ITALIC : awt::FontSlant_NONE ) );
}
-sal_Bool SAL_CALL VbaNewFont::getUnderline() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL VbaNewFont::getUnderline()
{
uno::Any aAny = mxProps->getPropertyValue("FontUnderline" );
return aAny.get< sal_Int16 >() != awt::FontUnderline::NONE;
}
-void SAL_CALL VbaNewFont::setUnderline( sal_Bool bUnderline ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaNewFont::setUnderline( sal_Bool bUnderline )
{
mxProps->setPropertyValue("FontUnderline" , uno::Any( bUnderline ? awt::FontUnderline::SINGLE : awt::FontUnderline::NONE ) );
}
-sal_Bool SAL_CALL VbaNewFont::getStrikethrough() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL VbaNewFont::getStrikethrough()
{
uno::Any aAny = mxProps->getPropertyValue( "FontStrikeout" );
return aAny.get< sal_Int16 >() != awt::FontStrikeout::NONE;
}
-void SAL_CALL VbaNewFont::setStrikethrough( sal_Bool bStrikethrough ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaNewFont::setStrikethrough( sal_Bool bStrikethrough )
{
mxProps->setPropertyValue( "FontStrikeout" ,uno::Any( bStrikethrough ? awt::FontStrikeout::SINGLE : awt::FontStrikeout::NONE ) );
}
diff --git a/vbahelper/source/msforms/vbanewfont.hxx b/vbahelper/source/msforms/vbanewfont.hxx
index 3a95c1cbc282..bf3d0f1d1400 100644
--- a/vbahelper/source/msforms/vbanewfont.hxx
+++ b/vbahelper/source/msforms/vbanewfont.hxx
@@ -32,25 +32,25 @@ class VbaNewFont : public VbaNewFont_BASE
public:
/// @throws css::uno::RuntimeException
explicit VbaNewFont(
- const css::uno::Reference< css::beans::XPropertySet >& rxModelProps ) throw (css::uno::RuntimeException);
+ const css::uno::Reference< css::beans::XPropertySet >& rxModelProps );
// XNewFont attributes
- virtual OUString SAL_CALL getName() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setName( const OUString& rName ) throw (css::uno::RuntimeException, std::exception) override;
- virtual double SAL_CALL getSize() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setSize( double fSize ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int16 SAL_CALL getCharset() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setCharset( sal_Int16 nCharset ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int16 SAL_CALL getWeight() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setWeight( sal_Int16 nWeight ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getBold() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBold( sal_Bool bBold ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getItalic() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setItalic( sal_Bool bItalic ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getUnderline() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setUnderline( sal_Bool bUnderline ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getStrikethrough() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setStrikethrough( sal_Bool bStrikethrough ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getName() override;
+ virtual void SAL_CALL setName( const OUString& rName ) override;
+ virtual double SAL_CALL getSize() override;
+ virtual void SAL_CALL setSize( double fSize ) override;
+ virtual sal_Int16 SAL_CALL getCharset() override;
+ virtual void SAL_CALL setCharset( sal_Int16 nCharset ) override;
+ virtual sal_Int16 SAL_CALL getWeight() override;
+ virtual void SAL_CALL setWeight( sal_Int16 nWeight ) override;
+ virtual sal_Bool SAL_CALL getBold() override;
+ virtual void SAL_CALL setBold( sal_Bool bBold ) override;
+ virtual sal_Bool SAL_CALL getItalic() override;
+ virtual void SAL_CALL setItalic( sal_Bool bItalic ) override;
+ virtual sal_Bool SAL_CALL getUnderline() override;
+ virtual void SAL_CALL setUnderline( sal_Bool bUnderline ) override;
+ virtual sal_Bool SAL_CALL getStrikethrough() override;
+ virtual void SAL_CALL setStrikethrough( sal_Bool bStrikethrough ) override;
private:
css::uno::Reference< css::beans::XPropertySet > mxProps;
diff --git a/vbahelper/source/msforms/vbapages.cxx b/vbahelper/source/msforms/vbapages.cxx
index fecf870b79e3..6854ef68f82b 100644
--- a/vbahelper/source/msforms/vbapages.cxx
+++ b/vbahelper/source/msforms/vbapages.cxx
@@ -21,12 +21,12 @@
using namespace ::ooo::vba;
using namespace ::com::sun::star;
-ScVbaPages::ScVbaPages( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< container::XIndexAccess >& xPages ) throw( lang::IllegalArgumentException ) : ScVbaPages_BASE( xParent, xContext, xPages )
+ScVbaPages::ScVbaPages( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< container::XIndexAccess >& xPages ) : ScVbaPages_BASE( xParent, xContext, xPages )
{
}
uno::Type SAL_CALL
-ScVbaPages::getElementType() throw (uno::RuntimeException)
+ScVbaPages::getElementType()
{
// return cppu::UnoType<msforms::XPage>::get();
return cppu::UnoType<uno::XInterface>::get();
@@ -45,7 +45,7 @@ ScVbaPages::getServiceImplName()
}
uno::Reference< container::XEnumeration > SAL_CALL
-ScVbaPages::createEnumeration() throw (uno::RuntimeException)
+ScVbaPages::createEnumeration()
{
// #STUB
return uno::Reference< container::XEnumeration >();
diff --git a/vbahelper/source/msforms/vbapages.hxx b/vbahelper/source/msforms/vbapages.hxx
index b71da38d9d10..c9845fb0cc2e 100644
--- a/vbahelper/source/msforms/vbapages.hxx
+++ b/vbahelper/source/msforms/vbapages.hxx
@@ -35,11 +35,11 @@ protected:
virtual css::uno::Sequence<OUString> getServiceNames() override;
public:
/// @throws css::lang::IllegalArgumentException
- ScVbaPages( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xPages ) throw ( css::lang::IllegalArgumentException );
+ ScVbaPages( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xPages );
virtual ~ScVbaPages() 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;
// ScVbaPages_BASE
virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource ) override;
diff --git a/vbahelper/source/msforms/vbaprogressbar.cxx b/vbahelper/source/msforms/vbaprogressbar.cxx
index 7d7bbf2ebb45..002670e71c0b 100644
--- a/vbahelper/source/msforms/vbaprogressbar.cxx
+++ b/vbahelper/source/msforms/vbaprogressbar.cxx
@@ -30,13 +30,13 @@ ScVbaProgressBar::ScVbaProgressBar( const uno::Reference< ov::XHelperInterface >
// Attributes
uno::Any SAL_CALL
-ScVbaProgressBar::getValue() throw (css::uno::RuntimeException, std::exception)
+ScVbaProgressBar::getValue()
{
return m_xProps->getPropertyValue( SVALUE );
}
void SAL_CALL
-ScVbaProgressBar::setValue( const uno::Any& _value ) throw (css::uno::RuntimeException, std::exception)
+ScVbaProgressBar::setValue( const uno::Any& _value )
{
m_xProps->setPropertyValue( SVALUE, _value );
}
diff --git a/vbahelper/source/msforms/vbaprogressbar.hxx b/vbahelper/source/msforms/vbaprogressbar.hxx
index ab00704ff38a..d63854e25023 100644
--- a/vbahelper/source/msforms/vbaprogressbar.hxx
+++ b/vbahelper/source/msforms/vbaprogressbar.hxx
@@ -33,13 +33,13 @@ class ScVbaProgressBar : public ProgressBarImpl_BASE
public:
ScVbaProgressBar( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XInterface >& xControl, const css::uno::Reference< css::frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper );
// 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;
//XHelperInterface
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
// XDefaultProperty
- OUString SAL_CALL getDefaultPropertyName( ) throw (css::uno::RuntimeException, std::exception) override { return OUString("Value"); }
+ OUString SAL_CALL getDefaultPropertyName( ) override { return OUString("Value"); }
};
#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAPROGRESSBAR_HXX
diff --git a/vbahelper/source/msforms/vbaradiobutton.cxx b/vbahelper/source/msforms/vbaradiobutton.cxx
index 27984d74985d..776bdba07df4 100644
--- a/vbahelper/source/msforms/vbaradiobutton.cxx
+++ b/vbahelper/source/msforms/vbaradiobutton.cxx
@@ -29,7 +29,7 @@ ScVbaRadioButton::ScVbaRadioButton( const uno::Reference< XHelperInterface >& xP
// Attributes
OUString SAL_CALL
-ScVbaRadioButton::getCaption() throw (css::uno::RuntimeException, std::exception)
+ScVbaRadioButton::getCaption()
{
OUString Label;
m_xProps->getPropertyValue( "Label" ) >>= Label;
@@ -37,13 +37,13 @@ ScVbaRadioButton::getCaption() throw (css::uno::RuntimeException, std::exception
}
void SAL_CALL
-ScVbaRadioButton::setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception)
+ScVbaRadioButton::setCaption( const OUString& _caption )
{
m_xProps->setPropertyValue( "Label", uno::makeAny( _caption ) );
}
uno::Any SAL_CALL
-ScVbaRadioButton::getValue() throw (css::uno::RuntimeException, std::exception)
+ScVbaRadioButton::getValue()
{
sal_Int16 nValue = -1;
m_xProps->getPropertyValue( "State" ) >>= nValue;
@@ -57,7 +57,7 @@ ScVbaRadioButton::getValue() throw (css::uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaRadioButton::setValue( const uno::Any& _value ) throw (uno::RuntimeException, std::exception)
+ScVbaRadioButton::setValue( const uno::Any& _value )
{
sal_Int16 nValue = 0;
sal_Int16 nOldValue = 0;
@@ -85,7 +85,7 @@ ScVbaRadioButton::setValue( const uno::Any& _value ) throw (uno::RuntimeExceptio
}
}
-uno::Reference< msforms::XNewFont > SAL_CALL ScVbaRadioButton::getFont() throw (uno::RuntimeException, std::exception)
+uno::Reference< msforms::XNewFont > SAL_CALL ScVbaRadioButton::getFont()
{
return new VbaNewFont( m_xProps );
}
diff --git a/vbahelper/source/msforms/vbaradiobutton.hxx b/vbahelper/source/msforms/vbaradiobutton.hxx
index d688430716a1..e8df30e84644 100644
--- a/vbahelper/source/msforms/vbaradiobutton.hxx
+++ b/vbahelper/source/msforms/vbaradiobutton.hxx
@@ -30,16 +30,16 @@ class ScVbaRadioButton : public RadioButtonImpl_BASE
public:
ScVbaRadioButton( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XInterface >& xControl, const css::uno::Reference< css::frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper );
// Attributes
- virtual OUString SAL_CALL getCaption() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL getValue() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setValue(const css::uno::Any&) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getCaption() override;
+ virtual void SAL_CALL setCaption( const OUString& _caption ) override;
+ virtual css::uno::Any SAL_CALL getValue() override;
+ virtual void SAL_CALL setValue(const css::uno::Any&) override;
+ virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() override;
//XHelperInterface
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
// XDefaultProperty
- OUString SAL_CALL getDefaultPropertyName( ) throw (css::uno::RuntimeException, std::exception) override { return OUString("Value"); }
+ OUString SAL_CALL getDefaultPropertyName( ) override { return OUString("Value"); }
};
#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBARADIOBUTTON_HXX
diff --git a/vbahelper/source/msforms/vbascrollbar.cxx b/vbahelper/source/msforms/vbascrollbar.cxx
index 520b0af438da..6c2effdd492b 100644
--- a/vbahelper/source/msforms/vbascrollbar.cxx
+++ b/vbahelper/source/msforms/vbascrollbar.cxx
@@ -28,19 +28,19 @@ ScVbaScrollBar::ScVbaScrollBar( const css::uno::Reference< ov::XHelperInterface
// Attributes
uno::Any SAL_CALL
-ScVbaScrollBar::getValue() throw (css::uno::RuntimeException, std::exception)
+ScVbaScrollBar::getValue()
{
return m_xProps->getPropertyValue( "ScrollValue" );
}
void SAL_CALL
-ScVbaScrollBar::setValue( const uno::Any& _value ) throw (css::uno::RuntimeException, std::exception)
+ScVbaScrollBar::setValue( const uno::Any& _value )
{
m_xProps->setPropertyValue( "ScrollValue", _value );
}
::sal_Int32 SAL_CALL
-ScVbaScrollBar::getMax() throw (uno::RuntimeException, std::exception)
+ScVbaScrollBar::getMax()
{
sal_Int32 nMax = 0;
m_xProps->getPropertyValue( "ScrollValueMax" ) >>= nMax;
@@ -48,13 +48,13 @@ ScVbaScrollBar::getMax() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaScrollBar::setMax( sal_Int32 nVal ) throw (uno::RuntimeException, std::exception)
+ScVbaScrollBar::setMax( sal_Int32 nVal )
{
m_xProps->setPropertyValue( "ScrollValueMax", uno::makeAny( nVal ) );
}
::sal_Int32 SAL_CALL
-ScVbaScrollBar::getMin() throw (uno::RuntimeException, std::exception)
+ScVbaScrollBar::getMin()
{
sal_Int32 nVal = 0;
m_xProps->getPropertyValue( "ScrollValueMin" ) >>= nVal;
@@ -62,19 +62,19 @@ ScVbaScrollBar::getMin() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaScrollBar::setMin( sal_Int32 nVal ) throw (uno::RuntimeException, std::exception)
+ScVbaScrollBar::setMin( sal_Int32 nVal )
{
m_xProps->setPropertyValue( "ScrollValueMin", uno::makeAny( nVal ) );
}
void SAL_CALL
-ScVbaScrollBar::setLargeChange( ::sal_Int32 _largechange ) throw (uno::RuntimeException, std::exception)
+ScVbaScrollBar::setLargeChange( ::sal_Int32 _largechange )
{
m_xProps->setPropertyValue( "BlockIncrement", uno::makeAny( _largechange ) );
}
::sal_Int32 SAL_CALL
-ScVbaScrollBar::getLargeChange() throw (uno::RuntimeException, std::exception)
+ScVbaScrollBar::getLargeChange()
{
sal_Int32 nVal = 0;
m_xProps->getPropertyValue( "BlockIncrement" ) >>= nVal;
@@ -82,7 +82,7 @@ ScVbaScrollBar::getLargeChange() throw (uno::RuntimeException, std::exception)
}
::sal_Int32 SAL_CALL
-ScVbaScrollBar::getSmallChange() throw (uno::RuntimeException, std::exception)
+ScVbaScrollBar::getSmallChange()
{
sal_Int32 nSmallChange = 0;
m_xProps->getPropertyValue( "LineIncrement" ) >>= nSmallChange;
@@ -90,7 +90,7 @@ ScVbaScrollBar::getSmallChange() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaScrollBar::setSmallChange( ::sal_Int32 _smallchange ) throw (uno::RuntimeException, std::exception)
+ScVbaScrollBar::setSmallChange( ::sal_Int32 _smallchange )
{
m_xProps->setPropertyValue( "LineIncrement", uno::makeAny( _smallchange ) );
}
diff --git a/vbahelper/source/msforms/vbascrollbar.hxx b/vbahelper/source/msforms/vbascrollbar.hxx
index addd19fd6f8c..d76cf576f394 100644
--- a/vbahelper/source/msforms/vbascrollbar.hxx
+++ b/vbahelper/source/msforms/vbascrollbar.hxx
@@ -33,16 +33,16 @@ class ScVbaScrollBar : public ScrollBarImpl_BASE
public:
ScVbaScrollBar( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XInterface >& xControl, const css::uno::Reference< css::frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper );
// 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 ::sal_Int32 SAL_CALL getMax() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setMax( ::sal_Int32 _max ) throw (css::uno::RuntimeException, std::exception) override;
- virtual ::sal_Int32 SAL_CALL getMin() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setMin( ::sal_Int32 _min ) throw (css::uno::RuntimeException, std::exception) override;
- virtual ::sal_Int32 SAL_CALL getLargeChange() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setLargeChange( ::sal_Int32 _largechange ) throw (css::uno::RuntimeException, std::exception) override;
- virtual ::sal_Int32 SAL_CALL getSmallChange() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setSmallChange( ::sal_Int32 _smallchange ) 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;
+ virtual ::sal_Int32 SAL_CALL getMax() override;
+ virtual void SAL_CALL setMax( ::sal_Int32 _max ) override;
+ virtual ::sal_Int32 SAL_CALL getMin() override;
+ virtual void SAL_CALL setMin( ::sal_Int32 _min ) override;
+ virtual ::sal_Int32 SAL_CALL getLargeChange() override;
+ virtual void SAL_CALL setLargeChange( ::sal_Int32 _largechange ) override;
+ virtual ::sal_Int32 SAL_CALL getSmallChange() override;
+ virtual void SAL_CALL setSmallChange( ::sal_Int32 _smallchange ) override;
//XHelperInterface
diff --git a/vbahelper/source/msforms/vbaspinbutton.cxx b/vbahelper/source/msforms/vbaspinbutton.cxx
index 7a6eda2bd4a6..6023374d78c0 100644
--- a/vbahelper/source/msforms/vbaspinbutton.cxx
+++ b/vbahelper/source/msforms/vbaspinbutton.cxx
@@ -28,19 +28,19 @@ ScVbaSpinButton::ScVbaSpinButton( const css::uno::Reference< ov::XHelperInterfa
// Attributes
uno::Any SAL_CALL
-ScVbaSpinButton::getValue() throw (css::uno::RuntimeException, std::exception)
+ScVbaSpinButton::getValue()
{
return m_xProps->getPropertyValue( "SpinValue" );
}
void SAL_CALL
-ScVbaSpinButton::setValue( const uno::Any& _value ) throw (css::uno::RuntimeException, std::exception)
+ScVbaSpinButton::setValue( const uno::Any& _value )
{
m_xProps->setPropertyValue( "SpinValue", _value );
}
::sal_Int32 SAL_CALL
-ScVbaSpinButton::getMax() throw (uno::RuntimeException, std::exception)
+ScVbaSpinButton::getMax()
{
sal_Int32 nMax = 0;
m_xProps->getPropertyValue( "SpinValueMax" ) >>= nMax;
@@ -48,13 +48,13 @@ ScVbaSpinButton::getMax() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaSpinButton::setMax( sal_Int32 nVal ) throw (uno::RuntimeException, std::exception)
+ScVbaSpinButton::setMax( sal_Int32 nVal )
{
m_xProps->setPropertyValue( "SpinValueMax", uno::makeAny( nVal ) );
}
::sal_Int32 SAL_CALL
-ScVbaSpinButton::getMin() throw (uno::RuntimeException, std::exception)
+ScVbaSpinButton::getMin()
{
sal_Int32 nVal = 0;
m_xProps->getPropertyValue( "SpinValueMin" ) >>= nVal;
@@ -62,7 +62,7 @@ ScVbaSpinButton::getMin() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaSpinButton::setMin( sal_Int32 nVal ) throw (uno::RuntimeException, std::exception)
+ScVbaSpinButton::setMin( sal_Int32 nVal )
{
m_xProps->setPropertyValue( "SpinValueMin", uno::makeAny( nVal ) );
}
diff --git a/vbahelper/source/msforms/vbaspinbutton.hxx b/vbahelper/source/msforms/vbaspinbutton.hxx
index aae3dc649745..ecc26a0c7a2f 100644
--- a/vbahelper/source/msforms/vbaspinbutton.hxx
+++ b/vbahelper/source/msforms/vbaspinbutton.hxx
@@ -31,12 +31,12 @@ class ScVbaSpinButton : public SpinButtonImpl_BASE
public:
ScVbaSpinButton( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XInterface >& xControl, const css::uno::Reference< css::frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper );
// 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 ::sal_Int32 SAL_CALL getMax() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setMax( ::sal_Int32 _max ) throw (css::uno::RuntimeException, std::exception) override;
- virtual ::sal_Int32 SAL_CALL getMin() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setMin( ::sal_Int32 _min ) 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;
+ virtual ::sal_Int32 SAL_CALL getMax() override;
+ virtual void SAL_CALL setMax( ::sal_Int32 _max ) override;
+ virtual ::sal_Int32 SAL_CALL getMin() override;
+ virtual void SAL_CALL setMin( ::sal_Int32 _min ) override;
//XHelperInterface
virtual OUString getServiceImplName() override;
diff --git a/vbahelper/source/msforms/vbasystemaxcontrol.cxx b/vbahelper/source/msforms/vbasystemaxcontrol.cxx
index 016224a05755..a11bbe9db56e 100644
--- a/vbahelper/source/msforms/vbasystemaxcontrol.cxx
+++ b/vbahelper/source/msforms/vbasystemaxcontrol.cxx
@@ -30,42 +30,36 @@ VbaSystemAXControl::VbaSystemAXControl( const uno::Reference< ov::XHelperInterf
uno::Reference< beans::XIntrospectionAccess > SAL_CALL VbaSystemAXControl::getIntrospection()
- throw ( uno::RuntimeException, std::exception )
{
return m_xControlInvocation->getIntrospection();
}
uno::Any SAL_CALL VbaSystemAXControl::invoke( const OUString& aFunctionName, const uno::Sequence< uno::Any >& aParams, uno::Sequence< ::sal_Int16 >& aOutParamIndex, uno::Sequence< uno::Any >& aOutParam )
- throw ( lang::IllegalArgumentException, script::CannotConvertException, reflection::InvocationTargetException, uno::RuntimeException, std::exception )
{
return m_xControlInvocation->invoke( aFunctionName, aParams, aOutParamIndex, aOutParam );
}
void SAL_CALL VbaSystemAXControl::setValue( const OUString& aPropertyName, const uno::Any& aValue )
- throw ( beans::UnknownPropertyException, script::CannotConvertException, reflection::InvocationTargetException, uno::RuntimeException, std::exception )
{
m_xControlInvocation->setValue( aPropertyName, aValue );
}
uno::Any SAL_CALL VbaSystemAXControl::getValue( const OUString& aPropertyName )
- throw ( beans::UnknownPropertyException, uno::RuntimeException, std::exception )
{
return m_xControlInvocation->getValue( aPropertyName );
}
sal_Bool SAL_CALL VbaSystemAXControl::hasMethod( const OUString& aName )
- throw ( uno::RuntimeException, std::exception )
{
return m_xControlInvocation->hasMethod( aName );
}
sal_Bool SAL_CALL VbaSystemAXControl::hasProperty( const OUString& aName )
- throw ( uno::RuntimeException, std::exception )
{
return m_xControlInvocation->hasProperty( aName );
}
diff --git a/vbahelper/source/msforms/vbasystemaxcontrol.hxx b/vbahelper/source/msforms/vbasystemaxcontrol.hxx
index 5dde95aeeba7..5033f2f00cf1 100644
--- a/vbahelper/source/msforms/vbasystemaxcontrol.hxx
+++ b/vbahelper/source/msforms/vbasystemaxcontrol.hxx
@@ -35,12 +35,12 @@ public:
VbaSystemAXControl( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XInterface >& xControl, const css::uno::Reference< css::frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper );
// XInvocation
- virtual css::uno::Reference< css::beans::XIntrospectionAccess > SAL_CALL getIntrospection( ) throw ( css::uno::RuntimeException, std::exception ) override;
- virtual css::uno::Any SAL_CALL invoke( const OUString& aFunctionName, const css::uno::Sequence< css::uno::Any >& aParams, css::uno::Sequence< ::sal_Int16 >& aOutParamIndex, css::uno::Sequence< css::uno::Any >& aOutParam ) throw ( css::lang::IllegalArgumentException, css::script::CannotConvertException, css::reflection::InvocationTargetException, css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL setValue( const OUString& aPropertyName, const css::uno::Any& aValue ) throw ( css::beans::UnknownPropertyException, css::script::CannotConvertException, css::reflection::InvocationTargetException, css::uno::RuntimeException, std::exception ) override;
- virtual css::uno::Any SAL_CALL getValue( const OUString& aPropertyName ) throw ( css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception ) override;
- virtual sal_Bool SAL_CALL hasMethod( const OUString& aName ) throw ( css::uno::RuntimeException, std::exception ) override;
- virtual sal_Bool SAL_CALL hasProperty( const OUString& aName ) throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Reference< css::beans::XIntrospectionAccess > SAL_CALL getIntrospection( ) override;
+ virtual css::uno::Any SAL_CALL invoke( const OUString& aFunctionName, const css::uno::Sequence< css::uno::Any >& aParams, css::uno::Sequence< ::sal_Int16 >& aOutParamIndex, css::uno::Sequence< css::uno::Any >& aOutParam ) override;
+ virtual void SAL_CALL setValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
+ virtual css::uno::Any SAL_CALL getValue( const OUString& aPropertyName ) override;
+ virtual sal_Bool SAL_CALL hasMethod( const OUString& aName ) override;
+ virtual sal_Bool SAL_CALL hasProperty( const OUString& aName ) override;
//XHelperInterface
virtual OUString getServiceImplName() override;
diff --git a/vbahelper/source/msforms/vbatextbox.cxx b/vbahelper/source/msforms/vbatextbox.cxx
index 36e256eb21b5..b8ef93550c16 100644
--- a/vbahelper/source/msforms/vbatextbox.cxx
+++ b/vbahelper/source/msforms/vbatextbox.cxx
@@ -32,13 +32,13 @@ ScVbaTextBox::ScVbaTextBox( const uno::Reference< ov::XHelperInterface >& xParen
// Attributes
uno::Any SAL_CALL
-ScVbaTextBox::getValue() throw (css::uno::RuntimeException, std::exception)
+ScVbaTextBox::getValue()
{
return uno::makeAny( getText() );
}
void SAL_CALL
-ScVbaTextBox::setValue( const uno::Any& _value ) throw (css::uno::RuntimeException, std::exception)
+ScVbaTextBox::setValue( const uno::Any& _value )
{
// booleans are converted to uppercase strings
OUString sVal = extractStringFromAny( _value, true );
@@ -47,7 +47,7 @@ ScVbaTextBox::setValue( const uno::Any& _value ) throw (css::uno::RuntimeExcepti
//getString() will cause some info lose.
OUString SAL_CALL
-ScVbaTextBox::getText() throw (css::uno::RuntimeException, std::exception)
+ScVbaTextBox::getText()
{
uno::Any aValue;
aValue = m_xProps->getPropertyValue( "Text" );
@@ -57,7 +57,7 @@ ScVbaTextBox::getText() throw (css::uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaTextBox::setText( const OUString& _text ) throw (css::uno::RuntimeException, std::exception)
+ScVbaTextBox::setText( const OUString& _text )
{
OUString oldText( getText() );
if ( !mbDialog )
@@ -72,7 +72,7 @@ ScVbaTextBox::setText( const OUString& _text ) throw (css::uno::RuntimeException
}
sal_Int32 SAL_CALL
-ScVbaTextBox::getMaxLength() throw (css::uno::RuntimeException, std::exception)
+ScVbaTextBox::getMaxLength()
{
uno::Any aValue;
aValue = m_xProps->getPropertyValue( "MaxTextLen" );
@@ -82,7 +82,7 @@ ScVbaTextBox::getMaxLength() throw (css::uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaTextBox::setMaxLength( sal_Int32 _maxlength ) throw (css::uno::RuntimeException, std::exception)
+ScVbaTextBox::setMaxLength( sal_Int32 _maxlength )
{
sal_Int16 nTmp( _maxlength );
uno::Any aValue( nTmp );
@@ -90,7 +90,7 @@ ScVbaTextBox::setMaxLength( sal_Int32 _maxlength ) throw (css::uno::RuntimeExcep
}
sal_Bool SAL_CALL
-ScVbaTextBox::getMultiline() throw (css::uno::RuntimeException, std::exception)
+ScVbaTextBox::getMultiline()
{
uno::Any aValue;
aValue = m_xProps->getPropertyValue( "MultiLine" );
@@ -100,68 +100,68 @@ ScVbaTextBox::getMultiline() throw (css::uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaTextBox::setMultiline( sal_Bool _multiline ) throw (css::uno::RuntimeException, std::exception)
+ScVbaTextBox::setMultiline( sal_Bool _multiline )
{
uno::Any aValue( _multiline );
m_xProps->setPropertyValue( "MultiLine" , aValue);
}
-sal_Int32 SAL_CALL ScVbaTextBox::getSpecialEffect() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaTextBox::getSpecialEffect()
{
return msforms::fmSpecialEffect::fmSpecialEffectSunken;
}
-void SAL_CALL ScVbaTextBox::setSpecialEffect( sal_Int32 /*nSpecialEffect*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaTextBox::setSpecialEffect( sal_Int32 /*nSpecialEffect*/ )
{
// #STUB
}
-sal_Int32 SAL_CALL ScVbaTextBox::getBorderStyle() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaTextBox::getBorderStyle()
{
return msforms::fmBorderStyle::fmBorderStyleNone;
}
-void SAL_CALL ScVbaTextBox::setBorderStyle( sal_Int32 /*nBorderStyle*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaTextBox::setBorderStyle( sal_Int32 /*nBorderStyle*/ )
{
// #STUB
}
-sal_Int32 SAL_CALL ScVbaTextBox::getTextLength() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaTextBox::getTextLength()
{
return getText().getLength();
}
-uno::Reference< msforms::XNewFont > SAL_CALL ScVbaTextBox::getFont() throw (uno::RuntimeException, std::exception)
+uno::Reference< msforms::XNewFont > SAL_CALL ScVbaTextBox::getFont()
{
return new VbaNewFont( m_xProps );
}
-sal_Int32 SAL_CALL ScVbaTextBox::getBackColor() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaTextBox::getBackColor()
{
return ScVbaControl::getBackColor();
}
-void SAL_CALL ScVbaTextBox::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaTextBox::setBackColor( sal_Int32 nBackColor )
{
ScVbaControl::setBackColor( nBackColor );
}
-sal_Bool SAL_CALL ScVbaTextBox::getAutoSize() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaTextBox::getAutoSize()
{
return ScVbaControl::getAutoSize();
}
-void SAL_CALL ScVbaTextBox::setAutoSize( sal_Bool bAutoSize ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaTextBox::setAutoSize( sal_Bool bAutoSize )
{
ScVbaControl::setAutoSize( bAutoSize );
}
-sal_Bool SAL_CALL ScVbaTextBox::getLocked() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaTextBox::getLocked()
{
return ScVbaControl::getLocked();
}
-void SAL_CALL ScVbaTextBox::setLocked( sal_Bool bLocked ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaTextBox::setLocked( sal_Bool bLocked )
{
ScVbaControl::setLocked( bLocked );
}
diff --git a/vbahelper/source/msforms/vbatextbox.hxx b/vbahelper/source/msforms/vbatextbox.hxx
index 598bbe5842c1..8081471ba118 100644
--- a/vbahelper/source/msforms/vbatextbox.hxx
+++ b/vbahelper/source/msforms/vbatextbox.hxx
@@ -33,29 +33,29 @@ class ScVbaTextBox : public TextBoxImpl_BASE
public:
ScVbaTextBox( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XInterface >& xControl, const css::uno::Reference< css::frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper, bool bDialog = false );
// 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 OUString SAL_CALL getText() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setText( const OUString& _text ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxLength() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setMaxLength( sal_Int32 _maxlength ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getMultiline() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setMultiline( sal_Bool _multiline ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getSpecialEffect() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setSpecialEffect( sal_Int32 nSpecialEffect ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getBorderStyle() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBorderStyle( sal_Int32 nBorderStyle ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getTextLength() throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getBackColor() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBackColor( sal_Int32 nBackColor ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getAutoSize() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setAutoSize( sal_Bool bAutoSize ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getLocked() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setLocked( sal_Bool bAutoSize ) 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;
+ virtual OUString SAL_CALL getText() override;
+ virtual void SAL_CALL setText( const OUString& _text ) override;
+ virtual sal_Int32 SAL_CALL getMaxLength() override;
+ virtual void SAL_CALL setMaxLength( sal_Int32 _maxlength ) override;
+ virtual sal_Bool SAL_CALL getMultiline() override;
+ virtual void SAL_CALL setMultiline( sal_Bool _multiline ) override;
+ virtual sal_Int32 SAL_CALL getSpecialEffect() override;
+ virtual void SAL_CALL setSpecialEffect( sal_Int32 nSpecialEffect ) override;
+ virtual sal_Int32 SAL_CALL getBorderStyle() override;
+ virtual void SAL_CALL setBorderStyle( sal_Int32 nBorderStyle ) override;
+ virtual sal_Int32 SAL_CALL getTextLength() override;
+ virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() override;
+ virtual sal_Int32 SAL_CALL getBackColor() override;
+ virtual void SAL_CALL setBackColor( sal_Int32 nBackColor ) override;
+ virtual sal_Bool SAL_CALL getAutoSize() override;
+ virtual void SAL_CALL setAutoSize( sal_Bool bAutoSize ) override;
+ virtual sal_Bool SAL_CALL getLocked() override;
+ virtual void SAL_CALL setLocked( sal_Bool bAutoSize ) override;
// XDefaultProperty
- OUString SAL_CALL getDefaultPropertyName( ) throw (css::uno::RuntimeException, std::exception) override { return OUString("Value"); }
+ OUString SAL_CALL getDefaultPropertyName( ) override { return OUString("Value"); }
//XHelperInterface
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
diff --git a/vbahelper/source/msforms/vbatogglebutton.cxx b/vbahelper/source/msforms/vbatogglebutton.cxx
index 6c92648c36b0..c603eb3dc71b 100644
--- a/vbahelper/source/msforms/vbatogglebutton.cxx
+++ b/vbahelper/source/msforms/vbatogglebutton.cxx
@@ -36,7 +36,7 @@ ScVbaToggleButton::~ScVbaToggleButton()
// Attributes
OUString SAL_CALL
-ScVbaToggleButton::getCaption() throw (css::uno::RuntimeException, std::exception)
+ScVbaToggleButton::getCaption()
{
OUString Label;
m_xProps->getPropertyValue( "Label" ) >>= Label;
@@ -44,13 +44,13 @@ ScVbaToggleButton::getCaption() throw (css::uno::RuntimeException, std::exceptio
}
void SAL_CALL
-ScVbaToggleButton::setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception)
+ScVbaToggleButton::setCaption( const OUString& _caption )
{
m_xProps->setPropertyValue( "Label", uno::makeAny( _caption ) );
}
uno::Any SAL_CALL
-ScVbaToggleButton::getValue() throw (uno::RuntimeException, std::exception)
+ScVbaToggleButton::getValue()
{
sal_Int16 nState = 0;
m_xProps->getPropertyValue( "State" ) >>= nState;
@@ -59,7 +59,7 @@ ScVbaToggleButton::getValue() throw (uno::RuntimeException, std::exception)
void SAL_CALL
-ScVbaToggleButton::setValue( const uno::Any& _value ) throw (uno::RuntimeException, std::exception)
+ScVbaToggleButton::setValue( const uno::Any& _value )
{
sal_Int16 nState = 0;
if ( ! ( _value >>= nState ) )
@@ -75,70 +75,70 @@ ScVbaToggleButton::setValue( const uno::Any& _value ) throw (uno::RuntimeExcepti
m_xProps->setPropertyValue( "State", uno::makeAny( nState ) );
}
-sal_Bool SAL_CALL ScVbaToggleButton::getAutoSize() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaToggleButton::getAutoSize()
{
return ScVbaControl::getAutoSize();
}
-void SAL_CALL ScVbaToggleButton::setAutoSize( sal_Bool bAutoSize ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaToggleButton::setAutoSize( sal_Bool bAutoSize )
{
ScVbaControl::setAutoSize( bAutoSize );
}
-sal_Bool SAL_CALL ScVbaToggleButton::getCancel() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaToggleButton::getCancel()
{
// #STUB
return false;
}
-void SAL_CALL ScVbaToggleButton::setCancel( sal_Bool /*bCancel*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaToggleButton::setCancel( sal_Bool /*bCancel*/ )
{
// #STUB
}
-sal_Bool SAL_CALL ScVbaToggleButton::getDefault() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaToggleButton::getDefault()
{
// #STUB
return false;
}
-void SAL_CALL ScVbaToggleButton::setDefault( sal_Bool /*bDefault*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaToggleButton::setDefault( sal_Bool /*bDefault*/ )
{
// #STUB
}
-sal_Int32 SAL_CALL ScVbaToggleButton::getBackColor() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaToggleButton::getBackColor()
{
return ScVbaControl::getBackColor();
}
-void SAL_CALL ScVbaToggleButton::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaToggleButton::setBackColor( sal_Int32 nBackColor )
{
ScVbaControl::setBackColor( nBackColor );
}
-sal_Int32 SAL_CALL ScVbaToggleButton::getForeColor() throw (uno::RuntimeException)
+sal_Int32 SAL_CALL ScVbaToggleButton::getForeColor()
{
// #STUB
return 0;
}
-void SAL_CALL ScVbaToggleButton::setForeColor( sal_Int32 /*nForeColor*/ ) throw (uno::RuntimeException)
+void SAL_CALL ScVbaToggleButton::setForeColor( sal_Int32 /*nForeColor*/ )
{
// #STUB
}
-uno::Reference< msforms::XNewFont > SAL_CALL ScVbaToggleButton::getFont() throw (uno::RuntimeException, std::exception)
+uno::Reference< msforms::XNewFont > SAL_CALL ScVbaToggleButton::getFont()
{
return new VbaNewFont( m_xProps );
}
-sal_Bool SAL_CALL ScVbaToggleButton::getLocked() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaToggleButton::getLocked()
{
return ScVbaControl::getLocked();
}
-void SAL_CALL ScVbaToggleButton::setLocked( sal_Bool bLocked ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaToggleButton::setLocked( sal_Bool bLocked )
{
ScVbaControl::setLocked( bLocked );
}
diff --git a/vbahelper/source/msforms/vbatogglebutton.hxx b/vbahelper/source/msforms/vbatogglebutton.hxx
index 0d73cd3679fa..f320b3b954f6 100644
--- a/vbahelper/source/msforms/vbatogglebutton.hxx
+++ b/vbahelper/source/msforms/vbatogglebutton.hxx
@@ -32,28 +32,28 @@ public:
ScVbaToggleButton( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XInterface >& xControl, const css::uno::Reference< css::frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper );
virtual ~ScVbaToggleButton() override;
// 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 OUString SAL_CALL getCaption() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getAutoSize() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setAutoSize( sal_Bool bAutoSize ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getCancel() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setCancel( sal_Bool bCancel ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getDefault() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setDefault( sal_Bool bDefault ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getBackColor() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBackColor( sal_Int32 nBackColor ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getForeColor() throw (css::uno::RuntimeException) override;
- virtual void SAL_CALL setForeColor( sal_Int32 nForeColor ) throw (css::uno::RuntimeException) override;
- virtual sal_Bool SAL_CALL getLocked() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setLocked( sal_Bool bAutoSize ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() 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;
+ virtual OUString SAL_CALL getCaption() override;
+ virtual void SAL_CALL setCaption( const OUString& _caption ) override;
+ virtual sal_Bool SAL_CALL getAutoSize() override;
+ virtual void SAL_CALL setAutoSize( sal_Bool bAutoSize ) override;
+ virtual sal_Bool SAL_CALL getCancel() override;
+ virtual void SAL_CALL setCancel( sal_Bool bCancel ) override;
+ virtual sal_Bool SAL_CALL getDefault() override;
+ virtual void SAL_CALL setDefault( sal_Bool bDefault ) override;
+ virtual sal_Int32 SAL_CALL getBackColor() override;
+ virtual void SAL_CALL setBackColor( sal_Int32 nBackColor ) override;
+ virtual sal_Int32 SAL_CALL getForeColor() override;
+ virtual void SAL_CALL setForeColor( sal_Int32 nForeColor ) override;
+ virtual sal_Bool SAL_CALL getLocked() override;
+ virtual void SAL_CALL setLocked( sal_Bool bAutoSize ) override;
+ virtual css::uno::Reference< ov::msforms::XNewFont > SAL_CALL getFont() override;
//XHelperInterface
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
// XDefaultProperty
- OUString SAL_CALL getDefaultPropertyName( ) throw (css::uno::RuntimeException, std::exception) override { return OUString("Value"); }
+ OUString SAL_CALL getDefaultPropertyName( ) override { return OUString("Value"); }
};
#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBATOGGLEBUTTON_HXX
diff --git a/vbahelper/source/msforms/vbauserform.cxx b/vbahelper/source/msforms/vbauserform.cxx
index 2fca16237d04..7ff527ac8353 100644
--- a/vbahelper/source/msforms/vbauserform.cxx
+++ b/vbahelper/source/msforms/vbauserform.cxx
@@ -44,7 +44,7 @@ using namespace ::com::sun::star;
// the models in ControlModels can be accessed by name
// also the XDialog is a XControl ( to access the model above
-ScVbaUserForm::ScVbaUserForm( uno::Sequence< uno::Any > const& aArgs, uno::Reference< uno::XComponentContext >const& xContext ) throw ( lang::IllegalArgumentException, uno::RuntimeException ) : ScVbaUserForm_BASE( getXSomethingFromArgs< XHelperInterface >( aArgs, 0 ), xContext, getXSomethingFromArgs< uno::XInterface >( aArgs, 1 ), getXSomethingFromArgs< frame::XModel >( aArgs, 2 ), static_cast< ooo::vba::AbstractGeometryAttributes* >(nullptr) ), mbDispose( true )
+ScVbaUserForm::ScVbaUserForm( uno::Sequence< uno::Any > const& aArgs, uno::Reference< uno::XComponentContext >const& xContext ) : ScVbaUserForm_BASE( getXSomethingFromArgs< XHelperInterface >( aArgs, 0 ), xContext, getXSomethingFromArgs< uno::XInterface >( aArgs, 1 ), getXSomethingFromArgs< frame::XModel >( aArgs, 2 ), static_cast< ooo::vba::AbstractGeometryAttributes* >(nullptr) ), mbDispose( true )
{
m_xDialog.set( m_xControl, uno::UNO_QUERY_THROW );
uno::Reference< awt::XControl > xControl( m_xDialog, uno::UNO_QUERY_THROW );
@@ -59,7 +59,7 @@ ScVbaUserForm::~ScVbaUserForm()
}
void SAL_CALL
-ScVbaUserForm::Show( ) throw (uno::RuntimeException, std::exception)
+ScVbaUserForm::Show( )
{
SAL_INFO("vbahelper", "ScVbaUserForm::Show( )");
short aRet = 0;
@@ -102,20 +102,20 @@ ScVbaUserForm::Show( ) throw (uno::RuntimeException, std::exception)
}
OUString SAL_CALL
-ScVbaUserForm::getCaption() throw (uno::RuntimeException, std::exception)
+ScVbaUserForm::getCaption()
{
OUString sCaption;
m_xProps->getPropertyValue( "Title" ) >>= sCaption;
return sCaption;
}
void
-ScVbaUserForm::setCaption( const OUString& _caption ) throw (uno::RuntimeException, std::exception)
+ScVbaUserForm::setCaption( const OUString& _caption )
{
m_xProps->setPropertyValue( "Title", uno::makeAny( _caption ) );
}
sal_Bool SAL_CALL
-ScVbaUserForm::getVisible() throw (uno::RuntimeException, std::exception)
+ScVbaUserForm::getVisible()
{
uno::Reference< awt::XControl > xControl( m_xDialog, uno::UNO_QUERY_THROW );
uno::Reference< awt::XWindow2 > xControlWindow( xControl->getPeer(), uno::UNO_QUERY_THROW );
@@ -123,7 +123,7 @@ ScVbaUserForm::getVisible() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaUserForm::setVisible( sal_Bool bVis ) throw (uno::RuntimeException, std::exception)
+ScVbaUserForm::setVisible( sal_Bool bVis )
{
if ( bVis )
Show();
@@ -131,28 +131,28 @@ ScVbaUserForm::setVisible( sal_Bool bVis ) throw (uno::RuntimeException, std::ex
Hide();
}
-double SAL_CALL ScVbaUserForm::getInnerWidth() throw (uno::RuntimeException, std::exception)
+double SAL_CALL ScVbaUserForm::getInnerWidth()
{
return mpGeometryHelper->getInnerWidth();
}
-void SAL_CALL ScVbaUserForm::setInnerWidth( double fInnerWidth ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaUserForm::setInnerWidth( double fInnerWidth )
{
mpGeometryHelper->setInnerWidth( fInnerWidth );
}
-double SAL_CALL ScVbaUserForm::getInnerHeight() throw (uno::RuntimeException, std::exception)
+double SAL_CALL ScVbaUserForm::getInnerHeight()
{
return mpGeometryHelper->getInnerHeight();
}
-void SAL_CALL ScVbaUserForm::setInnerHeight( double fInnerHeight ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaUserForm::setInnerHeight( double fInnerHeight )
{
mpGeometryHelper->setInnerHeight( fInnerHeight );
}
void SAL_CALL
-ScVbaUserForm::Hide( ) throw (uno::RuntimeException, std::exception)
+ScVbaUserForm::Hide( )
{
mbDispose = false; // hide not dispose
if ( m_xDialog.is() )
@@ -160,14 +160,14 @@ ScVbaUserForm::Hide( ) throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaUserForm::RePaint( ) throw (uno::RuntimeException, std::exception)
+ScVbaUserForm::RePaint( )
{
// #STUB
// do nothing
}
void SAL_CALL
-ScVbaUserForm::UnloadObject( ) throw (uno::RuntimeException, std::exception)
+ScVbaUserForm::UnloadObject( )
{
mbDispose = true;
if ( m_xDialog.is() )
@@ -193,19 +193,19 @@ ScVbaUserForm::getServiceNames()
}
uno::Reference< beans::XIntrospectionAccess > SAL_CALL
-ScVbaUserForm::getIntrospection( ) throw (uno::RuntimeException, std::exception)
+ScVbaUserForm::getIntrospection( )
{
return uno::Reference< beans::XIntrospectionAccess >();
}
uno::Any SAL_CALL
-ScVbaUserForm::invoke( const OUString& /*aFunctionName*/, const uno::Sequence< uno::Any >& /*aParams*/, uno::Sequence< ::sal_Int16 >& /*aOutParamIndex*/, uno::Sequence< uno::Any >& /*aOutParam*/ ) throw (lang::IllegalArgumentException, script::CannotConvertException, reflection::InvocationTargetException, uno::RuntimeException, std::exception)
+ScVbaUserForm::invoke( const OUString& /*aFunctionName*/, const uno::Sequence< uno::Any >& /*aParams*/, uno::Sequence< ::sal_Int16 >& /*aOutParamIndex*/, uno::Sequence< uno::Any >& /*aOutParam*/ )
{
throw uno::RuntimeException(); // unsupported operation
}
void SAL_CALL
-ScVbaUserForm::setValue( const OUString& aPropertyName, const uno::Any& aValue ) throw (beans::UnknownPropertyException, script::CannotConvertException, reflection::InvocationTargetException, uno::RuntimeException, std::exception)
+ScVbaUserForm::setValue( const OUString& aPropertyName, const uno::Any& aValue )
{
uno::Any aObject = getValue( aPropertyName );
@@ -249,7 +249,7 @@ ScVbaUserForm::nestedSearch( const OUString& aPropertyName, uno::Reference< awt:
}
uno::Any SAL_CALL
-ScVbaUserForm::getValue( const OUString& aPropertyName ) throw (beans::UnknownPropertyException, uno::RuntimeException, std::exception)
+ScVbaUserForm::getValue( const OUString& aPropertyName )
{
uno::Any aResult;
@@ -274,12 +274,12 @@ ScVbaUserForm::getValue( const OUString& aPropertyName ) throw (beans::UnknownPr
}
sal_Bool SAL_CALL
-ScVbaUserForm::hasMethod( const OUString& /*aName*/ ) throw (uno::RuntimeException, std::exception)
+ScVbaUserForm::hasMethod( const OUString& /*aName*/ )
{
return false;
}
uno::Any SAL_CALL
-ScVbaUserForm::Controls( const uno::Any& index ) throw (uno::RuntimeException, std::exception)
+ScVbaUserForm::Controls( const uno::Any& index )
{
// if the dialog already closed we should do nothing, but the VBA will call methods of the Controls objects
// thus we have to provide a dummy object in this case
@@ -291,7 +291,7 @@ ScVbaUserForm::Controls( const uno::Any& index ) throw (uno::RuntimeException, s
}
sal_Bool SAL_CALL
-ScVbaUserForm::hasProperty( const OUString& aName ) throw (uno::RuntimeException, std::exception)
+ScVbaUserForm::hasProperty( const OUString& aName )
{
uno::Reference< awt::XControl > xControl( m_xDialog, uno::UNO_QUERY );
diff --git a/vbahelper/source/msforms/vbauserform.hxx b/vbahelper/source/msforms/vbauserform.hxx
index 8bf1586e833a..a7f7b261acf0 100644
--- a/vbahelper/source/msforms/vbauserform.hxx
+++ b/vbahelper/source/msforms/vbauserform.hxx
@@ -41,30 +41,30 @@ protected:
public:
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
- ScVbaUserForm( css::uno::Sequence< css::uno::Any > const& aArgs, css::uno::Reference< css::uno::XComponentContext >const& xContext ) throw ( css::lang::IllegalArgumentException, css::uno::RuntimeException );
+ ScVbaUserForm( css::uno::Sequence< css::uno::Any > const& aArgs, css::uno::Reference< css::uno::XComponentContext >const& xContext );
virtual ~ScVbaUserForm() override;
static css::uno::Reference< css::awt::XControl > nestedSearch( const OUString& aPropertyName, css::uno::Reference< css::awt::XControlContainer >& xContainer );
// XUserForm
- virtual void SAL_CALL RePaint( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL Show( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setValue( const OUString& aPropertyName, const css::uno::Any& aValue ) throw (css::beans::UnknownPropertyException, css::script::CannotConvertException, css::reflection::InvocationTargetException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL getValue( const OUString& aPropertyName ) throw (css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getCaption() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception) override;
- virtual double SAL_CALL getInnerWidth() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setInnerWidth( double fInnerWidth ) throw (css::uno::RuntimeException, std::exception) override;
- virtual double SAL_CALL getInnerHeight() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setInnerHeight( double fInnerHeight ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL Hide( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL UnloadObject( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL Controls( const css::uno::Any& index ) 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 bVis ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL RePaint( ) override;
+ virtual void SAL_CALL Show( ) override;
+ virtual void SAL_CALL setValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
+ virtual css::uno::Any SAL_CALL getValue( const OUString& aPropertyName ) override;
+ virtual OUString SAL_CALL getCaption() override;
+ virtual void SAL_CALL setCaption( const OUString& _caption ) override;
+ virtual double SAL_CALL getInnerWidth() override;
+ virtual void SAL_CALL setInnerWidth( double fInnerWidth ) override;
+ virtual double SAL_CALL getInnerHeight() override;
+ virtual void SAL_CALL setInnerHeight( double fInnerHeight ) override;
+ virtual void SAL_CALL Hide( ) override;
+ virtual void SAL_CALL UnloadObject( ) override;
+ virtual css::uno::Any SAL_CALL Controls( const css::uno::Any& index ) override;
+ virtual sal_Bool SAL_CALL getVisible() override;
+ virtual void SAL_CALL setVisible( sal_Bool bVis ) override;
// XIntrospection
- virtual css::uno::Reference< css::beans::XIntrospectionAccess > SAL_CALL getIntrospection( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL invoke( const OUString& aFunctionName, const css::uno::Sequence< css::uno::Any >& aParams, css::uno::Sequence< ::sal_Int16 >& aOutParamIndex, css::uno::Sequence< css::uno::Any >& aOutParam ) throw (css::lang::IllegalArgumentException, css::script::CannotConvertException, css::reflection::InvocationTargetException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL hasMethod( const OUString& aName ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL hasProperty( const OUString& aName ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::beans::XIntrospectionAccess > SAL_CALL getIntrospection( ) override;
+ virtual css::uno::Any SAL_CALL invoke( const OUString& aFunctionName, const css::uno::Sequence< css::uno::Any >& aParams, css::uno::Sequence< ::sal_Int16 >& aOutParamIndex, css::uno::Sequence< css::uno::Any >& aOutParam ) override;
+ virtual sal_Bool SAL_CALL hasMethod( const OUString& aName ) override;
+ virtual sal_Bool SAL_CALL hasProperty( const OUString& aName ) override;
//XHelperInterface
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
diff --git a/vbahelper/source/vbahelper/vbaapplicationbase.cxx b/vbahelper/source/vbahelper/vbaapplicationbase.cxx
index d78a4b62a2c6..b7c6b9a3c0ef 100644
--- a/vbahelper/source/vbahelper/vbaapplicationbase.cxx
+++ b/vbahelper/source/vbahelper/vbaapplicationbase.cxx
@@ -183,14 +183,14 @@ VbaApplicationBase::~VbaApplicationBase()
}
sal_Bool SAL_CALL
-VbaApplicationBase::getScreenUpdating() throw (uno::RuntimeException, std::exception)
+VbaApplicationBase::getScreenUpdating()
{
uno::Reference< frame::XModel > xModel( getCurrentDocument(), uno::UNO_QUERY_THROW );
return !xModel->hasControllersLocked();
}
void SAL_CALL
-VbaApplicationBase::setScreenUpdating(sal_Bool bUpdate) throw (uno::RuntimeException, std::exception)
+VbaApplicationBase::setScreenUpdating(sal_Bool bUpdate)
{
uno::Reference< frame::XModel > xModel( getCurrentDocument(), uno::UNO_QUERY_THROW );
// #163808# use helper from module "basic" to lock all documents of this application
@@ -198,7 +198,7 @@ VbaApplicationBase::setScreenUpdating(sal_Bool bUpdate) throw (uno::RuntimeExcep
}
sal_Bool SAL_CALL
-VbaApplicationBase::getDisplayStatusBar() throw (uno::RuntimeException, std::exception)
+VbaApplicationBase::getDisplayStatusBar()
{
uno::Reference< frame::XModel > xModel( getCurrentDocument(), uno::UNO_QUERY_THROW );
uno::Reference< frame::XFrame > xFrame( xModel->getCurrentController()->getFrame(), uno::UNO_QUERY_THROW );
@@ -215,7 +215,7 @@ VbaApplicationBase::getDisplayStatusBar() throw (uno::RuntimeException, std::exc
}
void SAL_CALL
-VbaApplicationBase::setDisplayStatusBar(sal_Bool bDisplayStatusBar) throw (uno::RuntimeException, std::exception)
+VbaApplicationBase::setDisplayStatusBar(sal_Bool bDisplayStatusBar)
{
uno::Reference< frame::XModel > xModel( getCurrentDocument(), uno::UNO_QUERY_THROW );
uno::Reference< frame::XFrame > xFrame( xModel->getCurrentController()->getFrame(), uno::UNO_QUERY_THROW );
@@ -240,7 +240,6 @@ VbaApplicationBase::setDisplayStatusBar(sal_Bool bDisplayStatusBar) throw (uno::
}
sal_Bool SAL_CALL VbaApplicationBase::getInteractive()
- throw (uno::RuntimeException, std::exception)
{
uno::Reference< frame::XModel > xModel( getCurrentDocument(), uno::UNO_QUERY_THROW );
uno::Reference< frame::XFrame > xFrame( xModel->getCurrentController()->getFrame(), uno::UNO_QUERY_THROW );
@@ -250,26 +249,25 @@ sal_Bool SAL_CALL VbaApplicationBase::getInteractive()
}
void SAL_CALL VbaApplicationBase::setInteractive( sal_Bool bInteractive )
- throw (uno::RuntimeException, std::exception)
{
uno::Reference< frame::XModel > xModel( getCurrentDocument(), uno::UNO_QUERY_THROW );
// #163808# use helper from module "basic" to enable/disable all container windows of all documents of this application
::basic::vba::enableContainerWindowsOfAllDocuments( xModel, bInteractive );
}
-sal_Bool SAL_CALL VbaApplicationBase::getVisible() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL VbaApplicationBase::getVisible()
{
return m_pImpl->mbVisible; // dummy implementation
}
-void SAL_CALL VbaApplicationBase::setVisible( sal_Bool bVisible ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaApplicationBase::setVisible( sal_Bool bVisible )
{
m_pImpl->mbVisible = bVisible; // dummy implementation
}
void SAL_CALL
-VbaApplicationBase::OnKey( const OUString& Key, const uno::Any& Procedure ) throw (uno::RuntimeException, std::exception)
+VbaApplicationBase::OnKey( const OUString& Key, const uno::Any& Procedure )
{
// parse the Key & modifiers
awt::KeyEvent aKeyEvent = parseKeyEvent( Key );
@@ -291,7 +289,7 @@ VbaApplicationBase::OnKey( const OUString& Key, const uno::Any& Procedure ) thro
}
uno::Any SAL_CALL
-VbaApplicationBase::CommandBars( const uno::Any& aIndex ) throw (uno::RuntimeException, std::exception)
+VbaApplicationBase::CommandBars( const uno::Any& aIndex )
{
uno::Reference< XCommandBars > xCommandBars( new ScVbaCommandBars( this, mxContext, uno::Reference< container::XIndexAccess >(), getCurrentDocument() ) );
if( aIndex.hasValue() )
@@ -300,12 +298,12 @@ VbaApplicationBase::CommandBars( const uno::Any& aIndex ) throw (uno::RuntimeExc
}
OUString SAL_CALL
-VbaApplicationBase::getVersion() throw (uno::RuntimeException, std::exception)
+VbaApplicationBase::getVersion()
{
return OUString(OFFICEVERSION);
}
-uno::Any SAL_CALL VbaApplicationBase::Run( const OUString& MacroName, const uno::Any& varg1, const uno::Any& varg2, const uno::Any& varg3, const uno::Any& varg4, const uno::Any& varg5, const uno::Any& varg6, const uno::Any& varg7, const uno::Any& varg8, const uno::Any& varg9, const uno::Any& varg10, const uno::Any& varg11, const uno::Any& varg12, const uno::Any& varg13, const uno::Any& varg14, const uno::Any& varg15, const uno::Any& varg16, const uno::Any& varg17, const uno::Any& varg18, const uno::Any& varg19, const uno::Any& varg20, const uno::Any& varg21, const uno::Any& varg22, const uno::Any& varg23, const uno::Any& varg24, const uno::Any& varg25, const uno::Any& varg26, const uno::Any& varg27, const uno::Any& varg28, const uno::Any& varg29, const uno::Any& varg30 ) throw (uno::RuntimeException, std::exception)
+uno::Any SAL_CALL VbaApplicationBase::Run( const OUString& MacroName, const uno::Any& varg1, const uno::Any& varg2, const uno::Any& varg3, const uno::Any& varg4, const uno::Any& varg5, const uno::Any& varg6, const uno::Any& varg7, const uno::Any& varg8, const uno::Any& varg9, const uno::Any& varg10, const uno::Any& varg11, const uno::Any& varg12, const uno::Any& varg13, const uno::Any& varg14, const uno::Any& varg15, const uno::Any& varg16, const uno::Any& varg17, const uno::Any& varg18, const uno::Any& varg19, const uno::Any& varg20, const uno::Any& varg21, const uno::Any& varg22, const uno::Any& varg23, const uno::Any& varg24, const uno::Any& varg25, const uno::Any& varg26, const uno::Any& varg27, const uno::Any& varg28, const uno::Any& varg29, const uno::Any& varg30 )
{
OUString aMacroName = MacroName.trim();
if( aMacroName.startsWith("!") )
@@ -356,7 +354,6 @@ uno::Any SAL_CALL VbaApplicationBase::Run( const OUString& MacroName, const uno:
}
void SAL_CALL VbaApplicationBase::OnTime( const uno::Any& aEarliestTime, const OUString& aFunction, const uno::Any& aLatestTime, const uno::Any& aSchedule )
- throw ( uno::RuntimeException, std::exception )
{
if ( aFunction.isEmpty() )
throw uno::RuntimeException( "Unexpected function name!" );
@@ -388,14 +385,14 @@ void SAL_CALL VbaApplicationBase::OnTime( const uno::Any& aEarliestTime, const O
}
}
-float SAL_CALL VbaApplicationBase::CentimetersToPoints( float Centimeters ) throw (uno::RuntimeException, std::exception)
+float SAL_CALL VbaApplicationBase::CentimetersToPoints( float Centimeters )
{
// i cm = 28.35 points
static const float rate = 28.35f;
return ( Centimeters * rate );
}
-uno::Any SAL_CALL VbaApplicationBase::getVBE() throw (uno::RuntimeException, std::exception)
+uno::Any SAL_CALL VbaApplicationBase::getVBE()
{
try // return empty object on error
{
@@ -432,13 +429,12 @@ VbaApplicationBase::getServiceNames()
}
void SAL_CALL VbaApplicationBase::Undo()
- throw (uno::RuntimeException, std::exception)
{
uno::Reference< frame::XModel > xModel( getCurrentDocument(), uno::UNO_QUERY_THROW );
dispatchRequests( xModel, ".uno:Undo" );
}
-void VbaApplicationBase::Quit() throw (uno::RuntimeException, std::exception)
+void VbaApplicationBase::Quit()
{
// need to stop basic
SbMethod* pMeth = StarBASIC::GetActiveMethod();
diff --git a/vbahelper/source/vbahelper/vbacolorformat.cxx b/vbahelper/source/vbahelper/vbacolorformat.cxx
index dffe7717168b..39ec1c090d93 100644
--- a/vbahelper/source/vbahelper/vbacolorformat.cxx
+++ b/vbahelper/source/vbahelper/vbacolorformat.cxx
@@ -56,7 +56,7 @@ ScVbaColorFormat::ScVbaColorFormat( const uno::Reference< XHelperInterface >& xP
// Attribute
sal_Int32 SAL_CALL
-ScVbaColorFormat::getRGB() throw (uno::RuntimeException, std::exception)
+ScVbaColorFormat::getRGB()
{
sal_Int32 nRGB = 0;
switch( m_nColorFormatType )
@@ -82,7 +82,7 @@ ScVbaColorFormat::getRGB() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaColorFormat::setRGB( sal_Int32 _rgb ) throw (uno::RuntimeException, std::exception)
+ScVbaColorFormat::setRGB( sal_Int32 _rgb )
{
sal_Int32 nRGB = XLRGBToOORGB( _rgb );
switch( m_nColorFormatType )
@@ -113,7 +113,7 @@ ScVbaColorFormat::setRGB( sal_Int32 _rgb ) throw (uno::RuntimeException, std::ex
}
sal_Int32 SAL_CALL
-ScVbaColorFormat::getSchemeColor() throw (uno::RuntimeException, std::exception)
+ScVbaColorFormat::getSchemeColor()
{
sal_Int32 nColor = getRGB();
// #TODO I guess the number of elements is determined by the correct scheme
@@ -143,7 +143,7 @@ ScVbaColorFormat::getSchemeColor() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaColorFormat::setSchemeColor( sal_Int32 _schemecolor ) throw (uno::RuntimeException, std::exception)
+ScVbaColorFormat::setSchemeColor( sal_Int32 _schemecolor )
{
// the table is 0 based
sal_Int32 nColor = MsoColorIndices::getColorIndex( _schemecolor );
diff --git a/vbahelper/source/vbahelper/vbacolorformat.hxx b/vbahelper/source/vbahelper/vbacolorformat.hxx
index 1e6248ec3b6f..9504e4ef3789 100644
--- a/vbahelper/source/vbahelper/vbacolorformat.hxx
+++ b/vbahelper/source/vbahelper/vbacolorformat.hxx
@@ -104,10 +104,10 @@ public:
ScVbaColorFormat( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< ov::XHelperInterface >& xInternalParent, const css::uno::Reference< css::drawing::XShape >& xShape, const sal_Int16 nColorFormatType );
// Attributes
- virtual sal_Int32 SAL_CALL getRGB() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setRGB( sal_Int32 _rgb ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getSchemeColor() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setSchemeColor( sal_Int32 _schemecolor ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getRGB() override;
+ virtual void SAL_CALL setRGB( sal_Int32 _rgb ) override;
+ virtual sal_Int32 SAL_CALL getSchemeColor() override;
+ virtual void SAL_CALL setSchemeColor( sal_Int32 _schemecolor ) override;
};
diff --git a/vbahelper/source/vbahelper/vbacommandbar.cxx b/vbahelper/source/vbahelper/vbacommandbar.cxx
index a39ee2a5aba8..17ccb4d4cfc5 100644
--- a/vbahelper/source/vbahelper/vbacommandbar.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbar.cxx
@@ -33,13 +33,13 @@ ScVbaCommandBar::ScVbaCommandBar( const uno::Reference< ov::XHelperInterface >&
const uno::Reference< uno::XComponentContext >& xContext,
VbaCommandBarHelperRef const & pHelper,
const uno::Reference< container::XIndexAccess >& xBarSettings,
- const OUString& sResourceUrl, bool bIsMenu ) throw( uno::RuntimeException )
+ const OUString& sResourceUrl, bool bIsMenu )
: CommandBar_BASE( xParent, xContext ), pCBarHelper( pHelper ), m_xBarSettings( xBarSettings ), m_sResourceUrl( sResourceUrl ), m_bIsMenu( bIsMenu )
{
}
OUString SAL_CALL
-ScVbaCommandBar::getName() throw ( uno::RuntimeException, std::exception )
+ScVbaCommandBar::getName()
{
// This will get a "NULL length string" when Name is not set.
uno::Reference< beans::XPropertySet > xPropertySet( m_xBarSettings, uno::UNO_QUERY_THROW );
@@ -71,7 +71,7 @@ ScVbaCommandBar::getName() throw ( uno::RuntimeException, std::exception )
return sName;
}
void SAL_CALL
-ScVbaCommandBar::setName( const OUString& _name ) throw (uno::RuntimeException, std::exception)
+ScVbaCommandBar::setName( const OUString& _name )
{
uno::Reference< beans::XPropertySet > xPropertySet( m_xBarSettings, uno::UNO_QUERY_THROW );
xPropertySet->setPropertyValue( "UIName" , uno::makeAny( _name ) );
@@ -79,7 +79,7 @@ ScVbaCommandBar::setName( const OUString& _name ) throw (uno::RuntimeException,
pCBarHelper->ApplyTempChange( m_sResourceUrl, m_xBarSettings );
}
sal_Bool SAL_CALL
-ScVbaCommandBar::getVisible() throw (uno::RuntimeException, std::exception)
+ScVbaCommandBar::getVisible()
{
// menu bar is always visible in OOo
if( m_bIsMenu )
@@ -102,7 +102,7 @@ ScVbaCommandBar::getVisible() throw (uno::RuntimeException, std::exception)
return bVisible;
}
void SAL_CALL
-ScVbaCommandBar::setVisible( sal_Bool _visible ) throw (uno::RuntimeException, std::exception)
+ScVbaCommandBar::setVisible( sal_Bool _visible )
{
try
{
@@ -125,21 +125,21 @@ ScVbaCommandBar::setVisible( sal_Bool _visible ) throw (uno::RuntimeException, s
}
sal_Bool SAL_CALL
-ScVbaCommandBar::getEnabled() throw (uno::RuntimeException, std::exception)
+ScVbaCommandBar::getEnabled()
{
// emulated with Visible
return getVisible();
}
void SAL_CALL
-ScVbaCommandBar::setEnabled( sal_Bool _enabled ) throw (uno::RuntimeException, std::exception)
+ScVbaCommandBar::setEnabled( sal_Bool _enabled )
{
// emulated with Visible
setVisible( _enabled );
}
void SAL_CALL
-ScVbaCommandBar::Delete( ) throw (script::BasicErrorException, uno::RuntimeException, std::exception)
+ScVbaCommandBar::Delete( )
{
pCBarHelper->removeSettings( m_sResourceUrl );
uno::Reference< container::XNameContainer > xNameContainer( pCBarHelper->getPersistentWindowState(), uno::UNO_QUERY_THROW );
@@ -149,7 +149,7 @@ ScVbaCommandBar::Delete( ) throw (script::BasicErrorException, uno::RuntimeExce
}
}
uno::Any SAL_CALL
-ScVbaCommandBar::Controls( const uno::Any& aIndex ) throw (script::BasicErrorException, uno::RuntimeException, std::exception)
+ScVbaCommandBar::Controls( const uno::Any& aIndex )
{
uno::Reference< XCommandBarControls > xCommandBarControls( new ScVbaCommandBarControls( this, mxContext, m_xBarSettings, pCBarHelper, m_xBarSettings, m_sResourceUrl ) );
if( aIndex.hasValue() )
@@ -160,7 +160,7 @@ ScVbaCommandBar::Controls( const uno::Any& aIndex ) throw (script::BasicErrorExc
}
sal_Int32 SAL_CALL
-ScVbaCommandBar::Type() throw (script::BasicErrorException, uno::RuntimeException, std::exception)
+ScVbaCommandBar::Type()
{
// #FIXME support msoBarTypePopup
sal_Int32 nType = office::MsoBarType::msoBarTypePopup;
@@ -169,7 +169,7 @@ ScVbaCommandBar::Type() throw (script::BasicErrorException, uno::RuntimeExceptio
}
uno::Any SAL_CALL
-ScVbaCommandBar::FindControl( const uno::Any& /*aType*/, const uno::Any& /*aId*/, const uno::Any& /*aTag*/, const uno::Any& /*aVisible*/, const uno::Any& /*aRecursive*/ ) throw (script::BasicErrorException, uno::RuntimeException, std::exception)
+ScVbaCommandBar::FindControl( const uno::Any& /*aType*/, const uno::Any& /*aId*/, const uno::Any& /*aTag*/, const uno::Any& /*aVisible*/, const uno::Any& /*aRecursive*/ )
{
// alwayse fail to find control
return uno::makeAny( uno::Reference< XCommandBarControl > () );
@@ -197,52 +197,52 @@ ScVbaCommandBar::getServiceNames()
VbaDummyCommandBar::VbaDummyCommandBar(
const uno::Reference< ov::XHelperInterface >& xParent,
const uno::Reference< uno::XComponentContext >& xContext,
- const OUString& rName ) throw( uno::RuntimeException ) :
+ const OUString& rName ) :
CommandBar_BASE( xParent, xContext ),
maName( rName )
{
}
-OUString SAL_CALL VbaDummyCommandBar::getName() throw ( uno::RuntimeException, std::exception )
+OUString SAL_CALL VbaDummyCommandBar::getName()
{
return maName;
}
-void SAL_CALL VbaDummyCommandBar::setName( const OUString& _name ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaDummyCommandBar::setName( const OUString& _name )
{
maName = _name;
}
-sal_Bool SAL_CALL VbaDummyCommandBar::getVisible() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL VbaDummyCommandBar::getVisible()
{
// #STUB
return true;
}
-void SAL_CALL VbaDummyCommandBar::setVisible( sal_Bool /*_visible*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaDummyCommandBar::setVisible( sal_Bool /*_visible*/ )
{
// #STUB
}
-sal_Bool SAL_CALL VbaDummyCommandBar::getEnabled() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL VbaDummyCommandBar::getEnabled()
{
// emulated with Visible
return getVisible();
}
-void SAL_CALL VbaDummyCommandBar::setEnabled( sal_Bool _enabled ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaDummyCommandBar::setEnabled( sal_Bool _enabled )
{
// emulated with Visible
setVisible( _enabled );
}
-void SAL_CALL VbaDummyCommandBar::Delete( ) throw (script::BasicErrorException, uno::RuntimeException, std::exception)
+void SAL_CALL VbaDummyCommandBar::Delete( )
{
// no-op
// #STUB
}
-uno::Any SAL_CALL VbaDummyCommandBar::Controls( const uno::Any& aIndex ) throw (script::BasicErrorException, uno::RuntimeException, std::exception)
+uno::Any SAL_CALL VbaDummyCommandBar::Controls( const uno::Any& aIndex )
{
uno::Reference< XCommandBarControls > xCommandBarControls( new VbaDummyCommandBarControls( this, mxContext ) );
if( aIndex.hasValue() )
@@ -250,12 +250,12 @@ uno::Any SAL_CALL VbaDummyCommandBar::Controls( const uno::Any& aIndex ) throw (
return uno::Any( xCommandBarControls );
}
-sal_Int32 SAL_CALL VbaDummyCommandBar::Type() throw (script::BasicErrorException, uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL VbaDummyCommandBar::Type()
{
return office::MsoBarType::msoBarTypePopup;
}
-uno::Any SAL_CALL VbaDummyCommandBar::FindControl( const uno::Any& /*aType*/, const uno::Any& /*aId*/, const uno::Any& /*aTag*/, const uno::Any& /*aVisible*/, const uno::Any& /*aRecursive*/ ) throw (script::BasicErrorException, uno::RuntimeException, std::exception)
+uno::Any SAL_CALL VbaDummyCommandBar::FindControl( const uno::Any& /*aType*/, const uno::Any& /*aId*/, const uno::Any& /*aTag*/, const uno::Any& /*aVisible*/, const uno::Any& /*aRecursive*/ )
{
return uno::Any( uno::Reference< XCommandBarControl >() );
}
diff --git a/vbahelper/source/vbahelper/vbacommandbar.hxx b/vbahelper/source/vbahelper/vbacommandbar.hxx
index 8510abf5ba83..46e273b207fd 100644
--- a/vbahelper/source/vbahelper/vbacommandbar.hxx
+++ b/vbahelper/source/vbahelper/vbacommandbar.hxx
@@ -40,21 +40,21 @@ private:
public:
/// @throws css::uno::RuntimeException
- ScVbaCommandBar( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, VbaCommandBarHelperRef const & pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const OUString& sResourceUrl, bool bIsMenu ) throw( css::uno::RuntimeException );
+ ScVbaCommandBar( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, VbaCommandBarHelperRef const & pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const OUString& sResourceUrl, bool bIsMenu );
// 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 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_Bool SAL_CALL getEnabled() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setEnabled( sal_Bool _enabled ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getName() override;
+ virtual void SAL_CALL setName( const OUString& _name ) override;
+ virtual sal_Bool SAL_CALL getVisible() override;
+ virtual void SAL_CALL setVisible( sal_Bool _visible ) override;
+ virtual sal_Bool SAL_CALL getEnabled() override;
+ virtual void SAL_CALL setEnabled( sal_Bool _enabled ) override;
// Methods
- virtual void SAL_CALL Delete( ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL Controls( const css::uno::Any& aIndex ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL Type( ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL FindControl( const css::uno::Any& aType, const css::uno::Any& aId, const css::uno::Any& aTag, const css::uno::Any& aVisible, const css::uno::Any& aRecursive ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL Delete( ) override;
+ virtual css::uno::Any SAL_CALL Controls( const css::uno::Any& aIndex ) override;
+ virtual sal_Int32 SAL_CALL Type( ) override;
+ virtual css::uno::Any SAL_CALL FindControl( const css::uno::Any& aType, const css::uno::Any& aId, const css::uno::Any& aTag, const css::uno::Any& aVisible, const css::uno::Any& aRecursive ) override;
// XHelperInterface
virtual OUString getServiceImplName() override;
@@ -69,21 +69,21 @@ public:
VbaDummyCommandBar(
const css::uno::Reference< ov::XHelperInterface >& xParent,
const css::uno::Reference< css::uno::XComponentContext >& xContext,
- const OUString& rName ) throw( css::uno::RuntimeException );
+ const OUString& rName );
// 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 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_Bool SAL_CALL getEnabled() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setEnabled( sal_Bool _enabled ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getName() override;
+ virtual void SAL_CALL setName( const OUString& _name ) override;
+ virtual sal_Bool SAL_CALL getVisible() override;
+ virtual void SAL_CALL setVisible( sal_Bool _visible ) override;
+ virtual sal_Bool SAL_CALL getEnabled() override;
+ virtual void SAL_CALL setEnabled( sal_Bool _enabled ) override;
// Methods
- virtual void SAL_CALL Delete( ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL Controls( const css::uno::Any& aIndex ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL Type( ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL FindControl( const css::uno::Any& aType, const css::uno::Any& aId, const css::uno::Any& aTag, const css::uno::Any& aVisible, const css::uno::Any& aRecursive ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL Delete( ) override;
+ virtual css::uno::Any SAL_CALL Controls( const css::uno::Any& aIndex ) override;
+ virtual sal_Int32 SAL_CALL Type( ) override;
+ virtual css::uno::Any SAL_CALL FindControl( const css::uno::Any& aType, const css::uno::Any& aId, const css::uno::Any& aTag, const css::uno::Any& aVisible, const css::uno::Any& aRecursive ) override;
// XHelperInterface
virtual OUString getServiceImplName() override;
diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx b/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx
index 7676913be402..cfc89c70abd8 100644
--- a/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx
@@ -24,11 +24,11 @@
using namespace com::sun::star;
using namespace ooo::vba;
-ScVbaCommandBarControl::ScVbaCommandBarControl( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xSettings, const VbaCommandBarHelperRef& pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const OUString& sResourceUrl ) throw (css::uno::RuntimeException) : CommandBarControl_BASE( xParent, xContext ), pCBarHelper( pHelper ), m_sResourceUrl( sResourceUrl ), m_xCurrentSettings( xSettings ), m_xBarSettings( xBarSettings ), m_nPosition( 0 ), m_bTemporary( true )
+ScVbaCommandBarControl::ScVbaCommandBarControl( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xSettings, const VbaCommandBarHelperRef& pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const OUString& sResourceUrl ) : CommandBarControl_BASE( xParent, xContext ), pCBarHelper( pHelper ), m_sResourceUrl( sResourceUrl ), m_xCurrentSettings( xSettings ), m_xBarSettings( xBarSettings ), m_nPosition( 0 ), m_bTemporary( true )
{
}
-void ScVbaCommandBarControl::ApplyChange() throw ( uno::RuntimeException )
+void ScVbaCommandBarControl::ApplyChange()
{
uno::Reference< container::XIndexContainer > xIndexContainer( m_xCurrentSettings, uno::UNO_QUERY_THROW );
xIndexContainer->replaceByIndex( m_nPosition, uno::makeAny( m_aPropertyValues ) );
@@ -36,7 +36,7 @@ void ScVbaCommandBarControl::ApplyChange() throw ( uno::RuntimeException )
}
OUString SAL_CALL
-ScVbaCommandBarControl::getCaption() throw ( uno::RuntimeException, std::exception )
+ScVbaCommandBarControl::getCaption()
{
// "Label" always empty
OUString sCaption;
@@ -45,7 +45,7 @@ ScVbaCommandBarControl::getCaption() throw ( uno::RuntimeException, std::excepti
}
void SAL_CALL
-ScVbaCommandBarControl::setCaption( const OUString& _caption ) throw (uno::RuntimeException, std::exception)
+ScVbaCommandBarControl::setCaption( const OUString& _caption )
{
OUString sCaption = _caption.replace('&','~');
setPropertyValue( m_aPropertyValues, "Label" , uno::makeAny( sCaption ) );
@@ -53,7 +53,7 @@ ScVbaCommandBarControl::setCaption( const OUString& _caption ) throw (uno::Runti
}
OUString SAL_CALL
-ScVbaCommandBarControl::getOnAction() throw (uno::RuntimeException, std::exception)
+ScVbaCommandBarControl::getOnAction()
{
OUString sCommandURL;
getPropertyValue( m_aPropertyValues, "CommandURL" ) >>= sCommandURL;
@@ -61,7 +61,7 @@ ScVbaCommandBarControl::getOnAction() throw (uno::RuntimeException, std::excepti
}
void SAL_CALL
-ScVbaCommandBarControl::setOnAction( const OUString& _onaction ) throw (uno::RuntimeException, std::exception)
+ScVbaCommandBarControl::setOnAction( const OUString& _onaction )
{
// get the current model
uno::Reference< frame::XModel > xModel( pCBarHelper->getModel() );
@@ -76,7 +76,7 @@ ScVbaCommandBarControl::setOnAction( const OUString& _onaction ) throw (uno::Run
}
sal_Bool SAL_CALL
-ScVbaCommandBarControl::getVisible() throw (uno::RuntimeException, std::exception)
+ScVbaCommandBarControl::getVisible()
{
bool bVisible = true;
uno::Any aValue = getPropertyValue( m_aPropertyValues, ITEM_DESCRIPTOR_ISVISIBLE );
@@ -85,7 +85,7 @@ ScVbaCommandBarControl::getVisible() throw (uno::RuntimeException, std::exceptio
return bVisible;
}
void SAL_CALL
-ScVbaCommandBarControl::setVisible( sal_Bool _visible ) throw (uno::RuntimeException, std::exception)
+ScVbaCommandBarControl::setVisible( sal_Bool _visible )
{
uno::Any aValue = getPropertyValue( m_aPropertyValues, ITEM_DESCRIPTOR_ISVISIBLE );
if( aValue.hasValue() )
@@ -96,7 +96,7 @@ ScVbaCommandBarControl::setVisible( sal_Bool _visible ) throw (uno::RuntimeExcep
}
sal_Bool SAL_CALL
-ScVbaCommandBarControl::getEnabled() throw (uno::RuntimeException, std::exception)
+ScVbaCommandBarControl::getEnabled()
{
bool bEnabled = true;
@@ -114,7 +114,7 @@ ScVbaCommandBarControl::getEnabled() throw (uno::RuntimeException, std::exceptio
}
void SAL_CALL
-ScVbaCommandBarControl::setEnabled( sal_Bool _enabled ) throw (uno::RuntimeException, std::exception)
+ScVbaCommandBarControl::setEnabled( sal_Bool _enabled )
{
uno::Any aValue = getPropertyValue( m_aPropertyValues, ITEM_DESCRIPTOR_ENABLED );
if( aValue.hasValue() )
@@ -130,7 +130,7 @@ ScVbaCommandBarControl::setEnabled( sal_Bool _enabled ) throw (uno::RuntimeExcep
}
sal_Bool SAL_CALL
-ScVbaCommandBarControl::getBeginGroup() throw (css::uno::RuntimeException, std::exception)
+ScVbaCommandBarControl::getBeginGroup()
{
// TODO: need to check if the item before this item is of type 'separator'
//#STUB
@@ -138,7 +138,7 @@ ScVbaCommandBarControl::getBeginGroup() throw (css::uno::RuntimeException, std::
}
void SAL_CALL
-ScVbaCommandBarControl::setBeginGroup( sal_Bool _begin ) throw (css::uno::RuntimeException, std::exception)
+ScVbaCommandBarControl::setBeginGroup( sal_Bool _begin )
{
if( getBeginGroup() != _begin )
{
@@ -147,7 +147,7 @@ ScVbaCommandBarControl::setBeginGroup( sal_Bool _begin ) throw (css::uno::Runtim
}
void SAL_CALL
-ScVbaCommandBarControl::Delete( ) throw (script::BasicErrorException, uno::RuntimeException, std::exception)
+ScVbaCommandBarControl::Delete( )
{
if( m_xCurrentSettings.is() )
{
@@ -159,7 +159,7 @@ ScVbaCommandBarControl::Delete( ) throw (script::BasicErrorException, uno::Runt
}
uno::Any SAL_CALL
-ScVbaCommandBarControl::Controls( const uno::Any& aIndex ) throw (script::BasicErrorException, uno::RuntimeException, std::exception)
+ScVbaCommandBarControl::Controls( const uno::Any& aIndex )
{
// only Popup Menu has controls
uno::Reference< container::XIndexAccess > xSubMenu;
@@ -201,7 +201,7 @@ ScVbaCommandBarPopup::ScVbaCommandBarPopup( const css::uno::Reference< ov::XHelp
const css::uno::Reference< css::container::XIndexAccess >& xBarSettings,
const OUString& sResourceUrl,
sal_Int32 nPosition,
- bool bTemporary ) throw (css::uno::RuntimeException)
+ bool bTemporary )
: CommandBarPopup_BASE( xParent, xContext, xSettings, pHelper, xBarSettings, sResourceUrl )
{
m_nPosition = nPosition;
@@ -235,7 +235,7 @@ ScVbaCommandBarButton::ScVbaCommandBarButton( const css::uno::Reference< ov::XHe
const css::uno::Reference< css::container::XIndexAccess >& xBarSettings,
const OUString& sResourceUrl,
sal_Int32 nPosition,
- bool bTemporary ) throw (css::uno::RuntimeException)
+ bool bTemporary )
: CommandBarButton_BASE( xParent, xContext, xSettings, pHelper, xBarSettings, sResourceUrl )
{
m_nPosition = nPosition;
diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrol.hxx b/vbahelper/source/vbahelper/vbacommandbarcontrol.hxx
index 2033fe40912b..de5fdfc4d6af 100644
--- a/vbahelper/source/vbahelper/vbacommandbarcontrol.hxx
+++ b/vbahelper/source/vbahelper/vbacommandbarcontrol.hxx
@@ -44,31 +44,31 @@ protected:
private:
/// @throws css::uno::RuntimeException
- void ApplyChange() throw (css::uno::RuntimeException);
+ void ApplyChange();
public:
/// @throws css::uno::RuntimeException
- ScVbaCommandBarControl( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xSettings, const VbaCommandBarHelperRef& pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const OUString& sResourceUrl ) throw (css::uno::RuntimeException);
+ ScVbaCommandBarControl( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xSettings, const VbaCommandBarHelperRef& pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const OUString& sResourceUrl );
// Attributes
- virtual OUString SAL_CALL getCaption() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getOnAction() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setOnAction( const OUString& _onaction ) 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_Bool SAL_CALL getEnabled() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setEnabled( sal_Bool _enabled ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getBeginGroup() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBeginGroup( sal_Bool _begin ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getType() throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getCaption() override;
+ virtual void SAL_CALL setCaption( const OUString& _caption ) override;
+ virtual OUString SAL_CALL getOnAction() override;
+ virtual void SAL_CALL setOnAction( const OUString& _onaction ) override;
+ virtual sal_Bool SAL_CALL getVisible() override;
+ virtual void SAL_CALL setVisible( sal_Bool _visible ) override;
+ virtual sal_Bool SAL_CALL getEnabled() override;
+ virtual void SAL_CALL setEnabled( sal_Bool _enabled ) override;
+ virtual sal_Bool SAL_CALL getBeginGroup() override;
+ virtual void SAL_CALL setBeginGroup( sal_Bool _begin ) override;
+ virtual sal_Int32 SAL_CALL getType() override
{
return ov::office::MsoControlType::msoControlButton;
}
// Methods
- virtual void SAL_CALL Delete( ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL Controls( const css::uno::Any& aIndex ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL Delete( ) override;
+ virtual css::uno::Any SAL_CALL Controls( const css::uno::Any& aIndex ) override;
// XHelperInterface
virtual OUString getServiceImplName() override;
@@ -80,9 +80,9 @@ class ScVbaCommandBarPopup : public CommandBarPopup_BASE
{
public:
/// @throws css::uno::RuntimeException
- ScVbaCommandBarPopup( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xSettings, const VbaCommandBarHelperRef& pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const OUString& sResourceUrl, sal_Int32 nPosition, bool bTemporary ) throw (css::uno::RuntimeException);
+ ScVbaCommandBarPopup( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xSettings, const VbaCommandBarHelperRef& pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const OUString& sResourceUrl, sal_Int32 nPosition, bool bTemporary );
- virtual sal_Int32 SAL_CALL getType() throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Int32 SAL_CALL getType() override
{
return ov::office::MsoControlType::msoControlPopup;
}
@@ -96,9 +96,9 @@ class ScVbaCommandBarButton : public CommandBarButton_BASE
{
public:
/// @throws css::uno::RuntimeException
- ScVbaCommandBarButton( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xSettings, const VbaCommandBarHelperRef& pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const OUString& sResourceUrl, sal_Int32 nPosition, bool bTemporary ) throw (css::uno::RuntimeException);
+ ScVbaCommandBarButton( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xSettings, const VbaCommandBarHelperRef& pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const OUString& sResourceUrl, sal_Int32 nPosition, bool bTemporary );
- virtual sal_Int32 SAL_CALL getType() throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Int32 SAL_CALL getType() override
{
return ov::office::MsoControlType::msoControlButton;
}
diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx b/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx
index e6be3a8a3a08..b180fb7ba8ea 100644
--- a/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx
@@ -30,13 +30,13 @@ class CommandBarControlEnumeration : public ::cppu::WeakImplHelper< container::X
sal_Int32 m_nCurrentPosition;
public:
explicit CommandBarControlEnumeration( CommandBarControls_BASE* pCommandBarControls ) : m_pCommandBarControls( pCommandBarControls ), m_nCurrentPosition( 0 ) {}
- virtual sal_Bool SAL_CALL hasMoreElements() throw ( uno::RuntimeException, std::exception ) override
+ virtual sal_Bool SAL_CALL hasMoreElements() override
{
if( m_nCurrentPosition < m_pCommandBarControls->getCount() )
return true;
return false;
}
- virtual uno::Any SAL_CALL nextElement() throw ( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception ) override
+ virtual uno::Any SAL_CALL nextElement() override
{
if( hasMoreElements() )
{
@@ -47,7 +47,7 @@ public:
}
};
-ScVbaCommandBarControls::ScVbaCommandBarControls( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< container::XIndexAccess>& xIndexAccess, VbaCommandBarHelperRef const & pHelper, const uno::Reference< container::XIndexAccess>& xBarSettings, const OUString& sResourceUrl ) throw (uno::RuntimeException) : CommandBarControls_BASE( xParent, xContext, xIndexAccess ), pCBarHelper( pHelper ), m_xBarSettings( xBarSettings ), m_sResourceUrl( sResourceUrl )
+ScVbaCommandBarControls::ScVbaCommandBarControls( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< container::XIndexAccess>& xIndexAccess, VbaCommandBarHelperRef const & pHelper, const uno::Reference< container::XIndexAccess>& xBarSettings, const OUString& sResourceUrl ) : CommandBarControls_BASE( xParent, xContext, xIndexAccess ), pCBarHelper( pHelper ), m_xBarSettings( xBarSettings ), m_sResourceUrl( sResourceUrl )
{
m_bIsMenu = sResourceUrl == ITEM_MENUBAR_URL;
}
@@ -110,13 +110,13 @@ uno::Sequence< beans::PropertyValue > ScVbaCommandBarControls::CreateToolbarItem
// XEnumerationAccess
uno::Type SAL_CALL
-ScVbaCommandBarControls::getElementType() throw ( uno::RuntimeException )
+ScVbaCommandBarControls::getElementType()
{
return cppu::UnoType<XCommandBarControl>::get();
}
uno::Reference< container::XEnumeration >
-ScVbaCommandBarControls::createEnumeration() throw ( uno::RuntimeException )
+ScVbaCommandBarControls::createEnumeration()
{
return uno::Reference< container::XEnumeration >( new CommandBarControlEnumeration( this ) );
}
@@ -141,7 +141,7 @@ ScVbaCommandBarControls::createCollectionObject( const uno::Any& aSource )
// Methods
uno::Any SAL_CALL
-ScVbaCommandBarControls::Item( const uno::Any& aIndex, const uno::Any& /*aIndex*/ ) throw (uno::RuntimeException)
+ScVbaCommandBarControls::Item( const uno::Any& aIndex, const uno::Any& /*aIndex*/ )
{
sal_Int32 nPosition = -1;
if( aIndex.getValueTypeClass() == uno::TypeClass_STRING )
@@ -164,7 +164,7 @@ ScVbaCommandBarControls::Item( const uno::Any& aIndex, const uno::Any& /*aIndex*
}
uno::Reference< XCommandBarControl > SAL_CALL
-ScVbaCommandBarControls::Add( const uno::Any& Type, const uno::Any& Id, const uno::Any& Parameter, const uno::Any& Before, const uno::Any& Temporary ) throw (script::BasicErrorException, uno::RuntimeException, std::exception)
+ScVbaCommandBarControls::Add( const uno::Any& Type, const uno::Any& Id, const uno::Any& Parameter, const uno::Any& Before, const uno::Any& Temporary )
{
// Parameter is not supported
// the following name needs to be individually created;
@@ -259,32 +259,32 @@ class VbaDummyIndexAccess : public ::cppu::WeakImplHelper< container::XIndexAcce
public:
inline VbaDummyIndexAccess() {}
// XIndexAccess
- virtual ::sal_Int32 SAL_CALL getCount( ) throw (uno::RuntimeException, std::exception) override
+ virtual ::sal_Int32 SAL_CALL getCount( ) override
{ return 0; }
- virtual uno::Any SAL_CALL getByIndex( ::sal_Int32 /*Index*/ ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException, std::exception) override
+ virtual uno::Any SAL_CALL getByIndex( ::sal_Int32 /*Index*/ ) override
{ throw lang::IndexOutOfBoundsException(); }
// XElementAccess
- virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException, std::exception) override
+ virtual uno::Type SAL_CALL getElementType( ) override
{ return cppu::UnoType<XCommandBarControl>::get(); }
- virtual sal_Bool SAL_CALL hasElements( ) throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasElements( ) override
{ return false; }
};
VbaDummyCommandBarControls::VbaDummyCommandBarControls(
const uno::Reference< XHelperInterface >& xParent,
- const uno::Reference< uno::XComponentContext >& xContext ) throw (uno::RuntimeException) :
+ const uno::Reference< uno::XComponentContext >& xContext ) :
CommandBarControls_BASE( xParent, xContext, new VbaDummyIndexAccess )
{
}
// XEnumerationAccess
-uno::Type SAL_CALL VbaDummyCommandBarControls::getElementType() throw ( uno::RuntimeException )
+uno::Type SAL_CALL VbaDummyCommandBarControls::getElementType()
{
return cppu::UnoType<XCommandBarControl>::get();
}
-uno::Reference< container::XEnumeration > VbaDummyCommandBarControls::createEnumeration() throw ( uno::RuntimeException )
+uno::Reference< container::XEnumeration > VbaDummyCommandBarControls::createEnumeration()
{
return uno::Reference< container::XEnumeration >( new CommandBarControlEnumeration( this ) );
}
@@ -295,13 +295,13 @@ uno::Any VbaDummyCommandBarControls::createCollectionObject( const uno::Any& /*a
}
// Methods
-uno::Any SAL_CALL VbaDummyCommandBarControls::Item( const uno::Any& /*aIndex*/, const uno::Any& /*aIndex*/ ) throw (uno::RuntimeException)
+uno::Any SAL_CALL VbaDummyCommandBarControls::Item( const uno::Any& /*aIndex*/, const uno::Any& /*aIndex*/ )
{
return uno::Any( uno::Reference< XCommandBarControl >() );
}
uno::Reference< XCommandBarControl > SAL_CALL VbaDummyCommandBarControls::Add(
- const uno::Any& /*Type*/, const uno::Any& /*Id*/, const uno::Any& /*Parameter*/, const uno::Any& /*Before*/, const uno::Any& /*Temporary*/ ) throw (script::BasicErrorException, uno::RuntimeException, std::exception)
+ const uno::Any& /*Type*/, const uno::Any& /*Id*/, const uno::Any& /*Parameter*/, const uno::Any& /*Before*/, const uno::Any& /*Temporary*/ )
{
return uno::Reference< XCommandBarControl >();
}
diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrols.hxx b/vbahelper/source/vbahelper/vbacommandbarcontrols.hxx
index e329a1d00988..aae4de66c891 100644
--- a/vbahelper/source/vbahelper/vbacommandbarcontrols.hxx
+++ b/vbahelper/source/vbahelper/vbacommandbarcontrols.hxx
@@ -46,16 +46,16 @@ private:
public:
/// @throws css::uno::RuntimeException
- ScVbaCommandBarControls( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess, VbaCommandBarHelperRef const & pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const OUString& sResourceUrl ) throw( css::uno::RuntimeException );
+ ScVbaCommandBarControls( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess, VbaCommandBarHelperRef const & pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const OUString& sResourceUrl );
// 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 css::uno::Any createCollectionObject( const css::uno::Any& aSource ) override;
// Methods
- virtual css::uno::Any SAL_CALL Item( const css::uno::Any& Index, const css::uno::Any& /*Index2*/ ) throw (css::uno::RuntimeException) override;
- virtual css::uno::Reference< ov::XCommandBarControl > SAL_CALL Add( const css::uno::Any& Type, const css::uno::Any& Id, const css::uno::Any& Parameter, const css::uno::Any& Before, const css::uno::Any& Temporary ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL Item( const css::uno::Any& Index, const css::uno::Any& /*Index2*/ ) override;
+ virtual css::uno::Reference< ov::XCommandBarControl > SAL_CALL Add( const css::uno::Any& Type, const css::uno::Any& Id, const css::uno::Any& Parameter, const css::uno::Any& Before, const css::uno::Any& Temporary ) override;
// XHelperInterface
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
@@ -67,16 +67,16 @@ public:
/// @throws css::uno::RuntimeException
VbaDummyCommandBarControls(
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 );
// 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 css::uno::Any createCollectionObject( const css::uno::Any& aSource ) override;
// Methods
- virtual css::uno::Any SAL_CALL Item( const css::uno::Any& Index, const css::uno::Any& /*Index2*/ ) throw (css::uno::RuntimeException) override;
- virtual css::uno::Reference< ov::XCommandBarControl > SAL_CALL Add( const css::uno::Any& Type, const css::uno::Any& Id, const css::uno::Any& Parameter, const css::uno::Any& Before, const css::uno::Any& Temporary ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL Item( const css::uno::Any& Index, const css::uno::Any& /*Index2*/ ) override;
+ virtual css::uno::Reference< ov::XCommandBarControl > SAL_CALL Add( const css::uno::Any& Type, const css::uno::Any& Id, const css::uno::Any& Parameter, const css::uno::Any& Before, const css::uno::Any& Temporary ) override;
// XHelperInterface
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
index 5c82007317ae..777e7a3695b7 100644
--- a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
@@ -86,12 +86,12 @@ public:
MSO2OOCommandbarHelper* MSO2OOCommandbarHelper::pMSO2OOCommandbarHelper = nullptr;
-VbaCommandBarHelper::VbaCommandBarHelper( const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::frame::XModel >& xModel ) throw (css::uno::RuntimeException) : mxContext( xContext ), mxModel( xModel )
+VbaCommandBarHelper::VbaCommandBarHelper( const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::frame::XModel >& xModel ) : mxContext( xContext ), mxModel( xModel )
{
Init();
}
-void VbaCommandBarHelper::Init( ) throw (css::uno::RuntimeException)
+void VbaCommandBarHelper::Init( )
{
uno::Reference< css::ui::XUIConfigurationManagerSupplier > xUICfgSupplier( mxModel, uno::UNO_QUERY_THROW );
m_xDocCfgMgr = xUICfgSupplier->getUIConfigurationManager();
@@ -121,7 +121,7 @@ void VbaCommandBarHelper::Init( ) throw (css::uno::RuntimeException)
m_xWindowState.set( xNameAccess->getByName( maModuleId ), uno::UNO_QUERY_THROW );
}
-css::uno::Reference< css::container::XIndexAccess > VbaCommandBarHelper::getSettings( const OUString& sResourceUrl ) throw (css::uno::RuntimeException)
+css::uno::Reference< css::container::XIndexAccess > VbaCommandBarHelper::getSettings( const OUString& sResourceUrl )
{
if( m_xDocCfgMgr->hasSettings( sResourceUrl ) )
return m_xDocCfgMgr->getSettings( sResourceUrl, true );
@@ -134,7 +134,7 @@ css::uno::Reference< css::container::XIndexAccess > VbaCommandBarHelper::getSett
}
}
-void VbaCommandBarHelper::removeSettings( const OUString& sResourceUrl ) throw (css::uno::RuntimeException)
+void VbaCommandBarHelper::removeSettings( const OUString& sResourceUrl )
{
if( m_xDocCfgMgr->hasSettings( sResourceUrl ) )
m_xDocCfgMgr->removeSettings( sResourceUrl );
@@ -144,7 +144,7 @@ void VbaCommandBarHelper::removeSettings( const OUString& sResourceUrl ) throw (
// persistChanges();
}
-void VbaCommandBarHelper::ApplyTempChange( const OUString& sResourceUrl, const css::uno::Reference< css::container::XIndexAccess >& xSettings ) throw (css::uno::RuntimeException)
+void VbaCommandBarHelper::ApplyTempChange( const OUString& sResourceUrl, const css::uno::Reference< css::container::XIndexAccess >& xSettings )
{
if( m_xDocCfgMgr->hasSettings( sResourceUrl ) )
{
@@ -156,7 +156,7 @@ void VbaCommandBarHelper::ApplyTempChange( const OUString& sResourceUrl, const c
}
}
-uno::Reference< frame::XLayoutManager > VbaCommandBarHelper::getLayoutManager() throw (uno::RuntimeException)
+uno::Reference< frame::XLayoutManager > VbaCommandBarHelper::getLayoutManager()
{
uno::Reference< frame::XFrame > xFrame( getModel()->getCurrentController()->getFrame(), uno::UNO_QUERY_THROW );
uno::Reference< beans::XPropertySet > xPropertySet( xFrame, uno::UNO_QUERY_THROW );
@@ -164,7 +164,7 @@ uno::Reference< frame::XLayoutManager > VbaCommandBarHelper::getLayoutManager()
return xLayoutManager;
}
-bool VbaCommandBarHelper::hasToolbar( const OUString& sResourceUrl, const OUString& sName ) throw (css::uno::RuntimeException)
+bool VbaCommandBarHelper::hasToolbar( const OUString& sResourceUrl, const OUString& sName )
{
if( m_xDocCfgMgr->hasSettings( sResourceUrl ) )
{
@@ -178,7 +178,7 @@ bool VbaCommandBarHelper::hasToolbar( const OUString& sResourceUrl, const OUStri
}
// return the resource url if found
-OUString VbaCommandBarHelper::findToolbarByName( const css::uno::Reference< css::container::XNameAccess >& xNameAccess, const OUString& sName ) throw (css::uno::RuntimeException)
+OUString VbaCommandBarHelper::findToolbarByName( const css::uno::Reference< css::container::XNameAccess >& xNameAccess, const OUString& sName )
{
OUString sResourceUrl;
@@ -207,7 +207,7 @@ OUString VbaCommandBarHelper::findToolbarByName( const css::uno::Reference< css:
}
// if found, return the position of the control. if not found, return -1
-sal_Int32 VbaCommandBarHelper::findControlByName( const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess, const OUString& sName, bool bMenu ) throw (css::uno::RuntimeException)
+sal_Int32 VbaCommandBarHelper::findControlByName( const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess, const OUString& sName, bool bMenu )
{
sal_Int32 nCount = xIndexAccess->getCount();
css::uno::Sequence< css::beans::PropertyValue > aProps;
diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.hxx b/vbahelper/source/vbahelper/vbacommandbarhelper.hxx
index a06b2887f0e0..75f1a82ecfff 100644
--- a/vbahelper/source/vbahelper/vbacommandbarhelper.hxx
+++ b/vbahelper/source/vbahelper/vbacommandbarhelper.hxx
@@ -59,35 +59,35 @@ private:
OUString maModuleId;
/// @throws css::uno::RuntimeException
- void Init() throw (css::uno::RuntimeException);
+ void Init();
/// @throws css::uno::RuntimeException
- bool hasToolbar( const OUString& sResourceUrl, const OUString& sName ) throw (css::uno::RuntimeException);
+ bool hasToolbar( const OUString& sResourceUrl, const OUString& sName );
public:
/// @throws css::uno::RuntimeException
- VbaCommandBarHelper( const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::frame::XModel >& xModel ) throw( css::uno::RuntimeException );
+ VbaCommandBarHelper( const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::frame::XModel >& xModel );
const css::uno::Reference< css::frame::XModel >& getModel() const { return mxModel; }
/// @throws css::uno::RuntimeException
- const css::uno::Reference< css::container::XNameAccess >& getPersistentWindowState() const throw (css::uno::RuntimeException)
+ const css::uno::Reference< css::container::XNameAccess >& getPersistentWindowState() const
{
return m_xWindowState;
}
/// @throws css::uno::RuntimeException
- css::uno::Reference< css::container::XIndexAccess > getSettings( const OUString& sResourceUrl ) throw (css::uno::RuntimeException);
+ css::uno::Reference< css::container::XIndexAccess > getSettings( const OUString& sResourceUrl );
/// @throws css::uno::RuntimeException
- void removeSettings( const OUString& sResourceUrl ) throw (css::uno::RuntimeException);
+ void removeSettings( const OUString& sResourceUrl );
/// @throws css::uno::RuntimeException
- void ApplyTempChange( const OUString& sResourceUrl, const css::uno::Reference< css::container::XIndexAccess >& xSettings) throw (css::uno::RuntimeException);
+ void ApplyTempChange( const OUString& sResourceUrl, const css::uno::Reference< css::container::XIndexAccess >& xSettings);
/// @throws css::uno::RuntimeException
- css::uno::Reference< css::frame::XLayoutManager > getLayoutManager() throw (css::uno::RuntimeException);
+ css::uno::Reference< css::frame::XLayoutManager > getLayoutManager();
const OUString& getModuleId() const { return maModuleId; }
/// @throws css::uno::RuntimeException
- OUString findToolbarByName( const css::uno::Reference< css::container::XNameAccess >& xNameAccess, const OUString& sName ) throw (css::uno::RuntimeException);
+ OUString findToolbarByName( const css::uno::Reference< css::container::XNameAccess >& xNameAccess, const OUString& sName );
/// @throws css::uno::RuntimeException
- static sal_Int32 findControlByName( const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess, const OUString& sName, bool bMenu ) throw (css::uno::RuntimeException);
+ static sal_Int32 findControlByName( const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess, const OUString& sName, bool bMenu );
static OUString generateCustomURL();
};
diff --git a/vbahelper/source/vbahelper/vbacommandbars.cxx b/vbahelper/source/vbahelper/vbacommandbars.cxx
index e22c524b1237..ec2a439b89dd 100644
--- a/vbahelper/source/vbahelper/vbacommandbars.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbars.cxx
@@ -42,18 +42,18 @@ class CommandBarEnumeration : public ::cppu::WeakImplHelper< container::XEnumera
sal_Int32 m_nCurrentPosition;
public:
/// @throws uno::RuntimeException
- CommandBarEnumeration( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const VbaCommandBarHelperRef& pHelper) throw ( uno::RuntimeException ) : m_xParent( xParent ), m_xContext( xContext ), m_pCBarHelper( pHelper ) , m_nCurrentPosition( 0 )
+ CommandBarEnumeration( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const VbaCommandBarHelperRef& pHelper) : m_xParent( xParent ), m_xContext( xContext ), m_pCBarHelper( pHelper ) , m_nCurrentPosition( 0 )
{
uno::Reference< container::XNameAccess > xNameAccess = m_pCBarHelper->getPersistentWindowState();
m_sNames = xNameAccess->getElementNames();
}
- virtual sal_Bool SAL_CALL hasMoreElements() throw ( uno::RuntimeException, std::exception ) override
+ virtual sal_Bool SAL_CALL hasMoreElements() override
{
if( m_nCurrentPosition < m_sNames.getLength() )
return true;
return false;
}
- virtual uno::Any SAL_CALL nextElement() throw ( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception ) override
+ virtual uno::Any SAL_CALL nextElement() override
{
// FIXME: should be add menubar
if( hasMoreElements() )
@@ -76,7 +76,7 @@ public:
}
};
-ScVbaCommandBars::ScVbaCommandBars( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< container::XIndexAccess >& xIndexAccess, const uno::Reference< frame::XModel >& xModel ) throw ( uno::RuntimeException ) : CommandBars_BASE( xParent, xContext, xIndexAccess )
+ScVbaCommandBars::ScVbaCommandBars( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< container::XIndexAccess >& xIndexAccess, const uno::Reference< frame::XModel >& xModel ) : CommandBars_BASE( xParent, xContext, xIndexAccess )
{
m_pCBarHelper.reset( new VbaCommandBarHelper( mxContext, xModel ) );
m_xNameAccess = m_pCBarHelper->getPersistentWindowState();
@@ -88,13 +88,13 @@ ScVbaCommandBars::~ScVbaCommandBars()
// XEnumerationAccess
uno::Type SAL_CALL
-ScVbaCommandBars::getElementType() throw ( uno::RuntimeException )
+ScVbaCommandBars::getElementType()
{
return cppu::UnoType<XCommandBar>::get();
}
uno::Reference< container::XEnumeration >
-ScVbaCommandBars::createEnumeration() throw ( uno::RuntimeException )
+ScVbaCommandBars::createEnumeration()
{
return uno::Reference< container::XEnumeration >( new CommandBarEnumeration( this, mxContext, m_pCBarHelper ) );
}
@@ -158,7 +158,7 @@ ScVbaCommandBars::createCollectionObject( const uno::Any& aSource )
// XCommandBars
uno::Reference< XCommandBar > SAL_CALL
-ScVbaCommandBars::Add( const css::uno::Any& Name, const css::uno::Any& /*Position*/, const css::uno::Any& /*MenuBar*/, const css::uno::Any& /*Temporary*/ ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception)
+ScVbaCommandBars::Add( const css::uno::Any& Name, const css::uno::Any& /*Position*/, const css::uno::Any& /*MenuBar*/, const css::uno::Any& /*Temporary*/ )
{
// FIXME: only support to add Toolbar
// Position - MsoBar MenuBar - sal_Bool
@@ -186,7 +186,7 @@ ScVbaCommandBars::Add( const css::uno::Any& Name, const css::uno::Any& /*Positio
return xCBar;
}
sal_Int32 SAL_CALL
-ScVbaCommandBars::getCount() throw(css::uno::RuntimeException)
+ScVbaCommandBars::getCount()
{
// Filter out all toolbars from the window collection
sal_Int32 nCount = 1; // there is a Menubar in OOo
@@ -203,7 +203,7 @@ ScVbaCommandBars::getCount() throw(css::uno::RuntimeException)
// ScVbaCollectionBaseImpl
uno::Any SAL_CALL
-ScVbaCommandBars::Item( const uno::Any& aIndex, const uno::Any& /*aIndex2*/ ) throw( uno::RuntimeException )
+ScVbaCommandBars::Item( const uno::Any& aIndex, const uno::Any& /*aIndex2*/ )
{
if( aIndex.getValueTypeClass() == uno::TypeClass_STRING )
{
diff --git a/vbahelper/source/vbahelper/vbacommandbars.hxx b/vbahelper/source/vbahelper/vbacommandbars.hxx
index 2c3fca4b5c82..e94efafe59f9 100644
--- a/vbahelper/source/vbahelper/vbacommandbars.hxx
+++ b/vbahelper/source/vbahelper/vbacommandbars.hxx
@@ -35,18 +35,18 @@ private:
public:
/// @throws css::uno::RuntimeException
- ScVbaCommandBars( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess, const css::uno::Reference< css::frame::XModel >& xModel ) throw (css::uno::RuntimeException);
+ ScVbaCommandBars( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess, const css::uno::Reference< css::frame::XModel >& xModel );
virtual ~ScVbaCommandBars() override;
// XCommandBars
- virtual css::uno::Reference< ov::XCommandBar > SAL_CALL Add( const css::uno::Any& Name, const css::uno::Any& Position, const css::uno::Any& MenuBar, const css::uno::Any& Temporary ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< ov::XCommandBar > SAL_CALL Add( const css::uno::Any& Name, const css::uno::Any& Position, const css::uno::Any& MenuBar, const css::uno::Any& Temporary ) 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;
virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource ) override;
- virtual sal_Int32 SAL_CALL getCount() throw(css::uno::RuntimeException) override;
- virtual css::uno::Any SAL_CALL Item( const css::uno::Any& aIndex, const css::uno::Any& /*aIndex2*/ ) throw( css::uno::RuntimeException) override;
+ virtual sal_Int32 SAL_CALL getCount() override;
+ virtual css::uno::Any SAL_CALL Item( const css::uno::Any& aIndex, const css::uno::Any& /*aIndex2*/ ) override;
// XHelperInterface
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
diff --git a/vbahelper/source/vbahelper/vbadialogbase.cxx b/vbahelper/source/vbahelper/vbadialogbase.cxx
index e5af3b3e9c0e..605a9c76f7eb 100644
--- a/vbahelper/source/vbahelper/vbadialogbase.cxx
+++ b/vbahelper/source/vbahelper/vbadialogbase.cxx
@@ -23,7 +23,7 @@
using namespace ::ooo::vba;
using namespace ::com::sun::star;
-void SAL_CALL VbaDialogBase::Show() throw ( uno::RuntimeException, std::exception )
+void SAL_CALL VbaDialogBase::Show()
{
OUString aURL;
if ( m_xModel.is() )
diff --git a/vbahelper/source/vbahelper/vbadialogsbase.cxx b/vbahelper/source/vbahelper/vbadialogsbase.cxx
index 4ff570f2c6d8..d73ac6c062e4 100644
--- a/vbahelper/source/vbahelper/vbadialogsbase.cxx
+++ b/vbahelper/source/vbahelper/vbadialogsbase.cxx
@@ -22,14 +22,14 @@ using namespace ::ooo::vba;
using namespace ::com::sun::star;
::sal_Int32
-VbaDialogsBase::getCount() throw (uno::RuntimeException, std::exception)
+VbaDialogsBase::getCount()
{
//#STUB
return 0;
}
uno::Any
-VbaDialogsBase::Item( const uno::Any& /* &aItem */) throw (uno::RuntimeException, std::exception)
+VbaDialogsBase::Item( const uno::Any& /* &aItem */)
{
//#STUB
return uno::Any();
diff --git a/vbahelper/source/vbahelper/vbadocumentbase.cxx b/vbahelper/source/vbahelper/vbadocumentbase.cxx
index 899d0de3049a..cf221ab6b95f 100644
--- a/vbahelper/source/vbahelper/vbadocumentbase.cxx
+++ b/vbahelper/source/vbahelper/vbadocumentbase.cxx
@@ -53,7 +53,7 @@ VbaDocumentBase::VbaDocumentBase( uno::Sequence< uno::Any> const & args,
}
OUString
-VbaDocumentBase::getName() throw (uno::RuntimeException, std::exception)
+VbaDocumentBase::getName()
{
return VbaDocumentBase::getNameFromModel( getModel() );
}
@@ -76,7 +76,7 @@ OUString VbaDocumentBase::getNameFromModel( const uno::Reference< frame::XModel
return sName;
}
OUString
-VbaDocumentBase::getPath() throw (uno::RuntimeException, std::exception)
+VbaDocumentBase::getPath()
{
INetURLObject aURL( getModel()->getURL() );
OUString sURL = aURL.GetMainURL( INetURLObject::DecodeMechanism::ToIUri );
@@ -90,7 +90,7 @@ VbaDocumentBase::getPath() throw (uno::RuntimeException, std::exception)
}
OUString
-VbaDocumentBase::getFullName() throw (uno::RuntimeException, std::exception)
+VbaDocumentBase::getFullName()
{
OUString sPath = getName();
//::osl::File::getSystemPathFromFileURL( getModel()->getURL(), sPath );
@@ -99,7 +99,7 @@ VbaDocumentBase::getFullName() throw (uno::RuntimeException, std::exception)
void
VbaDocumentBase::Close( const uno::Any &rSaveArg, const uno::Any &rFileArg,
- const uno::Any &rRouteArg ) throw (uno::RuntimeException, std::exception)
+ const uno::Any &rRouteArg )
{
bool bSaveChanges = false;
OUString aFileName;
@@ -190,7 +190,7 @@ VbaDocumentBase::Close( const uno::Any &rSaveArg, const uno::Any &rFileArg,
}
void
-VbaDocumentBase::Protect( const uno::Any &aPassword ) throw (uno::RuntimeException)
+VbaDocumentBase::Protect( const uno::Any &aPassword )
{
OUString rPassword;
uno::Reference< util::XProtectable > xProt( getModel(), uno::UNO_QUERY_THROW );
@@ -202,7 +202,7 @@ VbaDocumentBase::Protect( const uno::Any &aPassword ) throw (uno::RuntimeExcepti
}
void
-VbaDocumentBase::Unprotect( const uno::Any &aPassword ) throw (uno::RuntimeException, std::exception)
+VbaDocumentBase::Unprotect( const uno::Any &aPassword )
{
OUString rPassword;
uno::Reference< util::XProtectable > xProt( getModel(), uno::UNO_QUERY_THROW );
@@ -218,7 +218,7 @@ VbaDocumentBase::Unprotect( const uno::Any &aPassword ) throw (uno::RuntimeExcep
}
void
-VbaDocumentBase::setSaved( sal_Bool bSave ) throw (uno::RuntimeException, std::exception)
+VbaDocumentBase::setSaved( sal_Bool bSave )
{
uno::Reference< util::XModifiable > xModifiable( getModel(), uno::UNO_QUERY_THROW );
try
@@ -240,14 +240,14 @@ VbaDocumentBase::setSaved( sal_Bool bSave ) throw (uno::RuntimeException, std::e
}
sal_Bool
-VbaDocumentBase::getSaved() throw (uno::RuntimeException, std::exception)
+VbaDocumentBase::getSaved()
{
uno::Reference< util::XModifiable > xModifiable( getModel(), uno::UNO_QUERY_THROW );
return !xModifiable->isModified();
}
void
-VbaDocumentBase::Save() throw (uno::RuntimeException, std::exception)
+VbaDocumentBase::Save()
{
OUString url(".uno:Save");
uno::Reference< frame::XModel > xModel = getModel();
@@ -255,14 +255,14 @@ VbaDocumentBase::Save() throw (uno::RuntimeException, std::exception)
}
void
-VbaDocumentBase::Activate() throw (uno::RuntimeException, std::exception)
+VbaDocumentBase::Activate()
{
uno::Reference< frame::XFrame > xFrame( getModel()->getCurrentController()->getFrame(), uno::UNO_QUERY_THROW );
xFrame->activate();
}
uno::Any SAL_CALL
-VbaDocumentBase::getVBProject() throw (uno::RuntimeException, std::exception)
+VbaDocumentBase::getVBProject()
{
if( !mxVBProject.is() ) try
{
diff --git a/vbahelper/source/vbahelper/vbadocumentsbase.cxx b/vbahelper/source/vbahelper/vbadocumentsbase.cxx
index 10bfe880adcc..7e61c47efd80 100644
--- a/vbahelper/source/vbahelper/vbadocumentsbase.cxx
+++ b/vbahelper/source/vbahelper/vbadocumentsbase.cxx
@@ -71,12 +71,12 @@ class DocumentsEnumImpl : public ::cppu::WeakImplHelper< container::XEnumeration
public:
/// @throws uno::RuntimeException
- DocumentsEnumImpl( const uno::Reference< uno::XComponentContext >& xContext, const Documents& docs ) throw ( uno::RuntimeException ) : m_xContext( xContext ), m_documents( docs )
+ DocumentsEnumImpl( const uno::Reference< uno::XComponentContext >& xContext, const Documents& docs ) : m_xContext( xContext ), m_documents( docs )
{
m_it = m_documents.begin();
}
/// @throws uno::RuntimeException
- explicit DocumentsEnumImpl( const uno::Reference< uno::XComponentContext >& xContext ) throw ( uno::RuntimeException ) : m_xContext( xContext )
+ explicit DocumentsEnumImpl( const uno::Reference< uno::XComponentContext >& xContext ) : m_xContext( xContext )
{
uno::Reference< frame::XDesktop2 > xDesktop = frame::Desktop::create( m_xContext );
uno::Reference< container::XEnumeration > xComponents = xDesktop->getComponents()->createEnumeration();
@@ -89,12 +89,12 @@ public:
m_it = m_documents.begin();
}
// XEnumeration
- virtual sal_Bool SAL_CALL hasMoreElements( ) throw (uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasMoreElements( ) override
{
return m_it != m_documents.end();
}
- virtual uno::Any SAL_CALL nextElement( ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception) override
+ virtual uno::Any SAL_CALL nextElement( ) override
{
if ( !hasMoreElements() )
{
@@ -123,7 +123,7 @@ class DocumentsAccessImpl : public DocumentsAccessImpl_BASE
VbaDocumentsBase::DOCUMENT_TYPE meDocType;
public:
/// @throws uno::RuntimeException
- DocumentsAccessImpl( const uno::Reference< uno::XComponentContext >& xContext, VbaDocumentsBase::DOCUMENT_TYPE eDocType ) throw (uno::RuntimeException, std::exception) :m_xContext( xContext ), meDocType( eDocType )
+ DocumentsAccessImpl( const uno::Reference< uno::XComponentContext >& xContext, VbaDocumentsBase::DOCUMENT_TYPE eDocType ) :m_xContext( xContext ), meDocType( eDocType )
{
uno::Reference< container::XEnumeration > xEnum = new DocumentsEnumImpl( m_xContext );
sal_Int32 nIndex=0;
@@ -144,16 +144,16 @@ public:
}
//XEnumerationAccess
- virtual uno::Reference< container::XEnumeration > SAL_CALL createEnumeration( ) throw (uno::RuntimeException, std::exception) override
+ virtual uno::Reference< container::XEnumeration > SAL_CALL createEnumeration( ) override
{
return new DocumentsEnumImpl( m_xContext, m_documents );
}
// XIndexAccess
- virtual ::sal_Int32 SAL_CALL getCount( ) throw (uno::RuntimeException, std::exception) override
+ virtual ::sal_Int32 SAL_CALL getCount( ) override
{
return m_documents.size();
}
- virtual uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) throw ( lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException, std::exception) override
+ virtual uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) override
{
if ( Index < 0
|| static_cast< Documents::size_type >(Index) >= m_documents.size() )
@@ -162,18 +162,18 @@ public:
}
//XElementAccess
- virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException, std::exception) override
+ virtual uno::Type SAL_CALL getElementType( ) override
{
return cppu::UnoType<frame::XModel>::get();
}
- virtual sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasElements( ) override
{
return (!m_documents.empty());
}
//XNameAccess
- virtual uno::Any SAL_CALL getByName( const OUString& aName ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception) override
+ virtual uno::Any SAL_CALL getByName( const OUString& aName ) override
{
NameIndexHash::const_iterator it = namesToIndices.find( aName );
if ( it == namesToIndices.end() )
@@ -182,12 +182,12 @@ public:
}
- virtual uno::Sequence< OUString > SAL_CALL getElementNames( ) throw (uno::RuntimeException, std::exception) override
+ virtual uno::Sequence< OUString > SAL_CALL getElementNames( ) override
{
return comphelper::mapKeysToSequence( namesToIndices );
}
- virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) throw (uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override
{
NameIndexHash::const_iterator it = namesToIndices.find( aName );
return (it != namesToIndices.end());
@@ -195,7 +195,7 @@ public:
};
-VbaDocumentsBase::VbaDocumentsBase( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< css::uno::XComponentContext >& xContext, DOCUMENT_TYPE eDocType ) throw (uno::RuntimeException) : VbaDocumentsBase_BASE( xParent, xContext, uno::Reference< container::XIndexAccess >( new DocumentsAccessImpl( xContext, eDocType ) ) ), meDocType( eDocType )
+VbaDocumentsBase::VbaDocumentsBase( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< css::uno::XComponentContext >& xContext, DOCUMENT_TYPE eDocType ) : VbaDocumentsBase_BASE( xParent, xContext, uno::Reference< container::XIndexAccess >( new DocumentsAccessImpl( xContext, eDocType ) ) ), meDocType( eDocType )
{
}
@@ -225,7 +225,7 @@ void lclSetupComponent( const uno::Reference< lang::XComponent >& rxComponent, b
} // namespace
-uno::Any VbaDocumentsBase::createDocument() throw (uno::RuntimeException, std::exception)
+uno::Any VbaDocumentsBase::createDocument()
{
// #163808# determine state of Application.ScreenUpdating and Application.Interactive symbols (before new document is opened)
uno::Reference< XApplicationBase > xApplication( Application(), uno::UNO_QUERY );
@@ -258,7 +258,7 @@ uno::Any VbaDocumentsBase::createDocument() throw (uno::RuntimeException, std::e
}
// #TODO# #FIXME# can any of the unused params below be used?
-uno::Any VbaDocumentsBase::openDocument( const OUString& rFileName, const uno::Any& ReadOnly, const uno::Sequence< beans::PropertyValue >& rProps ) throw (uno::RuntimeException)
+uno::Any VbaDocumentsBase::openDocument( const OUString& rFileName, const uno::Any& ReadOnly, const uno::Sequence< beans::PropertyValue >& rProps )
{
// #163808# determine state of Application.ScreenUpdating and Application.Interactive symbols (before new document is opened)
uno::Reference< XApplicationBase > xApplication( Application(), uno::UNO_QUERY );
diff --git a/vbahelper/source/vbahelper/vbaeventshelperbase.cxx b/vbahelper/source/vbahelper/vbaeventshelperbase.cxx
index 8176f9954fcf..ed718c171712 100644
--- a/vbahelper/source/vbahelper/vbaeventshelperbase.cxx
+++ b/vbahelper/source/vbahelper/vbaeventshelperbase.cxx
@@ -54,7 +54,6 @@ VbaEventsHelperBase::~VbaEventsHelperBase()
}
sal_Bool SAL_CALL VbaEventsHelperBase::processVbaEvent( sal_Int32 nEventId, const uno::Sequence< uno::Any >& rArgs )
- throw (lang::IllegalArgumentException, util::VetoException, uno::RuntimeException, std::exception)
{
/* Derived classes may add new event identifiers to be processed while
processing the original event. All unprocessed events are collected in
@@ -131,14 +130,14 @@ sal_Bool SAL_CALL VbaEventsHelperBase::processVbaEvent( sal_Int32 nEventId, cons
return bExecuted;
}
-void SAL_CALL VbaEventsHelperBase::notifyEvent( const document::EventObject& rEvent ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaEventsHelperBase::notifyEvent( const document::EventObject& rEvent )
{
SAL_INFO("vbahelper", "VbaEventsHelperBase::notifyEvent( \"" << rEvent.EventName << "\" )");
if( rEvent.EventName == GlobalEventConfig::GetEventName( GlobalEventId::CLOSEDOC ) )
stopListening();
}
-void SAL_CALL VbaEventsHelperBase::changesOccurred( const util::ChangesEvent& rEvent ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaEventsHelperBase::changesOccurred( const util::ChangesEvent& rEvent )
{
// make sure the VBA library exists
try
@@ -176,7 +175,7 @@ void SAL_CALL VbaEventsHelperBase::changesOccurred( const util::ChangesEvent& rE
}
}
-void SAL_CALL VbaEventsHelperBase::disposing( const lang::EventObject& rEvent ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL VbaEventsHelperBase::disposing( const lang::EventObject& rEvent )
{
uno::Reference< frame::XModel > xSender( rEvent.Source, uno::UNO_QUERY );
if( xSender.is() )
@@ -184,7 +183,6 @@ void SAL_CALL VbaEventsHelperBase::disposing( const lang::EventObject& rEvent )
}
sal_Bool VbaEventsHelperBase::supportsService(OUString const & ServiceName)
- throw (css::uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, ServiceName);
}
@@ -241,7 +239,6 @@ void VbaEventsHelperBase::stopListening()
}
sal_Bool SAL_CALL VbaEventsHelperBase::hasVbaEventHandler( sal_Int32 nEventId, const uno::Sequence< uno::Any >& rArgs )
- throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception)
{
EventHandlerInfoMap::const_iterator aIt = maEventInfos.find( nEventId );
if( aIt == maEventInfos.end() )
@@ -251,7 +248,7 @@ sal_Bool SAL_CALL VbaEventsHelperBase::hasVbaEventHandler( sal_Int32 nEventId, c
}
const VbaEventsHelperBase::EventHandlerInfo& VbaEventsHelperBase::getEventHandlerInfo(
- sal_Int32 nEventId ) const throw (lang::IllegalArgumentException)
+ sal_Int32 nEventId ) const
{
EventHandlerInfoMap::const_iterator aIt = maEventInfos.find( nEventId );
if( aIt == maEventInfos.end() )
@@ -260,7 +257,7 @@ const VbaEventsHelperBase::EventHandlerInfo& VbaEventsHelperBase::getEventHandle
}
OUString VbaEventsHelperBase::getEventHandlerPath( const EventHandlerInfo& rInfo,
- const uno::Sequence< uno::Any >& rArgs ) throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception)
+ const uno::Sequence< uno::Any >& rArgs )
{
OUString aModuleName;
switch( rInfo.mnModuleType )
@@ -287,7 +284,7 @@ OUString VbaEventsHelperBase::getEventHandlerPath( const EventHandlerInfo& rInfo
return rPathMap[ rInfo.mnEventId ];
}
-void VbaEventsHelperBase::ensureVBALibrary() throw (uno::RuntimeException)
+void VbaEventsHelperBase::ensureVBALibrary()
{
if( !mxModuleInfos.is() ) try
{
@@ -310,7 +307,7 @@ void VbaEventsHelperBase::ensureVBALibrary() throw (uno::RuntimeException)
}
}
-sal_Int32 VbaEventsHelperBase::getModuleType( const OUString& rModuleName ) throw (uno::RuntimeException)
+sal_Int32 VbaEventsHelperBase::getModuleType( const OUString& rModuleName )
{
// make sure the VBA library exists
ensureVBALibrary();
@@ -330,7 +327,7 @@ sal_Int32 VbaEventsHelperBase::getModuleType( const OUString& rModuleName ) thro
throw uno::RuntimeException();
}
-VbaEventsHelperBase::ModulePathMap& VbaEventsHelperBase::updateModulePathMap( const OUString& rModuleName ) throw (uno::RuntimeException, std::exception)
+VbaEventsHelperBase::ModulePathMap& VbaEventsHelperBase::updateModulePathMap( const OUString& rModuleName )
{
// get type of the specified module (throws on error)
sal_Int32 nModuleType = getModuleType( rModuleName );
diff --git a/vbahelper/source/vbahelper/vbafillformat.cxx b/vbahelper/source/vbahelper/vbafillformat.cxx
index 0ee49c407d51..7ca9781af6aa 100644
--- a/vbahelper/source/vbahelper/vbafillformat.cxx
+++ b/vbahelper/source/vbahelper/vbafillformat.cxx
@@ -35,7 +35,7 @@ ScVbaFillFormat::ScVbaFillFormat( const uno::Reference< XHelperInterface >& xPar
}
void
-ScVbaFillFormat::setFillStyle( drawing::FillStyle nFillStyle ) throw (uno::RuntimeException)
+ScVbaFillFormat::setFillStyle( drawing::FillStyle nFillStyle )
{
m_nFillStyle = nFillStyle;
if( m_nFillStyle == drawing::FillStyle_GRADIENT )
@@ -66,7 +66,7 @@ ScVbaFillFormat::setFillStyle( drawing::FillStyle nFillStyle ) throw (uno::Runti
}
void
-ScVbaFillFormat::setForeColorAndInternalStyle( sal_Int32 nForeColor ) throw (css::uno::RuntimeException)
+ScVbaFillFormat::setForeColorAndInternalStyle( sal_Int32 nForeColor )
{
m_nForeColor = nForeColor;
setFillStyle( m_nFillStyle );
@@ -74,7 +74,7 @@ ScVbaFillFormat::setForeColorAndInternalStyle( sal_Int32 nForeColor ) throw (css
// Attributes
sal_Bool SAL_CALL
-ScVbaFillFormat::getVisible() throw (uno::RuntimeException, std::exception)
+ScVbaFillFormat::getVisible()
{
drawing::FillStyle nFillStyle;
m_xPropertySet->getPropertyValue( "FillStyle" ) >>= nFillStyle;
@@ -84,7 +84,7 @@ ScVbaFillFormat::getVisible() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaFillFormat::setVisible( sal_Bool _visible ) throw (uno::RuntimeException, std::exception)
+ScVbaFillFormat::setVisible( sal_Bool _visible )
{
drawing::FillStyle aFillStyle;
m_xPropertySet->getPropertyValue( "FillStyle" ) >>= aFillStyle;
@@ -102,7 +102,7 @@ ScVbaFillFormat::setVisible( sal_Bool _visible ) throw (uno::RuntimeException, s
}
double SAL_CALL
-ScVbaFillFormat::getTransparency() throw (uno::RuntimeException, std::exception)
+ScVbaFillFormat::getTransparency()
{
sal_Int16 nTransparence = 0;
double dTransparence = 0;
@@ -113,7 +113,7 @@ ScVbaFillFormat::getTransparency() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaFillFormat::setTransparency( double _transparency ) throw (uno::RuntimeException, std::exception)
+ScVbaFillFormat::setTransparency( double _transparency )
{
sal_Int16 nTransparence = static_cast< sal_Int16 >( _transparency * 100 );
m_xPropertySet->setPropertyValue( "FillTransparence" , uno::makeAny( nTransparence ) );
@@ -122,13 +122,13 @@ ScVbaFillFormat::setTransparency( double _transparency ) throw (uno::RuntimeExce
// Methods
void SAL_CALL
-ScVbaFillFormat::Solid() throw (uno::RuntimeException, std::exception)
+ScVbaFillFormat::Solid()
{
setFillStyle( drawing::FillStyle_SOLID );
}
void SAL_CALL
-ScVbaFillFormat::TwoColorGradient( sal_Int32 style, sal_Int32 /*variant*/ ) throw (uno::RuntimeException, std::exception)
+ScVbaFillFormat::TwoColorGradient( sal_Int32 style, sal_Int32 /*variant*/ )
{
if( style == office::MsoGradientStyle::msoGradientHorizontal )
{
@@ -153,7 +153,7 @@ ScVbaFillFormat::TwoColorGradient( sal_Int32 style, sal_Int32 /*variant*/ ) thro
}
uno::Reference< msforms::XColorFormat > SAL_CALL
-ScVbaFillFormat::BackColor() throw (uno::RuntimeException, std::exception)
+ScVbaFillFormat::BackColor()
{
if( !m_xColorFormat.is() )
m_xColorFormat.set( new ScVbaColorFormat( getParent(), mxContext, this, m_xShape, ColorFormatType::FILLFORMAT_BACKCOLOR ) );
@@ -161,7 +161,7 @@ ScVbaFillFormat::BackColor() throw (uno::RuntimeException, std::exception)
}
uno::Reference< msforms::XColorFormat > SAL_CALL
-ScVbaFillFormat::ForeColor() throw (uno::RuntimeException, std::exception)
+ScVbaFillFormat::ForeColor()
{
if( !m_xColorFormat.is() )
m_xColorFormat.set( new ScVbaColorFormat( getParent(), mxContext, this, m_xShape, ColorFormatType::FILLFORMAT_FORECOLOR ) );
diff --git a/vbahelper/source/vbahelper/vbafillformat.hxx b/vbahelper/source/vbahelper/vbafillformat.hxx
index 8789560e18ee..e1635a80db28 100644
--- a/vbahelper/source/vbahelper/vbafillformat.hxx
+++ b/vbahelper/source/vbahelper/vbafillformat.hxx
@@ -37,7 +37,7 @@ private:
sal_Int16 m_nGradientAngle;
private:
/// @throws css::uno::RuntimeException
- void setFillStyle( css::drawing::FillStyle nFillStyle ) throw (css::uno::RuntimeException);
+ void setFillStyle( css::drawing::FillStyle nFillStyle );
protected:
virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override;
@@ -46,18 +46,18 @@ public:
ScVbaFillFormat( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::drawing::XShape >& xShape );
/// @throws css::uno::RuntimeException
- void setForeColorAndInternalStyle( sal_Int32 nForeColor ) throw (css::uno::RuntimeException);
+ void setForeColorAndInternalStyle( sal_Int32 nForeColor );
// Attributes
- 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 double SAL_CALL getTransparency() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setTransparency( double _transparency ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL getVisible() override;
+ virtual void SAL_CALL setVisible( sal_Bool _visible ) override;
+ virtual double SAL_CALL getTransparency() override;
+ virtual void SAL_CALL setTransparency( double _transparency ) override;
// Methods
- virtual void SAL_CALL Solid() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL TwoColorGradient( sal_Int32 style, sal_Int32 variant ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< ov::msforms::XColorFormat > SAL_CALL BackColor() throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< ov::msforms::XColorFormat > SAL_CALL ForeColor() throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL Solid() override;
+ virtual void SAL_CALL TwoColorGradient( sal_Int32 style, sal_Int32 variant ) override;
+ virtual css::uno::Reference< ov::msforms::XColorFormat > SAL_CALL BackColor() override;
+ virtual css::uno::Reference< ov::msforms::XColorFormat > SAL_CALL ForeColor() override;
};
diff --git a/vbahelper/source/vbahelper/vbafontbase.cxx b/vbahelper/source/vbahelper/vbafontbase.cxx
index d9f908bee01c..3dd15e11bea7 100644
--- a/vbahelper/source/vbahelper/vbafontbase.cxx
+++ b/vbahelper/source/vbahelper/vbafontbase.cxx
@@ -39,7 +39,7 @@ VbaFontBase::VbaFontBase(
const uno::Reference< uno::XComponentContext >& xContext,
const uno::Reference< css::container::XIndexAccess >& xPalette,
const uno::Reference< beans::XPropertySet >& xPropertySet,
- bool bFormControl ) throw ( uno::RuntimeException ) :
+ bool bFormControl ) :
VbaFontBase_BASE( xParent, xContext ),
mxFont( xPropertySet, uno::UNO_SET_THROW ),
mxPalette( xPalette, uno::UNO_SET_THROW ),
@@ -52,7 +52,7 @@ VbaFontBase::~VbaFontBase()
}
void SAL_CALL
-VbaFontBase::setSuperscript( const uno::Any& aValue ) throw ( uno::RuntimeException, std::exception )
+VbaFontBase::setSuperscript( const uno::Any& aValue )
{
// not supported in form controls
if( mbFormControl )
@@ -73,7 +73,7 @@ VbaFontBase::setSuperscript( const uno::Any& aValue ) throw ( uno::RuntimeExcept
}
uno::Any SAL_CALL
-VbaFontBase::getSuperscript() throw ( uno::RuntimeException, std::exception )
+VbaFontBase::getSuperscript()
{
short nValue = NORMAL;
// not supported in form controls
@@ -83,7 +83,7 @@ VbaFontBase::getSuperscript() throw ( uno::RuntimeException, std::exception )
}
void SAL_CALL
-VbaFontBase::setSubscript( const uno::Any& aValue ) throw ( uno::RuntimeException, std::exception )
+VbaFontBase::setSubscript( const uno::Any& aValue )
{
// not supported in form controls
if( mbFormControl )
@@ -106,7 +106,7 @@ VbaFontBase::setSubscript( const uno::Any& aValue ) throw ( uno::RuntimeExceptio
}
uno::Any SAL_CALL
-VbaFontBase::getSubscript() throw ( uno::RuntimeException, std::exception )
+VbaFontBase::getSubscript()
{
short nValue = NORMAL;
// not supported in form controls
@@ -116,7 +116,7 @@ VbaFontBase::getSubscript() throw ( uno::RuntimeException, std::exception )
}
void SAL_CALL
-VbaFontBase::setSize( const uno::Any& aValue ) throw( uno::RuntimeException, std::exception )
+VbaFontBase::setSize( const uno::Any& aValue )
{
// form controls need a sal_Int16 containing points, other APIs need a float
uno::Any aVal( aValue );
@@ -130,13 +130,13 @@ VbaFontBase::setSize( const uno::Any& aValue ) throw( uno::RuntimeException, std
}
uno::Any SAL_CALL
-VbaFontBase::getSize() throw ( uno::RuntimeException, std::exception )
+VbaFontBase::getSize()
{
return mxFont->getPropertyValue( VBAFONTBASE_PROPNAME( "CharHeight", "FontHeight" ) );
}
void SAL_CALL
-VbaFontBase::setColorIndex( const uno::Any& _colorindex ) throw( uno::RuntimeException, std::exception )
+VbaFontBase::setColorIndex( const uno::Any& _colorindex )
{
sal_Int32 nIndex = 0;
_colorindex >>= nIndex;
@@ -151,7 +151,7 @@ VbaFontBase::setColorIndex( const uno::Any& _colorindex ) throw( uno::RuntimeExc
uno::Any SAL_CALL
-VbaFontBase::getColorIndex() throw ( uno::RuntimeException, std::exception )
+VbaFontBase::getColorIndex()
{
sal_Int32 nColor = 0;
@@ -172,7 +172,7 @@ VbaFontBase::getColorIndex() throw ( uno::RuntimeException, std::exception )
}
void SAL_CALL
-VbaFontBase::setBold( const uno::Any& aValue ) throw( uno::RuntimeException, std::exception )
+VbaFontBase::setBold( const uno::Any& aValue )
{
bool bValue = false;
aValue >>= bValue;
@@ -184,7 +184,7 @@ VbaFontBase::setBold( const uno::Any& aValue ) throw( uno::RuntimeException, std
}
uno::Any SAL_CALL
-VbaFontBase::getBold() throw ( uno::RuntimeException, std::exception )
+VbaFontBase::getBold()
{
double fValue = 0.0;
mxFont->getPropertyValue( VBAFONTBASE_PROPNAME( "CharWeight", "FontWeight" ) ) >>= fValue;
@@ -192,7 +192,7 @@ VbaFontBase::getBold() throw ( uno::RuntimeException, std::exception )
}
void SAL_CALL
-VbaFontBase::setStrikethrough( const uno::Any& aValue ) throw ( uno::RuntimeException, std::exception )
+VbaFontBase::setStrikethrough( const uno::Any& aValue )
{
bool bValue = false;
aValue >>= bValue;
@@ -203,7 +203,7 @@ VbaFontBase::setStrikethrough( const uno::Any& aValue ) throw ( uno::RuntimeExce
}
uno::Any SAL_CALL
-VbaFontBase::getStrikethrough() throw ( uno::RuntimeException, std::exception )
+VbaFontBase::getStrikethrough()
{
short nValue = 0;
mxFont->getPropertyValue( VBAFONTBASE_PROPNAME( "CharStrikeout", "FontStrikeout" ) ) >>= nValue;
@@ -211,20 +211,20 @@ VbaFontBase::getStrikethrough() throw ( uno::RuntimeException, std::exception )
}
void SAL_CALL
-VbaFontBase::setShadow( const uno::Any& aValue ) throw ( uno::RuntimeException, std::exception )
+VbaFontBase::setShadow( const uno::Any& aValue )
{
if( !mbFormControl )
mxFont->setPropertyValue( "CharShadowed" , aValue );
}
uno::Any SAL_CALL
-VbaFontBase::getShadow() throw (uno::RuntimeException, std::exception)
+VbaFontBase::getShadow()
{
return mbFormControl ? uno::Any( false ) : mxFont->getPropertyValue( "CharShadowed" );
}
void SAL_CALL
-VbaFontBase::setItalic( const uno::Any& aValue ) throw ( uno::RuntimeException, std::exception )
+VbaFontBase::setItalic( const uno::Any& aValue )
{
bool bValue = false;
aValue >>= bValue;
@@ -235,7 +235,7 @@ VbaFontBase::setItalic( const uno::Any& aValue ) throw ( uno::RuntimeException,
}
uno::Any SAL_CALL
-VbaFontBase::getItalic() throw ( uno::RuntimeException, std::exception )
+VbaFontBase::getItalic()
{
awt::FontSlant aFS;
mxFont->getPropertyValue( VBAFONTBASE_PROPNAME( "CharPosture", "FontSlant" ) ) >>= aFS;
@@ -243,7 +243,7 @@ VbaFontBase::getItalic() throw ( uno::RuntimeException, std::exception )
}
void SAL_CALL
-VbaFontBase::setName( const uno::Any& aValue ) throw ( uno::RuntimeException, std::exception )
+VbaFontBase::setName( const uno::Any& aValue )
{
OUString sString;
aValue >>= sString;
@@ -251,13 +251,13 @@ VbaFontBase::setName( const uno::Any& aValue ) throw ( uno::RuntimeException, st
}
uno::Any SAL_CALL
-VbaFontBase::getName() throw ( uno::RuntimeException, std::exception )
+VbaFontBase::getName()
{
return mxFont->getPropertyValue( VBAFONTBASE_PROPNAME( "CharFontName", "FontName" ) );
}
uno::Any
-VbaFontBase::getColor() throw (uno::RuntimeException, std::exception)
+VbaFontBase::getColor()
{
uno::Any aAny;
aAny = OORGBToXLRGB( mxFont->getPropertyValue( VBAFONTBASE_PROPNAME( "CharColor", "TextColor" ) ) );
@@ -265,7 +265,7 @@ VbaFontBase::getColor() throw (uno::RuntimeException, std::exception)
}
void
-VbaFontBase::setColor( const uno::Any& _color ) throw (uno::RuntimeException, std::exception)
+VbaFontBase::setColor( const uno::Any& _color )
{
mxFont->setPropertyValue( VBAFONTBASE_PROPNAME( "CharColor", "TextColor" ), XLRGBToOORGB(_color) );
}
diff --git a/vbahelper/source/vbahelper/vbaglobalbase.cxx b/vbahelper/source/vbahelper/vbaglobalbase.cxx
index 177aa1cf064b..3d90fa37d181 100644
--- a/vbahelper/source/vbahelper/vbaglobalbase.cxx
+++ b/vbahelper/source/vbahelper/vbaglobalbase.cxx
@@ -119,7 +119,7 @@ VbaGlobalsBase::init( const uno::Sequence< beans::PropertyValue >& aInitArgs )
}
uno::Reference< uno::XInterface > SAL_CALL
-VbaGlobalsBase::createInstance( const OUString& aServiceSpecifier ) throw (uno::Exception, uno::RuntimeException, std::exception)
+VbaGlobalsBase::createInstance( const OUString& aServiceSpecifier )
{
uno::Reference< uno::XInterface > xReturn;
if ( aServiceSpecifier == sAppService )
@@ -134,7 +134,7 @@ VbaGlobalsBase::createInstance( const OUString& aServiceSpecifier ) throw (uno::
}
uno::Reference< uno::XInterface > SAL_CALL
-VbaGlobalsBase::createInstanceWithArguments( const OUString& aServiceSpecifier, const uno::Sequence< uno::Any >& Arguments ) throw (uno::Exception, uno::RuntimeException, std::exception)
+VbaGlobalsBase::createInstanceWithArguments( const OUString& aServiceSpecifier, const uno::Sequence< uno::Any >& Arguments )
{
uno::Reference< uno::XInterface > xReturn;
@@ -150,7 +150,7 @@ VbaGlobalsBase::createInstanceWithArguments( const OUString& aServiceSpecifier,
}
uno::Sequence< OUString > SAL_CALL
-VbaGlobalsBase::getAvailableServiceNames( ) throw (uno::RuntimeException, std::exception)
+VbaGlobalsBase::getAvailableServiceNames( )
{
uno::Sequence< OUString > serviceNames { "ooo.vba.msforms.UserForm" };
return serviceNames;
diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx
index a1a30d1b43c7..e35416617028 100644
--- a/vbahelper/source/vbahelper/vbahelper.cxx
+++ b/vbahelper/source/vbahelper/vbahelper.cxx
@@ -98,7 +98,7 @@ nViewNo && !pView->GetObjectShell()->IsInPlaceActive() )
}
uno::Reference< beans::XIntrospectionAccess >
-getIntrospectionAccess( const uno::Any& aObject ) throw (uno::RuntimeException)
+getIntrospectionAccess( const uno::Any& aObject )
{
static uno::Reference< beans::XIntrospection > xIntrospection;
if( !xIntrospection.is() )
@@ -110,7 +110,7 @@ getIntrospectionAccess( const uno::Any& aObject ) throw (uno::RuntimeException)
}
uno::Reference< script::XTypeConverter > const &
-getTypeConverter( const uno::Reference< uno::XComponentContext >& xContext ) throw (uno::RuntimeException)
+getTypeConverter( const uno::Reference< uno::XComponentContext >& xContext )
{
static uno::Reference< script::XTypeConverter > xTypeConv( script::Converter::create(xContext) );
return xTypeConv;
@@ -186,7 +186,7 @@ dispatchRequests( const uno::Reference< frame::XModel>& xModel, const OUString&
}
uno::Reference< frame::XModel >
-getCurrentDoc( const OUString& sKey ) throw (uno::RuntimeException)
+getCurrentDoc( const OUString& sKey )
{
uno::Reference< frame::XModel > xModel;
SbxObject* pBasic = dynamic_cast< SbxObject* > ( SfxApplication::GetBasic() );
@@ -236,7 +236,7 @@ getCurrentDoc( const OUString& sKey ) throw (uno::RuntimeException)
/// @throws uno::RuntimeException
uno::Reference< frame::XModel >
-getCurrentDocCtx( const OUString& ctxName, const uno::Reference< uno::XComponentContext >& xContext ) throw (uno::RuntimeException)
+getCurrentDocCtx( const OUString& ctxName, const uno::Reference< uno::XComponentContext >& xContext )
{
uno::Reference< frame::XModel > xModel;
// try fallback to calling doc
@@ -246,19 +246,19 @@ getCurrentDocCtx( const OUString& ctxName, const uno::Reference< uno::XComponent
}
uno::Reference< frame::XModel >
-getThisExcelDoc( const uno::Reference< uno::XComponentContext >& xContext ) throw (uno::RuntimeException)
+getThisExcelDoc( const uno::Reference< uno::XComponentContext >& xContext )
{
return getCurrentDocCtx( "ExcelDocumentContext" , xContext );
}
uno::Reference< frame::XModel >
-getThisWordDoc( const uno::Reference< uno::XComponentContext >& xContext ) throw (uno::RuntimeException)
+getThisWordDoc( const uno::Reference< uno::XComponentContext >& xContext )
{
return getCurrentDocCtx( "WordDocumentContext" , xContext );
}
uno::Reference< frame::XModel >
-getCurrentExcelDoc( const uno::Reference< uno::XComponentContext >& xContext ) throw (uno::RuntimeException)
+getCurrentExcelDoc( const uno::Reference< uno::XComponentContext >& xContext )
{
uno::Reference< frame::XModel > xModel;
try
@@ -273,7 +273,7 @@ getCurrentExcelDoc( const uno::Reference< uno::XComponentContext >& xContext ) t
}
uno::Reference< frame::XModel >
-getCurrentWordDoc( const uno::Reference< uno::XComponentContext >& xContext ) throw (uno::RuntimeException)
+getCurrentWordDoc( const uno::Reference< uno::XComponentContext >& xContext )
{
uno::Reference< frame::XModel > xModel;
try
@@ -442,7 +442,7 @@ void WaitUntilPreviewIsClosed( SfxViewFrame* pViewFrame )
Application::Yield();
}
-bool extractBoolFromAny( const uno::Any& rAny ) throw (uno::RuntimeException)
+bool extractBoolFromAny( const uno::Any& rAny )
{
switch( rAny.getValueType().getTypeClass() )
{
@@ -463,7 +463,7 @@ bool extractBoolFromAny( const uno::Any& rAny ) throw (uno::RuntimeException)
throw uno::RuntimeException( "Invalid type, cannot convert to boolean." , nullptr );
}
-OUString extractStringFromAny( const uno::Any& rAny, bool bUppercaseBool ) throw (uno::RuntimeException)
+OUString extractStringFromAny( const uno::Any& rAny, bool bUppercaseBool )
{
switch( rAny.getValueType().getTypeClass() )
{
@@ -488,12 +488,12 @@ OUString extractStringFromAny( const uno::Any& rAny, bool bUppercaseBool ) throw
throw uno::RuntimeException( "Invalid type, cannot convert to string." , nullptr );
}
-OUString extractStringFromAny( const uno::Any& rAny, const OUString& rDefault, bool bUppercaseBool ) throw (uno::RuntimeException)
+OUString extractStringFromAny( const uno::Any& rAny, const OUString& rDefault, bool bUppercaseBool )
{
return rAny.hasValue() ? extractStringFromAny( rAny, bUppercaseBool ) : rDefault;
}
-OUString getAnyAsString( const uno::Any& pvargItem ) throw ( uno::RuntimeException )
+OUString getAnyAsString( const uno::Any& pvargItem )
{
return extractStringFromAny( pvargItem );
}
@@ -733,7 +733,7 @@ void setCursorHelper( const uno::Reference< frame::XModel >& xModel, const Point
}
}
-void setDefaultPropByIntrospection( const uno::Any& aObj, const uno::Any& aValue ) throw ( uno::RuntimeException )
+void setDefaultPropByIntrospection( const uno::Any& aObj, const uno::Any& aValue )
{
uno::Reference< beans::XIntrospectionAccess > xUnoAccess( getIntrospectionAccess( aObj ) );
@@ -991,7 +991,6 @@ void ConcreteXShapeGeometryAttributes::setWidth( double nWidth)
ShapeHelper::ShapeHelper( const css::uno::Reference< css::drawing::XShape >& _xShape)
- throw (css::script::BasicErrorException, css::uno::RuntimeException)
: xShape( _xShape )
{
if( !xShape.is() )
@@ -1046,23 +1045,23 @@ void ShapeHelper::setTop(double _fTop)
xShape->setPosition(aPoint);
}
-void DebugHelper::basicexception( const OUString& DetailedMessage, const css::uno::Exception& ex, int err, const OUString& /*additionalArgument*/ ) throw( css::script::BasicErrorException )
+void DebugHelper::basicexception( const OUString& DetailedMessage, const css::uno::Exception& ex, int err, const OUString& /*additionalArgument*/ )
{
// #TODO #FIXME ( do we want to support additionalArg here )
throw css::script::BasicErrorException( DetailedMessage.concat( " " ).concat( ex.Message ), css::uno::Reference< css::uno::XInterface >(), err, OUString() );
}
-void DebugHelper::basicexception( int err, const OUString& additionalArgument ) throw( css::script::BasicErrorException )
+void DebugHelper::basicexception( int err, const OUString& additionalArgument )
{
basicexception( OUString(), css::uno::Exception(), err, additionalArgument );
}
-void DebugHelper::basicexception( const css::uno::Exception& ex ) throw( css::script::BasicErrorException )
+void DebugHelper::basicexception( const css::uno::Exception& ex )
{
basicexception( OUString(), ex, ERRCODE_BASIC_INTERNAL_ERROR, OUString() );
}
-void DebugHelper::runtimeexception( int err, const OUString& /*additionalArgument*/ ) throw( css::uno::RuntimeException )
+void DebugHelper::runtimeexception( int err, const OUString& /*additionalArgument*/ )
{
// #TODO #FIXME ( do we want to support additionalArg here )
throw css::uno::RuntimeException( css::uno::Exception().Message + " " + OUString::number(err),
@@ -1127,7 +1126,7 @@ uno::Reference< XHelperInterface > getUnoDocModule( const OUString& aModName, Sf
return xIf;
}
-SfxObjectShell* getSfxObjShell( const uno::Reference< frame::XModel >& xModel ) throw (uno::RuntimeException)
+SfxObjectShell* getSfxObjShell( const uno::Reference< frame::XModel >& xModel )
{
SfxObjectShell* pFoundShell = nullptr;
if ( xModel.is() )
diff --git a/vbahelper/source/vbahelper/vbalineformat.cxx b/vbahelper/source/vbahelper/vbalineformat.cxx
index 3f418205672b..0690206f671c 100644
--- a/vbahelper/source/vbahelper/vbalineformat.cxx
+++ b/vbahelper/source/vbahelper/vbalineformat.cxx
@@ -74,7 +74,7 @@ ScVbaLineFormat::convertLineStartEndNameToArrowheadStyle( const OUString& sLineN
}
OUString
-ScVbaLineFormat::convertArrowheadStyleToLineStartEndName( sal_Int32 nArrowheadStyle ) throw (uno::RuntimeException)
+ScVbaLineFormat::convertArrowheadStyleToLineStartEndName( sal_Int32 nArrowheadStyle )
{
switch( nArrowheadStyle )
{
@@ -97,7 +97,7 @@ ScVbaLineFormat::convertArrowheadStyleToLineStartEndName( sal_Int32 nArrowheadSt
// Attributes
sal_Int32 SAL_CALL
-ScVbaLineFormat::getBeginArrowheadStyle() throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::getBeginArrowheadStyle()
{
sal_Int32 nLineType = office::MsoArrowheadStyle::msoArrowheadNone;
OUString sLineName;
@@ -117,14 +117,14 @@ ScVbaLineFormat::getBeginArrowheadStyle() throw (uno::RuntimeException, std::exc
}
void SAL_CALL
-ScVbaLineFormat::setBeginArrowheadStyle( sal_Int32 _beginarrowheadstyle ) throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::setBeginArrowheadStyle( sal_Int32 _beginarrowheadstyle )
{
OUString sArrayName = convertArrowheadStyleToLineStartEndName( _beginarrowheadstyle );
m_xPropertySet->setPropertyValue( "LineStartName" , uno::makeAny( sArrayName ) );
}
sal_Int32 SAL_CALL
-ScVbaLineFormat::getBeginArrowheadLength() throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::getBeginArrowheadLength()
{
// #STUB
// force error
@@ -132,7 +132,7 @@ ScVbaLineFormat::getBeginArrowheadLength() throw (uno::RuntimeException, std::ex
}
void SAL_CALL
-ScVbaLineFormat::setBeginArrowheadLength( sal_Int32 /*_beginarrowheadlength*/ ) throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::setBeginArrowheadLength( sal_Int32 /*_beginarrowheadlength*/ )
{
// #STUB
// force error
@@ -140,7 +140,7 @@ ScVbaLineFormat::setBeginArrowheadLength( sal_Int32 /*_beginarrowheadlength*/ )
}
sal_Int32 SAL_CALL
-ScVbaLineFormat::getBeginArrowheadWidth() throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::getBeginArrowheadWidth()
{
// #STUB
// force error
@@ -148,7 +148,7 @@ ScVbaLineFormat::getBeginArrowheadWidth() throw (uno::RuntimeException, std::exc
}
void SAL_CALL
-ScVbaLineFormat::setBeginArrowheadWidth( sal_Int32 /*_beginarrowheadwidth*/ ) throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::setBeginArrowheadWidth( sal_Int32 /*_beginarrowheadwidth*/ )
{
// #STUB
// force error
@@ -156,20 +156,20 @@ ScVbaLineFormat::setBeginArrowheadWidth( sal_Int32 /*_beginarrowheadwidth*/ ) th
}
sal_Int32 SAL_CALL
-ScVbaLineFormat::getEndArrowheadStylel() throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::getEndArrowheadStylel()
{
// #STUB
return 0;
}
void SAL_CALL
-ScVbaLineFormat::setEndArrowheadStylel( sal_Int32 /*_endarrowheadstylel*/ ) throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::setEndArrowheadStylel( sal_Int32 /*_endarrowheadstylel*/ )
{
// #STUB
}
sal_Int32 SAL_CALL
-ScVbaLineFormat::getEndArrowheadLength() throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::getEndArrowheadLength()
{
// #STUB
// force error
@@ -177,28 +177,28 @@ ScVbaLineFormat::getEndArrowheadLength() throw (uno::RuntimeException, std::exce
}
void SAL_CALL
-ScVbaLineFormat::setEndArrowheadLength( sal_Int32 /*_endarrowheadlength*/ ) throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::setEndArrowheadLength( sal_Int32 /*_endarrowheadlength*/ )
{
// #STUB
throw uno::RuntimeException( "Property 'EndArrowheadWidth' is not supported." );
}
sal_Int32 SAL_CALL
-ScVbaLineFormat::getEndArrowheadWidth() throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::getEndArrowheadWidth()
{
// #STUB
throw uno::RuntimeException( "Property 'EndArrowheadWidth' is not supported." );
}
void SAL_CALL
-ScVbaLineFormat::setEndArrowheadWidth( sal_Int32 /*_endarrowheadwidth*/ ) throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::setEndArrowheadWidth( sal_Int32 /*_endarrowheadwidth*/ )
{
// #STUB
throw uno::RuntimeException( "Property 'EndArrowheadWidth' is not supported." );
}
double SAL_CALL
-ScVbaLineFormat::getWeight() throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::getWeight()
{
sal_Int32 nLineWidth=0;
m_xPropertySet->getPropertyValue( "LineWidth" ) >>= nLineWidth;
@@ -207,7 +207,7 @@ ScVbaLineFormat::getWeight() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaLineFormat::setWeight( double _weight ) throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::setWeight( double _weight )
{
if( _weight < 0 )
throw uno::RuntimeException( "Parameter: Must be positive." );
@@ -223,7 +223,7 @@ ScVbaLineFormat::setWeight( double _weight ) throw (uno::RuntimeException, std::
}
sal_Bool SAL_CALL
-ScVbaLineFormat::getVisible() throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::getVisible()
{
drawing::LineStyle aLineStyle;
m_xPropertySet->getPropertyValue( "LineStyle" ) >>= aLineStyle;
@@ -235,7 +235,7 @@ ScVbaLineFormat::getVisible() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaLineFormat::setVisible( sal_Bool _visible ) throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::setVisible( sal_Bool _visible )
{
drawing::LineStyle aLineStyle;
m_xPropertySet->getPropertyValue( "LineStyle" ) >>= aLineStyle;
@@ -254,7 +254,7 @@ ScVbaLineFormat::setVisible( sal_Bool _visible ) throw (uno::RuntimeException, s
}
double SAL_CALL
-ScVbaLineFormat::getTransparency() throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::getTransparency()
{
sal_Int16 nTransparency = 0;
m_xPropertySet->getPropertyValue( "LineTransparence" ) >>= nTransparency;
@@ -263,14 +263,14 @@ ScVbaLineFormat::getTransparency() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaLineFormat::setTransparency( double _transparency ) throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::setTransparency( double _transparency )
{
sal_Int16 nTransparency = static_cast<sal_Int16>( _transparency * 100 );
m_xPropertySet->setPropertyValue( "LineTransparence" , uno::makeAny( nTransparency ) );
}
sal_Int16 SAL_CALL
-ScVbaLineFormat::getStyle() throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::getStyle()
{
//OpenOffice.org only supports one LineStyle (other than the DashStyles)
//Therefore we can only return the SingleLine
@@ -278,7 +278,7 @@ ScVbaLineFormat::getStyle() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaLineFormat::setStyle( sal_Int16 /*_style */) throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::setStyle( sal_Int16 /*_style */)
{
//OpenOffice.org only supports one LineStyle (other than the DashStyles)
//Therefore we do not set the LineStyle, because it maybe is already set
@@ -289,7 +289,7 @@ ScVbaLineFormat::setStyle( sal_Int16 /*_style */) throw (uno::RuntimeException,
}
sal_Int32 SAL_CALL
-ScVbaLineFormat::getDashStyle() throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::getDashStyle()
{
drawing::LineStyle eLineStyle;
//LineStyle integer in Xray
@@ -340,7 +340,7 @@ ScVbaLineFormat::getDashStyle() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaLineFormat::setDashStyle( sal_Int32 _dashstyle ) throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::setDashStyle( sal_Int32 _dashstyle )
{
m_nLineDashStyle = _dashstyle;
if( _dashstyle == office::MsoLineDashStyle::msoLineSolid )
@@ -413,13 +413,13 @@ ScVbaLineFormat::setDashStyle( sal_Int32 _dashstyle ) throw (uno::RuntimeExcepti
// Methods
uno::Reference< msforms::XColorFormat > SAL_CALL
-ScVbaLineFormat::BackColor() throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::BackColor()
{
return uno::Reference< msforms::XColorFormat >( new ScVbaColorFormat( getParent(), mxContext, this, m_xShape, ::ColorFormatType::LINEFORMAT_BACKCOLOR ) );
}
uno::Reference< msforms::XColorFormat > SAL_CALL
-ScVbaLineFormat::ForeColor() throw (uno::RuntimeException, std::exception)
+ScVbaLineFormat::ForeColor()
{
return uno::Reference< msforms::XColorFormat >( new ScVbaColorFormat( getParent(), mxContext, this, m_xShape, ::ColorFormatType::LINEFORMAT_FORECOLOR ) );
}
diff --git a/vbahelper/source/vbahelper/vbalineformat.hxx b/vbahelper/source/vbahelper/vbalineformat.hxx
index eca78e8d4105..c23e80faeaa1 100644
--- a/vbahelper/source/vbahelper/vbalineformat.hxx
+++ b/vbahelper/source/vbahelper/vbalineformat.hxx
@@ -38,37 +38,37 @@ protected:
virtual css::uno::Sequence<OUString> getServiceNames() override;
static sal_Int32 convertLineStartEndNameToArrowheadStyle( const OUString& sLineName );
/// @throws css::uno::RuntimeException
- static OUString convertArrowheadStyleToLineStartEndName( sal_Int32 nArrowheadStyle ) throw (css::uno::RuntimeException);
+ static OUString convertArrowheadStyleToLineStartEndName( sal_Int32 nArrowheadStyle );
public:
ScVbaLineFormat( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::drawing::XShape >& xShape );
// Attributes
- virtual sal_Int32 SAL_CALL getBeginArrowheadStyle() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBeginArrowheadStyle( sal_Int32 _beginarrowheadstyle ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getBeginArrowheadLength() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBeginArrowheadLength( sal_Int32 _beginarrowheadlength ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getBeginArrowheadWidth() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBeginArrowheadWidth( sal_Int32 _beginarrowheadwidth ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getEndArrowheadStylel() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setEndArrowheadStylel( sal_Int32 _endarrowheadstylel ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getEndArrowheadLength() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setEndArrowheadLength( sal_Int32 _endarrowheadlength ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getEndArrowheadWidth() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setEndArrowheadWidth( sal_Int32 _endarrowheadwidth ) throw (css::uno::RuntimeException, std::exception) override;
- virtual double SAL_CALL getWeight() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setWeight( double _weight ) 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 double SAL_CALL getTransparency() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setTransparency( double _transparency ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int16 SAL_CALL getStyle() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setStyle( sal_Int16 _style ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getDashStyle() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setDashStyle( sal_Int32 _dashstyle ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getBeginArrowheadStyle() override;
+ virtual void SAL_CALL setBeginArrowheadStyle( sal_Int32 _beginarrowheadstyle ) override;
+ virtual sal_Int32 SAL_CALL getBeginArrowheadLength() override;
+ virtual void SAL_CALL setBeginArrowheadLength( sal_Int32 _beginarrowheadlength ) override;
+ virtual sal_Int32 SAL_CALL getBeginArrowheadWidth() override;
+ virtual void SAL_CALL setBeginArrowheadWidth( sal_Int32 _beginarrowheadwidth ) override;
+ virtual sal_Int32 SAL_CALL getEndArrowheadStylel() override;
+ virtual void SAL_CALL setEndArrowheadStylel( sal_Int32 _endarrowheadstylel ) override;
+ virtual sal_Int32 SAL_CALL getEndArrowheadLength() override;
+ virtual void SAL_CALL setEndArrowheadLength( sal_Int32 _endarrowheadlength ) override;
+ virtual sal_Int32 SAL_CALL getEndArrowheadWidth() override;
+ virtual void SAL_CALL setEndArrowheadWidth( sal_Int32 _endarrowheadwidth ) override;
+ virtual double SAL_CALL getWeight() override;
+ virtual void SAL_CALL setWeight( double _weight ) override;
+ virtual sal_Bool SAL_CALL getVisible() override;
+ virtual void SAL_CALL setVisible( sal_Bool _visible ) override;
+ virtual double SAL_CALL getTransparency() override;
+ virtual void SAL_CALL setTransparency( double _transparency ) override;
+ virtual sal_Int16 SAL_CALL getStyle() override;
+ virtual void SAL_CALL setStyle( sal_Int16 _style ) override;
+ virtual sal_Int32 SAL_CALL getDashStyle() override;
+ virtual void SAL_CALL setDashStyle( sal_Int32 _dashstyle ) override;
// Methods
- virtual css::uno::Reference< ov::msforms::XColorFormat > SAL_CALL BackColor() throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< ov::msforms::XColorFormat > SAL_CALL ForeColor() throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< ov::msforms::XColorFormat > SAL_CALL BackColor() override;
+ virtual css::uno::Reference< ov::msforms::XColorFormat > SAL_CALL ForeColor() override;
};
#endif // INCLUDED_VBAHELPER_SOURCE_VBAHELPER_VBALINEFORMAT_HXX
diff --git a/vbahelper/source/vbahelper/vbapagesetupbase.cxx b/vbahelper/source/vbahelper/vbapagesetupbase.cxx
index d3f86d0dbcc0..d689e003e043 100644
--- a/vbahelper/source/vbahelper/vbapagesetupbase.cxx
+++ b/vbahelper/source/vbahelper/vbapagesetupbase.cxx
@@ -24,14 +24,14 @@ using namespace ::com::sun::star;
using namespace ::ooo::vba;
VbaPageSetupBase::VbaPageSetupBase(const uno::Reference< XHelperInterface >& xParent,
- const uno::Reference< uno::XComponentContext >& xContext ) throw (uno::RuntimeException)
+ const uno::Reference< uno::XComponentContext >& xContext )
: VbaPageSetupBase_BASE( xParent, xContext )
, mnOrientLandscape(0)
, mnOrientPortrait(0)
{
}
-double SAL_CALL VbaPageSetupBase::getTopMargin() throw (css::uno::RuntimeException, std::exception)
+double SAL_CALL VbaPageSetupBase::getTopMargin()
{
sal_Int32 topMargin = 0;
@@ -60,7 +60,7 @@ double SAL_CALL VbaPageSetupBase::getTopMargin() throw (css::uno::RuntimeExcepti
return Millimeter::getInPoints( topMargin );
}
-void SAL_CALL VbaPageSetupBase::setTopMargin( double margin ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL VbaPageSetupBase::setTopMargin( double margin )
{
sal_Int32 topMargin = Millimeter::getInHundredthsOfOneMillimeter( margin );
@@ -86,7 +86,7 @@ void SAL_CALL VbaPageSetupBase::setTopMargin( double margin ) throw (css::uno::R
}
}
-double SAL_CALL VbaPageSetupBase::getBottomMargin() throw (css::uno::RuntimeException, std::exception)
+double SAL_CALL VbaPageSetupBase::getBottomMargin()
{
sal_Int32 bottomMargin = 0;
@@ -115,7 +115,7 @@ double SAL_CALL VbaPageSetupBase::getBottomMargin() throw (css::uno::RuntimeExce
return Millimeter::getInPoints( bottomMargin );
}
-void SAL_CALL VbaPageSetupBase::setBottomMargin( double margin ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL VbaPageSetupBase::setBottomMargin( double margin )
{
sal_Int32 bottomMargin = Millimeter::getInHundredthsOfOneMillimeter( margin );
@@ -141,7 +141,7 @@ void SAL_CALL VbaPageSetupBase::setBottomMargin( double margin ) throw (css::uno
}
}
-double SAL_CALL VbaPageSetupBase::getRightMargin() throw (css::uno::RuntimeException, std::exception)
+double SAL_CALL VbaPageSetupBase::getRightMargin()
{
sal_Int32 rightMargin = 0;
try
@@ -156,7 +156,7 @@ double SAL_CALL VbaPageSetupBase::getRightMargin() throw (css::uno::RuntimeExcep
return Millimeter::getInPoints( rightMargin );
}
-void SAL_CALL VbaPageSetupBase::setRightMargin( double margin ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL VbaPageSetupBase::setRightMargin( double margin )
{
sal_Int32 rightMargin = Millimeter::getInHundredthsOfOneMillimeter( margin );
try
@@ -169,7 +169,7 @@ void SAL_CALL VbaPageSetupBase::setRightMargin( double margin ) throw (css::uno:
}
-double SAL_CALL VbaPageSetupBase::getLeftMargin() throw (css::uno::RuntimeException, std::exception)
+double SAL_CALL VbaPageSetupBase::getLeftMargin()
{
sal_Int32 leftMargin = 0;
try
@@ -184,7 +184,7 @@ double SAL_CALL VbaPageSetupBase::getLeftMargin() throw (css::uno::RuntimeExcept
return Millimeter::getInPoints( leftMargin );
}
-void SAL_CALL VbaPageSetupBase::setLeftMargin( double margin ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL VbaPageSetupBase::setLeftMargin( double margin )
{
sal_Int32 leftMargin = Millimeter::getInHundredthsOfOneMillimeter( margin );
try
@@ -196,7 +196,7 @@ void SAL_CALL VbaPageSetupBase::setLeftMargin( double margin ) throw (css::uno::
}
}
-double SAL_CALL VbaPageSetupBase::getHeaderMargin() throw (css::uno::RuntimeException)
+double SAL_CALL VbaPageSetupBase::getHeaderMargin()
{
sal_Int32 headerMargin = 0;
try
@@ -211,7 +211,7 @@ double SAL_CALL VbaPageSetupBase::getHeaderMargin() throw (css::uno::RuntimeExce
return Millimeter::getInPoints( headerMargin );
}
-void SAL_CALL VbaPageSetupBase::setHeaderMargin( double margin ) throw (css::uno::RuntimeException)
+void SAL_CALL VbaPageSetupBase::setHeaderMargin( double margin )
{
sal_Int32 headerMargin = Millimeter::getInHundredthsOfOneMillimeter( margin );
try
@@ -223,7 +223,7 @@ void SAL_CALL VbaPageSetupBase::setHeaderMargin( double margin ) throw (css::uno
}
}
-double SAL_CALL VbaPageSetupBase::getFooterMargin() throw (css::uno::RuntimeException)
+double SAL_CALL VbaPageSetupBase::getFooterMargin()
{
sal_Int32 footerMargin = 0;
try
@@ -238,7 +238,7 @@ double SAL_CALL VbaPageSetupBase::getFooterMargin() throw (css::uno::RuntimeExce
return Millimeter::getInPoints( footerMargin );
}
-void SAL_CALL VbaPageSetupBase::setFooterMargin( double margin ) throw (css::uno::RuntimeException)
+void SAL_CALL VbaPageSetupBase::setFooterMargin( double margin )
{
sal_Int32 footerMargin = Millimeter::getInHundredthsOfOneMillimeter( margin );
try
@@ -250,7 +250,7 @@ void SAL_CALL VbaPageSetupBase::setFooterMargin( double margin ) throw (css::uno
}
}
-sal_Int32 SAL_CALL VbaPageSetupBase::getOrientation() throw (css::uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL VbaPageSetupBase::getOrientation()
{
sal_Int32 orientation = mnOrientPortrait;
try
@@ -270,7 +270,7 @@ sal_Int32 SAL_CALL VbaPageSetupBase::getOrientation() throw (css::uno::RuntimeEx
return orientation;
}
-void SAL_CALL VbaPageSetupBase::setOrientation( sal_Int32 orientation ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL VbaPageSetupBase::setOrientation( sal_Int32 orientation )
{
if( ( orientation != mnOrientPortrait ) &&
( orientation != mnOrientLandscape ) )
diff --git a/vbahelper/source/vbahelper/vbapictureformat.cxx b/vbahelper/source/vbahelper/vbapictureformat.cxx
index 69ab3b382d1c..76b4cafe5f97 100644
--- a/vbahelper/source/vbahelper/vbapictureformat.cxx
+++ b/vbahelper/source/vbahelper/vbapictureformat.cxx
@@ -24,14 +24,13 @@ using namespace com::sun::star;
ScVbaPictureFormat::ScVbaPictureFormat( const css::uno::Reference< ov::XHelperInterface >& xParent,
const css::uno::Reference< css::uno::XComponentContext >& xContext,
uno::Reference< drawing::XShape > const & xShape )
- throw (lang::IllegalArgumentException, uno::RuntimeException)
: ScVbaPictureFormat_BASE( xParent, xContext ), m_xShape( xShape )
{
m_xPropertySet.set( m_xShape, uno::UNO_QUERY_THROW );
}
void
-ScVbaPictureFormat::checkParameterRangeInDouble( double nRange, double nMin, double nMax ) throw (css::uno::RuntimeException)
+ScVbaPictureFormat::checkParameterRangeInDouble( double nRange, double nMin, double nMax )
{
if( nRange < nMin )
{
@@ -45,7 +44,7 @@ ScVbaPictureFormat::checkParameterRangeInDouble( double nRange, double nMin, dou
// Attributes
double SAL_CALL
-ScVbaPictureFormat::getBrightness() throw (uno::RuntimeException, std::exception)
+ScVbaPictureFormat::getBrightness()
{
sal_Int16 nLuminance = 0;
m_xPropertySet->getPropertyValue( "AdjustLuminance" ) >>= nLuminance;
@@ -55,7 +54,7 @@ ScVbaPictureFormat::getBrightness() throw (uno::RuntimeException, std::exception
}
void SAL_CALL
-ScVbaPictureFormat::setBrightness( double _brightness ) throw (uno::RuntimeException, std::exception)
+ScVbaPictureFormat::setBrightness( double _brightness )
{
checkParameterRangeInDouble( _brightness, 0.0, 1.0 );
double fLuminance = _brightness * 200 - 100;
@@ -64,7 +63,7 @@ ScVbaPictureFormat::setBrightness( double _brightness ) throw (uno::RuntimeExcep
}
double SAL_CALL
-ScVbaPictureFormat::getContrast() throw (uno::RuntimeException, std::exception)
+ScVbaPictureFormat::getContrast()
{
sal_Int16 nContrast = 0;
m_xPropertySet->getPropertyValue( "AdjustContrast" ) >>= nContrast;
@@ -74,7 +73,7 @@ ScVbaPictureFormat::getContrast() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaPictureFormat::setContrast( double _contrast ) throw (uno::RuntimeException, std::exception)
+ScVbaPictureFormat::setContrast( double _contrast )
{
checkParameterRangeInDouble( _contrast, 0.0, 1.0 );
double fContrast = _contrast * 200 - 100;
@@ -85,7 +84,7 @@ ScVbaPictureFormat::setContrast( double _contrast ) throw (uno::RuntimeException
// Methods
void SAL_CALL
-ScVbaPictureFormat::IncrementBrightness( double increment ) throw (uno::RuntimeException, std::exception)
+ScVbaPictureFormat::IncrementBrightness( double increment )
{
double fBrightness = getBrightness();
fBrightness += increment;
@@ -101,7 +100,7 @@ ScVbaPictureFormat::IncrementBrightness( double increment ) throw (uno::RuntimeE
}
void SAL_CALL
-ScVbaPictureFormat::IncrementContrast( double increment ) throw (uno::RuntimeException, std::exception)
+ScVbaPictureFormat::IncrementContrast( double increment )
{
double nContrast = getContrast();
nContrast += increment;
diff --git a/vbahelper/source/vbahelper/vbapictureformat.hxx b/vbahelper/source/vbahelper/vbapictureformat.hxx
index 73cb5e98a355..8ee2dba53ec2 100644
--- a/vbahelper/source/vbahelper/vbapictureformat.hxx
+++ b/vbahelper/source/vbahelper/vbapictureformat.hxx
@@ -36,22 +36,21 @@ protected:
virtual css::uno::Sequence<OUString> getServiceNames() override;
private:
/// @throws css::uno::RuntimeException
- static void checkParameterRangeInDouble( double nRange, double nMin, double nMax ) throw (css::uno::RuntimeException);
+ static void checkParameterRangeInDouble( double nRange, double nMin, double nMax );
public:
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
- ScVbaPictureFormat( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, css::uno::Reference< css::drawing::XShape > const & xShape )
- throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
+ ScVbaPictureFormat( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, css::uno::Reference< css::drawing::XShape > const & xShape );
// Attributes
- virtual double SAL_CALL getBrightness() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBrightness( double _brightness ) throw (css::uno::RuntimeException, std::exception) override;
- virtual double SAL_CALL getContrast() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setContrast( double _contrast ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual double SAL_CALL getBrightness() override;
+ virtual void SAL_CALL setBrightness( double _brightness ) override;
+ virtual double SAL_CALL getContrast() override;
+ virtual void SAL_CALL setContrast( double _contrast ) override;
// Methods
- virtual void SAL_CALL IncrementBrightness( double increment ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL IncrementContrast( double increment ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL IncrementBrightness( double increment ) override;
+ virtual void SAL_CALL IncrementContrast( double increment ) override;
};
#endif // INCLUDED_VBAHELPER_SOURCE_VBAHELPER_VBAPICTUREFORMAT_HXX
diff --git a/vbahelper/source/vbahelper/vbapropvalue.cxx b/vbahelper/source/vbahelper/vbapropvalue.cxx
index dcb2b6db56b0..9788add5bed4 100644
--- a/vbahelper/source/vbahelper/vbapropvalue.cxx
+++ b/vbahelper/source/vbahelper/vbapropvalue.cxx
@@ -25,13 +25,13 @@ ScVbaPropValue::ScVbaPropValue( PropListener* pListener ) : m_pListener( pListen
}
css::uno::Any SAL_CALL
-ScVbaPropValue::getValue() throw (css::uno::RuntimeException, std::exception)
+ScVbaPropValue::getValue()
{
return m_pListener->getValueEvent();
}
void SAL_CALL
-ScVbaPropValue::setValue( const css::uno::Any& _value ) throw (css::uno::RuntimeException, std::exception)
+ScVbaPropValue::setValue( const css::uno::Any& _value )
{
m_pListener->setValueEvent( _value );
}
diff --git a/vbahelper/source/vbahelper/vbashape.cxx b/vbahelper/source/vbahelper/vbashape.cxx
index d562a4f44235..7b73d2f11b3b 100644
--- a/vbahelper/source/vbahelper/vbashape.cxx
+++ b/vbahelper/source/vbahelper/vbashape.cxx
@@ -50,7 +50,6 @@ using namespace ::ooo::vba;
using namespace ::com::sun::star;
ScVbaShape::ScVbaShape( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< drawing::XShape >& xShape, const uno::Reference< drawing::XShapes >& xShapes, const uno::Reference< frame::XModel >& xModel, sal_Int32 nType )
- throw (lang::IllegalArgumentException, uno::RuntimeException)
: ScVbaShape_BASE( xParent, xContext ), m_xShape( xShape ), m_xShapes( xShapes ), m_nType( nType ), m_xModel( xModel )
{
m_xPropertySet.set( m_xShape, uno::UNO_QUERY_THROW );
@@ -63,7 +62,7 @@ ScVbaShape::~ScVbaShape()
}
void SAL_CALL
-ScVbaShape::disposing( const lang::EventObject& rEventObject ) throw( uno::RuntimeException, std::exception )
+ScVbaShape::disposing( const lang::EventObject& rEventObject )
{
try
{
@@ -92,7 +91,7 @@ void ScVbaShape::addListeners()
}
void
-ScVbaShape::removeShapeListener() throw( uno::RuntimeException )
+ScVbaShape::removeShapeListener()
{
if( m_xShape.is() )
{
@@ -104,7 +103,7 @@ ScVbaShape::removeShapeListener() throw( uno::RuntimeException )
}
void
-ScVbaShape::removeShapesListener() throw( uno::RuntimeException )
+ScVbaShape::removeShapesListener()
{
if( m_xShapes.is() )
{
@@ -115,7 +114,7 @@ ScVbaShape::removeShapesListener() throw( uno::RuntimeException )
}
sal_Int32
-ScVbaShape::getType( const css::uno::Reference< drawing::XShape >& xShape ) throw (uno::RuntimeException)
+ScVbaShape::getType( const css::uno::Reference< drawing::XShape >& xShape )
{
OUString sShapeType;
uno::Reference< drawing::XShapeDescriptor > xShapeDescriptor( xShape, uno::UNO_QUERY_THROW );
@@ -156,7 +155,7 @@ ScVbaShape::getType( const css::uno::Reference< drawing::XShape >& xShape ) thro
// Attributes
OUString SAL_CALL
-ScVbaShape::getName() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getName()
{
OUString sName;
uno::Reference< container::XNamed > xNamed( m_xShape, uno::UNO_QUERY_THROW );
@@ -165,14 +164,14 @@ ScVbaShape::getName() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaShape::setName( const OUString& _name ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::setName( const OUString& _name )
{
uno::Reference< container::XNamed > xNamed( m_xShape, uno::UNO_QUERY_THROW );
xNamed->setName( _name );
}
OUString SAL_CALL
-ScVbaShape::getAlternativeText() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getAlternativeText()
{
OUString sAltText;
uno::Reference< beans::XPropertySet > xProps( m_xShape, uno::UNO_QUERY_THROW );
@@ -181,40 +180,38 @@ ScVbaShape::getAlternativeText() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaShape::setAlternativeText( const OUString& sAltText ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::setAlternativeText( const OUString& sAltText )
{
uno::Reference< beans::XPropertySet > xProps( m_xShape, uno::UNO_QUERY_THROW );
xProps->setPropertyValue("Title", uno::Any( sAltText ) );
}
double SAL_CALL
-ScVbaShape::getHeight() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getHeight()
{
return m_pShapeHelper->getHeight();
}
void SAL_CALL
ScVbaShape::setHeight(double _height)
- throw (uno::RuntimeException, std::exception)
{
m_pShapeHelper->setHeight( _height );
}
double SAL_CALL
-ScVbaShape::getWidth() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getWidth()
{
return m_pShapeHelper->getWidth();
}
void SAL_CALL
ScVbaShape::setWidth(double _width)
- throw (uno::RuntimeException, std::exception)
{
m_pShapeHelper->setWidth( _width );
}
double SAL_CALL
-ScVbaShape::getLeft() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getLeft()
{
double left = 0;
try
@@ -232,7 +229,7 @@ ScVbaShape::getLeft() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaShape::setLeft( double _left ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::setLeft( double _left )
{
try
{
@@ -247,7 +244,7 @@ ScVbaShape::setLeft( double _left ) throw (uno::RuntimeException, std::exception
}
double SAL_CALL
-ScVbaShape::getTop() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getTop()
{
double top = 0;
try
@@ -264,7 +261,7 @@ ScVbaShape::getTop() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaShape::setTop( double _top ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::setTop( double _top )
{
try
{
@@ -279,7 +276,7 @@ ScVbaShape::setTop( double _top ) throw (uno::RuntimeException, std::exception)
}
sal_Bool SAL_CALL
-ScVbaShape::getVisible() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getVisible()
{
// #STUB
//UNO Shapes are always visible
@@ -287,14 +284,14 @@ ScVbaShape::getVisible() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaShape::setVisible( sal_Bool /*_visible*/ ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::setVisible( sal_Bool /*_visible*/ )
{
// #STUB
//UNO Shapes are always visible
}
sal_Int32 SAL_CALL
-ScVbaShape::getZOrderPosition() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getZOrderPosition()
{
sal_Int32 nZOrderPosition = 0;
uno::Any aZOrderPosition = m_xPropertySet->getPropertyValue( "ZOrder" );
@@ -303,13 +300,13 @@ ScVbaShape::getZOrderPosition() throw (uno::RuntimeException, std::exception)
}
sal_Int32 SAL_CALL
-ScVbaShape::getType() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getType()
{
return m_nType;
}
double SAL_CALL
-ScVbaShape::getRotation() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getRotation()
{
double dRotation = 0;
sal_Int32 nRotation = 0;
@@ -319,34 +316,34 @@ ScVbaShape::getRotation() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaShape::setRotation( double _rotation ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::setRotation( double _rotation )
{
sal_Int32 nRotation = static_cast < sal_Int32 > ( _rotation * 100 );
m_xPropertySet->setPropertyValue( "RotateAngle" , uno::makeAny( nRotation ) );
}
uno::Reference< msforms::XLineFormat > SAL_CALL
-ScVbaShape::getLine() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getLine()
{
// TODO should only return line
return uno::Reference< msforms::XLineFormat >( new ScVbaLineFormat( this, mxContext, m_xShape ) );
}
uno::Reference< msforms::XFillFormat > SAL_CALL
-ScVbaShape::getFill() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getFill()
{
return uno::Reference< msforms::XFillFormat >( new ScVbaFillFormat( this, mxContext, m_xShape ) );
}
uno::Reference< msforms::XPictureFormat > SAL_CALL
-ScVbaShape::getPictureFormat() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getPictureFormat()
{
return uno::Reference< msforms::XPictureFormat >( new ScVbaPictureFormat( this, mxContext, m_xShape ) );
}
// Methods
uno::Any SAL_CALL
-ScVbaShape::TextFrame() throw (uno::RuntimeException, std::exception)
+ScVbaShape::TextFrame()
{
uno::Reference< lang::XServiceInfo > xServiceInfo( m_xModel, uno::UNO_QUERY_THROW );
if( xServiceInfo->supportsService( "com.sun.star.sheet.SpreadsheetDocument" ) )
@@ -363,14 +360,14 @@ ScVbaShape::TextFrame() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaShape::Delete() throw (uno::RuntimeException, std::exception)
+ScVbaShape::Delete()
{
SolarMutexGuard aGuard;
m_xShapes->remove( m_xShape );
}
void SAL_CALL
-ScVbaShape::ZOrder( sal_Int32 ZOrderCmd ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::ZOrder( sal_Int32 ZOrderCmd )
{
sal_Int32 nOrderPosition;
uno::Any aOrderPosition = m_xPropertySet->getPropertyValue( "ZOrder" );
@@ -404,7 +401,7 @@ ScVbaShape::ZOrder( sal_Int32 ZOrderCmd ) throw (uno::RuntimeException, std::exc
}
void SAL_CALL
-ScVbaShape::IncrementRotation( double Increment ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::IncrementRotation( double Increment )
{
double nCurrentRotation = getRotation();
nCurrentRotation += Increment;
@@ -412,7 +409,7 @@ ScVbaShape::IncrementRotation( double Increment ) throw (uno::RuntimeException,
}
void SAL_CALL
-ScVbaShape::IncrementLeft( double Increment ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::IncrementLeft( double Increment )
{
double nCurrentLeft = getLeft();
nCurrentLeft += Increment;
@@ -420,7 +417,7 @@ ScVbaShape::IncrementLeft( double Increment ) throw (uno::RuntimeException, std:
}
void SAL_CALL
-ScVbaShape::IncrementTop( double Increment ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::IncrementTop( double Increment )
{
double nCurrentTop = getTop();
nCurrentTop += Increment;
@@ -428,7 +425,7 @@ ScVbaShape::IncrementTop( double Increment ) throw (uno::RuntimeException, std::
}
void SAL_CALL
-ScVbaShape::ScaleHeight( double Factor, sal_Bool /*RelativeToOriginalSize*/, sal_Int32 Scale ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::ScaleHeight( double Factor, sal_Bool /*RelativeToOriginalSize*/, sal_Int32 Scale )
{
double nHeight = getHeight();
double nNewHeight = nHeight * Factor;
@@ -457,7 +454,7 @@ ScVbaShape::ScaleHeight( double Factor, sal_Bool /*RelativeToOriginalSize*/, sal
}
void SAL_CALL
-ScVbaShape::ScaleWidth( double Factor, sal_Bool /*RelativeToOriginalSize*/, sal_Int32 Scale ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::ScaleWidth( double Factor, sal_Bool /*RelativeToOriginalSize*/, sal_Int32 Scale )
{
double nWidth = getWidth();
double nNewWidth = nWidth * Factor;
@@ -486,7 +483,7 @@ ScVbaShape::ScaleWidth( double Factor, sal_Bool /*RelativeToOriginalSize*/, sal_
}
void SAL_CALL
-ScVbaShape::Select( const uno::Any& /*Replace*/ ) throw ( uno::RuntimeException, std::exception )
+ScVbaShape::Select( const uno::Any& /*Replace*/ )
{
uno::Reference< view::XSelectionSupplier > xSelectSupp( m_xModel->getCurrentController(), uno::UNO_QUERY_THROW );
xSelectSupp->select( uno::makeAny( m_xShape ) );
@@ -496,7 +493,7 @@ ScVbaShape::Select( const uno::Any& /*Replace*/ ) throw ( uno::RuntimeException,
// dynamically create the appropriate objects e.g. TextBox, Oval, Picture etc.
// ( e.g. the ones that really do have ShapeRange as an attribute )
uno::Any SAL_CALL
-ScVbaShape::ShapeRange( const uno::Any& index ) throw ( uno::RuntimeException, std::exception )
+ScVbaShape::ShapeRange( const uno::Any& index )
{
// perhaps we should store a reference to the Shapes Collection
// in this class
@@ -515,33 +512,33 @@ ScVbaShape::ShapeRange( const uno::Any& index ) throw ( uno::RuntimeException, s
}
sal_Bool SAL_CALL
-ScVbaShape::getLockAspectRatio() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getLockAspectRatio()
{
// #STUB
return false;
}
void SAL_CALL
-ScVbaShape::setLockAspectRatio( sal_Bool /*_lockaspectratio*/ ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::setLockAspectRatio( sal_Bool /*_lockaspectratio*/ )
{
// #STUB
}
sal_Bool SAL_CALL
-ScVbaShape::getLockAnchor() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getLockAnchor()
{
// #STUB
return true;
}
void SAL_CALL
-ScVbaShape::setLockAnchor( sal_Bool /*_lockanchor*/ ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::setLockAnchor( sal_Bool /*_lockanchor*/ )
{
// #STUB
}
sal_Int32 SAL_CALL
-ScVbaShape::getRelativeHorizontalPosition() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getRelativeHorizontalPosition()
{
sal_Int32 nRelativeHorizontalPosition = word::WdRelativeHorizontalPosition::wdRelativeHorizontalPositionMargin;
sal_Int16 nType = text::RelOrientation::PAGE_LEFT;
@@ -579,7 +576,6 @@ ScVbaShape::getRelativeHorizontalPosition() throw (uno::RuntimeException, std::e
void SAL_CALL
ScVbaShape::setRelativeHorizontalPosition(::sal_Int32 _relativehorizontalposition)
- throw (uno::RuntimeException, std::exception)
{
sal_Int16 nType = text::RelOrientation::PAGE_FRAME;
switch( _relativehorizontalposition )
@@ -613,7 +609,7 @@ ScVbaShape::setRelativeHorizontalPosition(::sal_Int32 _relativehorizontalpositio
}
sal_Int32 SAL_CALL
-ScVbaShape::getRelativeVerticalPosition() throw (uno::RuntimeException, std::exception)
+ScVbaShape::getRelativeVerticalPosition()
{
sal_Int32 nRelativeVerticalPosition = word::WdRelativeVerticalPosition::wdRelativeVerticalPositionMargin;
sal_Int16 nType = text::RelOrientation::PAGE_FRAME;
@@ -651,7 +647,6 @@ ScVbaShape::getRelativeVerticalPosition() throw (uno::RuntimeException, std::exc
void SAL_CALL
ScVbaShape::setRelativeVerticalPosition(::sal_Int32 _relativeverticalposition)
- throw (uno::RuntimeException, std::exception)
{
sal_Int16 nType = text::RelOrientation::PAGE_FRAME;
switch( _relativeverticalposition )
@@ -685,7 +680,7 @@ ScVbaShape::setRelativeVerticalPosition(::sal_Int32 _relativeverticalposition)
}
uno::Any SAL_CALL
-ScVbaShape::WrapFormat() throw (uno::RuntimeException, std::exception)
+ScVbaShape::WrapFormat()
{
uno::Reference< lang::XServiceInfo > xServiceInfo( m_xModel, uno::UNO_QUERY_THROW );
if( xServiceInfo->supportsService( "com.sun.star.text.TextDocument" ))
diff --git a/vbahelper/source/vbahelper/vbashaperange.cxx b/vbahelper/source/vbahelper/vbashaperange.cxx
index 11aab8c2768d..b6e98d0a3424 100644
--- a/vbahelper/source/vbahelper/vbashaperange.cxx
+++ b/vbahelper/source/vbahelper/vbashaperange.cxx
@@ -36,11 +36,11 @@ class VbShapeRangeEnumHelper : public EnumerationHelper_BASE
sal_Int32 nIndex;
public:
VbShapeRangeEnumHelper( const uno::Reference< XCollection >& xParent, const uno::Reference< container::XIndexAccess >& xIndexAccess ) : m_xParent( xParent ), m_xIndexAccess( xIndexAccess ), nIndex( 0 ) {}
- virtual sal_Bool SAL_CALL hasMoreElements( ) throw (uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasMoreElements( ) override
{
return ( nIndex < m_xIndexAccess->getCount() );
}
- virtual uno::Any SAL_CALL nextElement( ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception) override
+ virtual uno::Any SAL_CALL nextElement( ) override
{
ScVbaShapeRange* pCollectionImpl = dynamic_cast< ScVbaShapeRange* >(m_xParent.get());
if ( pCollectionImpl && hasMoreElements() )
@@ -56,14 +56,14 @@ ScVbaShapeRange::ScVbaShapeRange( const uno::Reference< XHelperInterface >& xPar
// Methods
void SAL_CALL
-ScVbaShapeRange::Select( ) throw (uno::RuntimeException, std::exception)
+ScVbaShapeRange::Select( )
{
uno::Reference< view::XSelectionSupplier > xSelectSupp( m_xModel->getCurrentController(), uno::UNO_QUERY_THROW );
xSelectSupp->select( uno::makeAny( getShapes() ) );
}
uno::Reference< msforms::XShape > SAL_CALL
-ScVbaShapeRange::Group() throw (uno::RuntimeException, std::exception)
+ScVbaShapeRange::Group()
{
uno::Reference< drawing::XShapeGrouper > xShapeGrouper( m_xDrawPage, uno::UNO_QUERY_THROW );
uno::Reference< drawing::XShapeGroup > xShapeGroup( xShapeGrouper->group( getShapes() ), uno::UNO_QUERY_THROW );
@@ -72,7 +72,7 @@ ScVbaShapeRange::Group() throw (uno::RuntimeException, std::exception)
}
uno::Reference< drawing::XShapes > const &
-ScVbaShapeRange::getShapes() throw (uno::RuntimeException)
+ScVbaShapeRange::getShapes()
{
if ( !m_xShapes.is() )
{
@@ -87,7 +87,7 @@ ScVbaShapeRange::getShapes() throw (uno::RuntimeException)
void SAL_CALL
-ScVbaShapeRange::IncrementRotation( double Increment ) throw (uno::RuntimeException, std::exception)
+ScVbaShapeRange::IncrementRotation( double Increment )
{
sal_Int32 nLen = getCount();
for ( sal_Int32 index = 1; index <= nLen; ++index )
@@ -98,7 +98,7 @@ ScVbaShapeRange::IncrementRotation( double Increment ) throw (uno::RuntimeExcept
}
void SAL_CALL
-ScVbaShapeRange::IncrementLeft( double Increment ) throw (uno::RuntimeException, std::exception)
+ScVbaShapeRange::IncrementLeft( double Increment )
{
sal_Int32 nLen = getCount();
for ( sal_Int32 index = 1; index <= nLen; ++index )
@@ -109,7 +109,7 @@ ScVbaShapeRange::IncrementLeft( double Increment ) throw (uno::RuntimeException,
}
void SAL_CALL
-ScVbaShapeRange::IncrementTop( double Increment ) throw (uno::RuntimeException, std::exception)
+ScVbaShapeRange::IncrementTop( double Increment )
{
sal_Int32 nLen = getCount();
for ( sal_Int32 index = 1; index <= nLen; ++index )
@@ -119,7 +119,7 @@ ScVbaShapeRange::IncrementTop( double Increment ) throw (uno::RuntimeException,
}
}
-OUString SAL_CALL ScVbaShapeRange::getName() throw (uno::RuntimeException, std::exception)
+OUString SAL_CALL ScVbaShapeRange::getName()
{
sal_Int32 nLen = getCount();
sal_Int32 index = 1;
@@ -131,7 +131,7 @@ OUString SAL_CALL ScVbaShapeRange::getName() throw (uno::RuntimeException, std::
throw uno::RuntimeException();
}
-void SAL_CALL ScVbaShapeRange::setName( const OUString& _name ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaShapeRange::setName( const OUString& _name )
{
sal_Int32 nLen = getCount();
for ( sal_Int32 index = 1; index <= nLen; ++index )
@@ -141,7 +141,7 @@ void SAL_CALL ScVbaShapeRange::setName( const OUString& _name ) throw (uno::Runt
}
}
-double SAL_CALL ScVbaShapeRange::getHeight() throw (uno::RuntimeException, std::exception)
+double SAL_CALL ScVbaShapeRange::getHeight()
{
sal_Int32 nLen = getCount();
sal_Int32 index = 1;
@@ -153,7 +153,7 @@ double SAL_CALL ScVbaShapeRange::getHeight() throw (uno::RuntimeException, std::
throw uno::RuntimeException();
}
-void SAL_CALL ScVbaShapeRange::setHeight( double _height ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaShapeRange::setHeight( double _height )
{
sal_Int32 nLen = getCount();
for ( sal_Int32 index = 1; index <= nLen; ++index )
@@ -163,7 +163,7 @@ void SAL_CALL ScVbaShapeRange::setHeight( double _height ) throw (uno::RuntimeEx
}
}
-double SAL_CALL ScVbaShapeRange::getWidth() throw (uno::RuntimeException, std::exception)
+double SAL_CALL ScVbaShapeRange::getWidth()
{
sal_Int32 nLen = getCount();
sal_Int32 index = 1;
@@ -175,7 +175,7 @@ double SAL_CALL ScVbaShapeRange::getWidth() throw (uno::RuntimeException, std::e
throw uno::RuntimeException();
}
-void SAL_CALL ScVbaShapeRange::setWidth( double _width ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaShapeRange::setWidth( double _width )
{
sal_Int32 nLen = getCount();
for ( sal_Int32 index = 1; index <= nLen; ++index )
@@ -185,7 +185,7 @@ void SAL_CALL ScVbaShapeRange::setWidth( double _width ) throw (uno::RuntimeExce
}
}
-double SAL_CALL ScVbaShapeRange::getLeft() throw (uno::RuntimeException, std::exception)
+double SAL_CALL ScVbaShapeRange::getLeft()
{
sal_Int32 nLen = getCount();
sal_Int32 index = 1;
@@ -197,7 +197,7 @@ double SAL_CALL ScVbaShapeRange::getLeft() throw (uno::RuntimeException, std::ex
throw uno::RuntimeException();
}
-void SAL_CALL ScVbaShapeRange::setLeft( double _left ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaShapeRange::setLeft( double _left )
{
sal_Int32 nLen = getCount();
for ( sal_Int32 index = 1; index <= nLen; ++index )
@@ -207,7 +207,7 @@ void SAL_CALL ScVbaShapeRange::setLeft( double _left ) throw (uno::RuntimeExcept
}
}
-double SAL_CALL ScVbaShapeRange::getTop() throw (uno::RuntimeException, std::exception)
+double SAL_CALL ScVbaShapeRange::getTop()
{
sal_Int32 nLen = getCount();
sal_Int32 index = 1;
@@ -219,7 +219,7 @@ double SAL_CALL ScVbaShapeRange::getTop() throw (uno::RuntimeException, std::exc
throw uno::RuntimeException();
}
-void SAL_CALL ScVbaShapeRange::setTop( double _top ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaShapeRange::setTop( double _top )
{
sal_Int32 nLen = getCount();
for ( sal_Int32 index = 1; index <= nLen; ++index )
@@ -229,7 +229,7 @@ void SAL_CALL ScVbaShapeRange::setTop( double _top ) throw (uno::RuntimeExceptio
}
}
-uno::Reference< ov::msforms::XLineFormat > SAL_CALL ScVbaShapeRange::getLine() throw (css::uno::RuntimeException, std::exception)
+uno::Reference< ov::msforms::XLineFormat > SAL_CALL ScVbaShapeRange::getLine()
{
sal_Int32 nLen = getCount();
sal_Int32 index = 1;
@@ -241,7 +241,7 @@ uno::Reference< ov::msforms::XLineFormat > SAL_CALL ScVbaShapeRange::getLine() t
throw uno::RuntimeException();
}
-uno::Reference< ov::msforms::XFillFormat > SAL_CALL ScVbaShapeRange::getFill() throw (css::uno::RuntimeException, std::exception)
+uno::Reference< ov::msforms::XFillFormat > SAL_CALL ScVbaShapeRange::getFill()
{
sal_Int32 nLen = getCount();
sal_Int32 index = 1;
@@ -253,7 +253,7 @@ uno::Reference< ov::msforms::XFillFormat > SAL_CALL ScVbaShapeRange::getFill() t
throw uno::RuntimeException();
}
-sal_Bool SAL_CALL ScVbaShapeRange::getLockAspectRatio() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaShapeRange::getLockAspectRatio()
{
sal_Int32 nLen = getCount();
sal_Int32 index = 1;
@@ -265,7 +265,7 @@ sal_Bool SAL_CALL ScVbaShapeRange::getLockAspectRatio() throw (uno::RuntimeExcep
throw uno::RuntimeException();
}
-void SAL_CALL ScVbaShapeRange::setLockAspectRatio( sal_Bool _lockaspectratio ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaShapeRange::setLockAspectRatio( sal_Bool _lockaspectratio )
{
sal_Int32 nLen = getCount();
for ( sal_Int32 index = 1; index <= nLen; ++index )
@@ -275,7 +275,7 @@ void SAL_CALL ScVbaShapeRange::setLockAspectRatio( sal_Bool _lockaspectratio ) t
}
}
-sal_Bool SAL_CALL ScVbaShapeRange::getLockAnchor() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaShapeRange::getLockAnchor()
{
sal_Int32 nLen = getCount();
sal_Int32 index = 1;
@@ -287,7 +287,7 @@ sal_Bool SAL_CALL ScVbaShapeRange::getLockAnchor() throw (uno::RuntimeException,
throw uno::RuntimeException();
}
-void SAL_CALL ScVbaShapeRange::setLockAnchor( sal_Bool _lockanchor ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaShapeRange::setLockAnchor( sal_Bool _lockanchor )
{
sal_Int32 nLen = getCount();
for ( sal_Int32 index = 1; index <= nLen; ++index )
@@ -297,7 +297,7 @@ void SAL_CALL ScVbaShapeRange::setLockAnchor( sal_Bool _lockanchor ) throw (uno:
}
}
-::sal_Int32 SAL_CALL ScVbaShapeRange::getRelativeHorizontalPosition() throw (uno::RuntimeException, std::exception)
+::sal_Int32 SAL_CALL ScVbaShapeRange::getRelativeHorizontalPosition()
{
sal_Int32 nLen = getCount();
sal_Int32 index = 1;
@@ -309,7 +309,7 @@ void SAL_CALL ScVbaShapeRange::setLockAnchor( sal_Bool _lockanchor ) throw (uno:
throw uno::RuntimeException();
}
-void SAL_CALL ScVbaShapeRange::setRelativeHorizontalPosition( ::sal_Int32 _relativehorizontalposition ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaShapeRange::setRelativeHorizontalPosition( ::sal_Int32 _relativehorizontalposition )
{
sal_Int32 nLen = getCount();
for ( sal_Int32 index = 1; index <= nLen; ++index )
@@ -319,7 +319,7 @@ void SAL_CALL ScVbaShapeRange::setRelativeHorizontalPosition( ::sal_Int32 _relat
}
}
-::sal_Int32 SAL_CALL ScVbaShapeRange::getRelativeVerticalPosition() throw (uno::RuntimeException, std::exception)
+::sal_Int32 SAL_CALL ScVbaShapeRange::getRelativeVerticalPosition()
{
sal_Int32 nLen = getCount();
sal_Int32 index = 1;
@@ -331,7 +331,7 @@ void SAL_CALL ScVbaShapeRange::setRelativeHorizontalPosition( ::sal_Int32 _relat
throw uno::RuntimeException();
}
-void SAL_CALL ScVbaShapeRange::setRelativeVerticalPosition( ::sal_Int32 _relativeverticalposition ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaShapeRange::setRelativeVerticalPosition( ::sal_Int32 _relativeverticalposition )
{
sal_Int32 nLen = getCount();
for ( sal_Int32 index = 1; index <= nLen; ++index )
@@ -341,7 +341,7 @@ void SAL_CALL ScVbaShapeRange::setRelativeVerticalPosition( ::sal_Int32 _relativ
}
}
-uno::Any SAL_CALL ScVbaShapeRange::TextFrame( ) throw (css::uno::RuntimeException, std::exception)
+uno::Any SAL_CALL ScVbaShapeRange::TextFrame( )
{
sal_Int32 nLen = getCount();
sal_Int32 index = 1;
@@ -353,7 +353,7 @@ uno::Any SAL_CALL ScVbaShapeRange::TextFrame( ) throw (css::uno::RuntimeExcepti
throw uno::RuntimeException();
}
-uno::Any SAL_CALL ScVbaShapeRange::WrapFormat( ) throw (css::uno::RuntimeException, std::exception)
+uno::Any SAL_CALL ScVbaShapeRange::WrapFormat( )
{
sal_Int32 nLen = getCount();
sal_Int32 index = 1;
@@ -365,7 +365,7 @@ uno::Any SAL_CALL ScVbaShapeRange::WrapFormat( ) throw (css::uno::RuntimeExcept
throw uno::RuntimeException();
}
-void SAL_CALL ScVbaShapeRange::ZOrder( sal_Int32 ZOrderCmd ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaShapeRange::ZOrder( sal_Int32 ZOrderCmd )
{
sal_Int32 nLen = getCount();
for ( sal_Int32 index = 1; index <= nLen; ++index )
@@ -376,13 +376,13 @@ void SAL_CALL ScVbaShapeRange::ZOrder( sal_Int32 ZOrderCmd ) throw (uno::Runtime
}
uno::Type SAL_CALL
-ScVbaShapeRange::getElementType() throw (uno::RuntimeException)
+ScVbaShapeRange::getElementType()
{
return cppu::UnoType<msforms::XShape>::get();
}
uno::Reference< container::XEnumeration > SAL_CALL
-ScVbaShapeRange::createEnumeration() throw (uno::RuntimeException)
+ScVbaShapeRange::createEnumeration()
{
return new VbShapeRangeEnumHelper( this, m_xIndexAccess );
}
diff --git a/vbahelper/source/vbahelper/vbashapes.cxx b/vbahelper/source/vbahelper/vbashapes.cxx
index bb5c620f8742..dd840240efd8 100644
--- a/vbahelper/source/vbahelper/vbashapes.cxx
+++ b/vbahelper/source/vbahelper/vbashapes.cxx
@@ -57,11 +57,11 @@ class VbShapeEnumHelper : public EnumerationHelper_BASE
sal_Int32 nIndex;
public:
VbShapeEnumHelper( const uno::Reference< msforms::XShapes >& xParent, const uno::Reference< container::XIndexAccess >& xIndexAccess ) : m_xParent( xParent ), m_xIndexAccess( xIndexAccess ), nIndex( 0 ) {}
- virtual sal_Bool SAL_CALL hasMoreElements( ) throw (uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL hasMoreElements( ) override
{
return ( nIndex < m_xIndexAccess->getCount() );
}
- virtual uno::Any SAL_CALL nextElement( ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception) override
+ virtual uno::Any SAL_CALL nextElement( ) override
{
ScVbaShapes* pShapes = dynamic_cast< ScVbaShapes* >(m_xParent.get());
if ( pShapes && hasMoreElements() )
@@ -94,13 +94,13 @@ ScVbaShapes::ScVbaShapes( const css::uno::Reference< ov::XHelperInterface >& xPa
}
uno::Reference< container::XEnumeration >
-ScVbaShapes::createEnumeration() throw (uno::RuntimeException)
+ScVbaShapes::createEnumeration()
{
return new VbShapeEnumHelper( this, m_xIndexAccess );
}
uno::Any
-ScVbaShapes::createCollectionObject( const css::uno::Any& aSource ) throw (uno::RuntimeException)
+ScVbaShapes::createCollectionObject( const css::uno::Any& aSource )
{
if( aSource.hasValue() )
{
@@ -111,7 +111,7 @@ ScVbaShapes::createCollectionObject( const css::uno::Any& aSource ) throw (uno::
}
uno::Type
-ScVbaShapes::getElementType() throw (uno::RuntimeException)
+ScVbaShapes::getElementType()
{
return cppu::UnoType<ooo::vba::msforms::XShape>::get();
}
@@ -135,7 +135,7 @@ ScVbaShapes::getServiceNames()
}
css::uno::Reference< css::container::XIndexAccess >
-ScVbaShapes::getShapesByArrayIndices( const uno::Any& Index ) throw (uno::RuntimeException)
+ScVbaShapes::getShapesByArrayIndices( const uno::Any& Index )
{
if ( Index.getValueTypeClass() != uno::TypeClass_SEQUENCE )
throw uno::RuntimeException();
@@ -174,7 +174,7 @@ ScVbaShapes::getShapesByArrayIndices( const uno::Any& Index ) throw (uno::Runti
}
uno::Reference< msforms::XShapeRange > SAL_CALL
-ScVbaShapes::Range( const uno::Any& shapes ) throw (css::uno::RuntimeException, std::exception)
+ScVbaShapes::Range( const uno::Any& shapes )
{
// shapes, can be an index or an array of indices
uno::Reference< container::XIndexAccess > xShapes;
@@ -193,7 +193,7 @@ ScVbaShapes::Range( const uno::Any& shapes ) throw (css::uno::RuntimeException,
}
void SAL_CALL
-ScVbaShapes::SelectAll() throw (uno::RuntimeException, std::exception)
+ScVbaShapes::SelectAll()
{
uno::Reference< view::XSelectionSupplier > xSelectSupp( m_xModel->getCurrentController(), uno::UNO_QUERY_THROW );
try
@@ -209,7 +209,7 @@ ScVbaShapes::SelectAll() throw (uno::RuntimeException, std::exception)
}
uno::Reference< drawing::XShape >
-ScVbaShapes::createShape( const OUString& service ) throw (css::uno::RuntimeException)
+ScVbaShapes::createShape( const OUString& service )
{
uno::Reference< lang::XMultiServiceFactory > xMSF( m_xModel, uno::UNO_QUERY_THROW );
uno::Reference< drawing::XShape > xShape( xMSF->createInstance( service ), uno::UNO_QUERY_THROW );
@@ -217,7 +217,7 @@ ScVbaShapes::createShape( const OUString& service ) throw (css::uno::RuntimeExce
}
uno::Any
-ScVbaShapes::AddRectangle(sal_Int32 startX, sal_Int32 startY, sal_Int32 nLineWidth, sal_Int32 nLineHeight, const uno::Any& rRange) throw (css::uno::RuntimeException)
+ScVbaShapes::AddRectangle(sal_Int32 startX, sal_Int32 startY, sal_Int32 nLineWidth, sal_Int32 nLineHeight, const uno::Any& rRange)
{
OUString sCreateShapeName( "com.sun.star.drawing.RectangleShape" );
sal_Int32 nXPos = Millimeter::getInHundredthsOfOneMillimeter( startX );
@@ -249,7 +249,7 @@ ScVbaShapes::AddRectangle(sal_Int32 startX, sal_Int32 startY, sal_Int32 nLineWid
}
uno::Any
-ScVbaShapes::AddEllipse(sal_Int32 startX, sal_Int32 startY, sal_Int32 nLineWidth, sal_Int32 nLineHeight, const uno::Any& rRange) throw (css::uno::RuntimeException)
+ScVbaShapes::AddEllipse(sal_Int32 startX, sal_Int32 startY, sal_Int32 nLineWidth, sal_Int32 nLineHeight, const uno::Any& rRange)
{
OUString sCreateShapeName( "com.sun.star.drawing.EllipseShape" );
sal_Int32 nXPos = Millimeter::getInHundredthsOfOneMillimeter( startX );
@@ -294,7 +294,7 @@ ScVbaShapes::AddEllipse(sal_Int32 startX, sal_Int32 startY, sal_Int32 nLineWidth
//helpeapi calc
uno::Any SAL_CALL
-ScVbaShapes::AddLine( sal_Int32 StartX, sal_Int32 StartY, sal_Int32 endX, sal_Int32 endY ) throw (uno::RuntimeException, std::exception)
+ScVbaShapes::AddLine( sal_Int32 StartX, sal_Int32 StartY, sal_Int32 endX, sal_Int32 endY )
{
sal_Int32 nLineWidth = endX - StartX;
sal_Int32 nLineHeight = endY - StartY;
@@ -328,7 +328,7 @@ ScVbaShapes::AddLine( sal_Int32 StartX, sal_Int32 StartY, sal_Int32 endX, sal_In
}
uno::Any SAL_CALL
-ScVbaShapes::AddShape( sal_Int32 _nType, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight ) throw (uno::RuntimeException, std::exception)
+ScVbaShapes::AddShape( sal_Int32 _nType, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight )
{
uno::Any _aAnchor;
if (_nType == office::MsoAutoShapeType::msoShapeRectangle)
@@ -343,7 +343,7 @@ ScVbaShapes::AddShape( sal_Int32 _nType, sal_Int32 _nLeft, sal_Int32 _nTop, sal_
}
uno::Any SAL_CALL
-ScVbaShapes::AddTextbox( sal_Int32 _nOrientation, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight ) throw (uno::RuntimeException, std::exception)
+ScVbaShapes::AddTextbox( sal_Int32 _nOrientation, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight )
{
uno::Reference< lang::XServiceInfo > xServiceInfo( m_xModel, uno::UNO_QUERY_THROW );
if( xServiceInfo->supportsService( "com.sun.star.text.TextDocument" ) )
@@ -354,7 +354,7 @@ ScVbaShapes::AddTextbox( sal_Int32 _nOrientation, sal_Int32 _nLeft, sal_Int32 _n
}
uno::Any
-ScVbaShapes::AddTextboxInWriter( sal_Int32 /*_nOrientation*/, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight ) throw (uno::RuntimeException)
+ScVbaShapes::AddTextboxInWriter( sal_Int32 /*_nOrientation*/, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight )
{
OUString sCreateShapeName( "com.sun.star.drawing.TextShape" );
sal_Int32 nXPos = Millimeter::getInHundredthsOfOneMillimeter( _nLeft );
@@ -400,7 +400,7 @@ ScVbaShapes::AddTextboxInWriter( sal_Int32 /*_nOrientation*/, sal_Int32 _nLeft,
}
void
-ScVbaShapes::setDefaultShapeProperties( const uno::Reference< drawing::XShape >& xShape ) throw (uno::RuntimeException)
+ScVbaShapes::setDefaultShapeProperties( const uno::Reference< drawing::XShape >& xShape )
{
uno::Reference< beans::XPropertySet > xPropertySet( xShape, uno::UNO_QUERY_THROW );
xPropertySet->setPropertyValue( "FillStyle", uno::makeAny( OUString("SOLID") ) );
diff --git a/vbahelper/source/vbahelper/vbatextframe.cxx b/vbahelper/source/vbahelper/vbatextframe.cxx
index f99d9641aa81..865ebeba3fe7 100644
--- a/vbahelper/source/vbahelper/vbatextframe.cxx
+++ b/vbahelper/source/vbahelper/vbatextframe.cxx
@@ -56,7 +56,7 @@ void VbaTextFrame::setMargin( const OUString& sMarginType, float fMargin )
// Attributes
sal_Bool SAL_CALL
-VbaTextFrame::getAutoSize() throw (uno::RuntimeException, std::exception)
+VbaTextFrame::getAutoSize()
{
// I don't know why, but in OOo, TextAutoGrowHeight is the property control autosize. not TextFitToSize.
// TextFitToSize control the text content.
@@ -68,14 +68,14 @@ VbaTextFrame::getAutoSize() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-VbaTextFrame::setAutoSize( sal_Bool _autosize ) throw (uno::RuntimeException, std::exception)
+VbaTextFrame::setAutoSize( sal_Bool _autosize )
{
setAsMSObehavior();
m_xPropertySet->setPropertyValue( "TextAutoGrowHeight", uno::makeAny( _autosize ) );
}
float SAL_CALL
-VbaTextFrame::getMarginBottom() throw (uno::RuntimeException, std::exception)
+VbaTextFrame::getMarginBottom()
{
sal_Int32 nMargin = getMargin( "TextLowerDistance" );
float fMargin = (float)Millimeter::getInPoints( nMargin );
@@ -83,13 +83,13 @@ VbaTextFrame::getMarginBottom() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-VbaTextFrame::setMarginBottom( float _marginbottom ) throw (uno::RuntimeException, std::exception)
+VbaTextFrame::setMarginBottom( float _marginbottom )
{
setMargin( "TextLowerDistance", _marginbottom );
}
float SAL_CALL
-VbaTextFrame::getMarginTop() throw (uno::RuntimeException, std::exception)
+VbaTextFrame::getMarginTop()
{
sal_Int32 nMargin = getMargin( "TextUpperDistance" );
float fMargin = (float)Millimeter::getInPoints( nMargin );
@@ -97,13 +97,13 @@ VbaTextFrame::getMarginTop() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-VbaTextFrame::setMarginTop( float _margintop ) throw (uno::RuntimeException, std::exception)
+VbaTextFrame::setMarginTop( float _margintop )
{
setMargin( "TextUpperDistance", _margintop );
}
float SAL_CALL
-VbaTextFrame::getMarginLeft() throw (uno::RuntimeException, std::exception)
+VbaTextFrame::getMarginLeft()
{
sal_Int32 nMargin = getMargin( "TextLeftDistance" );
float fMargin = (float)Millimeter::getInPoints( nMargin );
@@ -111,13 +111,13 @@ VbaTextFrame::getMarginLeft() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-VbaTextFrame::setMarginLeft( float _marginleft ) throw (uno::RuntimeException, std::exception)
+VbaTextFrame::setMarginLeft( float _marginleft )
{
setMargin( "TextLeftDistance", _marginleft );
}
float SAL_CALL
-VbaTextFrame::getMarginRight() throw (uno::RuntimeException, std::exception)
+VbaTextFrame::getMarginRight()
{
sal_Int32 nMargin = getMargin( "TextRightDistance" );
float fMargin = (float)Millimeter::getInPoints( nMargin );
@@ -125,7 +125,7 @@ VbaTextFrame::getMarginRight() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-VbaTextFrame::setMarginRight( float _marginright ) throw (uno::RuntimeException, std::exception)
+VbaTextFrame::setMarginRight( float _marginright )
{
setMargin( "TextRightDistance" , _marginright );
}
@@ -133,7 +133,7 @@ VbaTextFrame::setMarginRight( float _marginright ) throw (uno::RuntimeException,
// Methods
uno::Any SAL_CALL
-VbaTextFrame::Characters() throw (uno::RuntimeException, std::exception)
+VbaTextFrame::Characters()
{
throw uno::RuntimeException( "Not implemented" );
}
diff --git a/vbahelper/source/vbahelper/vbawindowbase.cxx b/vbahelper/source/vbahelper/vbawindowbase.cxx
index 19b7aaba6e86..36fd27441e68 100644
--- a/vbahelper/source/vbahelper/vbawindowbase.cxx
+++ b/vbahelper/source/vbahelper/vbawindowbase.cxx
@@ -32,7 +32,7 @@ VbaWindowBase::VbaWindowBase(
const uno::Reference< XHelperInterface >& xParent,
const uno::Reference< uno::XComponentContext >& xContext,
const css::uno::Reference< css::frame::XModel >& xModel,
- const uno::Reference< frame::XController >& xController ) throw (uno::RuntimeException) :
+ const uno::Reference< frame::XController >& xController ) :
WindowBaseImpl_BASE( xParent, xContext ),
m_xModel( xModel, uno::UNO_SET_THROW )
{
@@ -40,7 +40,7 @@ VbaWindowBase::VbaWindowBase(
}
VbaWindowBase::VbaWindowBase( uno::Sequence< uno::Any > const & args,
- uno::Reference< uno::XComponentContext > const & xContext ) throw (uno::RuntimeException) :
+ uno::Reference< uno::XComponentContext > const & xContext ) :
WindowBaseImpl_BASE( getXSomethingFromArgs< XHelperInterface >( args, 0, false ), xContext ),
m_xModel( getXSomethingFromArgs< frame::XModel >( args, 1, false ) )
{
@@ -48,13 +48,13 @@ VbaWindowBase::VbaWindowBase( uno::Sequence< uno::Any > const & args,
}
sal_Bool SAL_CALL
-VbaWindowBase::getVisible() throw (uno::RuntimeException, std::exception)
+VbaWindowBase::getVisible()
{
return getWindow2()->isVisible();
}
void SAL_CALL
-VbaWindowBase::setVisible( sal_Bool _visible ) throw (uno::RuntimeException, std::exception)
+VbaWindowBase::setVisible( sal_Bool _visible )
{
getWindow2()->setVisible( _visible );
}
@@ -82,49 +82,49 @@ void setPosSize( const uno::Reference< awt::XWindow >& xWindow, sal_Int32 nValue
}
sal_Int32 SAL_CALL
-VbaWindowBase::getHeight() throw (uno::RuntimeException, std::exception)
+VbaWindowBase::getHeight()
{
return getWindow()->getPosSize().Height;
}
void SAL_CALL
-VbaWindowBase::setHeight( sal_Int32 _height ) throw (uno::RuntimeException, std::exception)
+VbaWindowBase::setHeight( sal_Int32 _height )
{
setPosSize( getWindow(), _height, css::awt::PosSize::HEIGHT );
}
sal_Int32 SAL_CALL
-VbaWindowBase::getLeft() throw (uno::RuntimeException, std::exception)
+VbaWindowBase::getLeft()
{
return getWindow()->getPosSize().X;
}
void SAL_CALL
-VbaWindowBase::setLeft( sal_Int32 _left ) throw (uno::RuntimeException, std::exception)
+VbaWindowBase::setLeft( sal_Int32 _left )
{
setPosSize( getWindow(), _left, css::awt::PosSize::X );
}
sal_Int32 SAL_CALL
-VbaWindowBase::getTop() throw (uno::RuntimeException, std::exception)
+VbaWindowBase::getTop()
{
return getWindow()->getPosSize().Y;
}
void SAL_CALL
-VbaWindowBase::setTop( sal_Int32 _top ) throw (uno::RuntimeException, std::exception)
+VbaWindowBase::setTop( sal_Int32 _top )
{
setPosSize( getWindow(), _top, css::awt::PosSize::Y );
}
sal_Int32 SAL_CALL
-VbaWindowBase::getWidth() throw (uno::RuntimeException, std::exception)
+VbaWindowBase::getWidth()
{
return getWindow()->getPosSize().Width;
}
void SAL_CALL
-VbaWindowBase::setWidth( sal_Int32 _width ) throw (uno::RuntimeException, std::exception)
+VbaWindowBase::setWidth( sal_Int32 _width )
{
setPosSize( getWindow(), _width, css::awt::PosSize::WIDTH );
}
@@ -147,22 +147,22 @@ VbaWindowBase::getServiceNames()
return aServiceNames;
}
-uno::Reference< frame::XController > VbaWindowBase::getController() throw (css::uno::RuntimeException)
+uno::Reference< frame::XController > VbaWindowBase::getController()
{
return uno::Reference< frame::XController >( m_xController, uno::UNO_SET_THROW );
}
-uno::Reference< awt::XWindow > VbaWindowBase::getWindow() throw (uno::RuntimeException)
+uno::Reference< awt::XWindow > VbaWindowBase::getWindow()
{
return uno::Reference< awt::XWindow >( m_xWindow, uno::UNO_SET_THROW );
}
-uno::Reference< awt::XWindow2 > VbaWindowBase::getWindow2() throw (uno::RuntimeException)
+uno::Reference< awt::XWindow2 > VbaWindowBase::getWindow2()
{
return uno::Reference< awt::XWindow2 >( getWindow(), uno::UNO_QUERY_THROW );
}
-void VbaWindowBase::construct( const uno::Reference< frame::XController >& xController ) throw (uno::RuntimeException)
+void VbaWindowBase::construct( const uno::Reference< frame::XController >& xController )
{
if( !xController.is() ) throw uno::RuntimeException();
uno::Reference< frame::XFrame > xFrame( xController->getFrame(), uno::UNO_SET_THROW );