diff options
Diffstat (limited to 'vbahelper/source/msforms/vbalabel.cxx')
-rw-r--r-- | vbahelper/source/msforms/vbalabel.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/vbahelper/source/msforms/vbalabel.cxx b/vbahelper/source/msforms/vbalabel.cxx index 4c9a723cce4a..6a1d78f496f1 100644 --- a/vbahelper/source/msforms/vbalabel.cxx +++ b/vbahelper/source/msforms/vbalabel.cxx @@ -24,22 +24,22 @@ using namespace com::sun::star; using namespace ooo::vba; -const static rtl::OUString LABEL( RTL_CONSTASCII_USTRINGPARAM("Label") ); +const static OUString LABEL( "Label" ); ScVbaLabel::ScVbaLabel( const css::uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< uno::XInterface >& xControl, const uno::Reference< frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper ) : LabelImpl_BASE( xParent, xContext, xControl, xModel, pGeomHelper ) { } // Attributes -rtl::OUString SAL_CALL +OUString SAL_CALL ScVbaLabel::getCaption() throw (css::uno::RuntimeException) { - rtl::OUString Label; + OUString Label; m_xProps->getPropertyValue( LABEL ) >>= Label; return Label; } void SAL_CALL -ScVbaLabel::setCaption( const rtl::OUString& _caption ) throw (::com::sun::star::uno::RuntimeException) +ScVbaLabel::setCaption( const OUString& _caption ) throw (::com::sun::star::uno::RuntimeException) { m_xProps->setPropertyValue( LABEL, uno::makeAny( _caption ) ); } @@ -52,20 +52,20 @@ ScVbaLabel::getValue() throw (css::uno::RuntimeException) void SAL_CALL ScVbaLabel::setValue( const uno::Any& _value ) throw (::com::sun::star::uno::RuntimeException) { - rtl::OUString sCaption; + OUString sCaption; _value >>= sCaption; setCaption( sCaption ); } -rtl::OUString SAL_CALL +OUString SAL_CALL ScVbaLabel::getAccelerator() throw (css::uno::RuntimeException) { // #STUB - return rtl::OUString(); + return OUString(); } void SAL_CALL -ScVbaLabel::setAccelerator( const rtl::OUString& /*_accelerator*/ ) throw (::com::sun::star::uno::RuntimeException) +ScVbaLabel::setAccelerator( const OUString& /*_accelerator*/ ) throw (::com::sun::star::uno::RuntimeException) { // #STUB } @@ -75,9 +75,9 @@ uno::Reference< msforms::XNewFont > SAL_CALL ScVbaLabel::getFont() throw (uno::R return new VbaNewFont( this, mxContext, m_xProps ); } -rtl::OUString ScVbaLabel::getServiceImplName() +OUString ScVbaLabel::getServiceImplName() { - return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ScVbaLabel")); + return OUString( "ScVbaLabel" ); } sal_Int32 SAL_CALL ScVbaLabel::getBackColor() throw (uno::RuntimeException) @@ -100,14 +100,14 @@ void SAL_CALL ScVbaLabel::setAutoSize( sal_Bool bAutoSize ) throw (uno::RuntimeE ScVbaControl::setAutoSize( bAutoSize ); } -uno::Sequence< rtl::OUString > +uno::Sequence< OUString > ScVbaLabel::getServiceNames() { - static uno::Sequence< rtl::OUString > aServiceNames; + static uno::Sequence< OUString > aServiceNames; if ( aServiceNames.getLength() == 0 ) { aServiceNames.realloc( 1 ); - aServiceNames[ 0 ] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ooo.vba.msforms.Label" ) ); + aServiceNames[ 0 ] = "ooo.vba.msforms.Label"; } return aServiceNames; } |