summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/dialogcontrol.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-12 12:23:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-12 12:23:58 +0100
commit45fe77164c90cf15b78cd8b99adc043e2dd26be1 (patch)
treec1b55843aebe28b167c087b51e7ba110180cf600 /toolkit/source/controls/dialogcontrol.cxx
parente965798caf75054d8fc826a4cfa33524cbbcec42 (diff)
toolkit: Use appropriate OUString functions on string constants
Change-Id: I3bb1e560eb325046f5b170da0c4c46c1139f3225
Diffstat (limited to 'toolkit/source/controls/dialogcontrol.cxx')
-rw-r--r--toolkit/source/controls/dialogcontrol.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/toolkit/source/controls/dialogcontrol.cxx b/toolkit/source/controls/dialogcontrol.cxx
index 95592918e520..eae95dab7ed7 100644
--- a/toolkit/source/controls/dialogcontrol.cxx
+++ b/toolkit/source/controls/dialogcontrol.cxx
@@ -899,7 +899,7 @@ UnoMultiPageModel::Clone() const
OUString UnoMultiPageModel::getServiceName() throw(::com::sun::star::uno::RuntimeException, std::exception)
{
- return OUString::createFromAscii( szServiceName_UnoMultiPageModel );
+ return OUString( "com.sun.star.awt.UnoMultiPageModel" );
}
uno::Any UnoMultiPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
@@ -907,7 +907,7 @@ uno::Any UnoMultiPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
if ( nPropId == BASEPROPERTY_DEFAULTCONTROL )
{
uno::Any aAny;
- aAny <<= OUString::createFromAscii( szServiceName_UnoMultiPageControl );
+ aAny <<= OUString( "com.sun.star.awt.UnoControlMultiPage" );
return aAny;
}
return ControlModelContainerBase::ImplGetDefaultValue( nPropId );
@@ -940,7 +940,7 @@ void UnoMultiPageModel::insertByName( const OUString& aName, const Any& aElement
throw IllegalArgumentException();
// Only a Page model can be inserted into the multipage
- if ( !xInfo->supportsService( OUString::createFromAscii( szServiceName_UnoPageModel ) ) )
+ if ( !xInfo->supportsService( "com.sun.star.awt.UnoPageModel" ) )
throw IllegalArgumentException();
return ControlModelContainerBase::insertByName( aName, aElement );
@@ -1019,7 +1019,7 @@ UnoPageModel::Clone() const
OUString UnoPageModel::getServiceName() throw(::com::sun::star::uno::RuntimeException, std::exception)
{
- return OUString::createFromAscii( szServiceName_UnoPageModel );
+ return OUString( "com.sun.star.awt.UnoPageModel" );
}
uno::Any UnoPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
@@ -1027,7 +1027,7 @@ uno::Any UnoPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
if ( nPropId == BASEPROPERTY_DEFAULTCONTROL )
{
uno::Any aAny;
- aAny <<= OUString::createFromAscii( szServiceName_UnoPageControl );
+ aAny <<= OUString( "com.sun.star.awt.UnoControlPage" );
return aAny;
}
return ControlModelContainerBase::ImplGetDefaultValue( nPropId );
@@ -1184,7 +1184,7 @@ UnoFrameModel::Clone() const
OUString UnoFrameModel::getServiceName() throw(::com::sun::star::uno::RuntimeException, std::exception)
{
- return OUString::createFromAscii( szServiceName_UnoFrameModel );
+ return OUString( "com.sun.star.awt.UnoFrameModel" );
}
uno::Any UnoFrameModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
@@ -1194,7 +1194,7 @@ uno::Any UnoFrameModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
{
case BASEPROPERTY_DEFAULTCONTROL:
{
- aAny <<= OUString::createFromAscii( szServiceName_UnoFrameControl );
+ aAny <<= OUString( "com.sun.star.awt.UnoControlFrame" );
return aAny;
}
case BASEPROPERTY_SCROLLWIDTH: