diff options
Diffstat (limited to 'sc/source/ui/vba/vbacharacters.cxx')
-rw-r--r-- | sc/source/ui/vba/vbacharacters.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/ui/vba/vbacharacters.cxx b/sc/source/ui/vba/vbacharacters.cxx index 747878e082d6..10ce85c79f12 100644 --- a/sc/source/ui/vba/vbacharacters.cxx +++ b/sc/source/ui/vba/vbacharacters.cxx @@ -24,7 +24,7 @@ using namespace ::ooo::vba; using namespace ::com::sun::star; -ScVbaCharacters::ScVbaCharacters( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const ScVbaPalette& dPalette, const uno::Reference< text::XSimpleText>& xRange,const css::uno::Any& Start, const css::uno::Any& Length, bool Replace ) throw ( css::lang::IllegalArgumentException, css::uno::RuntimeException ) : ScVbaCharacters_BASE( xParent, xContext ), m_xSimpleText(xRange), m_aPalette( dPalette), nLength(-1), nStart(1), bReplace( Replace ) +ScVbaCharacters::ScVbaCharacters( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const ScVbaPalette& dPalette, const uno::Reference< text::XSimpleText>& xRange,const css::uno::Any& Start, const css::uno::Any& Length, bool Replace ) : ScVbaCharacters_BASE( xParent, xContext ), m_xSimpleText(xRange), m_aPalette( dPalette), nLength(-1), nStart(1), bReplace( Replace ) { Start >>= nStart; if ( nStart < 1 ) @@ -49,41 +49,41 @@ ScVbaCharacters::ScVbaCharacters( const uno::Reference< XHelperInterface >& xPar } OUString SAL_CALL -ScVbaCharacters::getCaption() throw (css::uno::RuntimeException, std::exception) +ScVbaCharacters::getCaption() { return m_xTextRange->getString(); } void SAL_CALL -ScVbaCharacters::setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception) +ScVbaCharacters::setCaption( const OUString& _caption ) { m_xTextRange->setString( _caption ); } ::sal_Int32 SAL_CALL -ScVbaCharacters::getCount() throw (css::uno::RuntimeException, std::exception) +ScVbaCharacters::getCount() { return getCaption().getLength(); } OUString SAL_CALL -ScVbaCharacters::getText() throw (css::uno::RuntimeException, std::exception) +ScVbaCharacters::getText() { return getCaption(); } void SAL_CALL -ScVbaCharacters::setText( const OUString& _text ) throw (css::uno::RuntimeException, std::exception) +ScVbaCharacters::setText( const OUString& _text ) { setCaption( _text ); } uno::Reference< excel::XFont > SAL_CALL -ScVbaCharacters::getFont() throw (css::uno::RuntimeException, std::exception) +ScVbaCharacters::getFont() { uno::Reference< beans::XPropertySet > xProps( m_xTextRange, uno::UNO_QUERY_THROW ); return uno::Reference< excel::XFont >( new ScVbaFont( this, mxContext, m_aPalette, xProps ) ); } void SAL_CALL -ScVbaCharacters::setFont( const uno::Reference< excel::XFont >& /*_font*/ ) throw (css::uno::RuntimeException, std::exception) +ScVbaCharacters::setFont( const uno::Reference< excel::XFont >& /*_font*/ ) { // #TODO #FIXME needs implementation, or can't be done? throw uno::RuntimeException("Not Implemented" ); @@ -91,13 +91,13 @@ ScVbaCharacters::setFont( const uno::Reference< excel::XFont >& /*_font*/ ) thro // Methods void SAL_CALL -ScVbaCharacters::Insert( const OUString& rString ) throw (css::uno::RuntimeException, std::exception) +ScVbaCharacters::Insert( const OUString& rString ) { m_xSimpleText->insertString( m_xTextRange, rString, bReplace ); } void SAL_CALL -ScVbaCharacters::Delete( ) throw (css::uno::RuntimeException, std::exception) +ScVbaCharacters::Delete( ) { // #FIXME #TODO is this a bit suspect?, I wonder should the contents // of the cell be deleted from the parent ( range ) |