diff options
Diffstat (limited to 'sc/source/ui/vba/vbafont.cxx')
-rw-r--r-- | sc/source/ui/vba/vbafont.cxx | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/sc/source/ui/vba/vbafont.cxx b/sc/source/ui/vba/vbafont.cxx index d6525665de18..369d95ee0375 100644 --- a/sc/source/ui/vba/vbafont.cxx +++ b/sc/source/ui/vba/vbafont.cxx @@ -41,7 +41,7 @@ ScVbaFont::ScVbaFont( const uno::Reference< uno::XComponentContext >& xContext, const ScVbaPalette& dPalette, const uno::Reference< beans::XPropertySet >& xPropertySet, - ScCellRangeObj* pRangeObj, bool bFormControl ) throw ( uno::RuntimeException ) : + ScCellRangeObj* pRangeObj, bool bFormControl ) : ScVbaFont_BASE( xParent, xContext, dPalette.getPalette(), xPropertySet, bFormControl ), mPalette( dPalette ), mpRangeObj( pRangeObj ) @@ -59,7 +59,7 @@ ScVbaFont::~ScVbaFont() } /// @throws css::uno::RuntimeException -static uno::Reference< beans::XPropertySet > lcl_TextProperties( uno::Reference< table::XCell >& xIf ) throw ( uno::RuntimeException ) +static uno::Reference< beans::XPropertySet > lcl_TextProperties( uno::Reference< table::XCell >& xIf ) { uno::Reference< text::XTextRange > xTxtRange( xIf, uno::UNO_QUERY_THROW ); uno::Reference< text::XSimpleText > xTxt( xTxtRange->getText(), uno::UNO_QUERY_THROW ) ; @@ -67,7 +67,7 @@ static uno::Reference< beans::XPropertySet > lcl_TextProperties( uno::Reference< return xProps; } void SAL_CALL -ScVbaFont::setSuperscript( const uno::Any& aValue ) throw ( uno::RuntimeException, std::exception ) +ScVbaFont::setSuperscript( const uno::Any& aValue ) { // #FIXEME create some sort of generic get/set code where // you can pass a functor @@ -110,7 +110,7 @@ ScVbaFont::setSuperscript( const uno::Any& aValue ) throw ( uno::RuntimeExceptio } uno::Any SAL_CALL -ScVbaFont::getSuperscript() throw ( uno::RuntimeException, std::exception ) +ScVbaFont::getSuperscript() { uno::Reference< table::XCell> xCell( mxFont, uno::UNO_QUERY ); uno::Reference< table::XCellRange > xCellRange( mxFont, uno::UNO_QUERY ); @@ -143,7 +143,7 @@ ScVbaFont::getSuperscript() throw ( uno::RuntimeException, std::exception ) } void SAL_CALL -ScVbaFont::setSubscript( const uno::Any& aValue ) throw ( uno::RuntimeException, std::exception ) +ScVbaFont::setSubscript( const uno::Any& aValue ) { uno::Reference< table::XCell> xCell( mxFont, uno::UNO_QUERY ); uno::Reference< table::XCellRange > xCellRange( mxFont, uno::UNO_QUERY ); @@ -184,7 +184,7 @@ ScVbaFont::setSubscript( const uno::Any& aValue ) throw ( uno::RuntimeException, } uno::Any SAL_CALL -ScVbaFont::getSubscript() throw ( uno::RuntimeException, std::exception ) +ScVbaFont::getSubscript() { uno::Reference< table::XCell> xCell( mxFont, uno::UNO_QUERY ); uno::Reference< table::XCellRange > xCellRange( mxFont, uno::UNO_QUERY ); @@ -218,7 +218,7 @@ ScVbaFont::getSubscript() throw ( uno::RuntimeException, std::exception ) } uno::Any SAL_CALL -ScVbaFont::getSize() throw ( uno::RuntimeException, std::exception ) +ScVbaFont::getSize() { if ( GetDataSet() ) if ( GetDataSet()->GetItemState( ATTR_FONT_HEIGHT) == SfxItemState::DONTCARE ) @@ -227,7 +227,7 @@ ScVbaFont::getSize() throw ( uno::RuntimeException, std::exception ) } void SAL_CALL -ScVbaFont::setColorIndex( const uno::Any& _colorindex ) throw( uno::RuntimeException, std::exception ) +ScVbaFont::setColorIndex( const uno::Any& _colorindex ) { sal_Int32 nIndex = 0; _colorindex >>= nIndex; @@ -244,7 +244,7 @@ ScVbaFont::setColorIndex( const uno::Any& _colorindex ) throw( uno::RuntimeExcep } uno::Any SAL_CALL -ScVbaFont::getColorIndex() throw ( uno::RuntimeException, std::exception ) +ScVbaFont::getColorIndex() { if ( GetDataSet() ) if ( GetDataSet()->GetItemState( ATTR_FONT_COLOR) == SfxItemState::DONTCARE ) @@ -253,7 +253,7 @@ ScVbaFont::getColorIndex() throw ( uno::RuntimeException, std::exception ) } void SAL_CALL -ScVbaFont::setStandardFontSize( const uno::Any& /*aValue*/ ) throw( uno::RuntimeException, std::exception ) +ScVbaFont::setStandardFontSize( const uno::Any& /*aValue*/ ) { //XXX #TODO# #FIXME# //mxFont->setPropertyValue("CharSize", ( uno::Any )fValue ); @@ -262,7 +262,7 @@ ScVbaFont::setStandardFontSize( const uno::Any& /*aValue*/ ) throw( uno::Runtime } uno::Any SAL_CALL -ScVbaFont::getStandardFontSize() throw ( uno::RuntimeException, std::exception ) +ScVbaFont::getStandardFontSize() { //XXX #TODO# #FIXME# throw uno::RuntimeException( "getStandardFontSize not supported" ); @@ -270,14 +270,14 @@ ScVbaFont::getStandardFontSize() throw ( uno::RuntimeException, std::exception ) } void SAL_CALL -ScVbaFont::setStandardFont( const uno::Any& /*aValue*/ ) throw( uno::RuntimeException, std::exception ) +ScVbaFont::setStandardFont( const uno::Any& /*aValue*/ ) { //XXX #TODO# #FIXME# throw uno::RuntimeException("setStandardFont not supported" ); } uno::Any SAL_CALL -ScVbaFont::getStandardFont() throw ( uno::RuntimeException, std::exception ) +ScVbaFont::getStandardFont() { //XXX #TODO# #FIXME# throw uno::RuntimeException("getStandardFont not supported"); @@ -285,7 +285,7 @@ ScVbaFont::getStandardFont() throw ( uno::RuntimeException, std::exception ) } void SAL_CALL -ScVbaFont::setFontStyle( const uno::Any& aValue ) throw( uno::RuntimeException, std::exception ) +ScVbaFont::setFontStyle( const uno::Any& aValue ) { bool bBold = false; bool bItalic = false; @@ -316,7 +316,7 @@ ScVbaFont::setFontStyle( const uno::Any& aValue ) throw( uno::RuntimeException, } uno::Any SAL_CALL -ScVbaFont::getFontStyle() throw ( uno::RuntimeException, std::exception ) +ScVbaFont::getFontStyle() { OUStringBuffer aStyles; bool bValue = false; @@ -335,7 +335,7 @@ ScVbaFont::getFontStyle() throw ( uno::RuntimeException, std::exception ) } uno::Any SAL_CALL -ScVbaFont::getBold() throw ( uno::RuntimeException, std::exception ) +ScVbaFont::getBold() { if ( GetDataSet() ) if ( GetDataSet()->GetItemState( ATTR_FONT_WEIGHT) == SfxItemState::DONTCARE ) @@ -344,7 +344,7 @@ ScVbaFont::getBold() throw ( uno::RuntimeException, std::exception ) } void SAL_CALL -ScVbaFont::setUnderline( const uno::Any& aValue ) throw ( uno::RuntimeException, std::exception ) +ScVbaFont::setUnderline( const uno::Any& aValue ) { // default sal_Int32 nValue = excel::XlUnderlineStyle::xlUnderlineStyleNone; @@ -378,7 +378,7 @@ ScVbaFont::setUnderline( const uno::Any& aValue ) throw ( uno::RuntimeException, } uno::Any SAL_CALL -ScVbaFont::getUnderline() throw ( uno::RuntimeException, std::exception ) +ScVbaFont::getUnderline() { if ( GetDataSet() ) if ( GetDataSet()->GetItemState( ATTR_FONT_UNDERLINE) == SfxItemState::DONTCARE ) @@ -405,7 +405,7 @@ ScVbaFont::getUnderline() throw ( uno::RuntimeException, std::exception ) } uno::Any SAL_CALL -ScVbaFont::getStrikethrough() throw ( uno::RuntimeException, std::exception ) +ScVbaFont::getStrikethrough() { if ( GetDataSet() ) if ( GetDataSet()->GetItemState( ATTR_FONT_CROSSEDOUT) == SfxItemState::DONTCARE ) @@ -414,7 +414,7 @@ ScVbaFont::getStrikethrough() throw ( uno::RuntimeException, std::exception ) } uno::Any SAL_CALL -ScVbaFont::getShadow() throw (uno::RuntimeException, std::exception) +ScVbaFont::getShadow() { if ( GetDataSet() ) if ( GetDataSet()->GetItemState( ATTR_FONT_SHADOWED) == SfxItemState::DONTCARE ) @@ -423,7 +423,7 @@ ScVbaFont::getShadow() throw (uno::RuntimeException, std::exception) } uno::Any SAL_CALL -ScVbaFont::getItalic() throw ( uno::RuntimeException, std::exception ) +ScVbaFont::getItalic() { if ( GetDataSet() ) if ( GetDataSet()->GetItemState( ATTR_FONT_POSTURE) == SfxItemState::DONTCARE ) @@ -433,7 +433,7 @@ ScVbaFont::getItalic() throw ( uno::RuntimeException, std::exception ) } uno::Any SAL_CALL -ScVbaFont::getName() throw ( uno::RuntimeException, std::exception ) +ScVbaFont::getName() { if ( GetDataSet() ) if ( GetDataSet()->GetItemState( ATTR_FONT) == SfxItemState::DONTCARE ) @@ -441,7 +441,7 @@ ScVbaFont::getName() throw ( uno::RuntimeException, std::exception ) return ScVbaFont_BASE::getName(); } uno::Any -ScVbaFont::getColor() throw (uno::RuntimeException, std::exception) +ScVbaFont::getColor() { // #TODO #FIXME - behave like getXXX above ( wrt. GetDataSet ) uno::Any aAny; @@ -450,13 +450,13 @@ ScVbaFont::getColor() throw (uno::RuntimeException, std::exception) } void SAL_CALL -ScVbaFont::setOutlineFont( const uno::Any& aValue ) throw ( uno::RuntimeException, std::exception ) +ScVbaFont::setOutlineFont( const uno::Any& aValue ) { mxFont->setPropertyValue("CharContoured", aValue ); } uno::Any SAL_CALL -ScVbaFont::getOutlineFont() throw (uno::RuntimeException, std::exception) +ScVbaFont::getOutlineFont() { if ( GetDataSet() ) if ( GetDataSet()->GetItemState( ATTR_FONT_CONTOUR) == SfxItemState::DONTCARE ) |