summaryrefslogtreecommitdiff
path: root/vbahelper/source/msforms/vbabutton.cxx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-09-07 00:13:30 -0300
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-09-08 20:50:41 +0000
commit0da7c6021f7c1da1bf242e72fca31b18c8182d3e (patch)
treeed69e0a0e144af1a0fa2d43edb7999b3e526923b /vbahelper/source/msforms/vbabutton.cxx
parent6ed2f211251a45c9653f80ad2e228a5ee83e17a8 (diff)
OUString cleanup in vbahelper/msforms
Change-Id: I834c5f1f26f941a5db84b677f34ffa686e0c2544 Reviewed-on: https://gerrit.libreoffice.org/578 Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br> Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
Diffstat (limited to 'vbahelper/source/msforms/vbabutton.cxx')
-rw-r--r--vbahelper/source/msforms/vbabutton.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/vbahelper/source/msforms/vbabutton.cxx b/vbahelper/source/msforms/vbabutton.cxx
index eb028e7db8ed..de1271072456 100644
--- a/vbahelper/source/msforms/vbabutton.cxx
+++ b/vbahelper/source/msforms/vbabutton.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" );
ScVbaButton::ScVbaButton( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< uno::XInterface >& xControl, const uno::Reference< frame::XModel >& xModel, AbstractGeometryAttributes* pGeomHelper ) : ButtonImpl_BASE( xParent, xContext, xControl, xModel, pGeomHelper )
{
}
// Attributes
-rtl::OUString SAL_CALL
+OUString SAL_CALL
ScVbaButton::getCaption() throw (css::uno::RuntimeException)
{
- rtl::OUString Label;
+ OUString Label;
m_xProps->getPropertyValue( LABEL ) >>= Label;
return Label;
}
void SAL_CALL
-ScVbaButton::setCaption( const rtl::OUString& _caption ) throw (::com::sun::star::uno::RuntimeException)
+ScVbaButton::setCaption( const OUString& _caption ) throw (::com::sun::star::uno::RuntimeException)
{
m_xProps->setPropertyValue( LABEL, uno::makeAny( _caption ) );
}
@@ -110,20 +110,20 @@ uno::Reference< msforms::XNewFont > SAL_CALL ScVbaButton::getFont() throw (uno::
return new VbaNewFont( this, mxContext, m_xProps );
}
-rtl::OUString
+OUString
ScVbaButton::getServiceImplName()
{
- return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ScVbaButton"));
+ return OUString("ScVbaButton");
}
-uno::Sequence< rtl::OUString >
+uno::Sequence< OUString >
ScVbaButton::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.Button" ) );
+ aServiceNames[ 0 ] = "ooo.vba.msforms.Button";
}
return aServiceNames;
}