diff options
Diffstat (limited to 'sc/source/ui/vba/vbainterior.cxx')
-rw-r--r-- | sc/source/ui/vba/vbainterior.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sc/source/ui/vba/vbainterior.cxx b/sc/source/ui/vba/vbainterior.cxx index 2b1a7d114e39..51b4c2270615 100644 --- a/sc/source/ui/vba/vbainterior.cxx +++ b/sc/source/ui/vba/vbainterior.cxx @@ -79,7 +79,7 @@ static PatternMap lcl_getPatternMap() static PatternMap aPatternMap( lcl_getPatternMap() ); -ScVbaInterior::ScVbaInterior( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< beans::XPropertySet >& xProps, ScDocument* pScDoc ) throw ( lang::IllegalArgumentException) : ScVbaInterior_BASE( xParent, xContext ), m_xProps(xProps), m_pScDoc( pScDoc ) +ScVbaInterior::ScVbaInterior( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< beans::XPropertySet >& xProps, ScDocument* pScDoc ) : ScVbaInterior_BASE( xParent, xContext ), m_xProps(xProps), m_pScDoc( pScDoc ) { // auto color m_aPattColor.SetColor( (sal_uInt32)0x0 ); @@ -89,14 +89,14 @@ ScVbaInterior::ScVbaInterior( const uno::Reference< XHelperInterface >& xParent, } uno::Any -ScVbaInterior::getColor() throw (uno::RuntimeException, std::exception) +ScVbaInterior::getColor() { Color aBackColor( GetBackColor() ); return uno::makeAny( OORGBToXLRGB( aBackColor.GetColor() ) ); } void -ScVbaInterior::setColor( const uno::Any& _color ) throw (uno::RuntimeException, std::exception) +ScVbaInterior::setColor( const uno::Any& _color ) { sal_Int32 nColor = 0; if( _color >>= nColor ) @@ -147,7 +147,7 @@ ScVbaInterior::getPalette() } void SAL_CALL -ScVbaInterior::setColorIndex( const css::uno::Any& _colorindex ) throw (css::uno::RuntimeException, std::exception) +ScVbaInterior::setColorIndex( const css::uno::Any& _colorindex ) { sal_Int32 nIndex = 0; _colorindex >>= nIndex; @@ -198,7 +198,7 @@ ScVbaInterior::GetColorIndex( const sal_Int32 nColor ) } uno::Any SAL_CALL -ScVbaInterior::getColorIndex() throw ( css::uno::RuntimeException, std::exception ) +ScVbaInterior::getColorIndex() { sal_Int32 nColor = 0; // hackly for excel::XlColorIndex::xlColorIndexNone @@ -293,7 +293,7 @@ ScVbaInterior::SetUserDefinedAttributes( const OUString& sName, const uno::Any& } // OOo do not support below API uno::Any SAL_CALL -ScVbaInterior::getPattern() throw (uno::RuntimeException, std::exception) +ScVbaInterior::getPattern() { // XlPattern uno::Any aPattern = GetUserDefinedAttributes( PATTERN ); @@ -302,7 +302,7 @@ ScVbaInterior::getPattern() throw (uno::RuntimeException, std::exception) return uno::makeAny( excel::XlPattern::xlPatternNone ); } void SAL_CALL -ScVbaInterior::setPattern( const uno::Any& _pattern ) throw (uno::RuntimeException, std::exception) +ScVbaInterior::setPattern( const uno::Any& _pattern ) { if( _pattern >>= m_nPattern ) { @@ -337,7 +337,7 @@ ScVbaInterior::GetBackColor() return aBackColor; } uno::Any SAL_CALL -ScVbaInterior::getPatternColor() throw (uno::RuntimeException, std::exception) +ScVbaInterior::getPatternColor() { // 0 is the default color. no filled. uno::Any aPatternColor = GetUserDefinedAttributes( PATTERNCOLOR ); @@ -349,7 +349,7 @@ ScVbaInterior::getPatternColor() throw (uno::RuntimeException, std::exception) return uno::makeAny( sal_Int32( 0 ) ); } void SAL_CALL -ScVbaInterior::setPatternColor( const uno::Any& _patterncolor ) throw (uno::RuntimeException, std::exception) +ScVbaInterior::setPatternColor( const uno::Any& _patterncolor ) { sal_Int32 nPattColor = 0; if( _patterncolor >>= nPattColor ) @@ -361,7 +361,7 @@ ScVbaInterior::setPatternColor( const uno::Any& _patterncolor ) throw (uno::Runt throw uno::RuntimeException("Invalid Pattern Color" ); } uno::Any SAL_CALL -ScVbaInterior::getPatternColorIndex() throw (uno::RuntimeException, std::exception) +ScVbaInterior::getPatternColorIndex() { sal_Int32 nColor = 0; XLRGBToOORGB( getPatternColor() ) >>= nColor; @@ -369,7 +369,7 @@ ScVbaInterior::getPatternColorIndex() throw (uno::RuntimeException, std::excepti return GetIndexColor( nColor ); } void SAL_CALL -ScVbaInterior::setPatternColorIndex( const uno::Any& _patterncolorindex ) throw (uno::RuntimeException, std::exception) +ScVbaInterior::setPatternColorIndex( const uno::Any& _patterncolorindex ) { sal_Int32 nColorIndex = 0; if( _patterncolorindex >>= nColorIndex ) |