diff options
Diffstat (limited to 'vbahelper/source/msforms/vbacombobox.cxx')
-rw-r--r-- | vbahelper/source/msforms/vbacombobox.cxx | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/vbahelper/source/msforms/vbacombobox.cxx b/vbahelper/source/msforms/vbacombobox.cxx index 8c5401a4e36c..695f3fe9a1f2 100644 --- a/vbahelper/source/msforms/vbacombobox.cxx +++ b/vbahelper/source/msforms/vbacombobox.cxx @@ -62,13 +62,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) +ScVbaComboBox::getValue() throw (uno::RuntimeException, std::exception) { return m_xProps->getPropertyValue( sSourceName ); } void SAL_CALL -ScVbaComboBox::setListIndex( const uno::Any& _value ) throw (uno::RuntimeException) +ScVbaComboBox::setListIndex( const uno::Any& _value ) throw (uno::RuntimeException, std::exception) { sal_Int16 nIndex = 0; if( _value >>= nIndex ) @@ -90,7 +90,7 @@ ScVbaComboBox::setListIndex( const uno::Any& _value ) throw (uno::RuntimeExcepti } uno::Any SAL_CALL -ScVbaComboBox::getListIndex() throw (uno::RuntimeException) +ScVbaComboBox::getListIndex() throw (uno::RuntimeException, std::exception) { uno::Sequence< OUString > sItems; m_xProps->getPropertyValue( ITEMS ) >>= sItems; @@ -117,7 +117,7 @@ ScVbaComboBox::getListIndex() throw (uno::RuntimeException) // 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) +ScVbaComboBox::setValue( const uno::Any& _value ) throw (uno::RuntimeException, std::exception) { // booleans are converted to uppercase strings OUString oldValue = extractStringFromAny( getValue(), OUString(), true ); @@ -138,7 +138,7 @@ ScVbaComboBox::setValue( const uno::Any& _value ) throw (uno::RuntimeException) // see Value OUString SAL_CALL -ScVbaComboBox::getText() throw (uno::RuntimeException) +ScVbaComboBox::getText() throw (uno::RuntimeException, std::exception) { OUString result; getValue() >>= result; @@ -146,109 +146,109 @@ ScVbaComboBox::getText() throw (uno::RuntimeException) } void SAL_CALL -ScVbaComboBox::setText( const OUString& _text ) throw (uno::RuntimeException) +ScVbaComboBox::setText( const OUString& _text ) throw (uno::RuntimeException, std::exception) { setValue( uno::makeAny( _text ) ); // seems the same } // Methods void SAL_CALL -ScVbaComboBox::AddItem( const uno::Any& pvargItem, const uno::Any& pvargIndex ) throw (uno::RuntimeException) +ScVbaComboBox::AddItem( const uno::Any& pvargItem, const uno::Any& pvargIndex ) throw (uno::RuntimeException, std::exception) { mpListHelper->AddItem( pvargItem, pvargIndex ); } void SAL_CALL -ScVbaComboBox::removeItem( const uno::Any& index ) throw (uno::RuntimeException) +ScVbaComboBox::removeItem( const uno::Any& index ) throw (uno::RuntimeException, std::exception) { mpListHelper->removeItem( index ); } void SAL_CALL -ScVbaComboBox::Clear( ) throw (uno::RuntimeException) +ScVbaComboBox::Clear( ) throw (uno::RuntimeException, std::exception) { mpListHelper->Clear(); } void SAL_CALL -ScVbaComboBox::setRowSource( const OUString& _rowsource ) throw (css::uno::RuntimeException) +ScVbaComboBox::setRowSource( const OUString& _rowsource ) throw (css::uno::RuntimeException, std::exception) { ScVbaControl::setRowSource( _rowsource ); mpListHelper->setRowSource( _rowsource ); } sal_Int32 SAL_CALL -ScVbaComboBox::getListCount() throw (uno::RuntimeException) +ScVbaComboBox::getListCount() throw (uno::RuntimeException, std::exception) { return mpListHelper->getListCount(); } uno::Any SAL_CALL -ScVbaComboBox::List( const ::uno::Any& pvargIndex, const uno::Any& pvarColumn ) throw (uno::RuntimeException) +ScVbaComboBox::List( const ::uno::Any& pvargIndex, const uno::Any& pvarColumn ) throw (uno::RuntimeException, std::exception) { return mpListHelper->List( pvargIndex, pvarColumn ); } -sal_Int32 SAL_CALL ScVbaComboBox::getStyle() throw (uno::RuntimeException) +sal_Int32 SAL_CALL ScVbaComboBox::getStyle() throw (uno::RuntimeException, std::exception) { return msforms::fmStyle::fmStyleDropDownCombo; } -void SAL_CALL ScVbaComboBox::setStyle( sal_Int32 /*nStyle*/ ) throw (uno::RuntimeException) +void SAL_CALL ScVbaComboBox::setStyle( sal_Int32 /*nStyle*/ ) throw (uno::RuntimeException, std::exception) { } -sal_Int32 SAL_CALL ScVbaComboBox::getDropButtonStyle() throw (uno::RuntimeException) +sal_Int32 SAL_CALL ScVbaComboBox::getDropButtonStyle() throw (uno::RuntimeException, std::exception) { return msforms::fmDropButtonStyle::fmDropButtonStyleArrow; } -void SAL_CALL ScVbaComboBox::setDropButtonStyle( sal_Int32 /*nDropButtonStyle*/ ) throw (uno::RuntimeException) +void SAL_CALL ScVbaComboBox::setDropButtonStyle( sal_Int32 /*nDropButtonStyle*/ ) throw (uno::RuntimeException, std::exception) { } -sal_Int32 SAL_CALL ScVbaComboBox::getDragBehavior() throw (uno::RuntimeException) +sal_Int32 SAL_CALL ScVbaComboBox::getDragBehavior() throw (uno::RuntimeException, std::exception) { return msforms::fmDragBehavior::fmDragBehaviorDisabled; } -void SAL_CALL ScVbaComboBox::setDragBehavior( sal_Int32 /*nDragBehavior*/ ) throw (uno::RuntimeException) +void SAL_CALL ScVbaComboBox::setDragBehavior( sal_Int32 /*nDragBehavior*/ ) throw (uno::RuntimeException, std::exception) { } -sal_Int32 SAL_CALL ScVbaComboBox::getEnterFieldBehavior() throw (uno::RuntimeException) +sal_Int32 SAL_CALL ScVbaComboBox::getEnterFieldBehavior() throw (uno::RuntimeException, std::exception) { return msforms::fmEnterFieldBehavior::fmEnterFieldBehaviorSelectAll; } -void SAL_CALL ScVbaComboBox::setEnterFieldBehavior( sal_Int32 /*nEnterFieldBehavior*/ ) throw (uno::RuntimeException) +void SAL_CALL ScVbaComboBox::setEnterFieldBehavior( sal_Int32 /*nEnterFieldBehavior*/ ) throw (uno::RuntimeException, std::exception) { } -sal_Int32 SAL_CALL ScVbaComboBox::getListStyle() throw (uno::RuntimeException) +sal_Int32 SAL_CALL ScVbaComboBox::getListStyle() throw (uno::RuntimeException, std::exception) { return msforms::fmListStyle::fmListStylePlain; } -void SAL_CALL ScVbaComboBox::setListStyle( sal_Int32 /*nListStyle*/ ) throw (uno::RuntimeException) +void SAL_CALL ScVbaComboBox::setListStyle( sal_Int32 /*nListStyle*/ ) throw (uno::RuntimeException, std::exception) { } -sal_Int32 SAL_CALL ScVbaComboBox::getTextAlign() throw (uno::RuntimeException) +sal_Int32 SAL_CALL ScVbaComboBox::getTextAlign() throw (uno::RuntimeException, std::exception) { return msforms::fmTextAlign::fmTextAlignLeft; } -void SAL_CALL ScVbaComboBox::setTextAlign( sal_Int32 /*nTextAlign*/ ) throw (uno::RuntimeException) +void SAL_CALL ScVbaComboBox::setTextAlign( sal_Int32 /*nTextAlign*/ ) throw (uno::RuntimeException, std::exception) { } -sal_Int32 SAL_CALL ScVbaComboBox::getTextLength() throw (uno::RuntimeException) +sal_Int32 SAL_CALL ScVbaComboBox::getTextLength() throw (uno::RuntimeException, std::exception) { return getText().getLength(); } -uno::Reference< msforms::XNewFont > SAL_CALL ScVbaComboBox::getFont() throw (uno::RuntimeException) +uno::Reference< msforms::XNewFont > SAL_CALL ScVbaComboBox::getFont() throw (uno::RuntimeException, std::exception) { return new VbaNewFont( this, mxContext, m_xProps ); } @@ -259,42 +259,42 @@ ScVbaComboBox::getServiceImplName() return OUString("ScVbaComboBox"); } -sal_Int32 SAL_CALL ScVbaComboBox::getBackColor() throw (uno::RuntimeException) +sal_Int32 SAL_CALL ScVbaComboBox::getBackColor() throw (uno::RuntimeException, std::exception) { return ScVbaControl::getBackColor(); } -void SAL_CALL ScVbaComboBox::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeException) +void SAL_CALL ScVbaComboBox::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeException, std::exception) { ScVbaControl::setBackColor( nBackColor ); } -sal_Bool SAL_CALL ScVbaComboBox::getAutoSize() throw (uno::RuntimeException) +sal_Bool SAL_CALL ScVbaComboBox::getAutoSize() throw (uno::RuntimeException, std::exception) { return ScVbaControl::getAutoSize(); } -void SAL_CALL ScVbaComboBox::setAutoSize( sal_Bool bAutoSize ) throw (uno::RuntimeException) +void SAL_CALL ScVbaComboBox::setAutoSize( sal_Bool bAutoSize ) throw (uno::RuntimeException, std::exception) { ScVbaControl::setAutoSize( bAutoSize ); } -sal_Bool SAL_CALL ScVbaComboBox::getLocked() throw (uno::RuntimeException) +sal_Bool SAL_CALL ScVbaComboBox::getLocked() throw (uno::RuntimeException, std::exception) { return ScVbaControl::getLocked(); } -void SAL_CALL ScVbaComboBox::setLocked( sal_Bool bLocked ) throw (uno::RuntimeException) +void SAL_CALL ScVbaComboBox::setLocked( sal_Bool bLocked ) throw (uno::RuntimeException, std::exception) { ScVbaControl::setLocked( bLocked ); } -OUString SAL_CALL ScVbaComboBox::getLinkedCell() throw (uno::RuntimeException) +OUString SAL_CALL ScVbaComboBox::getLinkedCell() throw (uno::RuntimeException, std::exception) { return ScVbaControl::getControlSource(); } -void SAL_CALL ScVbaComboBox::setLinkedCell( const OUString& _linkedcell ) throw (uno::RuntimeException) +void SAL_CALL ScVbaComboBox::setLinkedCell( const OUString& _linkedcell ) throw (uno::RuntimeException, std::exception) { ScVbaControl::setControlSource( _linkedcell ); } |