diff options
Diffstat (limited to 'sc/source/ui/vba/vbacharacters.cxx')
-rw-r--r-- | sc/source/ui/vba/vbacharacters.cxx | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sc/source/ui/vba/vbacharacters.cxx b/sc/source/ui/vba/vbacharacters.cxx index 011b0a4a72e1..5d12facad12b 100644 --- a/sc/source/ui/vba/vbacharacters.cxx +++ b/sc/source/ui/vba/vbacharacters.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -40,7 +40,7 @@ ScVbaCharacters::ScVbaCharacters( const uno::Reference< XHelperInterface >& xPar if ( nStart < 1 ) nStart = 1; // silently correct user error ( as ms ) nStart--; // OOo is 0 based - Length >>=nLength; + Length >>=nLength; uno::Reference< text::XTextCursor > xTextCursor( m_xSimpleText->createTextCursor(), uno::UNO_QUERY_THROW ); xTextCursor->collapseToStart(); if ( nStart ) @@ -58,41 +58,41 @@ ScVbaCharacters::ScVbaCharacters( const uno::Reference< XHelperInterface >& xPar } -::rtl::OUString SAL_CALL +::rtl::OUString SAL_CALL ScVbaCharacters::getCaption() throw (css::uno::RuntimeException) { return m_xTextRange->getString(); } -void SAL_CALL +void SAL_CALL ScVbaCharacters::setCaption( const ::rtl::OUString& _caption ) throw (css::uno::RuntimeException) { m_xTextRange->setString( _caption ); } -::sal_Int32 SAL_CALL +::sal_Int32 SAL_CALL ScVbaCharacters::getCount() throw (css::uno::RuntimeException) { - return getCaption().getLength(); + return getCaption().getLength(); } -::rtl::OUString SAL_CALL +::rtl::OUString SAL_CALL ScVbaCharacters::getText() throw (css::uno::RuntimeException) { return getCaption(); } -void SAL_CALL +void SAL_CALL ScVbaCharacters::setText( const ::rtl::OUString& _text ) throw (css::uno::RuntimeException) { setCaption( _text ); } -uno::Reference< excel::XFont > SAL_CALL -ScVbaCharacters::getFont() throw (css::uno::RuntimeException) +uno::Reference< excel::XFont > SAL_CALL +ScVbaCharacters::getFont() throw (css::uno::RuntimeException) { 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 +void SAL_CALL ScVbaCharacters::setFont( const uno::Reference< excel::XFont >& /*_font*/ ) throw (css::uno::RuntimeException) { // #TODO #FIXME needs implementation, or can't be done? @@ -101,29 +101,29 @@ ScVbaCharacters::setFont( const uno::Reference< excel::XFont >& /*_font*/ ) thro // Methods -void SAL_CALL +void SAL_CALL ScVbaCharacters::Insert( const ::rtl::OUString& String ) throw (css::uno::RuntimeException) { m_xSimpleText->insertString( m_xTextRange, String, bReplace ); } -void SAL_CALL +void SAL_CALL ScVbaCharacters::Delete( ) throw (css::uno::RuntimeException) { - // #FIXME #TODO is this a bit suspect?, I wonder should the contents + // #FIXME #TODO is this a bit suspect?, I wonder should the contents // of the cell be deleted from the parent ( range ) - m_xSimpleText->setString(rtl::OUString()); + m_xSimpleText->setString(rtl::OUString()); } -rtl::OUString& +rtl::OUString& ScVbaCharacters::getServiceImplName() { static rtl::OUString sImplName( RTL_CONSTASCII_USTRINGPARAM("ScVbaCharacters") ); return sImplName; } -uno::Sequence< rtl::OUString > +uno::Sequence< rtl::OUString > ScVbaCharacters::getServiceNames() { static uno::Sequence< rtl::OUString > aServiceNames; |