diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-04-07 12:06:47 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-04-07 14:23:11 +0200 |
commit | 1946794ae09ba732022fe6a74ea45e304ab70b84 (patch) | |
tree | e32bd7ba61fa021ecc7f8c85959df8ca837d6e81 /toolkit/source | |
parent | 5b08c6e7a21dda94d5b755eea0b1ed1e9c199bec (diff) |
mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).
Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
Diffstat (limited to 'toolkit/source')
60 files changed, 899 insertions, 905 deletions
diff --git a/toolkit/source/awt/animatedimagespeer.cxx b/toolkit/source/awt/animatedimagespeer.cxx index 00e7d127b338..49f944948cca 100644 --- a/toolkit/source/awt/animatedimagespeer.cxx +++ b/toolkit/source/awt/animatedimagespeer.cxx @@ -73,7 +73,7 @@ namespace toolkit //================================================================================================================== struct CachedImage { - ::rtl::OUString sImageURL; + OUString sImageURL; mutable Reference< XGraphic > xGraphic; CachedImage() @@ -82,7 +82,7 @@ namespace toolkit { } - CachedImage( ::rtl::OUString const& i_imageURL ) + CachedImage( OUString const& i_imageURL ) :sImageURL( i_imageURL ) ,xGraphic() { @@ -107,7 +107,7 @@ namespace toolkit namespace { //-------------------------------------------------------------------------------------------------------------- - ::rtl::OUString lcl_getHighContrastURL( ::rtl::OUString const& i_imageURL ) + OUString lcl_getHighContrastURL( OUString const& i_imageURL ) { INetURLObject aURL( i_imageURL ); if ( aURL.GetProtocol() != INET_PROT_PRIV_SOFFICE ) @@ -120,7 +120,7 @@ namespace toolkit const sal_Int32 separatorPos = i_imageURL.indexOf( '/' ); ENSURE_OR_RETURN( separatorPos != -1, "lcl_getHighContrastURL: unsipported URL scheme - cannot automatically determine HC version!", i_imageURL ); - ::rtl::OUStringBuffer composer; + OUStringBuffer composer; composer.append( i_imageURL.copy( 0, separatorPos ) ); composer.appendAscii( "/hicontrast" ); composer.append( i_imageURL.copy( separatorPos ) ); @@ -168,7 +168,7 @@ namespace toolkit } //-------------------------------------------------------------------------------------------------------------- - void lcl_init( Sequence< ::rtl::OUString > const& i_imageURLs, ::std::vector< CachedImage >& o_images ) + void lcl_init( Sequence< OUString > const& i_imageURLs, ::std::vector< CachedImage >& o_images ) { o_images.resize(0); size_t count = size_t( i_imageURLs.getLength() ); @@ -277,7 +277,7 @@ namespace toolkit i_data.aCachedImageSets.resize(0); for ( sal_Int32 set = 0; set < nImageSetCount; ++set ) { - const Sequence< ::rtl::OUString > aImageURLs( i_images->getImageSet( set ) ); + const Sequence< OUString > aImageURLs( i_images->getImageSet( set ) ); ::std::vector< CachedImage > aImages; lcl_init( aImageURLs, aImages ); i_data.aCachedImageSets.push_back( aImages ); @@ -336,7 +336,7 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - void SAL_CALL AnimatedImagesPeer::setProperty( const ::rtl::OUString& i_propertyName, const Any& i_value ) throw(RuntimeException) + void SAL_CALL AnimatedImagesPeer::setProperty( const OUString& i_propertyName, const Any& i_value ) throw(RuntimeException) { SolarMutexGuard aGuard; @@ -383,7 +383,7 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - Any SAL_CALL AnimatedImagesPeer::getProperty( const ::rtl::OUString& i_propertyName ) throw(RuntimeException) + Any SAL_CALL AnimatedImagesPeer::getProperty( const OUString& i_propertyName ) throw(RuntimeException) { SolarMutexGuard aGuard; @@ -455,7 +455,7 @@ namespace toolkit lcl_updateImageList_nothrow( *m_pData, xAnimatedImages ); } - Sequence< ::rtl::OUString > aImageURLs; + Sequence< OUString > aImageURLs; OSL_VERIFY( i_event.Element >>= aImageURLs ); ::std::vector< CachedImage > aImages; lcl_init( aImageURLs, aImages ); @@ -497,7 +497,7 @@ namespace toolkit lcl_updateImageList_nothrow( *m_pData, xAnimatedImages ); } - Sequence< ::rtl::OUString > aImageURLs; + Sequence< OUString > aImageURLs; OSL_VERIFY( i_event.Element >>= aImageURLs ); ::std::vector< CachedImage > aImages; lcl_init( aImageURLs, aImages ); diff --git a/toolkit/source/awt/asynccallback.cxx b/toolkit/source/awt/asynccallback.cxx index 939757ff7373..1f30e8fd598a 100644 --- a/toolkit/source/awt/asynccallback.cxx +++ b/toolkit/source/awt/asynccallback.cxx @@ -32,8 +32,8 @@ namespace comp_AsyncCallback { // component and service helper functions: -::rtl::OUString SAL_CALL _getImplementationName(); -css::uno::Sequence< ::rtl::OUString > SAL_CALL _getSupportedServiceNames(); +OUString SAL_CALL _getImplementationName(); +css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames(); css::uno::Reference< css::uno::XInterface > SAL_CALL _create( css::uno::Reference< css::uno::XComponentContext > const & context ); } // closing component helper namespace @@ -52,9 +52,9 @@ public: explicit AsyncCallback(css::uno::Reference< css::uno::XComponentContext > const & context); // ::com::sun::star::lang::XServiceInfo: - virtual ::rtl::OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException); - virtual ::sal_Bool SAL_CALL supportsService(const ::rtl::OUString & ServiceName) throw (css::uno::RuntimeException); - virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException); + virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException); + virtual ::sal_Bool SAL_CALL supportsService(const OUString & ServiceName) throw (css::uno::RuntimeException); + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException); // ::com::sun::star::awt::XRequestCallback: virtual void SAL_CALL addCallback(const css::uno::Reference< css::awt::XCallback > & xCallback, const ::com::sun::star::uno::Any & aData) throw (css::uno::RuntimeException); @@ -85,14 +85,14 @@ AsyncCallback::AsyncCallback(css::uno::Reference< css::uno::XComponentContext > {} // com.sun.star.uno.XServiceInfo: -::rtl::OUString SAL_CALL AsyncCallback::getImplementationName() throw (css::uno::RuntimeException) +OUString SAL_CALL AsyncCallback::getImplementationName() throw (css::uno::RuntimeException) { return comp_AsyncCallback::_getImplementationName(); } -::sal_Bool SAL_CALL AsyncCallback::supportsService(::rtl::OUString const & serviceName) throw (css::uno::RuntimeException) +::sal_Bool SAL_CALL AsyncCallback::supportsService(OUString const & serviceName) throw (css::uno::RuntimeException) { - const css::uno::Sequence< ::rtl::OUString > serviceNames = comp_AsyncCallback::_getSupportedServiceNames(); + const css::uno::Sequence< OUString > serviceNames = comp_AsyncCallback::_getSupportedServiceNames(); for (::sal_Int32 i = 0; i < serviceNames.getLength(); ++i) { if (serviceNames[i] == serviceName) return sal_True; @@ -100,7 +100,7 @@ AsyncCallback::AsyncCallback(css::uno::Reference< css::uno::XComponentContext > return sal_False; } -css::uno::Sequence< ::rtl::OUString > SAL_CALL AsyncCallback::getSupportedServiceNames() throw (css::uno::RuntimeException) +css::uno::Sequence< OUString > SAL_CALL AsyncCallback::getSupportedServiceNames() throw (css::uno::RuntimeException) { return comp_AsyncCallback::_getSupportedServiceNames(); } diff --git a/toolkit/source/awt/vclxaccessiblecomponent.cxx b/toolkit/source/awt/vclxaccessiblecomponent.cxx index 325b15110eda..1edab68f08b7 100644 --- a/toolkit/source/awt/vclxaccessiblecomponent.cxx +++ b/toolkit/source/awt/vclxaccessiblecomponent.cxx @@ -95,26 +95,26 @@ VCLXAccessibleComponent::~VCLXAccessibleComponent() IMPLEMENT_FORWARD_XINTERFACE3( VCLXAccessibleComponent, AccessibleExtendedComponentHelper_BASE, OAccessibleImplementationAccess, VCLXAccessibleComponent_BASE ) IMPLEMENT_FORWARD_XTYPEPROVIDER3( VCLXAccessibleComponent, AccessibleExtendedComponentHelper_BASE, OAccessibleImplementationAccess, VCLXAccessibleComponent_BASE ) -::rtl::OUString VCLXAccessibleComponent::getImplementationName() throw (uno::RuntimeException) +OUString VCLXAccessibleComponent::getImplementationName() throw (uno::RuntimeException) { - return ::rtl::OUString("com.sun.star.comp.toolkit.AccessibleWindow"); + return OUString("com.sun.star.comp.toolkit.AccessibleWindow"); } -sal_Bool VCLXAccessibleComponent::supportsService( const ::rtl::OUString& rServiceName ) throw (uno::RuntimeException) +sal_Bool VCLXAccessibleComponent::supportsService( const OUString& rServiceName ) throw (uno::RuntimeException) { - uno::Sequence< ::rtl::OUString > aNames( getSupportedServiceNames() ); - const ::rtl::OUString* pNames = aNames.getConstArray(); - const ::rtl::OUString* pEnd = pNames + aNames.getLength(); + uno::Sequence< OUString > aNames( getSupportedServiceNames() ); + const OUString* pNames = aNames.getConstArray(); + const OUString* pEnd = pNames + aNames.getLength(); for ( ; pNames != pEnd && !pNames->equals( rServiceName ); ++pNames ) ; return pNames != pEnd; } -uno::Sequence< ::rtl::OUString > VCLXAccessibleComponent::getSupportedServiceNames() throw (uno::RuntimeException) +uno::Sequence< OUString > VCLXAccessibleComponent::getSupportedServiceNames() throw (uno::RuntimeException) { - uno::Sequence< ::rtl::OUString > aNames(1); - aNames[0] = ::rtl::OUString("com.sun.star.awt.AccessibleWindow"); + uno::Sequence< OUString > aNames(1); + aNames[0] = OUString("com.sun.star.awt.AccessibleWindow"); return aNames; } @@ -332,8 +332,8 @@ void VCLXAccessibleComponent::ProcessWindowEvent( const VclWindowEvent& rVclWind break; case VCLEVENT_WINDOW_FRAMETITLECHANGED: { - ::rtl::OUString aOldName( *((::rtl::OUString*) rVclWindowEvent.GetData()) ); - ::rtl::OUString aNewName( getAccessibleName() ); + OUString aOldName( *((OUString*) rVclWindowEvent.GetData()) ); + OUString aNewName( getAccessibleName() ); aOldValue <<= aOldName; aNewValue <<= aNewName; NotifyAccessibleEvent( accessibility::AccessibleEventId::NAME_CHANGED, aOldValue, aNewValue ); @@ -668,11 +668,11 @@ sal_Int16 VCLXAccessibleComponent::getAccessibleRole( ) throw (uno::RuntimeExce return nRole; } -::rtl::OUString VCLXAccessibleComponent::getAccessibleDescription( ) throw (uno::RuntimeException) +OUString VCLXAccessibleComponent::getAccessibleDescription( ) throw (uno::RuntimeException) { OExternalLockGuard aGuard( this ); - ::rtl::OUString aDescription; + OUString aDescription; if ( GetWindow() ) aDescription = GetWindow()->GetAccessibleDescription(); @@ -680,18 +680,18 @@ sal_Int16 VCLXAccessibleComponent::getAccessibleRole( ) throw (uno::RuntimeExce return aDescription; } -::rtl::OUString VCLXAccessibleComponent::getAccessibleName( ) throw (uno::RuntimeException) +OUString VCLXAccessibleComponent::getAccessibleName( ) throw (uno::RuntimeException) { OExternalLockGuard aGuard( this ); - ::rtl::OUString aName; + OUString aName; if ( GetWindow() ) { aName = GetWindow()->GetAccessibleName(); #if OSL_DEBUG_LEVEL > 1 - aName += rtl::OUString(" (Type = "); - aName += rtl::OUString::valueOf(static_cast<sal_Int32>(GetWindow()->GetType())); - aName += rtl::OUString( ")"); + aName += OUString(" (Type = "); + aName += OUString::valueOf(static_cast<sal_Int32>(GetWindow()->GetType())); + aName += OUString( ")"); #endif } return aName; @@ -896,22 +896,22 @@ uno::Reference< awt::XFont > SAL_CALL VCLXAccessibleComponent::getFont( ) throw return xFont; } -::rtl::OUString SAL_CALL VCLXAccessibleComponent::getTitledBorderText( ) throw (uno::RuntimeException) +OUString SAL_CALL VCLXAccessibleComponent::getTitledBorderText( ) throw (uno::RuntimeException) { OExternalLockGuard aGuard( this ); - ::rtl::OUString sRet; + OUString sRet; if ( GetWindow() ) sRet = GetWindow()->GetText(); return sRet; } -::rtl::OUString SAL_CALL VCLXAccessibleComponent::getToolTipText( ) throw (uno::RuntimeException) +OUString SAL_CALL VCLXAccessibleComponent::getToolTipText( ) throw (uno::RuntimeException) { OExternalLockGuard aGuard( this ); - ::rtl::OUString sRet; + OUString sRet; if ( GetWindow() ) sRet = GetWindow()->GetQuickHelpText(); diff --git a/toolkit/source/awt/vclxcontainer.cxx b/toolkit/source/awt/vclxcontainer.cxx index ead5d8602594..d82381b6acaa 100644 --- a/toolkit/source/awt/vclxcontainer.cxx +++ b/toolkit/source/awt/vclxcontainer.cxx @@ -225,7 +225,7 @@ void VCLXContainer::setGroup( const ::com::sun::star::uno::Sequence< ::com::sun: } void SAL_CALL VCLXContainer::setProperty( - const ::rtl::OUString& PropertyName, + const OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException) { diff --git a/toolkit/source/awt/vclxfont.cxx b/toolkit/source/awt/vclxfont.cxx index 108d4cbd8151..01ef619fdd11 100644 --- a/toolkit/source/awt/vclxfont.cxx +++ b/toolkit/source/awt/vclxfont.cxx @@ -118,7 +118,7 @@ sal_Int16 VCLXFont::getCharWidth( sal_Unicode c ) throw(::com::sun::star::uno::R pOutDev->SetFont( maFont ); nRet = sal::static_int_cast< sal_Int16 >( - pOutDev->GetTextWidth( rtl::OUString(c) )); + pOutDev->GetTextWidth( OUString(c) )); pOutDev->SetFont( aOldFont ); } @@ -142,7 +142,7 @@ sal_Int16 VCLXFont::getCharWidth( sal_Unicode c ) throw(::com::sun::star::uno::R { aSeq.getArray()[n] = sal::static_int_cast< sal_Int16 >( pOutDev->GetTextWidth( - rtl::OUString(static_cast< sal_Unicode >(nFirst+n)) )); + OUString(static_cast< sal_Unicode >(nFirst+n)) )); } pOutDev->SetFont( aOldFont ); @@ -150,7 +150,7 @@ sal_Int16 VCLXFont::getCharWidth( sal_Unicode c ) throw(::com::sun::star::uno::R return aSeq; } -sal_Int32 VCLXFont::getStringWidth( const ::rtl::OUString& str ) throw(::com::sun::star::uno::RuntimeException) +sal_Int32 VCLXFont::getStringWidth( const OUString& str ) throw(::com::sun::star::uno::RuntimeException) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); @@ -166,7 +166,7 @@ sal_Int32 VCLXFont::getStringWidth( const ::rtl::OUString& str ) throw(::com::su return nRet; } -sal_Int32 VCLXFont::getStringWidthArray( const ::rtl::OUString& str, ::com::sun::star::uno::Sequence< sal_Int32 >& rDXArray ) throw(::com::sun::star::uno::RuntimeException) +sal_Int32 VCLXFont::getStringWidthArray( const OUString& str, ::com::sun::star::uno::Sequence< sal_Int32 >& rDXArray ) throw(::com::sun::star::uno::RuntimeException) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); @@ -189,7 +189,7 @@ void VCLXFont::getKernPairs( ::com::sun::star::uno::Sequence< sal_Unicode >& /*r } // ::com::sun::star::awt::XFont2 -sal_Bool VCLXFont::hasGlyphs( const ::rtl::OUString& aText ) +sal_Bool VCLXFont::hasGlyphs( const OUString& aText ) throw(::com::sun::star::uno::RuntimeException) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); diff --git a/toolkit/source/awt/vclxgraphics.cxx b/toolkit/source/awt/vclxgraphics.cxx index ae8e9b62d336..92e0ff3815bf 100644 --- a/toolkit/source/awt/vclxgraphics.cxx +++ b/toolkit/source/awt/vclxgraphics.cxx @@ -448,7 +448,7 @@ void VCLXGraphics::drawGradient( sal_Int32 x, sal_Int32 y, sal_Int32 width, sal_ } } -void VCLXGraphics::drawText( sal_Int32 x, sal_Int32 y, const ::rtl::OUString& rText ) throw(::com::sun::star::uno::RuntimeException) +void VCLXGraphics::drawText( sal_Int32 x, sal_Int32 y, const OUString& rText ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -459,7 +459,7 @@ void VCLXGraphics::drawText( sal_Int32 x, sal_Int32 y, const ::rtl::OUString& rT } } -void VCLXGraphics::drawTextArray( sal_Int32 x, sal_Int32 y, const ::rtl::OUString& rText, const ::com::sun::star::uno::Sequence< sal_Int32 >& rLongs ) throw(::com::sun::star::uno::RuntimeException) +void VCLXGraphics::drawTextArray( sal_Int32 x, sal_Int32 y, const OUString& rText, const ::com::sun::star::uno::Sequence< sal_Int32 >& rLongs ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; diff --git a/toolkit/source/awt/vclxmenu.cxx b/toolkit/source/awt/vclxmenu.cxx index 3e5df7f09371..7157af61d0c1 100644 --- a/toolkit/source/awt/vclxmenu.cxx +++ b/toolkit/source/awt/vclxmenu.cxx @@ -220,27 +220,27 @@ throw (::com::sun::star::uno::RuntimeException) } -::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL VCLXMenu::getSupportedServiceNames( ) +::com::sun::star::uno::Sequence< OUString > SAL_CALL VCLXMenu::getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException) { ::osl::ResettableGuard < ::osl::Mutex > aGuard( GetMutex() ); const sal_Bool bIsPopupMenu = IsPopupMenu(); aGuard.clear(); - ::com::sun::star::uno::Sequence< ::rtl::OUString > aNames( 1 ); + ::com::sun::star::uno::Sequence< OUString > aNames( 1 ); if ( bIsPopupMenu ) - aNames[ 0 ] = ::rtl::OUString::createFromAscii( szServiceName2_PopupMenu ); + aNames[ 0 ] = OUString::createFromAscii( szServiceName2_PopupMenu ); else - aNames[ 0 ] = ::rtl::OUString::createFromAscii( szServiceName2_MenuBar ); + aNames[ 0 ] = OUString::createFromAscii( szServiceName2_MenuBar ); return aNames; } -::sal_Bool SAL_CALL VCLXMenu::supportsService( const ::rtl::OUString& rServiceName ) +::sal_Bool SAL_CALL VCLXMenu::supportsService( const OUString& rServiceName ) throw (::com::sun::star::uno::RuntimeException) { - ::com::sun::star::uno::Sequence< ::rtl::OUString > aServiceNames( getSupportedServiceNames() ); + ::com::sun::star::uno::Sequence< OUString > aServiceNames( getSupportedServiceNames() ); if ( aServiceNames[ 0 ] == rServiceName ) return sal_True; @@ -401,7 +401,7 @@ void VCLXMenu::removeMenuListener( const ::com::sun::star::uno::Reference< ::com maMenuListeners.removeInterface( rxListener ); } -void VCLXMenu::insertItem( sal_Int16 nItemId, const ::rtl::OUString& aText, sal_Int16 nItemStyle, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException) +void VCLXMenu::insertItem( sal_Int16 nItemId, const OUString& aText, sal_Int16 nItemStyle, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aSolarGuard; ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); @@ -466,7 +466,7 @@ sal_Bool VCLXMenu::isItemEnabled( sal_Int16 nItemId ) throw(::com::sun::star::un return mpMenu ? mpMenu->IsItemEnabled( nItemId ) : sal_False; } -void VCLXMenu::setItemText( sal_Int16 nItemId, const ::rtl::OUString& aText ) throw(::com::sun::star::uno::RuntimeException) +void VCLXMenu::setItemText( sal_Int16 nItemId, const OUString& aText ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aSolarGuard; ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); @@ -475,12 +475,12 @@ void VCLXMenu::setItemText( sal_Int16 nItemId, const ::rtl::OUString& aText ) th mpMenu->SetItemText( nItemId, aText ); } -::rtl::OUString VCLXMenu::getItemText( sal_Int16 nItemId ) throw(::com::sun::star::uno::RuntimeException) +OUString VCLXMenu::getItemText( sal_Int16 nItemId ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aSolarGuard; ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); - ::rtl::OUString aItemText; + OUString aItemText; if ( mpMenu ) aItemText = mpMenu->GetItemText( nItemId ); return aItemText; @@ -590,7 +590,7 @@ sal_Int16 VCLXMenu::execute( const ::com::sun::star::uno::Reference< ::com::sun: } -void SAL_CALL VCLXMenu::setCommand( sal_Int16 nItemId, const ::rtl::OUString& aCommand ) throw (::com::sun::star::uno::RuntimeException) +void SAL_CALL VCLXMenu::setCommand( sal_Int16 nItemId, const OUString& aCommand ) throw (::com::sun::star::uno::RuntimeException) { SolarMutexGuard aSolarGuard; ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); @@ -599,18 +599,18 @@ void SAL_CALL VCLXMenu::setCommand( sal_Int16 nItemId, const ::rtl::OUString& aC mpMenu->SetItemCommand( nItemId, aCommand ); } -::rtl::OUString SAL_CALL VCLXMenu::getCommand( sal_Int16 nItemId ) throw (::com::sun::star::uno::RuntimeException) +OUString SAL_CALL VCLXMenu::getCommand( sal_Int16 nItemId ) throw (::com::sun::star::uno::RuntimeException) { SolarMutexGuard aSolarGuard; ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); - ::rtl::OUString aItemCommand; + OUString aItemCommand; if ( mpMenu ) aItemCommand = mpMenu->GetItemCommand( nItemId ); return aItemCommand; } -void SAL_CALL VCLXMenu::setHelpCommand( sal_Int16 nItemId, const ::rtl::OUString& aHelp ) throw (::com::sun::star::uno::RuntimeException) +void SAL_CALL VCLXMenu::setHelpCommand( sal_Int16 nItemId, const OUString& aHelp ) throw (::com::sun::star::uno::RuntimeException) { SolarMutexGuard aSolarGuard; ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); @@ -619,12 +619,12 @@ void SAL_CALL VCLXMenu::setHelpCommand( sal_Int16 nItemId, const ::rtl::OUString mpMenu->SetHelpCommand( nItemId, aHelp ); } -::rtl::OUString SAL_CALL VCLXMenu::getHelpCommand( sal_Int16 nItemId ) throw (::com::sun::star::uno::RuntimeException) +OUString SAL_CALL VCLXMenu::getHelpCommand( sal_Int16 nItemId ) throw (::com::sun::star::uno::RuntimeException) { SolarMutexGuard aSolarGuard; ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); - ::rtl::OUString aHelpCommand; + OUString aHelpCommand; if ( mpMenu ) aHelpCommand = mpMenu->GetHelpCommand( nItemId ); return aHelpCommand; @@ -895,7 +895,7 @@ throw ( ::com::sun::star::container::NoSuchElementException, } -void SAL_CALL VCLXMenu::setHelpText( ::sal_Int16 nItemId, const ::rtl::OUString& sHelpText ) +void SAL_CALL VCLXMenu::setHelpText( ::sal_Int16 nItemId, const OUString& sHelpText ) throw ( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException) { @@ -910,14 +910,14 @@ throw ( ::com::sun::star::container::NoSuchElementException, } -::rtl::OUString SAL_CALL VCLXMenu::getHelpText( ::sal_Int16 nItemId ) +OUString SAL_CALL VCLXMenu::getHelpText( ::sal_Int16 nItemId ) throw ( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException) { SolarMutexGuard aSolarGuard; ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); - rtl::OUString sHelpText; + OUString sHelpText; if ( mpMenu && IsPopupMenu() ) { THROW_MENUITEM_NOT_FOUND( "VCLXMenu::getHelpText()", nItemId ) @@ -928,7 +928,7 @@ throw ( ::com::sun::star::container::NoSuchElementException, } -void SAL_CALL VCLXMenu::setTipHelpText( ::sal_Int16 nItemId, const ::rtl::OUString& sTipHelpText ) +void SAL_CALL VCLXMenu::setTipHelpText( ::sal_Int16 nItemId, const OUString& sTipHelpText ) throw ( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException) { @@ -943,14 +943,14 @@ throw ( ::com::sun::star::container::NoSuchElementException, } -::rtl::OUString SAL_CALL VCLXMenu::getTipHelpText( ::sal_Int16 nItemId ) +OUString SAL_CALL VCLXMenu::getTipHelpText( ::sal_Int16 nItemId ) throw ( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException) { SolarMutexGuard aSolarGuard; ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); - rtl::OUString sTipHelpText; + OUString sTipHelpText; if ( mpMenu && IsPopupMenu() ) { THROW_MENUITEM_NOT_FOUND( "VCLXMenu::getTipHelpText()", nItemId ) diff --git a/toolkit/source/awt/vclxprinter.cxx b/toolkit/source/awt/vclxprinter.cxx index af673d433987..a682157477e4 100644 --- a/toolkit/source/awt/vclxprinter.cxx +++ b/toolkit/source/awt/vclxprinter.cxx @@ -49,8 +49,8 @@ { static ::com::sun::star::beans::Property aPropTable[] = { - ::com::sun::star::beans::Property( ::rtl::OUString("Orientation"), PROPERTY_Orientation, ::getCppuType((const sal_Int16*)0), 0 ), - ::com::sun::star::beans::Property( ::rtl::OUString("Horizontal"), PROPERTY_Horizontal, ::getBooleanCppuType(), 0 ) + ::com::sun::star::beans::Property( OUString("Orientation"), PROPERTY_Orientation, ::getCppuType((const sal_Int16*)0), 0 ), + ::com::sun::star::beans::Property( OUString("Horizontal"), PROPERTY_Horizontal, ::getBooleanCppuType(), 0 ) }; pProperties = aPropTable; nElements = sizeof( aPropTable ) / sizeof( ::com::sun::star::beans::Property ); @@ -242,7 +242,7 @@ void VCLXPrinterPropertySet::setHorizontal( sal_Bool bHorizontal ) throw(::com:: return aDescriptions; } -void VCLXPrinterPropertySet::selectForm( const ::rtl::OUString& rFormDescription ) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) +void VCLXPrinterPropertySet::selectForm( const OUString& rFormDescription ) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) { ::osl::MutexGuard aGuard( Mutex ); @@ -309,7 +309,7 @@ IMPL_XTYPEPROVIDER_START( VCLXPrinter ) VCLXPrinterPropertySet::getTypes() IMPL_XTYPEPROVIDER_END -sal_Bool VCLXPrinter::start( const ::rtl::OUString& /*rJobName*/, sal_Int16 /*nCopies*/, sal_Bool /*bCollate*/ ) throw(::com::sun::star::awt::PrinterException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) +sal_Bool VCLXPrinter::start( const OUString& /*rJobName*/, sal_Int16 /*nCopies*/, sal_Bool /*bCollate*/ ) throw(::com::sun::star::awt::PrinterException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) { ::osl::MutexGuard aGuard( Mutex ); @@ -420,26 +420,26 @@ IMPL_XTYPEPROVIDER_START( VCLXPrinterServer ) IMPL_XTYPEPROVIDER_END // ::com::sun::star::awt::XPrinterServer -::com::sun::star::uno::Sequence< ::rtl::OUString > VCLXPrinterServer::getPrinterNames( ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Sequence< OUString > VCLXPrinterServer::getPrinterNames( ) throw(::com::sun::star::uno::RuntimeException) { - const std::vector<rtl::OUString>& rQueues = Printer::GetPrinterQueues(); + const std::vector<OUString>& rQueues = Printer::GetPrinterQueues(); sal_uInt32 nPrinters = rQueues.size(); - ::com::sun::star::uno::Sequence< ::rtl::OUString > aNames( nPrinters ); + ::com::sun::star::uno::Sequence< OUString > aNames( nPrinters ); for ( sal_uInt32 n = 0; n < nPrinters; n++ ) aNames.getArray()[n] = rQueues[n]; return aNames; } -::com::sun::star::uno::Reference< ::com::sun::star::awt::XPrinter > VCLXPrinterServer::createPrinter( const ::rtl::OUString& rPrinterName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Reference< ::com::sun::star::awt::XPrinter > VCLXPrinterServer::createPrinter( const OUString& rPrinterName ) throw(::com::sun::star::uno::RuntimeException) { ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPrinter > xP; xP = new VCLXPrinter( rPrinterName ); return xP; } -::com::sun::star::uno::Reference< ::com::sun::star::awt::XInfoPrinter > VCLXPrinterServer::createInfoPrinter( const ::rtl::OUString& rPrinterName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Reference< ::com::sun::star::awt::XInfoPrinter > VCLXPrinterServer::createInfoPrinter( const OUString& rPrinterName ) throw(::com::sun::star::uno::RuntimeException) { ::com::sun::star::uno::Reference< ::com::sun::star::awt::XInfoPrinter > xP; xP = new VCLXInfoPrinter( rPrinterName ); diff --git a/toolkit/source/awt/vclxspinbutton.cxx b/toolkit/source/awt/vclxspinbutton.cxx index f3384dee5145..a34b8f4a3614 100644 --- a/toolkit/source/awt/vclxspinbutton.cxx +++ b/toolkit/source/awt/vclxspinbutton.cxx @@ -242,7 +242,7 @@ namespace toolkit } //-------------------------------------------------------------------- - void SAL_CALL VCLXSpinButton::setProperty( const ::rtl::OUString& PropertyName, const Any& Value ) throw(RuntimeException) + void SAL_CALL VCLXSpinButton::setProperty( const OUString& PropertyName, const Any& Value ) throw(RuntimeException) { SolarMutexGuard aGuard; @@ -292,7 +292,7 @@ namespace toolkit } //-------------------------------------------------------------------- - Any SAL_CALL VCLXSpinButton::getProperty( const ::rtl::OUString& PropertyName ) throw(RuntimeException) + Any SAL_CALL VCLXSpinButton::getProperty( const OUString& PropertyName ) throw(RuntimeException) { SolarMutexGuard aGuard; diff --git a/toolkit/source/awt/vclxtabpagecontainer.cxx b/toolkit/source/awt/vclxtabpagecontainer.cxx index 91c8708c82a6..928b4bd3d63d 100644 --- a/toolkit/source/awt/vclxtabpagecontainer.cxx +++ b/toolkit/source/awt/vclxtabpagecontainer.cxx @@ -28,7 +28,6 @@ #include <toolkit/helper/tkresmgr.hxx> #include <cppuhelper/typeprovider.hxx> -using ::rtl::OUString; using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -84,7 +83,7 @@ void SAL_CALL VCLXTabPageContainer::draw( sal_Int32 nX, sal_Int32 nY ) throw(Run return aInfo; } -void SAL_CALL VCLXTabPageContainer::setProperty(const ::rtl::OUString& PropertyName, const Any& Value ) throw(RuntimeException) +void SAL_CALL VCLXTabPageContainer::setProperty(const OUString& PropertyName, const Any& Value ) throw(RuntimeException) { SolarMutexGuard aGuard; diff --git a/toolkit/source/awt/vclxtabpagemodel.cxx b/toolkit/source/awt/vclxtabpagemodel.cxx index 9f4744dacda7..3f0e0d241f61 100644 --- a/toolkit/source/awt/vclxtabpagemodel.cxx +++ b/toolkit/source/awt/vclxtabpagemodel.cxx @@ -65,7 +65,7 @@ void SAL_CALL VCLXTabPageModel::draw( sal_Int32 nX, sal_Int32 nY ) throw(::com:: void SAL_CALL VCLXTabPageModel::setProperty( - const ::rtl::OUString& /*PropertyName*/, + const OUString& /*PropertyName*/, const ::com::sun::star::uno::Any& /*Value*/ ) throw(::com::sun::star::uno::RuntimeException) { @@ -92,35 +92,35 @@ void SAL_CALL VCLXTabPageModel::setEnabled( ::sal_Bool _enabled ) throw (::com:: //if ( pTabControl ) // pTabControl->EnablePage(0, true); } -::rtl::OUString SAL_CALL VCLXTabPageModel::getTitle() throw (::com::sun::star::uno::RuntimeException) +OUString SAL_CALL VCLXTabPageModel::getTitle() throw (::com::sun::star::uno::RuntimeException) { //TabControl* pTabControl = (TabControl*)GetWindow(); //if ( pTabControl ) // return pTabControl->GetPageText(0); //else - return ::rtl::OUString(); + return OUString(); } -void SAL_CALL VCLXTabPageModel::setTitle( const ::rtl::OUString& _title ) throw (::com::sun::star::uno::RuntimeException) +void SAL_CALL VCLXTabPageModel::setTitle( const OUString& _title ) throw (::com::sun::star::uno::RuntimeException) { //TabControl* pTabControl = (TabControl*)GetWindow(); //if ( pTabControl ) // pTabControl->SetPageText(0, _title); } -::rtl::OUString SAL_CALL VCLXTabPageModel::getImageURL() throw (::com::sun::star::uno::RuntimeException) +OUString SAL_CALL VCLXTabPageModel::getImageURL() throw (::com::sun::star::uno::RuntimeException) { - return ::rtl::OUString(); + return OUString(); } -void SAL_CALL VCLXTabPageModel::setImageURL( const ::rtl::OUString& /*_imageurl*/ ) throw (::com::sun::star::uno::RuntimeException) +void SAL_CALL VCLXTabPageModel::setImageURL( const OUString& /*_imageurl*/ ) throw (::com::sun::star::uno::RuntimeException) { //m_sImageURL = _imageurl; } -::rtl::OUString SAL_CALL VCLXTabPageModel::getToolTip() throw (::com::sun::star::uno::RuntimeException) +OUString SAL_CALL VCLXTabPageModel::getToolTip() throw (::com::sun::star::uno::RuntimeException) { //return m_sTooltip; - return ::rtl::OUString(); + return OUString(); } -void SAL_CALL VCLXTabPageModel::setToolTip( const ::rtl::OUString& _tooltip ) throw (::com::sun::star::uno::RuntimeException) +void SAL_CALL VCLXTabPageModel::setToolTip( const OUString& _tooltip ) throw (::com::sun::star::uno::RuntimeException) { (void)_tooltip; } diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index 8e1e4ebb6a6a..271ec312da14 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -354,7 +354,7 @@ sal_uInt16 ImplGetComponentType( const String& rServiceName ) ComponentInfo aSearch; - rtl::OString aServiceName(rtl::OUStringToOString(rServiceName, osl_getThreadTextEncoding()).toAsciiLowerCase()); + OString aServiceName(OUStringToOString(rServiceName, osl_getThreadTextEncoding()).toAsciiLowerCase()); if ( !aServiceName.isEmpty() ) aSearch.pName = aServiceName.getStr(); else @@ -1059,7 +1059,7 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow( ) { #ifndef DISABLE_DYNLOADING - ::rtl::OUString aLibName = ::vcl::unohelper::CreateLibraryName( + OUString aLibName = ::vcl::unohelper::CreateLibraryName( #ifdef LIBO_MERGELIBS "merged", #else @@ -1070,7 +1070,7 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow( &thisModule, aLibName.pData, SAL_LOADMODULE_DEFAULT ); if ( hSvToolsLib ) { - ::rtl::OUString aFunctionName( "CreateWindow" ); + OUString aFunctionName( "CreateWindow" ); fnSvtCreateWindow = (FN_SvtCreateWindow)osl_getFunctionSymbol( hSvToolsLib, aFunctionName.pData ); } #else @@ -1205,7 +1205,7 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow( // system child window could not be created OSL_TRACE( "VCLXToolkit::createSystemChild: caught %s\n", - ::rtl::OUStringToOString( + OUStringToOString( rEx.Message, RTL_TEXTENCODING_UTF8).getStr()); pChildWindow = NULL; } @@ -1233,10 +1233,10 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMessageBox > SAL_CALL VCLXToolkit::createMessageBox( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& aParent, const ::com::sun::star::awt::Rectangle& aPosSize, - const ::rtl::OUString& aType, + const OUString& aType, ::sal_Int32 aButtons, - const ::rtl::OUString& aTitle, - const ::rtl::OUString& aMessage ) throw (::com::sun::star::uno::RuntimeException) + const OUString& aTitle, + const OUString& aMessage ) throw (::com::sun::star::uno::RuntimeException) { ::com::sun::star::awt::WindowDescriptor aDescriptor; @@ -1327,7 +1327,7 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow( return ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTarget >(); } -::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > SAL_CALL VCLXToolkit::getClipboard( const ::rtl::OUString& clipboardName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > SAL_CALL VCLXToolkit::getClipboard( const OUString& clipboardName ) throw(::com::sun::star::uno::RuntimeException) { if( clipboardName.isEmpty() ) { @@ -1351,18 +1351,18 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow( } // XServiceInfo -::rtl::OUString VCLXToolkit::getImplementationName() throw(::com::sun::star::uno::RuntimeException) +OUString VCLXToolkit::getImplementationName() throw(::com::sun::star::uno::RuntimeException) { - return rtl::OUString("stardiv.Toolkit.VCLXToolkit"); + return OUString("stardiv.Toolkit.VCLXToolkit"); } -sal_Bool VCLXToolkit::supportsService( const ::rtl::OUString& rServiceName ) throw(::com::sun::star::uno::RuntimeException) +sal_Bool VCLXToolkit::supportsService( const OUString& rServiceName ) throw(::com::sun::star::uno::RuntimeException) { ::osl::MutexGuard aGuard( GetMutex() ); - ::com::sun::star::uno::Sequence< ::rtl::OUString > aSNL = getSupportedServiceNames(); - const ::rtl::OUString* pArray = aSNL.getConstArray(); - const ::rtl::OUString* pArrayEnd = aSNL.getConstArray(); + ::com::sun::star::uno::Sequence< OUString > aSNL = getSupportedServiceNames(); + const OUString* pArray = aSNL.getConstArray(); + const OUString* pArrayEnd = aSNL.getConstArray(); for (; pArray != pArrayEnd; ++pArray ) if( *pArray == rServiceName ) break; @@ -1370,10 +1370,10 @@ sal_Bool VCLXToolkit::supportsService( const ::rtl::OUString& rServiceName ) thr return pArray != pArrayEnd; } -::com::sun::star::uno::Sequence< ::rtl::OUString > VCLXToolkit::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Sequence< OUString > VCLXToolkit::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) { - ::rtl::OUString aServiceName( ::rtl::OUString::createFromAscii( szServiceName2_Toolkit ) ); - return ::com::sun::star::uno::Sequence< ::rtl::OUString >( &aServiceName, 1); + OUString aServiceName( OUString::createFromAscii( szServiceName2_Toolkit ) ); + return ::com::sun::star::uno::Sequence< OUString >( &aServiceName, 1); } // css::awt::XExtendedToolkit: @@ -1615,7 +1615,7 @@ void VCLXToolkit::callTopWindowListeners( { OSL_TRACE( "VCLXToolkit::callTopWindowListeners: caught %s\n", - ::rtl::OUStringToOString( + OUStringToOString( rEx.Message, RTL_TEXTENCODING_UTF8).getStr()); } } @@ -1663,7 +1663,7 @@ long VCLXToolkit::callKeyHandlers(::VclSimpleEvent const * pEvent, { OSL_TRACE( "VCLXToolkit::callKeyHandlers: caught %s\n", - ::rtl::OUStringToOString( + OUStringToOString( rEx.Message, RTL_TEXTENCODING_UTF8).getStr()); } } @@ -1711,7 +1711,7 @@ void VCLXToolkit::callFocusListeners(::VclSimpleEvent const * pEvent, { OSL_TRACE( "VCLXToolkit::callFocusListeners: caught %s\n", - ::rtl::OUStringToOString( + OUStringToOString( rEx.Message, RTL_TEXTENCODING_UTF8).getStr()); } } diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx index f7912f6acf42..0f1bf33130cf 100644 --- a/toolkit/source/awt/vclxwindow.cxx +++ b/toolkit/source/awt/vclxwindow.cxx @@ -329,7 +329,7 @@ Reference< XStyleSettings > VCLXWindowImpl::getStyleSettings() { SolarMutexGuard aGuard; if ( mbDisposed ) - throw DisposedException( ::rtl::OUString(), mrAntiImpl ); + throw DisposedException( OUString(), mrAntiImpl ); if ( !mxWindowStyleSettings.is() ) mxWindowStyleSettings = new ::toolkit::WindowStyleSettings( maListenerContainerMutex, mrAntiImpl ); return mxWindowStyleSettings; @@ -1406,7 +1406,7 @@ namespace } } -void VCLXWindow::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException) +void VCLXWindow::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -1512,7 +1512,7 @@ void VCLXWindow::setProperty( const ::rtl::OUString& PropertyName, const ::com:: case BASEPROPERTY_LABEL: case BASEPROPERTY_TITLE: { - ::rtl::OUString aText; + OUString aText; if ( Value >>= aText ) { switch (eWinType) @@ -1534,27 +1534,27 @@ void VCLXWindow::setProperty( const ::rtl::OUString& PropertyName, const ::com:: break; case BASEPROPERTY_ACCESSIBLENAME: { - ::rtl::OUString aText; + OUString aText; if ( Value >>= aText ) pWindow->SetAccessibleName( aText ); } break; case BASEPROPERTY_HELPURL: { - ::rtl::OUString aURL; + OUString aURL; if ( Value >>= aURL ) { INetURLObject aHelpURL( aURL ); if ( aHelpURL.GetProtocol() == INET_PROT_HID ) - pWindow->SetHelpId( rtl::OUStringToOString( aHelpURL.GetURLPath(), RTL_TEXTENCODING_UTF8 ) ); + pWindow->SetHelpId( OUStringToOString( aHelpURL.GetURLPath(), RTL_TEXTENCODING_UTF8 ) ); else - pWindow->SetHelpId( rtl::OUStringToOString( aURL, RTL_TEXTENCODING_UTF8 ) ); + pWindow->SetHelpId( OUStringToOString( aURL, RTL_TEXTENCODING_UTF8 ) ); } } break; case BASEPROPERTY_HELPTEXT: { - ::rtl::OUString aHelpText; + OUString aHelpText; if ( Value >>= aHelpText ) { pWindow->SetQuickHelpText( aHelpText ); @@ -1926,14 +1926,14 @@ void VCLXWindow::setProperty( const ::rtl::OUString& PropertyName, const ::com:: break; case BASEPROPERTY_DEFAULTCONTROL: { - rtl::OUString aName; + OUString aName; Value >>= aName; break; } } } -::com::sun::star::uno::Any VCLXWindow::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXWindow::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -2001,26 +2001,26 @@ void VCLXWindow::setProperty( const ::rtl::OUString& PropertyName, const ::com:: case BASEPROPERTY_LABEL: case BASEPROPERTY_TITLE: { - ::rtl::OUString aText = GetWindow()->GetText(); + OUString aText = GetWindow()->GetText(); aProp <<= aText; } break; case BASEPROPERTY_ACCESSIBLENAME: { - ::rtl::OUString aText = GetWindow()->GetAccessibleName(); + OUString aText = GetWindow()->GetAccessibleName(); aProp <<= aText; } break; case BASEPROPERTY_HELPTEXT: { - ::rtl::OUString aText = GetWindow()->GetQuickHelpText(); + OUString aText = GetWindow()->GetQuickHelpText(); aProp <<= aText; } break; case BASEPROPERTY_HELPURL: { - rtl::OUString aHelpId( rtl::OStringToOUString( GetWindow()->GetHelpId(), RTL_TEXTENCODING_UTF8 ) ); - aProp <<= ::rtl::OUString( aHelpId ); + OUString aHelpId( OStringToOUString( GetWindow()->GetHelpId(), RTL_TEXTENCODING_UTF8 ) ); + aProp <<= OUString( aHelpId ); } break; case BASEPROPERTY_FONTDESCRIPTOR: @@ -2582,13 +2582,13 @@ VCLXWindow::getProperties() throw (::com::sun::star::uno::RuntimeException) return GetPropHelper()->getProperties(); } ::com::sun::star::beans::Property SAL_CALL -VCLXWindow::getPropertyByName( const ::rtl::OUString& rName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) +VCLXWindow::getPropertyByName( const OUString& rName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) { return GetPropHelper()->getPropertyByName( rName ); } ::sal_Bool SAL_CALL -VCLXWindow::hasPropertyByName( const ::rtl::OUString& rName ) throw (::com::sun::star::uno::RuntimeException) +VCLXWindow::hasPropertyByName( const OUString& rName ) throw (::com::sun::star::uno::RuntimeException) { return GetPropHelper()->hasPropertyByName( rName ); } diff --git a/toolkit/source/awt/vclxwindow1.cxx b/toolkit/source/awt/vclxwindow1.cxx index 32baeb72ff30..30740d99bf1a 100644 --- a/toolkit/source/awt/vclxwindow1.cxx +++ b/toolkit/source/awt/vclxwindow1.cxx @@ -44,7 +44,7 @@ void VCLXWindow::SetSystemParent_Impl( const com::sun::star::uno::Any& rHandle ) { ::com::sun::star::uno::Exception *pException = new ::com::sun::star::uno::RuntimeException; - pException->Message = ::rtl::OUString("not a work window"); + pException->Message = OUString("not a work window"); throw pException; } @@ -75,7 +75,7 @@ void VCLXWindow::SetSystemParent_Impl( const com::sun::star::uno::Any& rHandle ) { ::com::sun::star::uno::Exception *pException = new ::com::sun::star::uno::RuntimeException; - pException->Message = ::rtl::OUString("incorrect window handle type"); + pException->Message = OUString("incorrect window handle type"); throw pException; } // create system parent data diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx index bba1abeb06c5..9e4c5d833578 100644 --- a/toolkit/source/awt/vclxwindows.cxx +++ b/toolkit/source/awt/vclxwindows.cxx @@ -228,7 +228,7 @@ void VCLXGraphicControl::setPosSize( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, } } -void VCLXGraphicControl::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXGraphicControl::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -281,7 +281,7 @@ void VCLXGraphicControl::setProperty( const ::rtl::OUString& PropertyName, const } } -::com::sun::star::uno::Any VCLXGraphicControl::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXGraphicControl::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -416,7 +416,7 @@ void VCLXButton::removeItemListener( const ::com::sun::star::uno::Reference< ::c maItemListeners.removeInterface( l ); } -void VCLXButton::setLabel( const ::rtl::OUString& rLabel ) throw(::com::sun::star::uno::RuntimeException) +void VCLXButton::setLabel( const OUString& rLabel ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -425,7 +425,7 @@ void VCLXButton::setLabel( const ::rtl::OUString& rLabel ) throw(::com::sun::sta pWindow->SetText( rLabel ); } -void VCLXButton::setActionCommand( const ::rtl::OUString& rCommand ) throw(::com::sun::star::uno::RuntimeException) +void VCLXButton::setActionCommand( const OUString& rCommand ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -479,7 +479,7 @@ void VCLXButton::setActionCommand( const ::rtl::OUString& rCommand ) throw(::com return AWTSize(aSz); } -void VCLXButton::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXButton::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -524,7 +524,7 @@ void VCLXButton::setProperty( const ::rtl::OUString& PropertyName, const ::com:: } } -::com::sun::star::uno::Any VCLXButton::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXButton::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -683,7 +683,7 @@ void VCLXImageControl::ImplSetNewImage() return aSz; } -void VCLXImageControl::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXImageControl::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -719,7 +719,7 @@ void VCLXImageControl::setProperty( const ::rtl::OUString& PropertyName, const : } } -::com::sun::star::uno::Any VCLXImageControl::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXImageControl::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -837,13 +837,13 @@ void VCLXCheckBox::removeActionListener( const ::com::sun::star::uno::Reference< maActionListeners.removeInterface( l ); } -void VCLXCheckBox::setActionCommand( const ::rtl::OUString& rCommand ) throw(::com::sun::star::uno::RuntimeException) +void VCLXCheckBox::setActionCommand( const OUString& rCommand ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; maActionCommand = rCommand; } -void VCLXCheckBox::setLabel( const ::rtl::OUString& rLabel ) throw(::com::sun::star::uno::RuntimeException) +void VCLXCheckBox::setLabel( const OUString& rLabel ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -942,7 +942,7 @@ void VCLXCheckBox::enableTriState( sal_Bool b ) throw(::com::sun::star::uno::Run return AWTSize(aSz); } -void VCLXCheckBox::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXCheckBox::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -978,7 +978,7 @@ void VCLXCheckBox::setProperty( const ::rtl::OUString& PropertyName, const ::com } } -::com::sun::star::uno::Any VCLXCheckBox::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXCheckBox::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -1114,7 +1114,7 @@ void VCLXRadioButton::dispose() throw(::com::sun::star::uno::RuntimeException) VCLXGraphicControl::dispose(); } -void VCLXRadioButton::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXRadioButton::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -1156,7 +1156,7 @@ void VCLXRadioButton::setProperty( const ::rtl::OUString& PropertyName, const :: } } -::com::sun::star::uno::Any VCLXRadioButton::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXRadioButton::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -1209,7 +1209,7 @@ void VCLXRadioButton::removeActionListener( const ::com::sun::star::uno::Referen maActionListeners.removeInterface( l ); } -void VCLXRadioButton::setLabel( const ::rtl::OUString& rLabel ) throw(::com::sun::star::uno::RuntimeException) +void VCLXRadioButton::setLabel( const OUString& rLabel ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -1218,7 +1218,7 @@ void VCLXRadioButton::setLabel( const ::rtl::OUString& rLabel ) throw(::com::sun pWindow->SetText( rLabel ); } -void VCLXRadioButton::setActionCommand( const ::rtl::OUString& rCommand ) throw(::com::sun::star::uno::RuntimeException) +void VCLXRadioButton::setActionCommand( const OUString& rCommand ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; maActionCommand = rCommand; @@ -1539,7 +1539,7 @@ void VCLXListBox::removeActionListener( const ::com::sun::star::uno::Reference< maActionListeners.removeInterface( l ); } -void VCLXListBox::addItem( const ::rtl::OUString& aItem, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException) +void VCLXListBox::addItem( const OUString& aItem, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -1548,7 +1548,7 @@ void VCLXListBox::addItem( const ::rtl::OUString& aItem, sal_Int16 nPos ) throw( pBox->InsertEntry( aItem, nPos ); } -void VCLXListBox::addItems( const ::com::sun::star::uno::Sequence< ::rtl::OUString>& aItems, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException) +void VCLXListBox::addItems( const ::com::sun::star::uno::Sequence< OUString>& aItems, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -1556,8 +1556,8 @@ void VCLXListBox::addItems( const ::com::sun::star::uno::Sequence< ::rtl::OUStri if ( pBox ) { sal_uInt16 nP = nPos; - const ::rtl::OUString* pItems = aItems.getConstArray(); - const ::rtl::OUString* pItemsEnd = aItems.getConstArray() + aItems.getLength(); + const OUString* pItems = aItems.getConstArray(); + const OUString* pItemsEnd = aItems.getConstArray() + aItems.getLength(); while ( pItems != pItemsEnd ) { if ( (sal_uInt16)nP == 0xFFFF ) @@ -1592,7 +1592,7 @@ sal_Int16 VCLXListBox::getItemCount() throw(::com::sun::star::uno::RuntimeExcept return pBox ? pBox->GetEntryCount() : 0; } -::rtl::OUString VCLXListBox::getItem( sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException) +OUString VCLXListBox::getItem( sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -1603,20 +1603,20 @@ sal_Int16 VCLXListBox::getItemCount() throw(::com::sun::star::uno::RuntimeExcept return aItem; } -::com::sun::star::uno::Sequence< ::rtl::OUString> VCLXListBox::getItems() throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Sequence< OUString> VCLXListBox::getItems() throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; - ::com::sun::star::uno::Sequence< ::rtl::OUString> aSeq; + ::com::sun::star::uno::Sequence< OUString> aSeq; ListBox* pBox = (ListBox*) GetWindow(); if ( pBox ) { sal_uInt16 nEntries = pBox->GetEntryCount(); - aSeq = ::com::sun::star::uno::Sequence< ::rtl::OUString>( nEntries ); + aSeq = ::com::sun::star::uno::Sequence< OUString>( nEntries ); for ( sal_uInt16 n = nEntries; n; ) { --n; - aSeq.getArray()[n] = ::rtl::OUString( pBox->GetEntry( n ) ); + aSeq.getArray()[n] = OUString( pBox->GetEntry( n ) ); } } return aSeq; @@ -1646,7 +1646,7 @@ sal_Int16 VCLXListBox::getSelectedItemPos() throw(::com::sun::star::uno::Runtime return aSeq; } -::rtl::OUString VCLXListBox::getSelectedItem() throw(::com::sun::star::uno::RuntimeException) +OUString VCLXListBox::getSelectedItem() throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -1657,18 +1657,18 @@ sal_Int16 VCLXListBox::getSelectedItemPos() throw(::com::sun::star::uno::Runtime return aItem; } -::com::sun::star::uno::Sequence< ::rtl::OUString> VCLXListBox::getSelectedItems() throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Sequence< OUString> VCLXListBox::getSelectedItems() throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; - ::com::sun::star::uno::Sequence< ::rtl::OUString> aSeq; + ::com::sun::star::uno::Sequence< OUString> aSeq; ListBox* pBox = (ListBox*) GetWindow(); if ( pBox ) { sal_uInt16 nSelEntries = pBox->GetSelectEntryCount(); - aSeq = ::com::sun::star::uno::Sequence< ::rtl::OUString>( nSelEntries ); + aSeq = ::com::sun::star::uno::Sequence< OUString>( nSelEntries ); for ( sal_uInt16 n = 0; n < nSelEntries; n++ ) - aSeq.getArray()[n] = ::rtl::OUString( pBox->GetSelectEntry( n ) ); + aSeq.getArray()[n] = OUString( pBox->GetSelectEntry( n ) ); } return aSeq; } @@ -1723,7 +1723,7 @@ void VCLXListBox::selectItemsPos( const ::com::sun::star::uno::Sequence<sal_Int1 } } -void VCLXListBox::selectItem( const ::rtl::OUString& rItemText, sal_Bool bSelect ) throw(::com::sun::star::uno::RuntimeException) +void VCLXListBox::selectItem( const OUString& rItemText, sal_Bool bSelect ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -1841,7 +1841,7 @@ void VCLXListBox::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) return getAccessibleFactory().createAccessibleContext( this ); } -void VCLXListBox::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXListBox::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -1884,7 +1884,7 @@ void VCLXListBox::setProperty( const ::rtl::OUString& PropertyName, const ::com: break; case BASEPROPERTY_STRINGITEMLIST: { - ::com::sun::star::uno::Sequence< ::rtl::OUString> aItems; + ::com::sun::star::uno::Sequence< OUString> aItems; if ( Value >>= aItems ) { pListBox->Clear(); @@ -1918,7 +1918,7 @@ void VCLXListBox::setProperty( const ::rtl::OUString& PropertyName, const ::com: } } -::com::sun::star::uno::Any VCLXListBox::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXListBox::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -1955,8 +1955,8 @@ void VCLXListBox::setProperty( const ::rtl::OUString& PropertyName, const ::com: case BASEPROPERTY_STRINGITEMLIST: { sal_uInt16 nItems = pListBox->GetEntryCount(); - ::com::sun::star::uno::Sequence< ::rtl::OUString> aSeq( nItems ); - ::rtl::OUString* pStrings = aSeq.getArray(); + ::com::sun::star::uno::Sequence< OUString> aSeq( nItems ); + OUString* pStrings = aSeq.getArray(); for ( sal_uInt16 n = 0; n < nItems; n++ ) pStrings[n] = pListBox->GetEntry( n ); aProp <<= aSeq; @@ -2052,7 +2052,7 @@ void VCLXListBox::ImplCallItemListeners() } namespace { - Image lcl_getImageFromURL( const ::rtl::OUString& i_rImageURL ) + Image lcl_getImageFromURL( const OUString& i_rImageURL ) { if ( i_rImageURL.isEmpty() ) return Image(); @@ -2083,7 +2083,7 @@ void SAL_CALL VCLXListBox::listItemInserted( const ItemListEvent& i_rEvent ) thr ENSURE_OR_RETURN_VOID( ( i_rEvent.ItemPosition >= 0 ) && ( i_rEvent.ItemPosition <= sal_Int32( pListBox->GetEntryCount() ) ), "VCLXListBox::listItemInserted: illegal (inconsistent) item position!" ); pListBox->InsertEntry( - i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : ::rtl::OUString(), + i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : OUString(), i_rEvent.ItemImageURL.IsPresent ? TkResMgr::getImageFromURL( i_rEvent.ItemImageURL.Value ) : Image(), i_rEvent.ItemPosition ); } @@ -2113,7 +2113,7 @@ void SAL_CALL VCLXListBox::listItemModified( const ItemListEvent& i_rEvent ) thr // VCL's ListBox does not support changing an entry's text or image, so remove and re-insert - const ::rtl::OUString sNewText = i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : ::rtl::OUString( pListBox->GetEntry( i_rEvent.ItemPosition ) ); + const OUString sNewText = i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : OUString( pListBox->GetEntry( i_rEvent.ItemPosition ) ); const Image aNewImage( i_rEvent.ItemImageURL.IsPresent ? TkResMgr::getImageFromURL( i_rEvent.ItemImageURL.Value ) : pListBox->GetEntryImage( i_rEvent.ItemPosition ) ); pListBox->RemoveEntry( i_rEvent.ItemPosition ); @@ -2144,20 +2144,20 @@ void SAL_CALL VCLXListBox::itemListChanged( const EventObject& i_rEvent ) throw uno::Reference< beans::XPropertySet > xPropSet( i_rEvent.Source, uno::UNO_QUERY_THROW ); uno::Reference< beans::XPropertySetInfo > xPSI( xPropSet->getPropertySetInfo(), uno::UNO_QUERY_THROW ); uno::Reference< resource::XStringResourceResolver > xStringResourceResolver; - if ( xPSI->hasPropertyByName( ::rtl::OUString( "ResourceResolver" ) ) ) + if ( xPSI->hasPropertyByName( OUString( "ResourceResolver" ) ) ) { xStringResourceResolver.set( - xPropSet->getPropertyValue( ::rtl::OUString( "ResourceResolver" ) ), + xPropSet->getPropertyValue( OUString( "ResourceResolver" ) ), uno::UNO_QUERY ); } Reference< XItemList > xItemList( i_rEvent.Source, uno::UNO_QUERY_THROW ); - uno::Sequence< beans::Pair< ::rtl::OUString, ::rtl::OUString > > aItems = xItemList->getAllItems(); + uno::Sequence< beans::Pair< OUString, OUString > > aItems = xItemList->getAllItems(); for ( sal_Int32 i=0; i<aItems.getLength(); ++i ) { - ::rtl::OUString aLocalizationKey( aItems[i].First ); + OUString aLocalizationKey( aItems[i].First ); if ( xStringResourceResolver.is() && !aLocalizationKey.isEmpty() && aLocalizationKey[0] == '&' ) { aLocalizationKey = xStringResourceResolver->resolveString(aLocalizationKey.copy( 1 )); @@ -2203,7 +2203,7 @@ IMPL_XTYPEPROVIDER_START( VCLXMessageBox ) VCLXTopWindow::getTypes() IMPL_XTYPEPROVIDER_END -void VCLXMessageBox::setCaptionText( const ::rtl::OUString& rText ) throw(::com::sun::star::uno::RuntimeException) +void VCLXMessageBox::setCaptionText( const OUString& rText ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -2212,7 +2212,7 @@ void VCLXMessageBox::setCaptionText( const ::rtl::OUString& rText ) throw(::com: pWindow->SetText( rText ); } -::rtl::OUString VCLXMessageBox::getCaptionText() throw(::com::sun::star::uno::RuntimeException) +OUString VCLXMessageBox::getCaptionText() throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -2223,7 +2223,7 @@ void VCLXMessageBox::setCaptionText( const ::rtl::OUString& rText ) throw(::com: return aText; } -void VCLXMessageBox::setMessageText( const ::rtl::OUString& rText ) throw(::com::sun::star::uno::RuntimeException) +void VCLXMessageBox::setMessageText( const OUString& rText ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -2232,11 +2232,11 @@ void VCLXMessageBox::setMessageText( const ::rtl::OUString& rText ) throw(::com: pBox->SetMessText( rText ); } -::rtl::OUString VCLXMessageBox::getMessageText() throw(::com::sun::star::uno::RuntimeException) +OUString VCLXMessageBox::getMessageText() throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; - ::rtl::OUString aText; + OUString aText; MessBox* pBox = (MessBox*)GetWindow(); if ( pBox ) aText = pBox->GetMessText(); @@ -2302,16 +2302,16 @@ void SAL_CALL VCLXDialog::endDialog( ::sal_Int32 i_result ) throw (RuntimeExcept pDialog->EndDialog( i_result ); } -void SAL_CALL VCLXDialog::setHelpId( const ::rtl::OUString& rId ) throw (RuntimeException) +void SAL_CALL VCLXDialog::setHelpId( const OUString& rId ) throw (RuntimeException) { SolarMutexGuard aGuard; Window* pWindow = GetWindow(); if ( pWindow ) - pWindow->SetHelpId( rtl::OUStringToOString( rId, RTL_TEXTENCODING_UTF8 ) ); + pWindow->SetHelpId( OUStringToOString( rId, RTL_TEXTENCODING_UTF8 ) ); } -void VCLXDialog::setTitle( const ::rtl::OUString& Title ) throw(::com::sun::star::uno::RuntimeException) +void VCLXDialog::setTitle( const OUString& Title ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -2320,11 +2320,11 @@ void VCLXDialog::setTitle( const ::rtl::OUString& Title ) throw(::com::sun::star pWindow->SetText( Title ); } -::rtl::OUString VCLXDialog::getTitle() throw(::com::sun::star::uno::RuntimeException) +OUString VCLXDialog::getTitle() throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; - ::rtl::OUString aTitle; + OUString aTitle; Window* pWindow = GetWindow(); if ( pWindow ) aTitle = pWindow->GetText(); @@ -2399,7 +2399,7 @@ void SAL_CALL VCLXDialog::draw( sal_Int32 nX, sal_Int32 nY ) throw(::com::sun::s } void SAL_CALL VCLXDialog::setProperty( - const ::rtl::OUString& PropertyName, + const OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException) { @@ -2528,11 +2528,11 @@ throw(::com::sun::star::uno::RuntimeException) return aInfo; } -uno::Any SAL_CALL VCLXMultiPage::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +uno::Any SAL_CALL VCLXMultiPage::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; OSL_TRACE(" **** VCLXMultiPage::getProperty( %s )", - rtl::OUStringToOString( PropertyName, + OUStringToOString( PropertyName, RTL_TEXTENCODING_UTF8 ).getStr() ); ::com::sun::star::uno::Any aProp; sal_uInt16 nPropType = GetPropertyId( PropertyName ); @@ -2551,12 +2551,12 @@ uno::Any SAL_CALL VCLXMultiPage::getProperty( const ::rtl::OUString& PropertyNam } void SAL_CALL VCLXMultiPage::setProperty( - const ::rtl::OUString& PropertyName, + const OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; - OSL_TRACE(" **** VCLXMultiPage::setProperty( %s )", rtl::OUStringToOString( PropertyName, RTL_TEXTENCODING_UTF8 ).getStr() ); + OSL_TRACE(" **** VCLXMultiPage::setProperty( %s )", OUStringToOString( PropertyName, RTL_TEXTENCODING_UTF8 ).getStr() ); TabControl* pTabControl = (TabControl*)GetWindow(); if ( pTabControl ) @@ -2618,11 +2618,11 @@ sal_Int32 SAL_CALL VCLXMultiPage::insertTab() throw (uno::RuntimeException) { TabControl *pTabControl = getTabControl(); TabPage* pTab = new TabPage( pTabControl ); - rtl::OUString title (""); + OUString title (""); return static_cast< sal_Int32 >( insertTab( pTab, title ) ); } -sal_uInt16 VCLXMultiPage::insertTab( TabPage* pPage, rtl::OUString& sTitle ) +sal_uInt16 VCLXMultiPage::insertTab( TabPage* pPage, OUString& sTitle ) { TabControl *pTabControl = getTabControl(); sal_uInt16 id = sal::static_int_cast< sal_uInt16 >( mTabId++ ); @@ -2674,12 +2674,12 @@ void SAL_CALL VCLXMultiPage::setTabProps( sal_Int32 ID, const uno::Sequence< bea for (sal_Int32 i = 0; i < Properties.getLength(); ++i) { - const rtl::OUString &name = Properties[i].Name; + const OUString &name = Properties[i].Name; const uno::Any &value = Properties[i].Value; if (name == "Title") { - rtl::OUString title = value.get<rtl::OUString>(); + OUString title = value.get<OUString>(); pTabControl->SetPageText( sal::static_int_cast< sal_uInt16 >( ID ), title ); } } @@ -2695,13 +2695,13 @@ uno::Sequence< beans::NamedValue > SAL_CALL VCLXMultiPage::getTabProps( sal_Int3 #define ADD_PROP( seq, i, name, val ) { \ beans::NamedValue value; \ - value.Name = rtl::OUString( name ); \ + value.Name = OUString( name ); \ value.Value = uno::makeAny( val ); \ seq[i] = value; \ } uno::Sequence< beans::NamedValue > props( 2 ); - ADD_PROP( props, 0, "Title", rtl::OUString( pTabControl->GetPageText( sal::static_int_cast< sal_uInt16 >( ID ) ) ) ); + ADD_PROP( props, 0, "Title", OUString( pTabControl->GetPageText( sal::static_int_cast< sal_uInt16 >( ID ) ) ) ); ADD_PROP( props, 1, "Position", pTabControl->GetPagePos( sal::static_int_cast< sal_uInt16 >( ID ) ) ); #undef ADD_PROP return props; @@ -2802,7 +2802,7 @@ throw(::com::sun::star::uno::RuntimeException) } void SAL_CALL VCLXTabPage::setProperty( - const ::rtl::OUString& PropertyName, + const OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException) { @@ -2840,7 +2840,7 @@ throw(::com::sun::star::uno::RuntimeException) break; case BASEPROPERTY_TITLE: { - ::rtl::OUString sTitle; + OUString sTitle; if ( Value >>= sTitle ) { pTabPage->SetText(sTitle); @@ -2918,7 +2918,7 @@ void VCLXFixedHyperlink::ProcessWindowEvent( const VclWindowEvent& rVclWindowEve else { // open the URL - ::rtl::OUString sURL; + OUString sURL; FixedHyperlink* pBase = (FixedHyperlink*)GetWindow(); if ( pBase ) sURL = pBase->GetURL(); @@ -2930,7 +2930,7 @@ void VCLXFixedHyperlink::ProcessWindowEvent( const VclWindowEvent& rVclWindowEve { // start browser xSystemShellExecute->execute( - sURL, ::rtl::OUString(), ::com::sun::star::system::SystemShellExecuteFlags::URIS_ONLY ); + sURL, OUString(), ::com::sun::star::system::SystemShellExecuteFlags::URIS_ONLY ); } catch( uno::Exception& ) { @@ -2950,7 +2950,7 @@ void VCLXFixedHyperlink::ProcessWindowEvent( const VclWindowEvent& rVclWindowEve return getAccessibleFactory().createAccessibleContext( this ); } -void VCLXFixedHyperlink::setText( const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException) +void VCLXFixedHyperlink::setText( const OUString& Text ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -2959,18 +2959,18 @@ void VCLXFixedHyperlink::setText( const ::rtl::OUString& Text ) throw(::com::sun pBase->SetText(Text); } -::rtl::OUString VCLXFixedHyperlink::getText() throw(::com::sun::star::uno::RuntimeException) +OUString VCLXFixedHyperlink::getText() throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; - ::rtl::OUString aText; + OUString aText; Window* pWindow = GetWindow(); if ( pWindow ) aText = pWindow->GetText(); return aText; } -void VCLXFixedHyperlink::setURL( const ::rtl::OUString& URL ) throw(::com::sun::star::uno::RuntimeException) +void VCLXFixedHyperlink::setURL( const OUString& URL ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -2979,11 +2979,11 @@ void VCLXFixedHyperlink::setURL( const ::rtl::OUString& URL ) throw(::com::sun:: pBase->SetURL( URL ); } -::rtl::OUString VCLXFixedHyperlink::getURL( ) throw(::com::sun::star::uno::RuntimeException) +OUString VCLXFixedHyperlink::getURL( ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; - ::rtl::OUString aText; + OUString aText; FixedHyperlink* pBase = (FixedHyperlink*)GetWindow(); if ( pBase ) aText = pBase->GetURL(); @@ -3070,7 +3070,7 @@ void VCLXFixedHyperlink::removeActionListener( const ::com::sun::star::uno::Refe return aSz; } -void VCLXFixedHyperlink::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXFixedHyperlink::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -3082,7 +3082,7 @@ void VCLXFixedHyperlink::setProperty( const ::rtl::OUString& PropertyName, const { case BASEPROPERTY_LABEL: { - ::rtl::OUString sNewLabel; + OUString sNewLabel; if ( Value >>= sNewLabel ) pBase->SetText(sNewLabel); break; @@ -3090,7 +3090,7 @@ void VCLXFixedHyperlink::setProperty( const ::rtl::OUString& PropertyName, const case BASEPROPERTY_URL: { - ::rtl::OUString sNewURL; + OUString sNewURL; if ( Value >>= sNewURL ) pBase->SetURL( sNewURL ); break; @@ -3104,7 +3104,7 @@ void VCLXFixedHyperlink::setProperty( const ::rtl::OUString& PropertyName, const } } -::com::sun::star::uno::Any VCLXFixedHyperlink::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXFixedHyperlink::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -3117,7 +3117,7 @@ void VCLXFixedHyperlink::setProperty( const ::rtl::OUString& PropertyName, const { case BASEPROPERTY_URL: { - aProp = makeAny( ::rtl::OUString( pBase->GetURL() ) ); + aProp = makeAny( OUString( pBase->GetURL() ) ); break; } @@ -3212,7 +3212,7 @@ IMPL_XTYPEPROVIDER_END return getAccessibleFactory().createAccessibleContext( this ); } -void VCLXFixedText::setText( const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException) +void VCLXFixedText::setText( const OUString& Text ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -3221,11 +3221,11 @@ void VCLXFixedText::setText( const ::rtl::OUString& Text ) throw(::com::sun::sta pWindow->SetText( Text ); } -::rtl::OUString VCLXFixedText::getText() throw(::com::sun::star::uno::RuntimeException) +OUString VCLXFixedText::getText() throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; - ::rtl::OUString aText; + OUString aText; Window* pWindow = GetWindow(); if ( pWindow ) aText = pWindow->GetText(); @@ -3531,7 +3531,7 @@ sal_Int32 VCLXScrollBar::getOrientation() throw(::com::sun::star::uno::RuntimeEx } // ::com::sun::star::awt::VclWindowPeer -void VCLXScrollBar::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXScrollBar::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -3646,7 +3646,7 @@ void VCLXScrollBar::setProperty( const ::rtl::OUString& PropertyName, const ::co } } -::com::sun::star::uno::Any VCLXScrollBar::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXScrollBar::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -3864,7 +3864,7 @@ void VCLXEdit::removeTextListener( const ::com::sun::star::uno::Reference< ::com GetTextListeners().removeInterface( l ); } -void VCLXEdit::setText( const ::rtl::OUString& aText ) throw(::com::sun::star::uno::RuntimeException) +void VCLXEdit::setText( const OUString& aText ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -3881,7 +3881,7 @@ void VCLXEdit::setText( const ::rtl::OUString& aText ) throw(::com::sun::star::u } } -void VCLXEdit::insertText( const ::com::sun::star::awt::Selection& rSel, const ::rtl::OUString& aText ) throw(::com::sun::star::uno::RuntimeException) +void VCLXEdit::insertText( const ::com::sun::star::awt::Selection& rSel, const OUString& aText ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -3899,22 +3899,22 @@ void VCLXEdit::insertText( const ::com::sun::star::awt::Selection& rSel, const : } } -::rtl::OUString VCLXEdit::getText() throw(::com::sun::star::uno::RuntimeException) +OUString VCLXEdit::getText() throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; - ::rtl::OUString aText; + OUString aText; Window* pWindow = GetWindow(); if ( pWindow ) aText = pWindow->GetText(); return aText; } -::rtl::OUString VCLXEdit::getSelectedText() throw(::com::sun::star::uno::RuntimeException) +OUString VCLXEdit::getSelectedText() throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; - ::rtl::OUString aText; + OUString aText; Edit* pEdit = (Edit*) GetWindow(); if ( pEdit) aText = pEdit->GetSelected(); @@ -3986,7 +3986,7 @@ void VCLXEdit::setEchoChar( sal_Unicode cEcho ) throw(::com::sun::star::uno::Run pEdit->SetEchoChar( cEcho ); } -void VCLXEdit::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXEdit::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -4031,7 +4031,7 @@ void VCLXEdit::setProperty( const ::rtl::OUString& PropertyName, const ::com::su } } -::com::sun::star::uno::Any VCLXEdit::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXEdit::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -4246,7 +4246,7 @@ void VCLXComboBox::removeActionListener( const ::com::sun::star::uno::Reference< maActionListeners.removeInterface( l ); } -void VCLXComboBox::addItem( const ::rtl::OUString& aItem, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException) +void VCLXComboBox::addItem( const OUString& aItem, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -4255,7 +4255,7 @@ void VCLXComboBox::addItem( const ::rtl::OUString& aItem, sal_Int16 nPos ) throw pBox->InsertEntry( aItem, nPos ); } -void VCLXComboBox::addItems( const ::com::sun::star::uno::Sequence< ::rtl::OUString>& aItems, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException) +void VCLXComboBox::addItems( const ::com::sun::star::uno::Sequence< OUString>& aItems, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -4296,27 +4296,27 @@ sal_Int16 VCLXComboBox::getItemCount() throw(::com::sun::star::uno::RuntimeExcep return pBox ? pBox->GetEntryCount() : 0; } -::rtl::OUString VCLXComboBox::getItem( sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException) +OUString VCLXComboBox::getItem( sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; - ::rtl::OUString aItem; + OUString aItem; ComboBox* pBox = (ComboBox*) GetWindow(); if ( pBox ) aItem = pBox->GetEntry( nPos ); return aItem; } -::com::sun::star::uno::Sequence< ::rtl::OUString> VCLXComboBox::getItems() throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Sequence< OUString> VCLXComboBox::getItems() throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; - ::com::sun::star::uno::Sequence< ::rtl::OUString> aSeq; + ::com::sun::star::uno::Sequence< OUString> aSeq; ComboBox* pBox = (ComboBox*) GetWindow(); if ( pBox ) { sal_uInt16 nEntries = pBox->GetEntryCount(); - aSeq = ::com::sun::star::uno::Sequence< ::rtl::OUString>( nEntries ); + aSeq = ::com::sun::star::uno::Sequence< OUString>( nEntries ); for ( sal_uInt16 n = nEntries; n; ) { --n; @@ -4346,7 +4346,7 @@ sal_Int16 VCLXComboBox::getDropDownLineCount() throw(::com::sun::star::uno::Runt return nLines; } -void VCLXComboBox::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXComboBox::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -4372,7 +4372,7 @@ void VCLXComboBox::setProperty( const ::rtl::OUString& PropertyName, const ::com break; case BASEPROPERTY_STRINGITEMLIST: { - ::com::sun::star::uno::Sequence< ::rtl::OUString> aItems; + ::com::sun::star::uno::Sequence< OUString> aItems; if ( Value >>= aItems ) { pComboBox->Clear(); @@ -4396,7 +4396,7 @@ void VCLXComboBox::setProperty( const ::rtl::OUString& PropertyName, const ::com } } -::com::sun::star::uno::Any VCLXComboBox::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXComboBox::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -4420,8 +4420,8 @@ void VCLXComboBox::setProperty( const ::rtl::OUString& PropertyName, const ::com case BASEPROPERTY_STRINGITEMLIST: { sal_uInt16 nItems = pComboBox->GetEntryCount(); - ::com::sun::star::uno::Sequence< ::rtl::OUString> aSeq( nItems ); - ::rtl::OUString* pStrings = aSeq.getArray(); + ::com::sun::star::uno::Sequence< OUString> aSeq( nItems ); + OUString* pStrings = aSeq.getArray(); for ( sal_uInt16 n = 0; n < nItems; n++ ) pStrings[n] = pComboBox->GetEntry( n ); aProp <<= aSeq; @@ -4555,7 +4555,7 @@ void SAL_CALL VCLXComboBox::listItemInserted( const ItemListEvent& i_rEvent ) th ENSURE_OR_RETURN_VOID( ( i_rEvent.ItemPosition >= 0 ) && ( i_rEvent.ItemPosition <= sal_Int32( pComboBox->GetEntryCount() ) ), "VCLXComboBox::listItemInserted: illegal (inconsistent) item position!" ); pComboBox->InsertEntry( - i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : ::rtl::OUString(), + i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : OUString(), i_rEvent.ItemImageURL.IsPresent ? lcl_getImageFromURL( i_rEvent.ItemImageURL.Value ) : Image(), i_rEvent.ItemPosition ); } @@ -4585,7 +4585,7 @@ void SAL_CALL VCLXComboBox::listItemModified( const ItemListEvent& i_rEvent ) th // VCL's ComboBox does not support changing an entry's text or image, so remove and re-insert - const ::rtl::OUString sNewText = i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : ::rtl::OUString( pComboBox->GetEntry( i_rEvent.ItemPosition ) ); + const OUString sNewText = i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : OUString( pComboBox->GetEntry( i_rEvent.ItemPosition ) ); const Image aNewImage( i_rEvent.ItemImageURL.IsPresent ? lcl_getImageFromURL( i_rEvent.ItemImageURL.Value ) : pComboBox->GetEntryImage( i_rEvent.ItemPosition ) ); pComboBox->RemoveEntry( i_rEvent.ItemPosition ); @@ -4615,22 +4615,22 @@ void SAL_CALL VCLXComboBox::itemListChanged( const EventObject& i_rEvent ) throw uno::Reference< beans::XPropertySet > xPropSet( i_rEvent.Source, uno::UNO_QUERY_THROW ); uno::Reference< beans::XPropertySetInfo > xPSI( xPropSet->getPropertySetInfo(), uno::UNO_QUERY_THROW ); - // bool localize = xPSI->hasPropertyByName( ::rtl::OUString( "ResourceResolver" ) ); + // bool localize = xPSI->hasPropertyByName( OUString( "ResourceResolver" ) ); uno::Reference< resource::XStringResourceResolver > xStringResourceResolver; - if ( xPSI->hasPropertyByName( ::rtl::OUString( "ResourceResolver" ) ) ) + if ( xPSI->hasPropertyByName( OUString( "ResourceResolver" ) ) ) { xStringResourceResolver.set( - xPropSet->getPropertyValue( ::rtl::OUString( "ResourceResolver" ) ), + xPropSet->getPropertyValue( OUString( "ResourceResolver" ) ), uno::UNO_QUERY ); } Reference< XItemList > xItemList( i_rEvent.Source, uno::UNO_QUERY_THROW ); - uno::Sequence< beans::Pair< ::rtl::OUString, ::rtl::OUString > > aItems = xItemList->getAllItems(); + uno::Sequence< beans::Pair< OUString, OUString > > aItems = xItemList->getAllItems(); for ( sal_Int32 i=0; i<aItems.getLength(); ++i ) { - ::rtl::OUString aLocalizationKey( aItems[i].First ); + OUString aLocalizationKey( aItems[i].First ); if ( xStringResourceResolver.is() && !aLocalizationKey.isEmpty() && aLocalizationKey[0] == '&' ) { aLocalizationKey = xStringResourceResolver->resolveString(aLocalizationKey.copy( 1 )); @@ -4679,7 +4679,7 @@ sal_Bool VCLXFormattedSpinField::isStrictFormat() } -void VCLXFormattedSpinField::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXFormattedSpinField::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -4718,7 +4718,7 @@ void VCLXFormattedSpinField::setProperty( const ::rtl::OUString& PropertyName, c } } -::com::sun::star::uno::Any VCLXFormattedSpinField::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXFormattedSpinField::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -4812,7 +4812,7 @@ IMPL_XTYPEPROVIDER_START( VCLXDateField ) VCLXFormattedSpinField::getTypes() IMPL_XTYPEPROVIDER_END -void VCLXDateField::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXDateField::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -4881,7 +4881,7 @@ void VCLXDateField::setProperty( const ::rtl::OUString& PropertyName, const ::co } } -::com::sun::star::uno::Any VCLXDateField::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXDateField::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -5295,7 +5295,7 @@ sal_Bool VCLXTimeField::isStrictFormat() throw(::com::sun::star::uno::RuntimeExc } -void VCLXTimeField::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXTimeField::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -5357,7 +5357,7 @@ void VCLXTimeField::setProperty( const ::rtl::OUString& PropertyName, const ::co } } -::com::sun::star::uno::Any VCLXTimeField::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXTimeField::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -5625,7 +5625,7 @@ sal_Int16 VCLXNumericField::getDecimalDigits() throw(::com::sun::star::uno::Runt return pNumericFormatter ? pNumericFormatter->GetDecimalDigits() : 0; } -void VCLXNumericField::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXNumericField::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -5694,7 +5694,7 @@ void VCLXNumericField::setProperty( const ::rtl::OUString& PropertyName, const : } } -::com::sun::star::uno::Any VCLXNumericField::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXNumericField::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -5913,7 +5913,7 @@ sal_Int16 VCLXMetricField::getDecimalDigits() throw(::com::sun::star::uno::Runti return pNumericFormatter ? pNumericFormatter->GetDecimalDigits() : 0; } -void VCLXMetricField::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXMetricField::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -5945,7 +5945,7 @@ void VCLXMetricField::setProperty( const ::rtl::OUString& PropertyName, const :: } case BASEPROPERTY_CUSTOMUNITTEXT: { - rtl::OUString aStr; + OUString aStr; if ( Value >>= aStr ) ((MetricField*)GetWindow())->SetCustomUnitText( aStr ); break; @@ -5959,7 +5959,7 @@ void VCLXMetricField::setProperty( const ::rtl::OUString& PropertyName, const :: } } -::com::sun::star::uno::Any VCLXMetricField::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXMetricField::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -5977,7 +5977,7 @@ void VCLXMetricField::setProperty( const ::rtl::OUString& PropertyName, const :: aProp <<= (sal_uInt16) ((MetricField*)GetWindow())->GetUnit(); break; case BASEPROPERTY_CUSTOMUNITTEXT: - aProp <<= rtl::OUString (((MetricField*)GetWindow())->GetCustomUnitText()); + aProp <<= OUString (((MetricField*)GetWindow())->GetCustomUnitText()); break; default: { @@ -6221,7 +6221,7 @@ sal_Int16 VCLXCurrencyField::getDecimalDigits() throw(::com::sun::star::uno::Run return pCurrencyFormatter ? pCurrencyFormatter->GetDecimalDigits() : 0; } -void VCLXCurrencyField::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXCurrencyField::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -6277,7 +6277,7 @@ void VCLXCurrencyField::setProperty( const ::rtl::OUString& PropertyName, const break; case BASEPROPERTY_CURRENCYSYMBOL: { - ::rtl::OUString aString; + OUString aString; if ( Value >>= aString ) ((LongCurrencyField*)GetWindow())->SetCurrencySymbol( aString ); } @@ -6297,7 +6297,7 @@ void VCLXCurrencyField::setProperty( const ::rtl::OUString& PropertyName, const } } -::com::sun::star::uno::Any VCLXCurrencyField::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXCurrencyField::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -6330,7 +6330,7 @@ void VCLXCurrencyField::setProperty( const ::rtl::OUString& PropertyName, const break; case BASEPROPERTY_CURRENCYSYMBOL: { - aProp <<= ::rtl::OUString( ((LongCurrencyField*)GetWindow())->GetCurrencySymbol() ); + aProp <<= OUString( ((LongCurrencyField*)GetWindow())->GetCurrencySymbol() ); } break; case BASEPROPERTY_NUMSHOWTHOUSANDSEP: @@ -6403,30 +6403,30 @@ IMPL_XTYPEPROVIDER_START( VCLXPatternField ) VCLXFormattedSpinField::getTypes() IMPL_XTYPEPROVIDER_END -void VCLXPatternField::setMasks( const ::rtl::OUString& EditMask, const ::rtl::OUString& LiteralMask ) throw(::com::sun::star::uno::RuntimeException) +void VCLXPatternField::setMasks( const OUString& EditMask, const OUString& LiteralMask ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; PatternField* pPatternField = (PatternField*) GetWindow(); if ( pPatternField ) { - pPatternField->SetMask( rtl::OUStringToOString(EditMask, RTL_TEXTENCODING_ASCII_US), LiteralMask ); + pPatternField->SetMask( OUStringToOString(EditMask, RTL_TEXTENCODING_ASCII_US), LiteralMask ); } } -void VCLXPatternField::getMasks( ::rtl::OUString& EditMask, ::rtl::OUString& LiteralMask ) throw(::com::sun::star::uno::RuntimeException) +void VCLXPatternField::getMasks( OUString& EditMask, OUString& LiteralMask ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; PatternField* pPatternField = (PatternField*) GetWindow(); if ( pPatternField ) { - EditMask = rtl::OStringToOUString(pPatternField->GetEditMask(), RTL_TEXTENCODING_ASCII_US); + EditMask = OStringToOUString(pPatternField->GetEditMask(), RTL_TEXTENCODING_ASCII_US); LiteralMask = pPatternField->GetLiteralMask(); } } -void VCLXPatternField::setString( const ::rtl::OUString& Str ) throw(::com::sun::star::uno::RuntimeException) +void VCLXPatternField::setString( const OUString& Str ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -6437,11 +6437,11 @@ void VCLXPatternField::setString( const ::rtl::OUString& Str ) throw(::com::sun: } } -::rtl::OUString VCLXPatternField::getString() throw(::com::sun::star::uno::RuntimeException) +OUString VCLXPatternField::getString() throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; - ::rtl::OUString aString; + OUString aString; PatternField* pPatternField = (PatternField*) GetWindow(); if ( pPatternField ) aString = pPatternField->GetString(); @@ -6458,7 +6458,7 @@ sal_Bool VCLXPatternField::isStrictFormat() throw(::com::sun::star::uno::Runtime return VCLXFormattedSpinField::isStrictFormat(); } -void VCLXPatternField::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) +void VCLXPatternField::setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -6470,10 +6470,10 @@ void VCLXPatternField::setProperty( const ::rtl::OUString& PropertyName, const : case BASEPROPERTY_EDITMASK: case BASEPROPERTY_LITERALMASK: { - ::rtl::OUString aString; + OUString aString; if ( Value >>= aString ) { - ::rtl::OUString aEditMask, aLiteralMask; + OUString aEditMask, aLiteralMask; getMasks( aEditMask, aLiteralMask ); if ( nPropType == BASEPROPERTY_EDITMASK ) aEditMask = aString; @@ -6491,7 +6491,7 @@ void VCLXPatternField::setProperty( const ::rtl::OUString& PropertyName, const : } } -::com::sun::star::uno::Any VCLXPatternField::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any VCLXPatternField::getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; @@ -6504,7 +6504,7 @@ void VCLXPatternField::setProperty( const ::rtl::OUString& PropertyName, const : case BASEPROPERTY_EDITMASK: case BASEPROPERTY_LITERALMASK: { - ::rtl::OUString aEditMask, aLiteralMask; + OUString aEditMask, aLiteralMask; getMasks( aEditMask, aLiteralMask ); if ( nPropType == BASEPROPERTY_EDITMASK ) aProp <<= aEditMask; @@ -6605,7 +6605,7 @@ throw(::com::sun::star::uno::RuntimeException) } void SAL_CALL VCLXFrame::setProperty( - const ::rtl::OUString& PropertyName, + const OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException) { diff --git a/toolkit/source/awt/xsimpleanimation.cxx b/toolkit/source/awt/xsimpleanimation.cxx index fb170c1bf73e..0e3d857f225a 100644 --- a/toolkit/source/awt/xsimpleanimation.cxx +++ b/toolkit/source/awt/xsimpleanimation.cxx @@ -76,7 +76,7 @@ namespace toolkit } //-------------------------------------------------------------------- - void SAL_CALL XSimpleAnimation::setProperty( const ::rtl::OUString& PropertyName, const uno::Any& Value ) + void SAL_CALL XSimpleAnimation::setProperty( const OUString& PropertyName, const uno::Any& Value ) throw( uno::RuntimeException ) { SolarMutexGuard aGuard; @@ -110,7 +110,7 @@ namespace toolkit } //-------------------------------------------------------------------- - uno::Any SAL_CALL XSimpleAnimation::getProperty( const ::rtl::OUString& PropertyName ) + uno::Any SAL_CALL XSimpleAnimation::getProperty( const OUString& PropertyName ) throw( uno::RuntimeException ) { SolarMutexGuard aGuard; diff --git a/toolkit/source/controls/accessiblecontrolcontext.cxx b/toolkit/source/controls/accessiblecontrolcontext.cxx index 2edc94a49d6f..7be5732e1799 100644 --- a/toolkit/source/controls/accessiblecontrolcontext.cxx +++ b/toolkit/source/controls/accessiblecontrolcontext.cxx @@ -147,14 +147,14 @@ namespace toolkit } //-------------------------------------------------------------------- - ::rtl::OUString SAL_CALL OAccessibleControlContext::getAccessibleDescription( ) throw (RuntimeException) + OUString SAL_CALL OAccessibleControlContext::getAccessibleDescription( ) throw (RuntimeException) { OContextEntryGuard aGuard( this ); return getModelStringProperty( "HelpText" ); } //-------------------------------------------------------------------- - ::rtl::OUString SAL_CALL OAccessibleControlContext::getAccessibleName( ) throw (RuntimeException) + OUString SAL_CALL OAccessibleControlContext::getAccessibleName( ) throw (RuntimeException) { OContextEntryGuard aGuard( this ); return getModelStringProperty( "Name" ); @@ -204,15 +204,15 @@ namespace toolkit } //-------------------------------------------------------------------- - ::rtl::OUString OAccessibleControlContext::getModelStringProperty( const sal_Char* _pPropertyName ) + OUString OAccessibleControlContext::getModelStringProperty( const sal_Char* _pPropertyName ) { - ::rtl::OUString sReturn; + OUString sReturn; try { if ( !m_xModelPropsInfo.is() && m_xControlModel.is() ) m_xModelPropsInfo = m_xControlModel->getPropertySetInfo(); - ::rtl::OUString sPropertyName( ::rtl::OUString::createFromAscii( _pPropertyName ) ); + OUString sPropertyName( OUString::createFromAscii( _pPropertyName ) ); if ( m_xModelPropsInfo.is() && m_xModelPropsInfo->hasPropertyByName( sPropertyName ) ) m_xControlModel->getPropertyValue( sPropertyName ) >>= sReturn; } diff --git a/toolkit/source/controls/animatedimages.cxx b/toolkit/source/controls/animatedimages.cxx index c91b0b71e4a3..e2cd1d9359d9 100644 --- a/toolkit/source/controls/animatedimages.cxx +++ b/toolkit/source/controls/animatedimages.cxx @@ -71,9 +71,9 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - ::rtl::OUString AnimatedImagesControl::GetComponentServiceName() + OUString AnimatedImagesControl::GetComponentServiceName() { - return ::rtl::OUString( "AnimatedImages" ); + return OUString( "AnimatedImages" ); } //------------------------------------------------------------------------------------------------------------------ @@ -102,17 +102,17 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - ::rtl::OUString SAL_CALL AnimatedImagesControl::getImplementationName( ) throw(RuntimeException) + OUString SAL_CALL AnimatedImagesControl::getImplementationName( ) throw(RuntimeException) { - return ::rtl::OUString( "org.openoffice.comp.toolkit.AnimatedImagesControl" ); + return OUString( "org.openoffice.comp.toolkit.AnimatedImagesControl" ); } //------------------------------------------------------------------------------------------------------------------ - Sequence< ::rtl::OUString > SAL_CALL AnimatedImagesControl::getSupportedServiceNames() throw(RuntimeException) + Sequence< OUString > SAL_CALL AnimatedImagesControl::getSupportedServiceNames() throw(RuntimeException) { - Sequence< ::rtl::OUString > aServices( AnimatedImagesControl_Base::getSupportedServiceNames() ); + Sequence< OUString > aServices( AnimatedImagesControl_Base::getSupportedServiceNames() ); aServices.realloc( aServices.getLength() + 1 ); - aServices[ aServices.getLength() - 1 ] = ::rtl::OUString::createFromAscii( szServiceName_AnimatedImagesControl ); + aServices[ aServices.getLength() - 1 ] = OUString::createFromAscii( szServiceName_AnimatedImagesControl ); return aServices; } @@ -194,7 +194,7 @@ namespace toolkit //================================================================================================================== struct AnimatedImagesControlModel_Data { - ::std::vector< Sequence< ::rtl::OUString > > aImageSets; + ::std::vector< Sequence< OUString > > aImageSets; }; namespace @@ -203,12 +203,12 @@ namespace toolkit const bool i_forInsert = false ) { if ( ( i_index < 0 ) || ( size_t( i_index ) > i_data.aImageSets.size() + ( i_forInsert ? 1 : 0 ) ) ) - throw IndexOutOfBoundsException( ::rtl::OUString(), i_context ); + throw IndexOutOfBoundsException( OUString(), i_context ); } void lcl_notify( ::osl::ClearableMutexGuard& i_guard, ::cppu::OBroadcastHelper& i_broadcaseHelper, void ( SAL_CALL XContainerListener::*i_notificationMethod )( const ContainerEvent& ), - const sal_Int32 i_accessor, const Sequence< ::rtl::OUString >& i_imageURLs, const Reference< XInterface >& i_context ) + const sal_Int32 i_accessor, const Sequence< OUString >& i_imageURLs, const Reference< XInterface >& i_context ) { ::cppu::OInterfaceContainerHelper* pContainerListeners = i_broadcaseHelper.getContainer( XContainerListener::static_type() ); if ( pContainerListeners == NULL ) @@ -270,22 +270,22 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - ::rtl::OUString SAL_CALL AnimatedImagesControlModel::getServiceName() throw(RuntimeException) + OUString SAL_CALL AnimatedImagesControlModel::getServiceName() throw(RuntimeException) { - return ::rtl::OUString::createFromAscii( szServiceName_AnimatedImagesControlModel ); + return OUString::createFromAscii( szServiceName_AnimatedImagesControlModel ); } //------------------------------------------------------------------------------------------------------------------ - ::rtl::OUString SAL_CALL AnimatedImagesControlModel::getImplementationName( ) throw(RuntimeException) + OUString SAL_CALL AnimatedImagesControlModel::getImplementationName( ) throw(RuntimeException) { - return ::rtl::OUString("org.openoffice.comp.toolkit.AnimatedImagesControlModel"); + return OUString("org.openoffice.comp.toolkit.AnimatedImagesControlModel"); } //------------------------------------------------------------------------------------------------------------------ Sequence< OUString > SAL_CALL AnimatedImagesControlModel::getSupportedServiceNames() throw(RuntimeException) { Sequence< OUString > aServiceNames(2); - aServiceNames[0] = ::rtl::OUString::createFromAscii( szServiceName_AnimatedImagesControlModel ); + aServiceNames[0] = OUString::createFromAscii( szServiceName_AnimatedImagesControlModel ); aServiceNames[1] = "com.sun.star.awt.UnoControlModel"; return aServiceNames; } @@ -303,7 +303,7 @@ namespace toolkit && ( nImageScaleMode != ImageScaleMode::Isotropic ) && ( nImageScaleMode != ImageScaleMode::Anisotropic ) ) - throw IllegalArgumentException( ::rtl::OUString(), *this, 1 ); + throw IllegalArgumentException( OUString(), *this, 1 ); } break; } @@ -317,7 +317,7 @@ namespace toolkit switch ( i_propertyId ) { case BASEPROPERTY_DEFAULTCONTROL: - return makeAny( ::rtl::OUString::createFromAscii( szServiceName_AnimatedImagesControl ) ); + return makeAny( OUString::createFromAscii( szServiceName_AnimatedImagesControl ) ); case BASEPROPERTY_BORDER: return makeAny( VisualEffect::NONE ); @@ -401,7 +401,7 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - Sequence< ::rtl::OUString > SAL_CALL AnimatedImagesControlModel::getImageSet( ::sal_Int32 i_index ) throw (IndexOutOfBoundsException, RuntimeException) + Sequence< OUString > SAL_CALL AnimatedImagesControlModel::getImageSet( ::sal_Int32 i_index ) throw (IndexOutOfBoundsException, RuntimeException) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); if ( GetBroadcastHelper().bDisposed || GetBroadcastHelper().bInDispose ) @@ -413,7 +413,7 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - void SAL_CALL AnimatedImagesControlModel::insertImageSet( ::sal_Int32 i_index, const Sequence< ::rtl::OUString >& i_imageURLs ) throw (IndexOutOfBoundsException, RuntimeException) + void SAL_CALL AnimatedImagesControlModel::insertImageSet( ::sal_Int32 i_index, const Sequence< OUString >& i_imageURLs ) throw (IndexOutOfBoundsException, RuntimeException) { ::osl::ClearableMutexGuard aGuard( GetMutex() ); // sanity checks @@ -430,7 +430,7 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - void SAL_CALL AnimatedImagesControlModel::replaceImageSet( ::sal_Int32 i_index, const Sequence< ::rtl::OUString >& i_imageURLs ) throw (IndexOutOfBoundsException, RuntimeException) + void SAL_CALL AnimatedImagesControlModel::replaceImageSet( ::sal_Int32 i_index, const Sequence< OUString >& i_imageURLs ) throw (IndexOutOfBoundsException, RuntimeException) { ::osl::ClearableMutexGuard aGuard( GetMutex() ); // sanity checks @@ -457,8 +457,8 @@ namespace toolkit lcl_checkIndex( *m_pData, i_index, *this ); // actual removal - ::std::vector< Sequence< ::rtl::OUString > >::iterator removalPos = m_pData->aImageSets.begin() + i_index; - Sequence< ::rtl::OUString > aRemovedElement( *removalPos ); + ::std::vector< Sequence< OUString > >::iterator removalPos = m_pData->aImageSets.begin() + i_index; + Sequence< OUString > aRemovedElement( *removalPos ); m_pData->aImageSets.erase( removalPos ); // listener notification diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx index 1f087e9d2ee4..52f290fdd3d8 100644 --- a/toolkit/source/controls/controlmodelcontainerbase.cxx +++ b/toolkit/source/controls/controlmodelcontainerbase.cxx @@ -76,7 +76,7 @@ using namespace toolkit; #define PROPERTY_RESOURCERESOLVER OUString( "ResourceResolver" ) //HELPER -::rtl::OUString getPhysicalLocation( const ::com::sun::star::uno::Any& rbase, const ::com::sun::star::uno::Any& rUrl ); +OUString getPhysicalLocation( const ::com::sun::star::uno::Any& rbase, const ::com::sun::star::uno::Any& rUrl ); struct LanguageDependentProp { @@ -127,10 +127,10 @@ struct DisposeControlModel : public ::std::unary_function< Reference< XControlMo struct FindControlModel : public ::std::unary_function< ControlModelContainerBase::UnoControlModelHolder, bool > { private: - const ::rtl::OUString& m_rName; + const OUString& m_rName; public: - FindControlModel( const ::rtl::OUString& _rName ) : m_rName( _rName ) { } + FindControlModel( const OUString& _rName ) : m_rName( _rName ) { } bool operator()( const ControlModelContainerBase::UnoControlModelHolder& _rCompare ) { @@ -195,16 +195,16 @@ static void lcl_throwElementExistException( ) } // ---------------------------------------------------------------------------- -static const ::rtl::OUString& getTabIndexPropertyName( ) +static const OUString& getTabIndexPropertyName( ) { - static const ::rtl::OUString s_sTabIndexProperty( "TabIndex" ); + static const OUString s_sTabIndexProperty( "TabIndex" ); return s_sTabIndexProperty; } // ---------------------------------------------------------------------------- -static const ::rtl::OUString& getStepPropertyName( ) +static const OUString& getStepPropertyName( ) { - static const ::rtl::OUString s_sStepProperty( "Step" ); + static const OUString s_sStepProperty( "Step" ); return s_sStepProperty; } @@ -240,7 +240,7 @@ Any ControlModelContainerBase::ImplGetDefaultValue( sal_uInt16 nPropId ) const switch ( nPropId ) { case BASEPROPERTY_DEFAULTCONTROL: - aAny <<= ::rtl::OUString::createFromAscii( szServiceName_UnoControlDialog ); + aAny <<= OUString::createFromAscii( szServiceName_UnoControlDialog ); break; default: aAny = UnoControlModel::ImplGetDefaultValue( nPropId ); @@ -319,13 +319,13 @@ UnoControlModel* ControlModelContainerBase::Clone() const return pClone; } -ControlModelContainerBase::UnoControlModelHolderList::iterator ControlModelContainerBase::ImplFindElement( const ::rtl::OUString& rName ) +ControlModelContainerBase::UnoControlModelHolderList::iterator ControlModelContainerBase::ImplFindElement( const OUString& rName ) { return ::std::find_if( maModels.begin(), maModels.end(), FindControlModel( rName ) ); } // ::XMultiServiceFactory -Reference< XInterface > ControlModelContainerBase::createInstance( const ::rtl::OUString& aServiceSpecifier ) throw(Exception, RuntimeException) +Reference< XInterface > ControlModelContainerBase::createInstance( const OUString& aServiceSpecifier ) throw(Exception, RuntimeException) { SolarMutexGuard aGuard; @@ -412,7 +412,7 @@ Reference< XInterface > ControlModelContainerBase::createInstance( const ::rtl:: return xNewModel; } -Reference< XInterface > ControlModelContainerBase::createInstanceWithArguments( const ::rtl::OUString& ServiceSpecifier, const Sequence< Any >& i_arguments ) throw(Exception, RuntimeException) +Reference< XInterface > ControlModelContainerBase::createInstanceWithArguments( const OUString& ServiceSpecifier, const Sequence< Any >& i_arguments ) throw(Exception, RuntimeException) { const Reference< XInterface > xInstance( createInstance( ServiceSpecifier ) ); const Reference< XInitialization > xInstanceInit( xInstance, UNO_QUERY ); @@ -421,39 +421,39 @@ Reference< XInterface > ControlModelContainerBase::createInstanceWithArguments( return xInstance; } -Sequence< ::rtl::OUString > ControlModelContainerBase::getAvailableServiceNames() throw(RuntimeException) +Sequence< OUString > ControlModelContainerBase::getAvailableServiceNames() throw(RuntimeException) { - static Sequence< ::rtl::OUString >* pNamesSeq = NULL; + static Sequence< OUString >* pNamesSeq = NULL; if ( !pNamesSeq ) { - pNamesSeq = new Sequence< ::rtl::OUString >( 26 ); - ::rtl::OUString* pNames = pNamesSeq->getArray(); - pNames[0] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlEditModel ); - pNames[1] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlFormattedFieldModel ); - pNames[2] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlFileControlModel ); - pNames[3] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlButtonModel ); - pNames[4] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlImageControlModel ); - pNames[5] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlRadioButtonModel ); - pNames[6] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlCheckBoxModel ); - pNames[7] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlFixedTextModel ); - pNames[8] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlGroupBoxModel ); - pNames[9] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlListBoxModel ); - pNames[10] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlComboBoxModel ); - pNames[11] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlDateFieldModel ); - pNames[12] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlTimeFieldModel ); - pNames[13] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlNumericFieldModel ); - pNames[14] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlCurrencyFieldModel ); - pNames[15] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlPatternFieldModel ); - pNames[16] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlProgressBarModel ); - pNames[17] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlScrollBarModel ); - pNames[18] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlFixedLineModel ); - pNames[19] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlRoadmapModel ); - pNames[20] = ::rtl::OUString::createFromAscii( szServiceName_TreeControlModel ); - pNames[21] = ::rtl::OUString::createFromAscii( szServiceName_GridControlModel ); - pNames[22] = ::rtl::OUString::createFromAscii( szServiceName_UnoControlTabPageContainerModel ); - pNames[23] = ::rtl::OUString::createFromAscii( szServiceName_UnoControlTabPageModel ); - pNames[24] = ::rtl::OUString::createFromAscii( szServiceName_UnoMultiPageModel ); - pNames[25] = ::rtl::OUString::createFromAscii( szServiceName_UnoFrameModel ); + pNamesSeq = new Sequence< OUString >( 26 ); + OUString* pNames = pNamesSeq->getArray(); + pNames[0] = OUString::createFromAscii( szServiceName2_UnoControlEditModel ); + pNames[1] = OUString::createFromAscii( szServiceName2_UnoControlFormattedFieldModel ); + pNames[2] = OUString::createFromAscii( szServiceName2_UnoControlFileControlModel ); + pNames[3] = OUString::createFromAscii( szServiceName2_UnoControlButtonModel ); + pNames[4] = OUString::createFromAscii( szServiceName2_UnoControlImageControlModel ); + pNames[5] = OUString::createFromAscii( szServiceName2_UnoControlRadioButtonModel ); + pNames[6] = OUString::createFromAscii( szServiceName2_UnoControlCheckBoxModel ); + pNames[7] = OUString::createFromAscii( szServiceName2_UnoControlFixedTextModel ); + pNames[8] = OUString::createFromAscii( szServiceName2_UnoControlGroupBoxModel ); + pNames[9] = OUString::createFromAscii( szServiceName2_UnoControlListBoxModel ); + pNames[10] = OUString::createFromAscii( szServiceName2_UnoControlComboBoxModel ); + pNames[11] = OUString::createFromAscii( szServiceName2_UnoControlDateFieldModel ); + pNames[12] = OUString::createFromAscii( szServiceName2_UnoControlTimeFieldModel ); + pNames[13] = OUString::createFromAscii( szServiceName2_UnoControlNumericFieldModel ); + pNames[14] = OUString::createFromAscii( szServiceName2_UnoControlCurrencyFieldModel ); + pNames[15] = OUString::createFromAscii( szServiceName2_UnoControlPatternFieldModel ); + pNames[16] = OUString::createFromAscii( szServiceName2_UnoControlProgressBarModel ); + pNames[17] = OUString::createFromAscii( szServiceName2_UnoControlScrollBarModel ); + pNames[18] = OUString::createFromAscii( szServiceName2_UnoControlFixedLineModel ); + pNames[19] = OUString::createFromAscii( szServiceName2_UnoControlRoadmapModel ); + pNames[20] = OUString::createFromAscii( szServiceName_TreeControlModel ); + pNames[21] = OUString::createFromAscii( szServiceName_GridControlModel ); + pNames[22] = OUString::createFromAscii( szServiceName_UnoControlTabPageContainerModel ); + pNames[23] = OUString::createFromAscii( szServiceName_UnoControlTabPageModel ); + pNames[24] = OUString::createFromAscii( szServiceName_UnoMultiPageModel ); + pNames[25] = OUString::createFromAscii( szServiceName_UnoFrameModel ); } return *pNamesSeq; } @@ -482,7 +482,7 @@ sal_Bool ControlModelContainerBase::hasElements() throw(RuntimeException) } // XNameContainer, XNameReplace, XNameAccess -void ControlModelContainerBase::replaceByName( const ::rtl::OUString& aName, const Any& aElement ) throw(IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException) +void ControlModelContainerBase::replaceByName( const OUString& aName, const Any& aElement ) throw(IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException) { SolarMutexGuard aGuard; @@ -528,7 +528,7 @@ void ControlModelContainerBase::replaceByName( const ::rtl::OUString& aName, con implNotifyTabModelChange( aName ); } -Any ControlModelContainerBase::getByName( const ::rtl::OUString& aName ) throw(NoSuchElementException, WrappedTargetException, RuntimeException) +Any ControlModelContainerBase::getByName( const OUString& aName ) throw(NoSuchElementException, WrappedTargetException, RuntimeException) { UnoControlModelHolderList::iterator aElementPos = ImplFindElement( aName ); if ( maModels.end() == aElementPos ) @@ -537,9 +537,9 @@ Any ControlModelContainerBase::getByName( const ::rtl::OUString& aName ) throw(N return makeAny( aElementPos->first ); } -Sequence< ::rtl::OUString > ControlModelContainerBase::getElementNames() throw(RuntimeException) +Sequence< OUString > ControlModelContainerBase::getElementNames() throw(RuntimeException) { - Sequence< ::rtl::OUString > aNames( maModels.size() ); + Sequence< OUString > aNames( maModels.size() ); ::std::transform( maModels.begin(), maModels.end(), // source range @@ -550,12 +550,12 @@ Sequence< ::rtl::OUString > ControlModelContainerBase::getElementNames() throw(R return aNames; } -sal_Bool ControlModelContainerBase::hasByName( const ::rtl::OUString& aName ) throw(RuntimeException) +sal_Bool ControlModelContainerBase::hasByName( const OUString& aName ) throw(RuntimeException) { return maModels.end() != ImplFindElement( aName ); } -void ControlModelContainerBase::insertByName( const ::rtl::OUString& aName, const Any& aElement ) throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException) +void ControlModelContainerBase::insertByName( const OUString& aName, const Any& aElement ) throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException) { SolarMutexGuard aGuard; @@ -570,12 +570,12 @@ void ControlModelContainerBase::insertByName( const ::rtl::OUString& aName, cons Reference< beans::XPropertySetInfo > xPropInfo = xProps.get()->getPropertySetInfo(); - ::rtl::OUString sImageSourceProperty = GetPropertyName( BASEPROPERTY_IMAGEURL ); + OUString sImageSourceProperty = GetPropertyName( BASEPROPERTY_IMAGEURL ); if ( xPropInfo.get()->hasPropertyByName( sImageSourceProperty ) && ImplHasProperty(BASEPROPERTY_DIALOGSOURCEURL) ) { Any aUrl = xProps.get()->getPropertyValue( sImageSourceProperty ); - ::rtl::OUString absoluteUrl = + OUString absoluteUrl = getPhysicalLocation( getPropertyValue( GetPropertyName( BASEPROPERTY_DIALOGSOURCEURL ) ), aUrl ); aUrl <<= absoluteUrl; @@ -619,7 +619,7 @@ void ControlModelContainerBase::insertByName( const ::rtl::OUString& aName, cons implNotifyTabModelChange( aName ); } -void ControlModelContainerBase::removeByName( const ::rtl::OUString& aName ) throw(NoSuchElementException, WrappedTargetException, RuntimeException) +void ControlModelContainerBase::removeByName( const OUString& aName ) throw(NoSuchElementException, WrappedTargetException, RuntimeException) { SolarMutexGuard aGuard; @@ -761,7 +761,7 @@ Sequence< Reference< XControlModel > > SAL_CALL ControlModelContainerBase::getCo } // ---------------------------------------------------------------------------- -void SAL_CALL ControlModelContainerBase::setGroup( const Sequence< Reference< XControlModel > >&, const ::rtl::OUString& ) throw (RuntimeException) +void SAL_CALL ControlModelContainerBase::setGroup( const Sequence< Reference< XControlModel > >&, const OUString& ) throw (RuntimeException) { // not supported. We have only implicit grouping: // We only have a sequence of control models, and we _know_ (yes, that's a HACK relying on @@ -795,34 +795,34 @@ void SAL_CALL ControlModelContainerBase::setEnabled( ::sal_Bool _enabled ) throw { m_bEnabled = _enabled; } -::rtl::OUString SAL_CALL ControlModelContainerBase::getTitle() throw (::com::sun::star::uno::RuntimeException) +OUString SAL_CALL ControlModelContainerBase::getTitle() throw (::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; Reference<XPropertySet> xThis(*this,UNO_QUERY); - ::rtl::OUString sTitle; + OUString sTitle; xThis->getPropertyValue(GetPropertyName(BASEPROPERTY_TITLE)) >>= sTitle; return sTitle; //return m_sTitle; } -void SAL_CALL ControlModelContainerBase::setTitle( const ::rtl::OUString& _title ) throw (::com::sun::star::uno::RuntimeException) +void SAL_CALL ControlModelContainerBase::setTitle( const OUString& _title ) throw (::com::sun::star::uno::RuntimeException) { SolarMutexGuard aGuard; Reference<XPropertySet> xThis(*this,UNO_QUERY); xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_TITLE),makeAny(_title)); } -::rtl::OUString SAL_CALL ControlModelContainerBase::getImageURL() throw (::com::sun::star::uno::RuntimeException) +OUString SAL_CALL ControlModelContainerBase::getImageURL() throw (::com::sun::star::uno::RuntimeException) { return m_sImageURL; } -void SAL_CALL ControlModelContainerBase::setImageURL( const ::rtl::OUString& _imageurl ) throw (::com::sun::star::uno::RuntimeException) +void SAL_CALL ControlModelContainerBase::setImageURL( const OUString& _imageurl ) throw (::com::sun::star::uno::RuntimeException) { m_sImageURL = _imageurl; } -::rtl::OUString SAL_CALL ControlModelContainerBase::getToolTip() throw (::com::sun::star::uno::RuntimeException) +OUString SAL_CALL ControlModelContainerBase::getToolTip() throw (::com::sun::star::uno::RuntimeException) { return m_sTooltip; } -void SAL_CALL ControlModelContainerBase::setToolTip( const ::rtl::OUString& _tooltip ) throw (::com::sun::star::uno::RuntimeException) +void SAL_CALL ControlModelContainerBase::setToolTip( const OUString& _tooltip ) throw (::com::sun::star::uno::RuntimeException) { m_sTooltip = _tooltip; } @@ -864,7 +864,7 @@ sal_Int32 SAL_CALL ControlModelContainerBase::getGroupCount( ) throw (RuntimeEx } // ---------------------------------------------------------------------------- -void SAL_CALL ControlModelContainerBase::getGroup( sal_Int32 _nGroup, Sequence< Reference< XControlModel > >& _rGroup, ::rtl::OUString& _rName ) throw (RuntimeException) +void SAL_CALL ControlModelContainerBase::getGroup( sal_Int32 _nGroup, Sequence< Reference< XControlModel > >& _rGroup, OUString& _rName ) throw (RuntimeException) { SolarMutexGuard aGuard; @@ -874,7 +874,7 @@ void SAL_CALL ControlModelContainerBase::getGroup( sal_Int32 _nGroup, Sequence< { OSL_TRACE( "UnoControlDialogModel::getGroup: invalid argument and I am not allowed to throw an exception!" ); _rGroup.realloc( 0 ); - _rName = ::rtl::OUString(); + _rName = OUString(); } else { @@ -883,16 +883,16 @@ void SAL_CALL ControlModelContainerBase::getGroup( sal_Int32 _nGroup, Sequence< // copy the models ::std::copy( aGroupPos->begin(), aGroupPos->end(), _rGroup.getArray() ); // give the group a name - _rName = ::rtl::OUString::valueOf( _nGroup ); + _rName = OUString::valueOf( _nGroup ); } } // ---------------------------------------------------------------------------- -void SAL_CALL ControlModelContainerBase::getGroupByName( const ::rtl::OUString& _rName, Sequence< Reference< XControlModel > >& _rGroup ) throw (RuntimeException) +void SAL_CALL ControlModelContainerBase::getGroupByName( const OUString& _rName, Sequence< Reference< XControlModel > >& _rGroup ) throw (RuntimeException) { SolarMutexGuard aGuard; - ::rtl::OUString sDummyName; + OUString sDummyName; getGroup( _rName.toInt32( ), _rGroup, sDummyName ); } @@ -909,7 +909,7 @@ void SAL_CALL ControlModelContainerBase::removeChangesListener( const Reference< } // ---------------------------------------------------------------------------- -void ControlModelContainerBase::implNotifyTabModelChange( const ::rtl::OUString& _rAccessor ) +void ControlModelContainerBase::implNotifyTabModelChange( const OUString& _rAccessor ) { // multiplex to our change listeners: // the changes event @@ -959,14 +959,14 @@ void ControlModelContainerBase::implUpdateGroupStructure() sal_Bool bIsRadioButton; // is it a radio button? #if OSL_DEBUG_LEVEL > 1 - ::std::vector< ::rtl::OUString > aCurrentGroupLabels; + ::std::vector< OUString > aCurrentGroupLabels; #endif for ( ; pControlModels != pControlModelsEnd; ++pControlModels ) { // we'll need this in every state xModelSI = xModelSI.query( *pControlModels ); - bIsRadioButton = xModelSI.is() && xModelSI->supportsService( ::rtl::OUString::createFromAscii( szServiceName2_UnoControlRadioButtonModel ) ); + bIsRadioButton = xModelSI.is() && xModelSI->supportsService( OUString::createFromAscii( szServiceName2_UnoControlRadioButtonModel ) ); switch ( eState ) { @@ -991,9 +991,9 @@ void ControlModelContainerBase::implUpdateGroupStructure() #if OSL_DEBUG_LEVEL > 1 Reference< XPropertySet > xModelProps( *pControlModels, UNO_QUERY ); - ::rtl::OUString sLabel; - if ( xModelProps.is() && xModelProps->getPropertySetInfo().is() && xModelProps->getPropertySetInfo()->hasPropertyByName( ::rtl::OUString("Label") ) ) - xModelProps->getPropertyValue( ::rtl::OUString("Label") ) >>= sLabel; + OUString sLabel; + if ( xModelProps.is() && xModelProps->getPropertySetInfo().is() && xModelProps->getPropertySetInfo()->hasPropertyByName( OUString("Label") ) ) + xModelProps->getPropertyValue( OUString("Label") ) >>= sLabel; aCurrentGroupLabels.push_back( sLabel ); #endif } @@ -1024,9 +1024,9 @@ void ControlModelContainerBase::implUpdateGroupStructure() #if OSL_DEBUG_LEVEL > 1 Reference< XPropertySet > xModelProps( *pControlModels, UNO_QUERY ); - ::rtl::OUString sLabel; - if ( xModelProps.is() && xModelProps->getPropertySetInfo().is() && xModelProps->getPropertySetInfo()->hasPropertyByName( ::rtl::OUString("Label") ) ) - xModelProps->getPropertyValue( ::rtl::OUString("Label") ) >>= sLabel; + OUString sLabel; + if ( xModelProps.is() && xModelProps->getPropertySetInfo().is() && xModelProps->getPropertySetInfo()->hasPropertyByName( OUString("Label") ) ) + xModelProps->getPropertyValue( OUString("Label") ) >>= sLabel; aCurrentGroupLabels.push_back( sLabel ); #endif continue; @@ -1054,9 +1054,9 @@ void ControlModelContainerBase::implUpdateGroupStructure() eState = eExpandingGroup; #if OSL_DEBUG_LEVEL > 1 Reference< XPropertySet > xModelProps( *pControlModels, UNO_QUERY ); - ::rtl::OUString sLabel; - if ( xModelProps.is() && xModelProps->getPropertySetInfo().is() && xModelProps->getPropertySetInfo()->hasPropertyByName( ::rtl::OUString("Label") ) ) - xModelProps->getPropertyValue( ::rtl::OUString("Label") ) >>= sLabel; + OUString sLabel; + if ( xModelProps.is() && xModelProps->getPropertySetInfo().is() && xModelProps->getPropertySetInfo()->hasPropertyByName( OUString("Label") ) ) + xModelProps->getPropertyValue( OUString("Label") ) >>= sLabel; aCurrentGroupLabels.push_back( sLabel ); #endif } @@ -1076,7 +1076,7 @@ void SAL_CALL ControlModelContainerBase::propertyChange( const PropertyChangeEve "UnoControlDialogModel::propertyChange: not listening for this property!" ); // the accessor for the changed element - ::rtl::OUString sAccessor; + OUString sAccessor; UnoControlModelHolderList::const_iterator aPos = ::std::find_if( maModels.begin(), maModels.end(), @@ -1375,11 +1375,11 @@ void ControlContainerBase::createPeer( const Reference< XToolkit > & rxToolkit, UnoControlContainer::createPeer( rxToolkit, rParentPeer ); } -void ControlContainerBase::ImplInsertControl( Reference< XControlModel >& rxModel, const ::rtl::OUString& rName ) +void ControlContainerBase::ImplInsertControl( Reference< XControlModel >& rxModel, const OUString& rName ) { Reference< XPropertySet > xP( rxModel, UNO_QUERY ); - ::rtl::OUString aDefCtrl; + OUString aDefCtrl; xP->getPropertyValue( GetPropertyName( BASEPROPERTY_DEFAULTCONTROL ) ) >>= aDefCtrl; Reference < XControl > xCtrl( m_xContext->getServiceManager()->createInstanceWithContext(aDefCtrl, m_xContext), UNO_QUERY ); @@ -1420,10 +1420,10 @@ void ControlContainerBase::ImplSetPosSize( Reference< XControl >& rxCtrl ) Reference< XPropertySet > xP( rxCtrl->getModel(), UNO_QUERY ); sal_Int32 nX = 0, nY = 0, nWidth = 0, nHeight = 0; - xP->getPropertyValue( ::rtl::OUString( "PositionX" ) ) >>= nX; - xP->getPropertyValue( ::rtl::OUString( "PositionY" ) ) >>= nY; - xP->getPropertyValue( ::rtl::OUString( "Width" ) ) >>= nWidth; - xP->getPropertyValue( ::rtl::OUString( "Height" ) ) >>= nHeight; + xP->getPropertyValue( OUString( "PositionX" ) ) >>= nX; + xP->getPropertyValue( OUString( "PositionY" ) ) >>= nY; + xP->getPropertyValue( OUString( "Width" ) ) >>= nWidth; + xP->getPropertyValue( OUString( "Height" ) ) >>= nHeight; MapMode aMode( MAP_APPFONT ); OutputDevice*pOutDev = Application::GetDefaultDevice(); if ( pOutDev ) @@ -1539,8 +1539,8 @@ sal_Bool ControlContainerBase::setModel( const Reference< XControlModel >& rxMod Reference< XNameAccess > xNA( getModel(), UNO_QUERY ); if ( xNA.is() ) { - Sequence< ::rtl::OUString > aNames = xNA->getElementNames(); - const ::rtl::OUString* pNames = aNames.getConstArray(); + Sequence< OUString > aNames = xNA->getElementNames(); + const OUString* pNames = aNames.getConstArray(); sal_uInt32 nCtrls = aNames.getLength(); Reference< XControlModel > xCtrlModel; @@ -1595,7 +1595,7 @@ void ControlContainerBase::elementInserted( const ContainerEvent& Event ) throw( SolarMutexGuard aGuard; Reference< XControlModel > xModel; - ::rtl::OUString aName; + OUString aName; Event.Accessor >>= aName; Event.Element >>= xModel; @@ -1656,7 +1656,7 @@ void ControlContainerBase::elementReplaced( const ContainerEvent& Event ) throw( DBG_UNHANDLED_EXCEPTION(); } - ::rtl::OUString aName; + OUString aName; Event.Accessor >>= aName; Event.Element >>= xModel; ENSURE_OR_RETURN_VOID( xModel.is(), "ControlContainerBase::elementReplaced: invalid new element!" ); @@ -1679,10 +1679,10 @@ void ControlContainerBase::ImplModelPropertiesChanged( const Sequence< PropertyC { if( !isDesignMode() && !mbCreatingCompatiblePeer ) { - ::rtl::OUString s1( "PositionX" ); - ::rtl::OUString s2( "PositionY" ); - ::rtl::OUString s3( "Width" ); - ::rtl::OUString s4( "Height" ); + OUString s1( "PositionX" ); + OUString s2( "PositionY" ); + OUString s3( "Width" ); + OUString s4( "Height" ); sal_Int32 nLen = rEvents.getLength(); for( sal_Int32 i = 0; i < nLen; i++ ) @@ -1728,8 +1728,8 @@ void ControlContainerBase::addingControl( const Reference< XControl >& _rxContro Reference< XMultiPropertySet > xProps( _rxControl->getModel(), UNO_QUERY ); if ( xProps.is() ) { - Sequence< ::rtl::OUString > aNames( 4 ); - ::rtl::OUString* pNames = aNames.getArray(); + Sequence< OUString > aNames( 4 ); + OUString* pNames = aNames.getArray(); *pNames++ = "PositionX"; *pNames++ = "PositionY"; *pNames++ = "Width"; @@ -1766,11 +1766,11 @@ void SAL_CALL ControlContainerBase::changesOccurred( const ChangesEvent& ) throw } static void lcl_ApplyResolverToNestedContainees( const Reference< resource::XStringResourceResolver >& xStringResourceResolver, const Reference< XControlContainer >& xContainer ) { - rtl::OUString aPropName( PROPERTY_RESOURCERESOLVER ); + OUString aPropName( PROPERTY_RESOURCERESOLVER ); Any xNewStringResourceResolver; xNewStringResourceResolver <<= xStringResourceResolver; - Sequence< rtl::OUString > aPropNames(1); + Sequence< OUString > aPropNames(1); aPropNames[0] = aPropName; const Sequence< Reference< awt::XControl > > aSeq = xContainer->getControls(); @@ -1829,7 +1829,7 @@ void ControlContainerBase::ImplStartListingForResourceEvents() void ControlContainerBase::ImplUpdateResourceResolver() { - rtl::OUString aPropName( PROPERTY_RESOURCERESOLVER ); + OUString aPropName( PROPERTY_RESOURCERESOLVER ); Reference< resource::XStringResourceResolver > xStringResourceResolver; ImplGetPropertyValue( aPropName ) >>= xStringResourceResolver; @@ -1852,16 +1852,16 @@ void ControlContainerBase::ImplUpdateResourceResolver() //// Helper Method to convert relative url to physical location //// ---------------------------------------------------- -::rtl::OUString getPhysicalLocation( const ::com::sun::star::uno::Any& rbase, const ::com::sun::star::uno::Any& rUrl ) +OUString getPhysicalLocation( const ::com::sun::star::uno::Any& rbase, const ::com::sun::star::uno::Any& rUrl ) { - ::rtl::OUString baseLocation; - ::rtl::OUString url; + OUString baseLocation; + OUString url; rbase >>= baseLocation; rUrl >>= url; - ::rtl::OUString absoluteURL( url ); + OUString absoluteURL( url ); if ( !url.isEmpty() ) { INetURLObject urlObj(baseLocation); @@ -1872,7 +1872,7 @@ void ControlContainerBase::ImplUpdateResourceResolver() const INetProtocol protocol = protocolCheck.GetProtocol(); if ( protocol == INET_PROT_NOT_VALID ) { - ::rtl::OUString testAbsoluteURL; + OUString testAbsoluteURL; if ( ::osl::FileBase::E_None == ::osl::FileBase::getAbsoluteFileURL( baseLocation, url, testAbsoluteURL ) ) absoluteURL = testAbsoluteURL; } @@ -1882,7 +1882,7 @@ void ControlContainerBase::ImplUpdateResourceResolver() } void -ControlModelContainerBase::updateUserFormChildren( const Reference< XNameContainer >& xAllChildren, const rtl::OUString& aName, ChildOperation Operation, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& xTarget ) throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException) +ControlModelContainerBase::updateUserFormChildren( const Reference< XNameContainer >& xAllChildren, const OUString& aName, ChildOperation Operation, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& xTarget ) throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException) { if ( Operation < Insert || Operation > Remove ) throw IllegalArgumentException(); @@ -1902,7 +1902,7 @@ ControlModelContainerBase::updateUserFormChildren( const Reference< XNameContain // global list of containees if ( xProps.is() ) xProps->setPropertyValue( GetPropertyName( BASEPROPERTY_USERFORMCONTAINEES ), uno::makeAny( uno::Reference< XNameContainer >() ) ); - Sequence< rtl::OUString > aChildNames = xChildContainer->getElementNames(); + Sequence< OUString > aChildNames = xChildContainer->getElementNames(); for ( sal_Int32 index=0; index< aChildNames.getLength(); ++index ) updateUserFormChildren( xAllChildren, aChildNames[ index ], Operation, Reference< XControlModel > () ); } @@ -1918,7 +1918,7 @@ ControlModelContainerBase::updateUserFormChildren( const Reference< XNameContain Reference< XPropertySet > xProps( xChildContainer, UNO_QUERY ); if ( xProps.is() ) xProps->setPropertyValue( GetPropertyName( BASEPROPERTY_USERFORMCONTAINEES ), uno::makeAny( xAllChildren ) ); - Sequence< rtl::OUString > aChildNames = xChildContainer->getElementNames(); + Sequence< OUString > aChildNames = xChildContainer->getElementNames(); for ( sal_Int32 index=0; index< aChildNames.getLength(); ++index ) { Reference< XControlModel > xChildTarget( xChildContainer->getByName( aChildNames[ index ] ), UNO_QUERY ); diff --git a/toolkit/source/controls/dialogcontrol.cxx b/toolkit/source/controls/dialogcontrol.cxx index 4dc26286e818..096d07c0d848 100644 --- a/toolkit/source/controls/dialogcontrol.cxx +++ b/toolkit/source/controls/dialogcontrol.cxx @@ -59,9 +59,9 @@ using namespace ::com::sun::star::container; using namespace ::com::sun::star::beans; using namespace ::com::sun::star::util; -#define PROPERTY_DIALOGSOURCEURL ::rtl::OUString( "DialogSourceURL" ) -#define PROPERTY_IMAGEURL ::rtl::OUString( "ImageURL" ) -#define PROPERTY_GRAPHIC ::rtl::OUString( "Graphic" ) +#define PROPERTY_DIALOGSOURCEURL OUString( "DialogSourceURL" ) +#define PROPERTY_IMAGEURL OUString( "ImageURL" ) +#define PROPERTY_GRAPHIC OUString( "Graphic" ) // // we probably will need both a hash of control models and hash of controls @@ -72,13 +72,13 @@ typedef ::cppu::WeakImplHelper1< container::XNameContainer > SimpleNameContainer template< typename T > class SimpleNamedThingContainer : public SimpleNameContainer_BASE { - typedef boost::unordered_map< rtl::OUString, Reference< T >, ::rtl::OUStringHash, - ::std::equal_to< ::rtl::OUString > > NamedThingsHash; + typedef boost::unordered_map< OUString, Reference< T >, OUStringHash, + ::std::equal_to< OUString > > NamedThingsHash; NamedThingsHash things; ::osl::Mutex m_aMutex; public: // ::com::sun::star::container::XNameContainer, XNameReplace, XNameAccess - virtual void SAL_CALL replaceByName( const ::rtl::OUString& aName, const Any& aElement ) throw(IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException) + virtual void SAL_CALL replaceByName( const OUString& aName, const Any& aElement ) throw(IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); if ( !hasByName( aName ) ) @@ -88,30 +88,30 @@ public: throw IllegalArgumentException(); things[ aName ] = xElement; } - virtual Any SAL_CALL getByName( const ::rtl::OUString& aName ) throw(NoSuchElementException, WrappedTargetException, RuntimeException) + virtual Any SAL_CALL getByName( const OUString& aName ) throw(NoSuchElementException, WrappedTargetException, RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); if ( !hasByName( aName ) ) throw NoSuchElementException(); return uno::makeAny( things[ aName ] ); } - virtual Sequence< ::rtl::OUString > SAL_CALL getElementNames( ) throw(RuntimeException) + virtual Sequence< OUString > SAL_CALL getElementNames( ) throw(RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); - Sequence< ::rtl::OUString > aResult( things.size() ); + Sequence< OUString > aResult( things.size() ); typename NamedThingsHash::iterator it = things.begin(); typename NamedThingsHash::iterator it_end = things.end(); - rtl::OUString* pName = aResult.getArray(); + OUString* pName = aResult.getArray(); for (; it != it_end; ++it, ++pName ) *pName = it->first; return aResult; } - virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw(RuntimeException) + virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) throw(RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); return ( things.find( aName ) != things.end() ); } - virtual void SAL_CALL insertByName( const ::rtl::OUString& aName, const Any& aElement ) throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException) + virtual void SAL_CALL insertByName( const OUString& aName, const Any& aElement ) throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); if ( hasByName( aName ) ) @@ -121,7 +121,7 @@ public: throw IllegalArgumentException(); things[ aName ] = xElement; } - virtual void SAL_CALL removeByName( const ::rtl::OUString& aName ) throw(NoSuchElementException, WrappedTargetException, RuntimeException) + virtual void SAL_CALL removeByName( const OUString& aName ) throw(NoSuchElementException, WrappedTargetException, RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); if ( !hasByName( aName ) ) @@ -140,7 +140,7 @@ public: }; ////HELPER -::rtl::OUString getPhysicalLocation( const ::com::sun::star::uno::Any& rbase, const ::com::sun::star::uno::Any& rUrl ); +OUString getPhysicalLocation( const ::com::sun::star::uno::Any& rbase, const ::com::sun::star::uno::Any& rUrl ); // ---------------------------------------------------- // class UnoControlDialogModel @@ -186,9 +186,9 @@ UnoControlDialogModel::UnoControlDialogModel( const UnoControlDialogModel& rMode Reference< XNameContainer > xSrcNameCont( const_cast< UnoControlDialogModel& >(rModel).getPropertyValue( GetPropertyName( BASEPROPERTY_USERFORMCONTAINEES ) ), UNO_QUERY ); Reference<XNameContainer > xNameCont( new SimpleNamedThingContainer< XControlModel >() ); - uno::Sequence< rtl::OUString > sNames = xSrcNameCont->getElementNames(); - rtl::OUString* pName = sNames.getArray(); - rtl::OUString* pNamesEnd = pName + sNames.getLength(); + uno::Sequence< OUString > sNames = xSrcNameCont->getElementNames(); + OUString* pName = sNames.getArray(); + OUString* pNamesEnd = pName + sNames.getLength(); for ( ; pName != pNamesEnd; ++pName ) { if ( xSrcNameCont->hasByName( *pName ) ) @@ -212,9 +212,9 @@ UnoControlModel* UnoControlDialogModel::Clone() const } -::rtl::OUString UnoControlDialogModel::getServiceName( ) throw(RuntimeException) +OUString UnoControlDialogModel::getServiceName( ) throw(RuntimeException) { - return ::rtl::OUString::createFromAscii( szServiceName_UnoControlDialogModel ); + return OUString::createFromAscii( szServiceName_UnoControlDialogModel ); } Any UnoControlDialogModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const @@ -224,7 +224,7 @@ Any UnoControlDialogModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const switch ( nPropId ) { case BASEPROPERTY_DEFAULTCONTROL: - aAny <<= ::rtl::OUString::createFromAscii( szServiceName_UnoControlDialog ); + aAny <<= OUString::createFromAscii( szServiceName_UnoControlDialog ); break; case BASEPROPERTY_SCROLLWIDTH: case BASEPROPERTY_SCROLLHEIGHT: @@ -264,7 +264,7 @@ void SAL_CALL UnoControlDialogModel::setFastPropertyValue_NoBroadcast( sal_Int32 { if ( nHandle == BASEPROPERTY_IMAGEURL && ImplHasProperty( BASEPROPERTY_GRAPHIC ) ) { - ::rtl::OUString sImageURL; + OUString sImageURL; OSL_VERIFY( rValue >>= sImageURL ); setPropertyValue( GetPropertyName( BASEPROPERTY_GRAPHIC ), uno::makeAny( ImageHelper::getGraphicAndGraphicObjectFromURL_nothrow( mxGrfObj, sImageURL ) ) ); } @@ -291,15 +291,15 @@ UnoDialogControl::~UnoDialogControl() { } -::rtl::OUString UnoDialogControl::GetComponentServiceName() +OUString UnoDialogControl::GetComponentServiceName() { sal_Bool bDecoration( sal_True ); ImplGetPropertyValue( GetPropertyName( BASEPROPERTY_DECORATION )) >>= bDecoration; if ( bDecoration ) - return ::rtl::OUString("Dialog"); + return OUString("Dialog"); else - return ::rtl::OUString("TabPage"); + return OUString("TabPage"); } void UnoDialogControl::dispose() throw(RuntimeException) @@ -373,12 +373,12 @@ void UnoDialogControl::PrepareWindowDescriptor( ::com::sun::star::awt::WindowDes // into the peer via propertiesChangeEvents. As the order of // can lead to overwrites we have to set the graphic property // before the propertiesChangeEvents are sent! - ::rtl::OUString aImageURL; + OUString aImageURL; Reference< graphic::XGraphic > xGraphic; if (( ImplGetPropertyValue( PROPERTY_IMAGEURL ) >>= aImageURL ) && ( !aImageURL.isEmpty() )) { - ::rtl::OUString absoluteUrl = aImageURL; + OUString absoluteUrl = aImageURL; if ( !aImageURL.startsWith( UNO_NAME_GRAPHOBJ_URLPREFIX ) ) absoluteUrl = getPhysicalLocation( ImplGetPropertyValue( PROPERTY_DIALOGSOURCEURL ), uno::makeAny( aImageURL ) ); @@ -475,11 +475,11 @@ throw (::com::sun::star::uno::RuntimeException) // Remember that changes have been done by listener. No need to // update the position because of property change event. mbSizeModified = true; - Sequence< rtl::OUString > aProps( 2 ); + Sequence< OUString > aProps( 2 ); Sequence< Any > aValues( 2 ); // Properties in a sequence must be sorted! - aProps[0] = rtl::OUString( "Height" ); - aProps[1] = rtl::OUString( "Width" ); + aProps[0] = OUString( "Height" ); + aProps[1] = OUString( "Width" ); aValues[0] <<= aAppFontSize.Height(); aValues[1] <<= aAppFontSize.Width(); @@ -503,10 +503,10 @@ throw (::com::sun::star::uno::RuntimeException) // Remember that changes have been done by listener. No need to // update the position because of property change event. mbPosModified = true; - Sequence< rtl::OUString > aProps( 2 ); + Sequence< OUString > aProps( 2 ); Sequence< Any > aValues( 2 ); - aProps[0] = rtl::OUString( "PositionX" ); - aProps[1] = rtl::OUString( "PositionY" ); + aProps[0] = OUString( "PositionX" ); + aProps[1] = OUString( "PositionY" ); aValues[0] <<= aTmp.Width(); aValues[1] <<= aTmp.Height(); @@ -532,14 +532,14 @@ void SAL_CALL UnoDialogControl::endDialog( ::sal_Int32 i_result ) throw (Runtime xPeerDialog->endDialog( i_result ); } -void SAL_CALL UnoDialogControl::setHelpId( const rtl::OUString& i_id ) throw (RuntimeException) +void SAL_CALL UnoDialogControl::setHelpId( const OUString& i_id ) throw (RuntimeException) { Reference< XDialog2 > xPeerDialog( getPeer(), UNO_QUERY ); if ( xPeerDialog.is() ) xPeerDialog->setHelpId( i_id ); } -void UnoDialogControl::setTitle( const ::rtl::OUString& Title ) throw(RuntimeException) +void UnoDialogControl::setTitle( const OUString& Title ) throw(RuntimeException) { SolarMutexGuard aGuard; Any aAny; @@ -547,7 +547,7 @@ void UnoDialogControl::setTitle( const ::rtl::OUString& Title ) throw(RuntimeExc ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_TITLE ), aAny, sal_True ); } -::rtl::OUString UnoDialogControl::getTitle() throw(RuntimeException) +OUString UnoDialogControl::getTitle() throw(RuntimeException) { SolarMutexGuard aGuard; return ImplGetPropertyValue_UString( BASEPROPERTY_TITLE ); @@ -602,12 +602,12 @@ void UnoDialogControl::ImplModelPropertiesChanged( const Sequence< PropertyChang sal_Bool bOwnModel = (XControlModel*)xModel.get() == (XControlModel*)getModel().get(); if ( bOwnModel && rEvt.PropertyName.equalsAsciiL( "ImageURL", 8 )) { - ::rtl::OUString aImageURL; + OUString aImageURL; Reference< graphic::XGraphic > xGraphic; if (( ImplGetPropertyValue( GetPropertyName( BASEPROPERTY_IMAGEURL ) ) >>= aImageURL ) && ( !aImageURL.isEmpty() )) { - ::rtl::OUString absoluteUrl = aImageURL; + OUString absoluteUrl = aImageURL; if ( !aImageURL.startsWith( UNO_NAME_GRAPHOBJ_URLPREFIX ) ) absoluteUrl = getPhysicalLocation( ImplGetPropertyValue( GetPropertyName( BASEPROPERTY_DIALOGSOURCEURL )), @@ -749,14 +749,14 @@ uno::Any UnoMultiPageControl::queryAggregation( const uno::Type & rType ) throw( return (aRet.hasValue() ? aRet : ControlContainerBase::queryAggregation( rType )); } -::rtl::OUString UnoMultiPageControl::GetComponentServiceName() +OUString UnoMultiPageControl::GetComponentServiceName() { sal_Bool bDecoration( sal_True ); ImplGetPropertyValue( GetPropertyName( BASEPROPERTY_DECORATION )) >>= bDecoration; if ( bDecoration ) - return ::rtl::OUString("tabcontrol"); + return OUString("tabcontrol"); // Hopefully we can tweak the tabcontrol to display without tabs - return ::rtl::OUString("tabcontrolnotabs"); + return OUString("tabcontrolnotabs"); } void UnoMultiPageControl::bindPage( const uno::Reference< awt::XControl >& _rxControl ) @@ -772,7 +772,7 @@ void UnoMultiPageControl::bindPage( const uno::Reference< awt::XControl >& _rxCo VCLXMultiPage* pXTab = dynamic_cast< VCLXMultiPage* >( xTabCntrl.get() ); if ( pXTab ) { - rtl::OUString sTitle; + OUString sTitle; xProps->getPropertyValue( GetPropertyName( BASEPROPERTY_TITLE ) ) >>= sTitle; pXTab->insertTab( pPage, sTitle); } @@ -870,9 +870,9 @@ UnoMultiPageModel::Clone() const return pClone; } -::rtl::OUString UnoMultiPageModel::getServiceName() throw(::com::sun::star::uno::RuntimeException) +OUString UnoMultiPageModel::getServiceName() throw(::com::sun::star::uno::RuntimeException) { - return ::rtl::OUString::createFromAscii( szServiceName_UnoMultiPageModel ); + return OUString::createFromAscii( szServiceName_UnoMultiPageModel ); } uno::Any UnoMultiPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const @@ -880,7 +880,7 @@ uno::Any UnoMultiPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const if ( nPropId == BASEPROPERTY_DEFAULTCONTROL ) { uno::Any aAny; - aAny <<= ::rtl::OUString::createFromAscii( szServiceName_UnoMultiPageControl ); + aAny <<= OUString::createFromAscii( szServiceName_UnoMultiPageControl ); return aAny; } return ControlModelContainerBase::ImplGetDefaultValue( nPropId ); @@ -904,7 +904,7 @@ uno::Reference< beans::XPropertySetInfo > UnoMultiPageModel::getPropertySetInfo( return xInfo; } -void UnoMultiPageModel::insertByName( const ::rtl::OUString& aName, const Any& aElement ) throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException) +void UnoMultiPageModel::insertByName( const OUString& aName, const Any& aElement ) throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException) { Reference< XServiceInfo > xInfo; aElement >>= xInfo; @@ -913,7 +913,7 @@ void UnoMultiPageModel::insertByName( const ::rtl::OUString& aName, const Any& a throw IllegalArgumentException(); // Only a Page model can be inserted into the multipage - if ( !xInfo->supportsService( rtl::OUString::createFromAscii( szServiceName_UnoPageModel ) ) ) + if ( !xInfo->supportsService( OUString::createFromAscii( szServiceName_UnoPageModel ) ) ) throw IllegalArgumentException(); return ControlModelContainerBase::insertByName( aName, aElement ); @@ -938,9 +938,9 @@ UnoPageControl::~UnoPageControl() { } -::rtl::OUString UnoPageControl::GetComponentServiceName() +OUString UnoPageControl::GetComponentServiceName() { - return ::rtl::OUString("tabpage"); + return OUString("tabpage"); } @@ -990,9 +990,9 @@ UnoPageModel::Clone() const return pClone; } -::rtl::OUString UnoPageModel::getServiceName() throw(::com::sun::star::uno::RuntimeException) +OUString UnoPageModel::getServiceName() throw(::com::sun::star::uno::RuntimeException) { - return ::rtl::OUString::createFromAscii( szServiceName_UnoPageModel ); + return OUString::createFromAscii( szServiceName_UnoPageModel ); } uno::Any UnoPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const @@ -1000,7 +1000,7 @@ uno::Any UnoPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const if ( nPropId == BASEPROPERTY_DEFAULTCONTROL ) { uno::Any aAny; - aAny <<= ::rtl::OUString::createFromAscii( szServiceName_UnoPageControl ); + aAny <<= OUString::createFromAscii( szServiceName_UnoPageControl ); return aAny; } return ControlModelContainerBase::ImplGetDefaultValue( nPropId ); @@ -1045,15 +1045,15 @@ UnoFrameControl::~UnoFrameControl() { } -::rtl::OUString UnoFrameControl::GetComponentServiceName() +OUString UnoFrameControl::GetComponentServiceName() { - return ::rtl::OUString("frame"); + return OUString("frame"); } void UnoFrameControl::ImplSetPosSize( Reference< XControl >& rxCtrl ) { bool bOwnCtrl = false; - rtl::OUString sTitle; + OUString sTitle; if ( rxCtrl.get() == Reference<XControl>( this ).get() ) bOwnCtrl = true; Reference< XPropertySet > xProps( getModel(), UNO_QUERY ); @@ -1155,9 +1155,9 @@ UnoFrameModel::Clone() const return pClone; } -::rtl::OUString UnoFrameModel::getServiceName() throw(::com::sun::star::uno::RuntimeException) +OUString UnoFrameModel::getServiceName() throw(::com::sun::star::uno::RuntimeException) { - return ::rtl::OUString::createFromAscii( szServiceName_UnoFrameModel ); + return OUString::createFromAscii( szServiceName_UnoFrameModel ); } uno::Any UnoFrameModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const @@ -1167,7 +1167,7 @@ uno::Any UnoFrameModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const { case BASEPROPERTY_DEFAULTCONTROL: { - aAny <<= ::rtl::OUString::createFromAscii( szServiceName_UnoFrameControl ); + aAny <<= OUString::createFromAscii( szServiceName_UnoFrameControl ); return aAny; } case BASEPROPERTY_SCROLLWIDTH: diff --git a/toolkit/source/controls/eventcontainer.cxx b/toolkit/source/controls/eventcontainer.cxx index b141b85dffac..35999d38240c 100644 --- a/toolkit/source/controls/eventcontainer.cxx +++ b/toolkit/source/controls/eventcontainer.cxx @@ -36,7 +36,6 @@ using namespace cppu; using namespace osl; using namespace std; -using ::rtl::OUString; namespace toolkit { diff --git a/toolkit/source/controls/formattedcontrol.cxx b/toolkit/source/controls/formattedcontrol.cxx index 1ed4fd4b5848..9aa143b54560 100644 --- a/toolkit/source/controls/formattedcontrol.cxx +++ b/toolkit/source/controls/formattedcontrol.cxx @@ -163,9 +163,9 @@ namespace toolkit } // ------------------------------------------------------------------- - ::rtl::OUString UnoControlFormattedFieldModel::getServiceName() throw(RuntimeException) + OUString UnoControlFormattedFieldModel::getServiceName() throw(RuntimeException) { - return ::rtl::OUString::createFromAscii( szServiceName_UnoControlFormattedFieldModel ); + return OUString::createFromAscii( szServiceName_UnoControlFormattedFieldModel ); } // ------------------------------------------------------------------- @@ -203,7 +203,7 @@ namespace toolkit Any aEffectiveValue; getFastPropertyValue( aEffectiveValue, BASEPROPERTY_EFFECTIVE_VALUE ); - ::rtl::OUString sStringValue; + OUString sStringValue; if ( !( aEffectiveValue >>= sStringValue ) ) { double nDoubleValue(0); @@ -302,11 +302,11 @@ namespace toolkit } // ------------------------------------------------------------------- - void SAL_CALL UnoControlFormattedFieldModel::setPropertyValues( const Sequence< ::rtl::OUString >& _rPropertyNames, const Sequence< Any >& _rValues ) throw(PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException) + void SAL_CALL UnoControlFormattedFieldModel::setPropertyValues( const Sequence< OUString >& _rPropertyNames, const Sequence< Any >& _rValues ) throw(PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException) { bool bSettingValue = false; bool bSettingText = false; - for ( const ::rtl::OUString* pPropertyNames = _rPropertyNames.getConstArray(); + for ( const OUString* pPropertyNames = _rPropertyNames.getConstArray(); pPropertyNames != _rPropertyNames.getConstArray() + _rPropertyNames.getLength(); ++pPropertyNames ) @@ -331,7 +331,7 @@ namespace toolkit if ( BASEPROPERTY_EFFECTIVE_DEFAULT == nPropId && rValue.hasValue() ) { double dVal = 0; - ::rtl::OUString sVal; + OUString sVal; sal_Bool bStreamed = (rValue >>= dVal); if ( bStreamed ) { @@ -378,7 +378,7 @@ namespace toolkit Any aReturn; switch (nPropId) { - case BASEPROPERTY_DEFAULTCONTROL: aReturn <<= ::rtl::OUString( ::rtl::OUString::createFromAscii( szServiceName_UnoControlFormattedField ) ); break; + case BASEPROPERTY_DEFAULTCONTROL: aReturn <<= OUString( OUString::createFromAscii( szServiceName_UnoControlFormattedField ) ); break; case BASEPROPERTY_TREATASNUMBER: aReturn <<= (sal_Bool)sal_True; break; @@ -438,7 +438,7 @@ namespace toolkit Reference< XVclWindowPeer > xPeer(getPeer(), UNO_QUERY); OSL_ENSURE(xPeer.is(), "UnoFormattedFieldControl::textChanged : what kind of peer do I have ?"); - Sequence< ::rtl::OUString > aNames( 2 ); + Sequence< OUString > aNames( 2 ); aNames[0] = GetPropertyName( BASEPROPERTY_EFFECTIVE_VALUE ); aNames[1] = GetPropertyName( BASEPROPERTY_TEXT ); diff --git a/toolkit/source/controls/geometrycontrolmodel.cxx b/toolkit/source/controls/geometrycontrolmodel.cxx index 98ae06f40a27..b512ffe587d5 100644 --- a/toolkit/source/controls/geometrycontrolmodel.cxx +++ b/toolkit/source/controls/geometrycontrolmodel.cxx @@ -40,15 +40,15 @@ #define GCM_PROPERTY_ID_TAG 8 #define GCM_PROPERTY_ID_RESOURCERESOLVER 9 -#define GCM_PROPERTY_POS_X ::rtl::OUString("PositionX") -#define GCM_PROPERTY_POS_Y ::rtl::OUString("PositionY") -#define GCM_PROPERTY_WIDTH ::rtl::OUString("Width") -#define GCM_PROPERTY_HEIGHT ::rtl::OUString("Height") -#define GCM_PROPERTY_NAME ::rtl::OUString("Name") -#define GCM_PROPERTY_TABINDEX ::rtl::OUString("TabIndex") -#define GCM_PROPERTY_STEP ::rtl::OUString("Step") -#define GCM_PROPERTY_TAG ::rtl::OUString("Tag") -#define GCM_PROPERTY_RESOURCERESOLVER ::rtl::OUString("ResourceResolver") +#define GCM_PROPERTY_POS_X OUString("PositionX") +#define GCM_PROPERTY_POS_Y OUString("PositionY") +#define GCM_PROPERTY_WIDTH OUString("Width") +#define GCM_PROPERTY_HEIGHT OUString("Height") +#define GCM_PROPERTY_NAME OUString("Name") +#define GCM_PROPERTY_TABINDEX OUString("TabIndex") +#define GCM_PROPERTY_STEP OUString("Step") +#define GCM_PROPERTY_TAG OUString("Tag") +#define GCM_PROPERTY_RESOURCERESOLVER OUString("ResourceResolver") #define DEFAULT_ATTRIBS() PropertyAttribute::BOUND | PropertyAttribute::TRANSIENT @@ -192,10 +192,10 @@ case GCM_PROPERTY_ID_POS_Y: aDefault <<= (sal_Int32) 0; break; case GCM_PROPERTY_ID_WIDTH: aDefault <<= (sal_Int32) 0; break; case GCM_PROPERTY_ID_HEIGHT: aDefault <<= (sal_Int32) 0; break; - case GCM_PROPERTY_ID_NAME: aDefault <<= ::rtl::OUString(); break; + case GCM_PROPERTY_ID_NAME: aDefault <<= OUString(); break; case GCM_PROPERTY_ID_TABINDEX: aDefault <<= (sal_Int16) -1; break; case GCM_PROPERTY_ID_STEP: aDefault <<= (sal_Int32) 0; break; - case GCM_PROPERTY_ID_TAG: aDefault <<= ::rtl::OUString(); break; + case GCM_PROPERTY_ID_TAG: aDefault <<= OUString(); break; case GCM_PROPERTY_ID_RESOURCERESOLVER: aDefault <<= Reference< resource::XStringResourceResolver >(); break; default: OSL_FAIL( "ImplGetDefaultValueByHandle - unknown Property" ); } @@ -318,7 +318,7 @@ void SAL_CALL OGeometryControlModel_Base::getFastPropertyValue(Any& _rValue, sal_Int32 _nHandle) const { OPropertyArrayAggregationHelper& rPH = static_cast<OPropertyArrayAggregationHelper&>(const_cast<OGeometryControlModel_Base*>(this)->getInfoHelper()); - ::rtl::OUString sPropName; + OUString sPropName; sal_Int32 nOriginalHandle = -1; if (rPH.fillAggregatePropertyInfoByHandle(&sPropName, &nOriginalHandle, _nHandle)) @@ -400,14 +400,14 @@ Reference< XNameContainer > xEventCont = xEventsSupplier->getEvents(); Reference< XNameContainer > xCloneEventCont = xCloneEventsSupplier->getEvents(); - ::com::sun::star::uno::Sequence< ::rtl::OUString > aNames = + ::com::sun::star::uno::Sequence< OUString > aNames = xEventCont->getElementNames(); - const ::rtl::OUString* pNames = aNames.getConstArray(); + const OUString* pNames = aNames.getConstArray(); sal_Int32 i, nNameCount = aNames.getLength(); for( i = 0 ; i < nNameCount ; i++ ) { - ::rtl::OUString aName = pNames[ i ]; + OUString aName = pNames[ i ]; ::com::sun::star::uno::Any aElement = xEventCont->getByName( aName ); xCloneEventCont->insertByName( aName, aElement ); } @@ -440,7 +440,7 @@ //==================================================================== //-------------------------------------------------------------------- - typedef ::boost::unordered_map< ::rtl::OUString, sal_Int32, ::rtl::OUStringHash > HashMapString2Int; + typedef ::boost::unordered_map< OUString, sal_Int32, OUStringHash > HashMapString2Int; typedef ::std::vector< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > > PropSeqArray; typedef ::std::vector< ::std::vector< sal_Int32 > > IntArrayArray; @@ -464,7 +464,7 @@ //-------------------------------------------------------------------- - OCommonGeometryControlModel::OCommonGeometryControlModel( Reference< XCloneable >& _rxAgg, const ::rtl::OUString& _rServiceSpecifier ) + OCommonGeometryControlModel::OCommonGeometryControlModel( Reference< XCloneable >& _rxAgg, const OUString& _rServiceSpecifier ) :OGeometryControlModel_Base( _rxAgg ) ,m_sServiceSpecifier( _rServiceSpecifier ) ,m_nPropertyMapId( 0 ) @@ -505,8 +505,8 @@ //-------------------------------------------------------------------- struct PropertyNameEqual : public ::std::unary_function< Property, bool > { - const ::rtl::OUString& m_rCompare; - PropertyNameEqual( const ::rtl::OUString& _rCompare ) : m_rCompare( _rCompare ) { } + const OUString& m_rCompare; + PropertyNameEqual( const OUString& _rCompare ) : m_rCompare( _rCompare ) { } bool operator()( const Property& _rLHS ) { @@ -621,7 +621,7 @@ if ( rDuplicateIds.end() != aPos ) { // yes, it is such a property - ::rtl::OUString sPropName; + OUString sPropName; sal_Int16 nAttributes(0); static_cast< OPropertyArrayAggregationHelper* >( getArrayHelper( m_nPropertyMapId ) )->fillPropertyMembersByHandle( &sPropName, &nAttributes, _nHandle ); diff --git a/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx b/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx index d114fb5a4c0e..37e8b8fb6a0e 100644 --- a/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx +++ b/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx @@ -152,7 +152,7 @@ namespace toolkit ::comphelper::ComponentGuard aGuard( *this, rBHelper ); if ( ( i_columnIndex < 0 ) || ( size_t( i_columnIndex ) >= m_aColumns.size() ) ) - throw IndexOutOfBoundsException( ::rtl::OUString(), *this ); + throw IndexOutOfBoundsException( OUString(), *this ); Columns::iterator const pos = m_aColumns.begin() + i_columnIndex; Reference< XGridColumn > const xColumn( *pos ); @@ -242,7 +242,7 @@ namespace toolkit { ::rtl::Reference< GridColumn > const pGridColumn = new GridColumn(); Reference< XGridColumn > const xColumn( pGridColumn.get() ); - ::rtl::OUStringBuffer colTitle; + OUStringBuffer colTitle; colTitle.appendAscii( "Column " ); colTitle.append( i + 1 ); pGridColumn->setTitle( colTitle.makeStringAndClear() ); @@ -299,15 +299,15 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - ::rtl::OUString SAL_CALL DefaultGridColumnModel::getImplementationName( ) throw (RuntimeException) + OUString SAL_CALL DefaultGridColumnModel::getImplementationName( ) throw (RuntimeException) { - return ::rtl::OUString( "org.openoffice.comp.toolkit.DefaultGridColumnModel" ); + return OUString( "org.openoffice.comp.toolkit.DefaultGridColumnModel" ); } //------------------------------------------------------------------------------------------------------------------ - sal_Bool SAL_CALL DefaultGridColumnModel::supportsService( const ::rtl::OUString& i_serviceName ) throw (RuntimeException) + sal_Bool SAL_CALL DefaultGridColumnModel::supportsService( const OUString& i_serviceName ) throw (RuntimeException) { - const Sequence< ::rtl::OUString > aServiceNames( getSupportedServiceNames() ); + const Sequence< OUString > aServiceNames( getSupportedServiceNames() ); for ( sal_Int32 i=0; i<aServiceNames.getLength(); ++i ) if ( aServiceNames[i] == i_serviceName ) return sal_True; @@ -315,10 +315,10 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - Sequence< ::rtl::OUString > SAL_CALL DefaultGridColumnModel::getSupportedServiceNames( ) throw (RuntimeException) + Sequence< OUString > SAL_CALL DefaultGridColumnModel::getSupportedServiceNames( ) throw (RuntimeException) { - const ::rtl::OUString aServiceName( ::rtl::OUString::createFromAscii( szServiceName_DefaultGridColumnModel ) ); - const Sequence< ::rtl::OUString > aSeq( &aServiceName, 1 ); + const OUString aServiceName( OUString::createFromAscii( szServiceName_DefaultGridColumnModel ) ); + const Sequence< OUString > aSeq( &aServiceName, 1 ); return aSeq; } diff --git a/toolkit/source/controls/grid/defaultgridcolumnmodel.hxx b/toolkit/source/controls/grid/defaultgridcolumnmodel.hxx index 83b4f1ed75e8..859235e3f8d3 100644 --- a/toolkit/source/controls/grid/defaultgridcolumnmodel.hxx +++ b/toolkit/source/controls/grid/defaultgridcolumnmodel.hxx @@ -55,9 +55,9 @@ public: virtual void SAL_CALL setDefaultColumns(sal_Int32 rowElements) throw (::com::sun::star::uno::RuntimeException); // XServiceInfo - virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException); + virtual ::sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); // XContainer virtual void SAL_CALL addContainerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); diff --git a/toolkit/source/controls/grid/defaultgriddatamodel.cxx b/toolkit/source/controls/grid/defaultgriddatamodel.cxx index b486d6c7eab3..e59078e6374c 100644 --- a/toolkit/source/controls/grid/defaultgriddatamodel.cxx +++ b/toolkit/source/controls/grid/defaultgriddatamodel.cxx @@ -106,7 +106,7 @@ namespace toolkit if ( ( i_row < 0 ) || ( size_t( i_row ) > m_aData.size() ) || ( i_column < 0 ) || ( i_column > m_nColumnCount ) ) - throw IndexOutOfBoundsException( ::rtl::OUString(), *const_cast< DefaultGridDataModel* >( this ) ); + throw IndexOutOfBoundsException( OUString(), *const_cast< DefaultGridDataModel* >( this ) ); RowData const & rRow( m_aData[ i_row ] ); if ( size_t( i_column ) < rRow.size() ) @@ -121,7 +121,7 @@ namespace toolkit { OSL_ENSURE( i_requiredColumnCount <= size_t( m_nColumnCount ), "DefaultGridDataModel::impl_getRowDataAccess_throw: invalid column count!" ); if ( ( i_rowIndex < 0 ) || ( size_t( i_rowIndex ) >= m_aData.size() ) ) - throw IndexOutOfBoundsException( ::rtl::OUString(), *this ); + throw IndexOutOfBoundsException( OUString(), *this ); RowData& rRowData( m_aData[ i_rowIndex ] ); if ( rRowData.size() < i_requiredColumnCount ) @@ -133,7 +133,7 @@ namespace toolkit DefaultGridDataModel::CellData& DefaultGridDataModel::impl_getCellDataAccess_throw( sal_Int32 const i_columnIndex, sal_Int32 const i_rowIndex ) { if ( ( i_columnIndex < 0 ) || ( i_columnIndex >= m_nColumnCount ) ) - throw IndexOutOfBoundsException( ::rtl::OUString(), *this ); + throw IndexOutOfBoundsException( OUString(), *this ); RowData& rRowData( impl_getRowDataAccess_throw( i_rowIndex, size_t( i_columnIndex + 1 ) ) ); return rRowData[ i_columnIndex ]; @@ -159,7 +159,7 @@ namespace toolkit ::comphelper::ComponentGuard aGuard( *this, rBHelper ); if ( ( i_row < 0 ) || ( size_t( i_row ) >= m_aRowHeaders.size() ) ) - throw IndexOutOfBoundsException( ::rtl::OUString(), *this ); + throw IndexOutOfBoundsException( OUString(), *this ); return m_aRowHeaders[ i_row ]; } @@ -214,7 +214,7 @@ namespace toolkit ::comphelper::ComponentGuard aGuard( *this, rBHelper ); if ( ( i_index < 0 ) || ( i_index > impl_getRowCount_nolck() ) ) - throw IndexOutOfBoundsException( ::rtl::OUString(), *this ); + throw IndexOutOfBoundsException( OUString(), *this ); // actually insert the row impl_insertRow( i_index, i_heading, i_data ); @@ -235,12 +235,12 @@ namespace toolkit void SAL_CALL DefaultGridDataModel::insertRows( ::sal_Int32 i_index, const Sequence< Any>& i_headings, const Sequence< Sequence< Any > >& i_data ) throw (IllegalArgumentException, IndexOutOfBoundsException, RuntimeException) { if ( i_headings.getLength() != i_data.getLength() ) - throw IllegalArgumentException( ::rtl::OUString(), *this, -1 ); + throw IllegalArgumentException( OUString(), *this, -1 ); ::comphelper::ComponentGuard aGuard( *this, rBHelper ); if ( ( i_index < 0 ) || ( i_index > impl_getRowCount_nolck() ) ) - throw IndexOutOfBoundsException( ::rtl::OUString(), *this ); + throw IndexOutOfBoundsException( OUString(), *this ); sal_Int32 const rowCount = i_headings.getLength(); if ( rowCount == 0 ) @@ -276,7 +276,7 @@ namespace toolkit ::comphelper::ComponentGuard aGuard( *this, rBHelper ); if ( ( i_rowIndex < 0 ) || ( size_t( i_rowIndex ) >= m_aData.size() ) ) - throw IndexOutOfBoundsException( ::rtl::OUString(), *this ); + throw IndexOutOfBoundsException( OUString(), *this ); m_aRowHeaders.erase( m_aRowHeaders.begin() + i_rowIndex ); m_aData.erase( m_aData.begin() + i_rowIndex ); @@ -323,10 +323,10 @@ namespace toolkit ::comphelper::ComponentGuard aGuard( *this, rBHelper ); if ( ( i_rowIndex < 0 ) || ( size_t( i_rowIndex ) >= m_aData.size() ) ) - throw IndexOutOfBoundsException( ::rtl::OUString(), *this ); + throw IndexOutOfBoundsException( OUString(), *this ); if ( i_columnIndexes.getLength() != i_values.getLength() ) - throw IllegalArgumentException( ::rtl::OUString(), *this, 1 ); + throw IllegalArgumentException( OUString(), *this, 1 ); sal_Int32 const columnCount = i_columnIndexes.getLength(); if ( columnCount == 0 ) @@ -335,7 +335,7 @@ namespace toolkit for ( sal_Int32 col = 0; col < columnCount; ++col ) { if ( ( i_columnIndexes[col] < 0 ) || ( i_columnIndexes[col] > m_nColumnCount ) ) - throw IndexOutOfBoundsException( ::rtl::OUString(), *this ); + throw IndexOutOfBoundsException( OUString(), *this ); } RowData& rDataRow = m_aData[ i_rowIndex ]; @@ -363,7 +363,7 @@ namespace toolkit ::comphelper::ComponentGuard aGuard( *this, rBHelper ); if ( ( i_rowIndex < 0 ) || ( size_t( i_rowIndex ) >= m_aRowHeaders.size() ) ) - throw IndexOutOfBoundsException( ::rtl::OUString(), *this ); + throw IndexOutOfBoundsException( OUString(), *this ); m_aRowHeaders[ i_rowIndex ] = i_heading; @@ -421,23 +421,23 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - ::rtl::OUString SAL_CALL DefaultGridDataModel::getImplementationName( ) throw (RuntimeException) + OUString SAL_CALL DefaultGridDataModel::getImplementationName( ) throw (RuntimeException) { - static const ::rtl::OUString aImplName( "toolkit.DefaultGridDataModel" ); + static const OUString aImplName( "toolkit.DefaultGridDataModel" ); return aImplName; } //------------------------------------------------------------------------------------------------------------------ - sal_Bool SAL_CALL DefaultGridDataModel::supportsService( const ::rtl::OUString& ServiceName ) throw (RuntimeException) + sal_Bool SAL_CALL DefaultGridDataModel::supportsService( const OUString& ServiceName ) throw (RuntimeException) { return ServiceName.equalsAscii( szServiceName_DefaultGridDataModel ); } //------------------------------------------------------------------------------------------------------------------ - Sequence< ::rtl::OUString > SAL_CALL DefaultGridDataModel::getSupportedServiceNames( ) throw (RuntimeException) + Sequence< OUString > SAL_CALL DefaultGridDataModel::getSupportedServiceNames( ) throw (RuntimeException) { - static const ::rtl::OUString aServiceName( ::rtl::OUString::createFromAscii( szServiceName_DefaultGridDataModel ) ); - static const Sequence< ::rtl::OUString > aSeq( &aServiceName, 1 ); + static const OUString aServiceName( OUString::createFromAscii( szServiceName_DefaultGridDataModel ) ); + static const Sequence< OUString > aSeq( &aServiceName, 1 ); return aSeq; } diff --git a/toolkit/source/controls/grid/defaultgriddatamodel.hxx b/toolkit/source/controls/grid/defaultgriddatamodel.hxx index 82fd47021e9a..e58c81dbd8cc 100644 --- a/toolkit/source/controls/grid/defaultgriddatamodel.hxx +++ b/toolkit/source/controls/grid/defaultgriddatamodel.hxx @@ -84,9 +84,9 @@ public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone( ) throw (::com::sun::star::uno::RuntimeException); // XServiceInfo - virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (RuntimeException); - virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (RuntimeException); + virtual OUString SAL_CALL getImplementationName( ) throw (RuntimeException); + virtual ::sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (RuntimeException); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (RuntimeException); private: typedef ::std::pair< Any, Any > CellData; diff --git a/toolkit/source/controls/grid/gridcolumn.cxx b/toolkit/source/controls/grid/gridcolumn.cxx index a0b26c96c09f..10c796b5f495 100644 --- a/toolkit/source/controls/grid/gridcolumn.cxx +++ b/toolkit/source/controls/grid/gridcolumn.cxx @@ -80,7 +80,7 @@ namespace toolkit { Reference< XInterface > const xSource( static_cast< ::cppu::OWeakObject* >( this ) ); GridColumnEvent const aEvent( - xSource, ::rtl::OUString::createFromAscii( i_asciiAttributeName ), + xSource, OUString::createFromAscii( i_asciiAttributeName ), i_oldValue, i_newValue, m_nIndex ); @@ -145,27 +145,27 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - ::rtl::OUString SAL_CALL GridColumn::getTitle() throw (::com::sun::star::uno::RuntimeException) + OUString SAL_CALL GridColumn::getTitle() throw (::com::sun::star::uno::RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return m_sTitle; } //------------------------------------------------------------------------------------------------------------------ - void SAL_CALL GridColumn::setTitle(const ::rtl::OUString & value) throw (::com::sun::star::uno::RuntimeException) + void SAL_CALL GridColumn::setTitle(const OUString & value) throw (::com::sun::star::uno::RuntimeException) { impl_set( m_sTitle, value, "Title" ); } //------------------------------------------------------------------------------------------------------------------ - ::rtl::OUString SAL_CALL GridColumn::getHelpText() throw (RuntimeException) + OUString SAL_CALL GridColumn::getHelpText() throw (RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return m_sHelpText; } //------------------------------------------------------------------------------------------------------------------ - void SAL_CALL GridColumn::setHelpText( const ::rtl::OUString & value ) throw (RuntimeException) + void SAL_CALL GridColumn::setHelpText( const OUString & value ) throw (RuntimeException) { impl_set( m_sHelpText, value, "HelpText" ); } @@ -194,7 +194,7 @@ namespace toolkit void SAL_CALL GridColumn::setFlexibility( ::sal_Int32 i_value ) throw (IllegalArgumentException, RuntimeException) { if ( i_value < 0 ) - throw IllegalArgumentException( ::rtl::OUString(), *this, 1 ); + throw IllegalArgumentException( OUString(), *this, 1 ); impl_set( m_nFlexibility, i_value, "Flexibility" ); } @@ -228,7 +228,7 @@ namespace toolkit { ::osl::MutexGuard aGuard( m_aMutex ); m_aIdentifier.clear(); - m_sTitle = m_sHelpText = ::rtl::OUString(); + m_sTitle = m_sHelpText = OUString(); } //------------------------------------------------------------------------------------------------------------------ @@ -259,15 +259,15 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - ::rtl::OUString SAL_CALL GridColumn::getImplementationName( ) throw (RuntimeException) + OUString SAL_CALL GridColumn::getImplementationName( ) throw (RuntimeException) { - return ::rtl::OUString( "org.openoffice.comp.toolkit.GridColumn" ); + return OUString( "org.openoffice.comp.toolkit.GridColumn" ); } //------------------------------------------------------------------------------------------------------------------ - sal_Bool SAL_CALL GridColumn::supportsService( const ::rtl::OUString& i_serviceName ) throw (RuntimeException) + sal_Bool SAL_CALL GridColumn::supportsService( const OUString& i_serviceName ) throw (RuntimeException) { - const Sequence< ::rtl::OUString > aServiceNames( getSupportedServiceNames() ); + const Sequence< OUString > aServiceNames( getSupportedServiceNames() ); for ( sal_Int32 i=0; i<aServiceNames.getLength(); ++i ) if ( aServiceNames[i] == i_serviceName ) return sal_True; @@ -275,10 +275,10 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL GridColumn::getSupportedServiceNames( ) throw (RuntimeException) + ::com::sun::star::uno::Sequence< OUString > SAL_CALL GridColumn::getSupportedServiceNames( ) throw (RuntimeException) { - const ::rtl::OUString aServiceName( ::rtl::OUString::createFromAscii( szServiceName_GridColumn ) ); - const Sequence< ::rtl::OUString > aSeq( &aServiceName, 1 ); + const OUString aServiceName( OUString::createFromAscii( szServiceName_GridColumn ) ); + const Sequence< OUString > aSeq( &aServiceName, 1 ); return aSeq; } diff --git a/toolkit/source/controls/grid/gridcolumn.hxx b/toolkit/source/controls/grid/gridcolumn.hxx index cd4d1e038ad7..8a287608a389 100644 --- a/toolkit/source/controls/grid/gridcolumn.hxx +++ b/toolkit/source/controls/grid/gridcolumn.hxx @@ -60,10 +60,10 @@ public: virtual void SAL_CALL setResizeable(::sal_Bool the_value) throw (::com::sun::star::uno::RuntimeException); virtual ::sal_Int32 SAL_CALL getFlexibility() throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setFlexibility( ::sal_Int32 _flexibility ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getTitle() throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setTitle(const ::rtl::OUString & value) throw (::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getHelpText() throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setHelpText(const ::rtl::OUString & value) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getTitle() throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setTitle(const OUString & value) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getHelpText() throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setHelpText(const OUString & value) throw (::com::sun::star::uno::RuntimeException); virtual ::sal_Int32 SAL_CALL getIndex() throw (::com::sun::star::uno::RuntimeException); virtual ::sal_Int32 SAL_CALL getDataColumnIndex() throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setDataColumnIndex( ::sal_Int32 i_dataColumnIndex ) throw(::com::sun::star::uno::RuntimeException); @@ -79,9 +79,9 @@ public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone( ) throw (::com::sun::star::uno::RuntimeException); // XServiceInfo - virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException); + virtual ::sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); // XUnoTunnel and friends virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& i_identifier ) throw(::com::sun::star::uno::RuntimeException); @@ -119,8 +119,8 @@ private: sal_Int32 m_nMinWidth; sal_Int32 m_nFlexibility; sal_Bool m_bResizeable; - ::rtl::OUString m_sTitle; - ::rtl::OUString m_sHelpText; + OUString m_sTitle; + OUString m_sHelpText; ::com::sun::star::style::HorizontalAlignment m_eHorizontalAlign; }; diff --git a/toolkit/source/controls/grid/gridcontrol.cxx b/toolkit/source/controls/grid/gridcontrol.cxx index bf169595abaf..e7de2d50facf 100644 --- a/toolkit/source/controls/grid/gridcontrol.cxx +++ b/toolkit/source/controls/grid/gridcontrol.cxx @@ -35,7 +35,6 @@ #include <tools/diagnose_ex.h> #include <tools/color.hxx> -using ::rtl::OUString; using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::awt; @@ -219,7 +218,7 @@ Any UnoGridModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const switch( nPropId ) { case BASEPROPERTY_DEFAULTCONTROL: - return uno::makeAny( ::rtl::OUString::createFromAscii( szServiceName_GridControl ) ); + return uno::makeAny( OUString::createFromAscii( szServiceName_GridControl ) ); case BASEPROPERTY_GRID_SELECTIONMODE: return uno::makeAny( SelectionType(1) ); case BASEPROPERTY_GRID_SHOWROWHEADER: @@ -319,7 +318,7 @@ namespace try { Reference< XContainer > const xColModel( - xModelProps->getPropertyValue( ::rtl::OUString( "ColumnModel" ) ), + xModelProps->getPropertyValue( OUString( "ColumnModel" ) ), UNO_QUERY_THROW ); if ( i_add ) xColModel->addContainerListener( i_listener.get() ); @@ -327,7 +326,7 @@ namespace xColModel->removeContainerListener( i_listener.get() ); Reference< XGridDataModel > const xDataModel( - xModelProps->getPropertyValue( ::rtl::OUString( "GridDataModel" ) ), + xModelProps->getPropertyValue( OUString( "GridDataModel" ) ), UNO_QUERY_THROW ); Reference< XMutableGridDataModel > const xMutableDataModel( xDataModel, UNO_QUERY ); diff --git a/toolkit/source/controls/grid/gridcontrol.hxx b/toolkit/source/controls/grid/gridcontrol.hxx index 607d4552fe98..3bc402bdfcb8 100644 --- a/toolkit/source/controls/grid/gridcontrol.hxx +++ b/toolkit/source/controls/grid/gridcontrol.hxx @@ -59,7 +59,7 @@ public: ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); // ::com::sun::star::io::XPersistObject - ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); + OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); // OPropertySetHelper void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception); @@ -80,7 +80,7 @@ class UnoGridControl : public UnoGridControl_Base { public: UnoGridControl(); - ::rtl::OUString GetComponentServiceName(); + OUString GetComponentServiceName(); // ::com::sun::star::lang::XComponent void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException); diff --git a/toolkit/source/controls/grid/initguard.hxx b/toolkit/source/controls/grid/initguard.hxx index f4c96cb719d0..176229ac32f8 100644 --- a/toolkit/source/controls/grid/initguard.hxx +++ b/toolkit/source/controls/grid/initguard.hxx @@ -40,7 +40,7 @@ namespace toolkit :comphelper::ComponentGuard( i_component, i_broadcastHelper ) { if ( !i_component.isInitialized() ) - throw ::com::sun::star::lang::NotInitializedException( ::rtl::OUString(), *&i_component ); + throw ::com::sun::star::lang::NotInitializedException( OUString(), *&i_component ); } ~InitGuard() diff --git a/toolkit/source/controls/grid/sortablegriddatamodel.cxx b/toolkit/source/controls/grid/sortablegriddatamodel.cxx index 870c8e6aa4a8..d4a218c80172 100644 --- a/toolkit/source/controls/grid/sortablegriddatamodel.cxx +++ b/toolkit/source/controls/grid/sortablegriddatamodel.cxx @@ -228,7 +228,7 @@ namespace toolkit DBG_CHECK_ME(); if ( m_delegator.is() ) - throw AlreadyInitializedException( ::rtl::OUString(), *this ); + throw AlreadyInitializedException( OUString(), *this ); Reference< XMutableGridDataModel > xDelegator; Reference< XCollator > xCollator; @@ -243,11 +243,11 @@ namespace toolkit xDelegator.set( i_arguments[0], UNO_QUERY ); xCollator.set( i_arguments[1], UNO_QUERY ); if ( !xCollator.is() ) - throw IllegalArgumentException( ::rtl::OUString(), *this, 2 ); + throw IllegalArgumentException( OUString(), *this, 2 ); break; } if ( !xDelegator.is() ) - throw IllegalArgumentException( ::rtl::OUString(), *this, 1 ); + throw IllegalArgumentException( OUString(), *this, 1 ); m_delegator = xDelegator; m_collator = xCollator; @@ -521,7 +521,7 @@ namespace toolkit DBG_CHECK_ME(); if ( ( i_columnIndex < 0 ) || ( i_columnIndex >= getColumnCount() ) ) - throw IndexOutOfBoundsException( ::rtl::OUString(), *this ); + throw IndexOutOfBoundsException( OUString(), *this ); if ( !impl_reIndex_nothrow( i_columnIndex, i_sortAscending ) ) return; @@ -834,9 +834,9 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - ::sal_Bool SAL_CALL SortableGridDataModel::supportsService( const ::rtl::OUString& i_serviceName ) throw (RuntimeException) + ::sal_Bool SAL_CALL SortableGridDataModel::supportsService( const OUString& i_serviceName ) throw (RuntimeException) { - Sequence< ::rtl::OUString > const aServiceNames( getSupportedServiceNames() ); + Sequence< OUString > const aServiceNames( getSupportedServiceNames() ); for ( sal_Int32 i=0; i<aServiceNames.getLength(); ++i ) if ( aServiceNames[i] == i_serviceName ) return sal_True; @@ -844,10 +844,10 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - Sequence< ::rtl::OUString > SAL_CALL SortableGridDataModel::getSupportedServiceNames( ) throw (RuntimeException) + Sequence< OUString > SAL_CALL SortableGridDataModel::getSupportedServiceNames( ) throw (RuntimeException) { - Sequence< ::rtl::OUString > aServiceNames(1); - aServiceNames[0] = ::rtl::OUString::createFromAscii( szServiceName_SortableGridDataModel ); + Sequence< OUString > aServiceNames(1); + aServiceNames[0] = OUString::createFromAscii( szServiceName_SortableGridDataModel ); return aServiceNames; } @@ -855,7 +855,7 @@ namespace toolkit ::sal_Int32 SortableGridDataModel::impl_getPrivateRowIndex_throw( ::sal_Int32 const i_publicRowIndex ) const { if ( ( i_publicRowIndex < 0 ) || ( i_publicRowIndex >= m_delegator->getRowCount() ) ) - throw IndexOutOfBoundsException( ::rtl::OUString(), *const_cast< SortableGridDataModel* >( this ) ); + throw IndexOutOfBoundsException( OUString(), *const_cast< SortableGridDataModel* >( this ) ); if ( !impl_isSorted_nothrow() ) // no need to translate anything diff --git a/toolkit/source/controls/grid/sortablegriddatamodel.hxx b/toolkit/source/controls/grid/sortablegriddatamodel.hxx index 85c5abd56c19..b9cdfb5a00ca 100644 --- a/toolkit/source/controls/grid/sortablegriddatamodel.hxx +++ b/toolkit/source/controls/grid/sortablegriddatamodel.hxx @@ -103,9 +103,9 @@ namespace toolkit virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone( ) throw (::com::sun::star::uno::RuntimeException); // XServiceInfo - virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException); + virtual ::sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); // XInitialization virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); diff --git a/toolkit/source/controls/roadmapcontrol.cxx b/toolkit/source/controls/roadmapcontrol.cxx index 04049a06856b..d5ffa5b9a3be 100644 --- a/toolkit/source/controls/roadmapcontrol.cxx +++ b/toolkit/source/controls/roadmapcontrol.cxx @@ -76,9 +76,9 @@ static void lcl_throwIndexOutOfBoundsException( ) } // ------------------------------------------------------------------- - ::rtl::OUString UnoControlRoadmapModel::getServiceName() throw(RuntimeException) + OUString UnoControlRoadmapModel::getServiceName() throw(RuntimeException) { - return ::rtl::OUString::createFromAscii( szServiceName_UnoControlRoadmapModel ); + return OUString::createFromAscii( szServiceName_UnoControlRoadmapModel ); } @@ -103,7 +103,7 @@ static void lcl_throwIndexOutOfBoundsException( ) aReturn <<= (sal_Int16) 2; // No Border break; case BASEPROPERTY_DEFAULTCONTROL: - aReturn <<= ::rtl::OUString( ::rtl::OUString::createFromAscii( szServiceName_UnoControlRoadmap ) ); + aReturn <<= OUString( OUString::createFromAscii( szServiceName_UnoControlRoadmap ) ); break; default : aReturn = UnoControlRoadmapModel_Base::ImplGetDefaultValue( nPropId ); break; } @@ -187,7 +187,7 @@ static void lcl_throwIndexOutOfBoundsException( ) if ( !xRoadmapItem.is() ) lcl_throwIllegalArgumentException(); Reference< XServiceInfo > xServiceInfo( xRoadmapItem, UNO_QUERY ); - sal_Bool bIsRoadmapItem = xServiceInfo->supportsService( ::rtl::OUString("com.sun.star.awt.RoadmapItem") ); + sal_Bool bIsRoadmapItem = xServiceInfo->supportsService( OUString("com.sun.star.awt.RoadmapItem") ); if ( !bIsRoadmapItem ) lcl_throwIllegalArgumentException(); } @@ -201,12 +201,12 @@ static void lcl_throwIndexOutOfBoundsException( ) if ( xProps.is() ) { sal_Int32 LocID = 0; - Any aValue = xPropertySet->getPropertyValue( ::rtl::OUString("ID") ); + Any aValue = xPropertySet->getPropertyValue( OUString("ID") ); aValue >>= LocID; if (LocID < 0) // index may not be smaller than zero { aAny <<= GetUniqueID(); - xPropertySet->setPropertyValue( ::rtl::OUString("ID"), aAny ); + xPropertySet->setPropertyValue( OUString("ID"), aAny ); } } } @@ -229,7 +229,7 @@ static void lcl_throwIndexOutOfBoundsException( ) { CurRoadmapItem = *i; Reference< XPropertySet > xPropertySet( CurRoadmapItem, UNO_QUERY ); - aAny = xPropertySet->getPropertyValue( ::rtl::OUString("ID") ); + aAny = xPropertySet->getPropertyValue( OUString("ID") ); aAny >>= n_CurItemID; if (n_CurItemID == CurID) { @@ -387,9 +387,9 @@ sal_Bool SAL_CALL UnoRoadmapControl::setModel(const Reference< XControlModel >& // ------------------------------------------------------------------- - ::rtl::OUString UnoRoadmapControl::GetComponentServiceName() + OUString UnoRoadmapControl::GetComponentServiceName() { - return ::rtl::OUString("Roadmap"); + return OUString("Roadmap"); } @@ -410,7 +410,7 @@ void UnoRoadmapControl::elementInserted( const ContainerEvent& rEvent )throw(Run rEvent.Element >>= xRoadmapItem; Reference< XPropertySet > xRoadmapPropertySet( xRoadmapItem, UNO_QUERY ); if ( xRoadmapPropertySet.is() ) - xRoadmapPropertySet->addPropertyChangeListener( rtl::OUString(), this ); + xRoadmapPropertySet->addPropertyChangeListener( OUString(), this ); Reference< XContainerListener > xPeer(getPeer(), UNO_QUERY); if ( xPeer.is() ) @@ -418,7 +418,7 @@ void UnoRoadmapControl::elementInserted( const ContainerEvent& rEvent )throw(Run xPeer->elementInserted( rEvent ); Reference < XPropertySet > xPropertySet( xPeer, UNO_QUERY ); if ( xPropertySet.is() ) - xPropertySet->addPropertyChangeListener( rtl::OUString(), this ); + xPropertySet->addPropertyChangeListener( OUString(), this ); } } @@ -432,7 +432,7 @@ void UnoRoadmapControl::elementRemoved( const ContainerEvent& rEvent )throw(Runt rEvent.Element >>= xRoadmapItem; Reference< XPropertySet > xPropertySet( xRoadmapItem, UNO_QUERY ); if ( xPropertySet.is() ) - xPropertySet->removePropertyChangeListener( rtl::OUString(), this ); + xPropertySet->removePropertyChangeListener( OUString(), this ); } diff --git a/toolkit/source/controls/roadmapentry.cxx b/toolkit/source/controls/roadmapentry.cxx index e2a8344ba6f3..4bf6a48272b0 100644 --- a/toolkit/source/controls/roadmapentry.cxx +++ b/toolkit/source/controls/roadmapentry.cxx @@ -29,22 +29,22 @@ ORoadmapEntry::ORoadmapEntry() : ORoadmapEntry_Base( ) { // registerProperty or registerMayBeVoidProperty or registerPropertyNoMember - registerProperty( ::rtl::OUString("Label"), RM_PROPERTY_ID_LABEL, + registerProperty( OUString("Label"), RM_PROPERTY_ID_LABEL, ::com::sun::star::beans::PropertyAttribute::BOUND | ::com::sun::star::beans::PropertyAttribute::CONSTRAINED, & m_sLabel, ::getCppuType( &m_sLabel ) ); m_nID = -1; - registerProperty( ::rtl::OUString("ID"), RM_PROPERTY_ID_ID, + registerProperty( OUString("ID"), RM_PROPERTY_ID_ID, ::com::sun::star::beans::PropertyAttribute::BOUND | ::com::sun::star::beans::PropertyAttribute::CONSTRAINED, & m_nID, ::getCppuType( &m_nID ) ); m_bEnabled = sal_True; - registerProperty( ::rtl::OUString("Enabled"), RM_PROPERTY_ID_ENABLED, + registerProperty( OUString("Enabled"), RM_PROPERTY_ID_ENABLED, ::com::sun::star::beans::PropertyAttribute::BOUND | ::com::sun::star::beans::PropertyAttribute::MAYBEDEFAULT, & m_bEnabled, ::getCppuType( &m_bEnabled ) ); - registerProperty( ::rtl::OUString("Interactive"), RM_PROPERTY_ID_INTERACTIVE, + registerProperty( OUString("Interactive"), RM_PROPERTY_ID_INTERACTIVE, ::com::sun::star::beans::PropertyAttribute::BOUND | ::com::sun::star::beans::PropertyAttribute::MAYBEDEFAULT, & m_bInteractive, ::getCppuType( &m_bInteractive ) ); @@ -78,22 +78,22 @@ IMPLEMENT_FORWARD_XTYPEPROVIDER2( ORoadmapEntry, ORoadmapEntry_Base, ::comphelpe createPropertySetInfo( getInfoHelper() ) ); } -::rtl::OUString SAL_CALL ORoadmapEntry::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException) +OUString SAL_CALL ORoadmapEntry::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException) { - ::rtl::OUString aStr("com.sun.star.comp.toolkit.RoadmapItem"); + OUString aStr("com.sun.star.comp.toolkit.RoadmapItem"); return aStr; } -sal_Bool SAL_CALL ORoadmapEntry::supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException) +sal_Bool SAL_CALL ORoadmapEntry::supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException) { return ServiceName == "com.sun.star.awt.RoadmapItem"; } -::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL ORoadmapEntry::getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Sequence< OUString > SAL_CALL ORoadmapEntry::getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException) { - ::com::sun::star::uno::Sequence< ::rtl::OUString > aRet(1); - ::rtl::OUString* pArray = aRet.getArray(); - pArray[0] = ::rtl::OUString("com.sun.star.awt.RoadmapItem"); + ::com::sun::star::uno::Sequence< OUString > aRet(1); + OUString* pArray = aRet.getArray(); + pArray[0] = OUString("com.sun.star.awt.RoadmapItem"); return aRet; } //-------------------------------------------------------------------------- diff --git a/toolkit/source/controls/spinningprogress.cxx b/toolkit/source/controls/spinningprogress.cxx index 6fa34e09e01a..a4d402f9b682 100644 --- a/toolkit/source/controls/spinningprogress.cxx +++ b/toolkit/source/controls/spinningprogress.cxx @@ -64,8 +64,8 @@ namespace toolkit }; for ( size_t i=0; i < sizeof( aImageSets ) / sizeof( aImageSets[0] ); ++i ) { - const ::std::vector< ::rtl::OUString > aDefaultURLs( Throbber::getDefaultImageURLs( aImageSets[i] ) ); - const Sequence< ::rtl::OUString > aImageURLs( &aDefaultURLs[0], aDefaultURLs.size() ); + const ::std::vector< OUString > aDefaultURLs( Throbber::getDefaultImageURLs( aImageSets[i] ) ); + const Sequence< OUString > aImageURLs( &aDefaultURLs[0], aDefaultURLs.size() ); insertImageSet( i, aImageURLs ); } } @@ -102,9 +102,9 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - ::rtl::OUString SAL_CALL SpinningProgressControlModel::getServiceName() throw(RuntimeException) + OUString SAL_CALL SpinningProgressControlModel::getServiceName() throw(RuntimeException) { - return ::rtl::OUString::createFromAscii( szServiceName_SpinningProgressControlModel ); + return OUString::createFromAscii( szServiceName_SpinningProgressControlModel ); } //------------------------------------------------------------------------------------------------------------------ @@ -114,11 +114,11 @@ namespace toolkit } //------------------------------------------------------------------------------------------------------------------ - Sequence< ::rtl::OUString > SAL_CALL SpinningProgressControlModel::getSupportedServiceNames() throw(RuntimeException) + Sequence< OUString > SAL_CALL SpinningProgressControlModel::getSupportedServiceNames() throw(RuntimeException) { Sequence< OUString > aServiceNames(3); - aServiceNames[0] = ::rtl::OUString::createFromAscii( szServiceName_SpinningProgressControlModel ); - aServiceNames[1] = ::rtl::OUString::createFromAscii( szServiceName_AnimatedImagesControlModel ); + aServiceNames[0] = OUString::createFromAscii( szServiceName_SpinningProgressControlModel ); + aServiceNames[1] = OUString::createFromAscii( szServiceName_AnimatedImagesControlModel ); aServiceNames[2] = "com.sun.star.awt.UnoControlModel"; return aServiceNames; } diff --git a/toolkit/source/controls/stdtabcontroller.cxx b/toolkit/source/controls/stdtabcontroller.cxx index 08969cf70f11..2ffdea5ef272 100644 --- a/toolkit/source/controls/stdtabcontroller.cxx +++ b/toolkit/source/controls/stdtabcontroller.cxx @@ -110,7 +110,7 @@ sal_Bool StdTabController::ImplCreateComponentSequence( if ( pTabs ) { // opt: Constant String for TabStop name - static const ::rtl::OUString aTabStopName( "Tabstop" ); + static const OUString aTabStopName( "Tabstop" ); Reference< XPropertySet > xPSet( xCtrl->getModel(), UNO_QUERY ); Reference< XPropertySetInfo > xInfo = xPSet->getPropertySetInfo(); @@ -325,7 +325,7 @@ void StdTabController::activateTabOrder( ) throw(RuntimeException) xVclContainerPeer->setTabOrder( aCompSeq, aTabSeq, mxModel->getGroupControl() ); - ::rtl::OUString aName; + OUString aName; Sequence< Reference< XControlModel > > aThisGroupModels; Sequence< Reference< XWindow > > aControlComponents; diff --git a/toolkit/source/controls/stdtabcontrollermodel.cxx b/toolkit/source/controls/stdtabcontrollermodel.cxx index b857bf05bc72..6857ae317bd5 100644 --- a/toolkit/source/controls/stdtabcontrollermodel.cxx +++ b/toolkit/source/controls/stdtabcontrollermodel.cxx @@ -260,7 +260,7 @@ void StdTabControllerModel::setControlModels( const ::com::sun::star::uno::Seque return aSeq; } -void StdTabControllerModel::setGroup( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& Group, const ::rtl::OUString& GroupName ) throw(::com::sun::star::uno::RuntimeException) +void StdTabControllerModel::setGroup( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& Group, const OUString& GroupName ) throw(::com::sun::star::uno::RuntimeException) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); @@ -316,7 +316,7 @@ sal_Int32 StdTabControllerModel::getGroupCount( ) throw(::com::sun::star::uno:: return nGroups; } -void StdTabControllerModel::getGroup( sal_Int32 nGroup, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& rGroup, ::rtl::OUString& rName ) throw(::com::sun::star::uno::RuntimeException) +void StdTabControllerModel::getGroup( sal_Int32 nGroup, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& rGroup, OUString& rName ) throw(::com::sun::star::uno::RuntimeException) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); @@ -343,7 +343,7 @@ void StdTabControllerModel::getGroup( sal_Int32 nGroup, ::com::sun::star::uno::S rGroup = aSeq; } -void StdTabControllerModel::getGroupByName( const ::rtl::OUString& rName, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& rGroup ) throw(::com::sun::star::uno::RuntimeException) +void StdTabControllerModel::getGroupByName( const OUString& rName, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& rGroup ) throw(::com::sun::star::uno::RuntimeException) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); @@ -356,7 +356,7 @@ void StdTabControllerModel::getGroupByName( const ::rtl::OUString& rName, ::com: { if ( pEntry->pGroup->GetName() == rName ) { - ::rtl::OUString Dummy; + OUString Dummy; getGroup( nGroup, rGroup, Dummy ); break; } @@ -367,9 +367,9 @@ void StdTabControllerModel::getGroupByName( const ::rtl::OUString& rName, ::com: // ::com::sun::star::io::XPersistObject -::rtl::OUString StdTabControllerModel::getServiceName( ) throw(::com::sun::star::uno::RuntimeException) +OUString StdTabControllerModel::getServiceName( ) throw(::com::sun::star::uno::RuntimeException) { - return ::rtl::OUString::createFromAscii( szServiceName_TabControllerModel ); + return OUString::createFromAscii( szServiceName_TabControllerModel ); } void StdTabControllerModel::write( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream >& OutStream ) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) @@ -389,7 +389,7 @@ void StdTabControllerModel::write( const ::com::sun::star::uno::Reference< ::com for ( sal_uInt32 n = 0; n < nGroups; n++ ) { ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > > aGroupCtrls; - ::rtl::OUString aGroupName; + OUString aGroupName; getGroup( n, aGroupCtrls, aGroupName ); OutStream->writeUTF( aGroupName ); ImplWriteControls( OutStream, aGroupCtrls ); @@ -406,7 +406,7 @@ void StdTabControllerModel::read( const ::com::sun::star::uno::Reference< ::com: sal_uInt32 nGroups = InStream->readLong(); for ( sal_uInt32 n = 0; n < nGroups; n++ ) { - ::rtl::OUString aGroupName = InStream->readUTF(); + OUString aGroupName = InStream->readUTF(); ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > > aCtrlSeq = ImplReadControls( InStream ); setGroup( aCtrlSeq, aGroupName ); } diff --git a/toolkit/source/controls/tabpagecontainer.cxx b/toolkit/source/controls/tabpagecontainer.cxx index 44d1defb8180..efbac8b28b54 100644 --- a/toolkit/source/controls/tabpagecontainer.cxx +++ b/toolkit/source/controls/tabpagecontainer.cxx @@ -33,7 +33,6 @@ #include <tools/diagnose_ex.h> #include <vcl/svapp.hxx> -using ::rtl::OUString; using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -61,9 +60,9 @@ UnoControlTabPageContainerModel::UnoControlTabPageContainerModel( const Referenc ImplRegisterProperty( BASEPROPERTY_TEXT ); } -::rtl::OUString UnoControlTabPageContainerModel::getServiceName() throw(RuntimeException) +OUString UnoControlTabPageContainerModel::getServiceName() throw(RuntimeException) { - return ::rtl::OUString::createFromAscii( szServiceName_UnoControlTabPageContainerModel ); + return OUString::createFromAscii( szServiceName_UnoControlTabPageContainerModel ); } uno::Any UnoControlTabPageContainerModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const @@ -71,7 +70,7 @@ uno::Any UnoControlTabPageContainerModel::ImplGetDefaultValue( sal_uInt16 nPropI switch(nPropId) { case BASEPROPERTY_DEFAULTCONTROL: - return uno::makeAny( ::rtl::OUString::createFromAscii( szServiceName_UnoControlTabPageContainer ) ); + return uno::makeAny( OUString::createFromAscii( szServiceName_UnoControlTabPageContainer ) ); case BASEPROPERTY_BORDER: return uno::makeAny((sal_Int16) 0); // No Border default: @@ -137,7 +136,7 @@ Reference< XTabPageModel > SAL_CALL UnoControlTabPageContainerModel::createTabPa return lcl_createTabPageModel( m_xContext, aInitArgs, this ); } -Reference< XTabPageModel > SAL_CALL UnoControlTabPageContainerModel::loadTabPage( ::sal_Int16 i_tabPageID, const ::rtl::OUString& i_resourceURL ) throw (RuntimeException) +Reference< XTabPageModel > SAL_CALL UnoControlTabPageContainerModel::loadTabPage( ::sal_Int16 i_tabPageID, const OUString& i_resourceURL ) throw (RuntimeException) { Sequence< Any > aInitArgs(2); aInitArgs[0] <<= i_tabPageID; @@ -160,11 +159,11 @@ void SAL_CALL UnoControlTabPageContainerModel::insertByIndex( ::sal_Int32 nIndex m_aTabPageVector.insert( aIter, xTabPageModel ); } else - throw IndexOutOfBoundsException( ::rtl::OUString(), (OWeakObject *)this ); + throw IndexOutOfBoundsException( OUString(), (OWeakObject *)this ); ContainerEvent aEvent; aEvent.Source = *this; aEvent.Element <<= aElement; - aEvent.Accessor <<= ::rtl::OUString::valueOf(nIndex); + aEvent.Accessor <<= OUString::valueOf(nIndex); maContainerListeners.elementInserted( aEvent ); } else @@ -324,7 +323,7 @@ void UnoControlTabPageContainer::updateFromModel() xContainerListener->elementInserted( aEvent ); } } -void SAL_CALL UnoControlTabPageContainer::addControl( const ::rtl::OUString& Name, const Reference< ::com::sun::star::awt::XControl >& Control ) throw (RuntimeException) +void SAL_CALL UnoControlTabPageContainer::addControl( const OUString& Name, const Reference< ::com::sun::star::awt::XControl >& Control ) throw (RuntimeException) { SolarMutexGuard aSolarGuard; ControlContainerBase::addControl(Name,Control); diff --git a/toolkit/source/controls/tabpagemodel.cxx b/toolkit/source/controls/tabpagemodel.cxx index 7ba7f420b055..f06f7e76699d 100644 --- a/toolkit/source/controls/tabpagemodel.cxx +++ b/toolkit/source/controls/tabpagemodel.cxx @@ -58,7 +58,7 @@ using namespace ::com::sun::star::beans; using namespace ::com::sun::star::util; ////HELPER -::rtl::OUString getPhysicalLocation( const ::com::sun::star::uno::Any& rbase, const ::com::sun::star::uno::Any& rUrl ); +OUString getPhysicalLocation( const ::com::sun::star::uno::Any& rbase, const ::com::sun::star::uno::Any& rUrl ); // ---------------------------------------------------- // class UnoControlTabPageModel @@ -74,9 +74,9 @@ UnoControlTabPageModel::UnoControlTabPageModel( Reference< XComponentContext > c ImplRegisterProperty( BASEPROPERTY_ENABLED ); } -::rtl::OUString UnoControlTabPageModel::getServiceName( ) throw(RuntimeException) +OUString UnoControlTabPageModel::getServiceName( ) throw(RuntimeException) { - return ::rtl::OUString::createFromAscii( szServiceName_UnoControlTabPageModel ); + return OUString::createFromAscii( szServiceName_UnoControlTabPageModel ); } Any UnoControlTabPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const @@ -86,7 +86,7 @@ Any UnoControlTabPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const switch ( nPropId ) { case BASEPROPERTY_DEFAULTCONTROL: - aAny <<= ::rtl::OUString::createFromAscii( szServiceName_UnoControlTabPage ); + aAny <<= OUString::createFromAscii( szServiceName_UnoControlTabPage ); break; default: aAny = UnoControlModel::ImplGetDefaultValue( nPropId ); @@ -127,15 +127,15 @@ void SAL_CALL UnoControlTabPageModel::initialize (const Sequence<Any>& rArgument if ( !( rArguments[ 0 ] >>= nPageId )) throw lang::IllegalArgumentException(); m_nTabPageId = nPageId; - ::rtl::OUString sURL; + OUString sURL; if ( !( rArguments[ 1 ] >>= sURL )) throw lang::IllegalArgumentException(); Reference<container::XNameContainer > xDialogModel = awt::UnoControlDialogModelProvider::create( m_xContext, sURL ); if ( xDialogModel.is() ) { - Sequence< ::rtl::OUString> aNames = xDialogModel->getElementNames(); - const ::rtl::OUString* pIter = aNames.getConstArray(); - const ::rtl::OUString* pEnd = pIter + aNames.getLength(); + Sequence< OUString> aNames = xDialogModel->getElementNames(); + const OUString* pIter = aNames.getConstArray(); + const OUString* pEnd = pIter + aNames.getLength(); for(;pIter != pEnd;++pIter) { try @@ -152,7 +152,7 @@ void SAL_CALL UnoControlTabPageModel::initialize (const Sequence<Any>& rArgument Reference<XPropertySet> xDialogProp(xDialogModel,UNO_QUERY); if ( xDialogProp.is() ) { - static const ::rtl::OUString s_sResourceResolver("ResourceResolver"); + static const OUString s_sResourceResolver("ResourceResolver"); Reference<XPropertySet> xThis(*this,UNO_QUERY); xThis->setPropertyValue(s_sResourceResolver,xDialogProp->getPropertyValue(s_sResourceResolver)); xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_TITLE),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_TITLE))); @@ -167,16 +167,16 @@ void SAL_CALL UnoControlTabPageModel::initialize (const Sequence<Any>& rArgument m_nTabPageId = -1; } //===== Service =============================================================== -::rtl::OUString UnoControlTabPageModel_getImplementationName (void) throw(RuntimeException) +OUString UnoControlTabPageModel_getImplementationName (void) throw(RuntimeException) { - return rtl::OUString("com.sun.star.awt.tab.UnoControlTabPageModel"); + return OUString("com.sun.star.awt.tab.UnoControlTabPageModel"); } -Sequence<rtl::OUString> SAL_CALL UnoControlTabPageModel_getSupportedServiceNames (void) +Sequence<OUString> SAL_CALL UnoControlTabPageModel_getSupportedServiceNames (void) throw (RuntimeException) { - const ::rtl::OUString sServiceName("com.sun.star.awt.tab.UnoControlTabPageModel"); - return Sequence<rtl::OUString>(&sServiceName, 1); + const OUString sServiceName("com.sun.star.awt.tab.UnoControlTabPageModel"); + return Sequence<OUString>(&sServiceName, 1); } //============================================================================= // = class UnoControlTabPage @@ -193,9 +193,9 @@ UnoControlTabPage::~UnoControlTabPage() { } -::rtl::OUString UnoControlTabPage::GetComponentServiceName() +OUString UnoControlTabPage::GetComponentServiceName() { - return ::rtl::OUString("TabPageModel"); + return OUString("TabPageModel"); } void UnoControlTabPage::dispose() throw(RuntimeException) @@ -262,11 +262,11 @@ throw (::com::sun::star::uno::RuntimeException) // Remember that changes have been done by listener. No need to // update the position because of property change event. mbSizeModified = true; - Sequence< rtl::OUString > aProps( 2 ); + Sequence< OUString > aProps( 2 ); Sequence< Any > aValues( 2 ); // Properties in a sequence must be sorted! - aProps[0] = rtl::OUString( "Height" ); - aProps[1] = rtl::OUString( "Width" ); + aProps[0] = OUString( "Height" ); + aProps[1] = OUString( "Width" ); aValues[0] <<= aAppFontSize.Height(); aValues[1] <<= aAppFontSize.Width(); @@ -290,10 +290,10 @@ throw (::com::sun::star::uno::RuntimeException) // Remember that changes have been done by listener. No need to // update the position because of property change event. mbPosModified = true; - Sequence< rtl::OUString > aProps( 2 ); + Sequence< OUString > aProps( 2 ); Sequence< Any > aValues( 2 ); - aProps[0] = rtl::OUString( "PositionX" ); - aProps[1] = rtl::OUString( "PositionY" ); + aProps[0] = OUString( "PositionX" ); + aProps[1] = OUString( "PositionY" ); aValues[0] <<= aTmp.Width(); aValues[1] <<= aTmp.Height(); diff --git a/toolkit/source/controls/tkscrollbar.cxx b/toolkit/source/controls/tkscrollbar.cxx index f2293bc6edec..2f7f0dd43ddf 100644 --- a/toolkit/source/controls/tkscrollbar.cxx +++ b/toolkit/source/controls/tkscrollbar.cxx @@ -43,9 +43,9 @@ namespace toolkit } //-------------------------------------------------------------------- - ::rtl::OUString UnoControlScrollBarModel::getServiceName( ) throw(::com::sun::star::uno::RuntimeException) + OUString UnoControlScrollBarModel::getServiceName( ) throw(::com::sun::star::uno::RuntimeException) { - return ::rtl::OUString::createFromAscii( szServiceName_UnoControlScrollBarModel ); + return OUString::createFromAscii( szServiceName_UnoControlScrollBarModel ); } //-------------------------------------------------------------------- @@ -56,7 +56,7 @@ namespace toolkit case BASEPROPERTY_LIVE_SCROLL: return uno::makeAny( (sal_Bool)sal_False ); case BASEPROPERTY_DEFAULTCONTROL: - return uno::makeAny( ::rtl::OUString::createFromAscii( szServiceName_UnoControlScrollBar ) ); + return uno::makeAny( OUString::createFromAscii( szServiceName_UnoControlScrollBar ) ); default: return UnoControlModel::ImplGetDefaultValue( nPropId ); @@ -92,9 +92,9 @@ namespace toolkit { } - ::rtl::OUString UnoScrollBarControl::GetComponentServiceName() + OUString UnoScrollBarControl::GetComponentServiceName() { - return ::rtl::OUString("ScrollBar"); + return OUString("ScrollBar"); } // ::com::sun::star::uno::XInterface diff --git a/toolkit/source/controls/tksimpleanimation.cxx b/toolkit/source/controls/tksimpleanimation.cxx index 1b893b19805b..e581b8ce1141 100644 --- a/toolkit/source/controls/tksimpleanimation.cxx +++ b/toolkit/source/controls/tksimpleanimation.cxx @@ -42,10 +42,10 @@ namespace toolkit } //-------------------------------------------------------------------- - ::rtl::OUString UnoSimpleAnimationControlModel::getServiceName() + OUString UnoSimpleAnimationControlModel::getServiceName() throw( uno::RuntimeException ) { - return ::rtl::OUString::createFromAscii( szServiceName_UnoSimpleAnimationControlModel ); + return OUString::createFromAscii( szServiceName_UnoSimpleAnimationControlModel ); } //-------------------------------------------------------------------- @@ -54,7 +54,7 @@ namespace toolkit switch ( nPropId ) { case BASEPROPERTY_DEFAULTCONTROL: - return uno::makeAny( ::rtl::OUString::createFromAscii( szServiceName_UnoSimpleAnimationControl ) ); + return uno::makeAny( OUString::createFromAscii( szServiceName_UnoSimpleAnimationControl ) ); case BASEPROPERTY_STEP_TIME: return uno::makeAny( (sal_Int32) 100 ); @@ -88,22 +88,22 @@ namespace toolkit } //-------------------------------------------------------------------- - ::rtl::OUString SAL_CALL UnoSimpleAnimationControlModel::getImplementationName() + OUString SAL_CALL UnoSimpleAnimationControlModel::getImplementationName() throw( uno::RuntimeException ) { - return ::rtl::OUString( "com.sun.star.comp.toolkit.UnoSimpleAnimationControlModel" ); + return OUString( "com.sun.star.comp.toolkit.UnoSimpleAnimationControlModel" ); } //-------------------------------------------------------------------- - uno::Sequence< ::rtl::OUString > SAL_CALL UnoSimpleAnimationControlModel::getSupportedServiceNames() + uno::Sequence< OUString > SAL_CALL UnoSimpleAnimationControlModel::getSupportedServiceNames() throw( uno::RuntimeException ) { - uno::Sequence< ::rtl::OUString > aServices( UnoControlModel::getSupportedServiceNames() ); + uno::Sequence< OUString > aServices( UnoControlModel::getSupportedServiceNames() ); aServices.realloc( aServices.getLength() + 2 ); aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 2] - = ::rtl::OUString::createFromAscii( szServiceName_UnoSimpleAnimationControlModel ); + = OUString::createFromAscii( szServiceName_UnoSimpleAnimationControlModel ); aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 1] - = ::rtl::OUString::createFromAscii( szServiceName2_UnoSimpleAnimationControlModel ); + = OUString::createFromAscii( szServiceName2_UnoSimpleAnimationControlModel ); return aServices; } @@ -117,25 +117,25 @@ namespace toolkit } //-------------------------------------------------------------------- - ::rtl::OUString UnoSimpleAnimationControl::GetComponentServiceName() + OUString UnoSimpleAnimationControl::GetComponentServiceName() { - return ::rtl::OUString("SimpleAnimation"); + return OUString("SimpleAnimation"); } //-------------------------------------------------------------------- - ::rtl::OUString SAL_CALL UnoSimpleAnimationControl::getImplementationName() + OUString SAL_CALL UnoSimpleAnimationControl::getImplementationName() throw( uno::RuntimeException ) { - return ::rtl::OUString( "com.sun.star.comp.toolkit.UnoSimpleAnimationControl" ); + return OUString( "com.sun.star.comp.toolkit.UnoSimpleAnimationControl" ); } //-------------------------------------------------------------------- - uno::Sequence< ::rtl::OUString > SAL_CALL UnoSimpleAnimationControl::getSupportedServiceNames() + uno::Sequence< OUString > SAL_CALL UnoSimpleAnimationControl::getSupportedServiceNames() throw( uno::RuntimeException ) { - uno::Sequence< ::rtl::OUString > aServices( UnoSimpleAnimationControl_Base::getSupportedServiceNames() ); + uno::Sequence< OUString > aServices( UnoSimpleAnimationControl_Base::getSupportedServiceNames() ); aServices.realloc( aServices.getLength() + 1 ); - aServices[ aServices.getLength() - 1 ] = ::rtl::OUString::createFromAscii( szServiceName_UnoSimpleAnimationControl ); + aServices[ aServices.getLength() - 1 ] = OUString::createFromAscii( szServiceName_UnoSimpleAnimationControl ); return aServices; } diff --git a/toolkit/source/controls/tkspinbutton.cxx b/toolkit/source/controls/tkspinbutton.cxx index ef5a9665c993..ad20b0ff22ba 100644 --- a/toolkit/source/controls/tkspinbutton.cxx +++ b/toolkit/source/controls/tkspinbutton.cxx @@ -65,9 +65,9 @@ namespace toolkit } //-------------------------------------------------------------------- - ::rtl::OUString UnoSpinButtonModel::getServiceName( ) throw (RuntimeException) + OUString UnoSpinButtonModel::getServiceName( ) throw (RuntimeException) { - return ::rtl::OUString::createFromAscii( szServiceName_UnoSpinButtonModel ); + return OUString::createFromAscii( szServiceName_UnoSpinButtonModel ); } //-------------------------------------------------------------------- @@ -76,7 +76,7 @@ namespace toolkit switch ( nPropId ) { case BASEPROPERTY_DEFAULTCONTROL: - return makeAny( ::rtl::OUString::createFromAscii( szServiceName_UnoSpinButtonControl ) ); + return makeAny( OUString::createFromAscii( szServiceName_UnoSpinButtonControl ) ); case BASEPROPERTY_BORDER: return makeAny( (sal_Int16) 0 ); @@ -109,17 +109,17 @@ namespace toolkit } //-------------------------------------------------------------------- - ::rtl::OUString SAL_CALL UnoSpinButtonModel::getImplementationName( ) throw(RuntimeException) + OUString SAL_CALL UnoSpinButtonModel::getImplementationName( ) throw(RuntimeException) { - return ::rtl::OUString( "com.sun.star.comp.toolkit.UnoSpinButtonModel" ); + return OUString( "com.sun.star.comp.toolkit.UnoSpinButtonModel" ); } //-------------------------------------------------------------------- - Sequence< ::rtl::OUString > SAL_CALL UnoSpinButtonModel::getSupportedServiceNames() throw(RuntimeException) + Sequence< OUString > SAL_CALL UnoSpinButtonModel::getSupportedServiceNames() throw(RuntimeException) { - Sequence< ::rtl::OUString > aServices( UnoControlModel::getSupportedServiceNames() ); + Sequence< OUString > aServices( UnoControlModel::getSupportedServiceNames() ); aServices.realloc( aServices.getLength() + 1 ); - aServices[ aServices.getLength() - 1 ] = ::rtl::OUString::createFromAscii( szServiceName_UnoSpinButtonModel ); + aServices[ aServices.getLength() - 1 ] = OUString::createFromAscii( szServiceName_UnoSpinButtonModel ); return aServices; } @@ -134,9 +134,9 @@ namespace toolkit } //-------------------------------------------------------------------- - ::rtl::OUString UnoSpinButtonControl::GetComponentServiceName() + OUString UnoSpinButtonControl::GetComponentServiceName() { - return ::rtl::OUString("SpinButton"); + return OUString("SpinButton"); } //-------------------------------------------------------------------- @@ -172,17 +172,17 @@ namespace toolkit } //-------------------------------------------------------------------- - ::rtl::OUString SAL_CALL UnoSpinButtonControl::getImplementationName( ) throw(RuntimeException) + OUString SAL_CALL UnoSpinButtonControl::getImplementationName( ) throw(RuntimeException) { - return ::rtl::OUString( "com.sun.star.comp.toolkit.UnoSpinButtonControl" ); + return OUString( "com.sun.star.comp.toolkit.UnoSpinButtonControl" ); } //-------------------------------------------------------------------- - Sequence< ::rtl::OUString > SAL_CALL UnoSpinButtonControl::getSupportedServiceNames() throw(RuntimeException) + Sequence< OUString > SAL_CALL UnoSpinButtonControl::getSupportedServiceNames() throw(RuntimeException) { - Sequence< ::rtl::OUString > aServices( UnoControlBase::getSupportedServiceNames() ); + Sequence< OUString > aServices( UnoControlBase::getSupportedServiceNames() ); aServices.realloc( aServices.getLength() + 1 ); - aServices[ aServices.getLength() - 1 ] = ::rtl::OUString::createFromAscii( szServiceName_UnoSpinButtonControl ); + aServices[ aServices.getLength() - 1 ] = OUString::createFromAscii( szServiceName_UnoSpinButtonControl ); return aServices; } diff --git a/toolkit/source/controls/tkthrobber.cxx b/toolkit/source/controls/tkthrobber.cxx index 7eff4193f3c9..30fe9793b2c7 100644 --- a/toolkit/source/controls/tkthrobber.cxx +++ b/toolkit/source/controls/tkthrobber.cxx @@ -46,9 +46,9 @@ namespace toolkit } //-------------------------------------------------------------------- - ::rtl::OUString UnoThrobberControlModel::getServiceName( ) throw ( uno::RuntimeException ) + OUString UnoThrobberControlModel::getServiceName( ) throw ( uno::RuntimeException ) { - return ::rtl::OUString::createFromAscii( szServiceName_UnoThrobberControlModel ); + return OUString::createFromAscii( szServiceName_UnoThrobberControlModel ); } //-------------------------------------------------------------------- @@ -57,7 +57,7 @@ namespace toolkit switch ( nPropId ) { case BASEPROPERTY_DEFAULTCONTROL: - return uno::makeAny( ::rtl::OUString::createFromAscii( szServiceName_UnoThrobberControl ) ); + return uno::makeAny( OUString::createFromAscii( szServiceName_UnoThrobberControl ) ); case BASEPROPERTY_BORDER: return uno::makeAny( (sal_Int16) 0 ); default: @@ -86,22 +86,22 @@ namespace toolkit } //-------------------------------------------------------------------- - ::rtl::OUString SAL_CALL UnoThrobberControlModel::getImplementationName() + OUString SAL_CALL UnoThrobberControlModel::getImplementationName() throw( uno::RuntimeException ) { - return ::rtl::OUString( "com.sun.star.comp.toolkit.UnoThrobberControlModel" ); + return OUString( "com.sun.star.comp.toolkit.UnoThrobberControlModel" ); } //-------------------------------------------------------------------- - uno::Sequence< ::rtl::OUString > SAL_CALL UnoThrobberControlModel::getSupportedServiceNames() + uno::Sequence< OUString > SAL_CALL UnoThrobberControlModel::getSupportedServiceNames() throw( uno::RuntimeException ) { - uno::Sequence< ::rtl::OUString > aServices( UnoControlModel::getSupportedServiceNames() ); + uno::Sequence< OUString > aServices( UnoControlModel::getSupportedServiceNames() ); aServices.realloc( aServices.getLength() + 2 ); aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 2] = - ::rtl::OUString::createFromAscii(szServiceName_UnoThrobberControlModel); + OUString::createFromAscii(szServiceName_UnoThrobberControlModel); aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 1] = - ::rtl::OUString::createFromAscii(szServiceName2_UnoThrobberControlModel); + OUString::createFromAscii(szServiceName2_UnoThrobberControlModel); return aServices; } @@ -115,9 +115,9 @@ namespace toolkit } //-------------------------------------------------------------------- - ::rtl::OUString UnoThrobberControl::GetComponentServiceName() + OUString UnoThrobberControl::GetComponentServiceName() { - return ::rtl::OUString("Throbber"); + return OUString("Throbber"); } //-------------------------------------------------------------------- @@ -141,22 +141,22 @@ namespace toolkit } //-------------------------------------------------------------------- - ::rtl::OUString SAL_CALL UnoThrobberControl::getImplementationName() + OUString SAL_CALL UnoThrobberControl::getImplementationName() throw( uno::RuntimeException ) { - return ::rtl::OUString( "com.sun.star.comp.toolkit.UnoThrobberControl" ); + return OUString( "com.sun.star.comp.toolkit.UnoThrobberControl" ); } //-------------------------------------------------------------------- - uno::Sequence< ::rtl::OUString > SAL_CALL UnoThrobberControl::getSupportedServiceNames() + uno::Sequence< OUString > SAL_CALL UnoThrobberControl::getSupportedServiceNames() throw( uno::RuntimeException ) { - uno::Sequence< ::rtl::OUString > aServices( UnoControlBase::getSupportedServiceNames() ); + uno::Sequence< OUString > aServices( UnoControlBase::getSupportedServiceNames() ); aServices.realloc( aServices.getLength() + 2 ); aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 2] = - ::rtl::OUString::createFromAscii(szServiceName_UnoThrobberControl); + OUString::createFromAscii(szServiceName_UnoThrobberControl); aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 1] = - ::rtl::OUString::createFromAscii(szServiceName2_UnoThrobberControl); + OUString::createFromAscii(szServiceName2_UnoThrobberControl); return aServices; } diff --git a/toolkit/source/controls/tree/treecontrol.cxx b/toolkit/source/controls/tree/treecontrol.cxx index 69e88eb9d522..a3fc00d27c8a 100644 --- a/toolkit/source/controls/tree/treecontrol.cxx +++ b/toolkit/source/controls/tree/treecontrol.cxx @@ -29,7 +29,6 @@ #include <comphelper/processfactory.hxx> #include <osl/diagnose.h> -using ::rtl::OUString; using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::awt::tree; @@ -101,7 +100,7 @@ Any UnoTreeModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const case BASEPROPERTY_TREE_SHOWSHANDLES: return Any( sal_True ); case BASEPROPERTY_DEFAULTCONTROL: - return uno::makeAny( ::rtl::OUString::createFromAscii( szServiceName_TreeControl ) ); + return uno::makeAny( OUString::createFromAscii( szServiceName_TreeControl ) ); default: return UnoControlModel::ImplGetDefaultValue( nPropId ); } diff --git a/toolkit/source/controls/tree/treecontrol.hxx b/toolkit/source/controls/tree/treecontrol.hxx index a36d242f637a..208b066307da 100644 --- a/toolkit/source/controls/tree/treecontrol.hxx +++ b/toolkit/source/controls/tree/treecontrol.hxx @@ -55,7 +55,7 @@ public: ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); // ::com::sun::star::io::XPersistObject - ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); + OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); // XServiceInfo DECLIMPL_SERVICEINFO_DERIVED( UnoTreeModel, UnoControlModel, szServiceName_TreeControlModel ) @@ -70,7 +70,7 @@ class UnoTreeControl : public UnoTreeControl_Base { public: UnoTreeControl(); - ::rtl::OUString GetComponentServiceName(); + OUString GetComponentServiceName(); // ::com::sun::star::lang::XComponent void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException); @@ -93,10 +93,10 @@ public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL createReverseSelectionEnumeration( ) throw (::com::sun::star::uno::RuntimeException); // ::com::sun::star::awt::XTreeControl - virtual ::rtl::OUString SAL_CALL getDefaultExpandedGraphicURL() throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setDefaultExpandedGraphicURL( const ::rtl::OUString& _defaultexpandedgraphicurl ) throw (::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getDefaultCollapsedGraphicURL() throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setDefaultCollapsedGraphicURL( const ::rtl::OUString& _defaultcollapsedgraphicurl ) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getDefaultExpandedGraphicURL() throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setDefaultExpandedGraphicURL( const OUString& _defaultexpandedgraphicurl ) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getDefaultCollapsedGraphicURL() throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setDefaultCollapsedGraphicURL( const OUString& _defaultcollapsedgraphicurl ) throw (::com::sun::star::uno::RuntimeException); virtual ::sal_Bool SAL_CALL isNodeExpanded( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::tree::XTreeNode >& Node ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); virtual ::sal_Bool SAL_CALL isNodeCollapsed( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::tree::XTreeNode >& Node ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL makeNodeVisible( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::tree::XTreeNode >& Node ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::awt::tree::ExpandVetoException, ::com::sun::star::uno::RuntimeException); diff --git a/toolkit/source/controls/tree/treedatamodel.cxx b/toolkit/source/controls/tree/treedatamodel.cxx index 90fe37d6d844..891525d9d913 100644 --- a/toolkit/source/controls/tree/treedatamodel.cxx +++ b/toolkit/source/controls/tree/treedatamodel.cxx @@ -26,7 +26,6 @@ #include <toolkit/helper/mutexandbroadcasthelper.hxx> #include <toolkit/helper/servicenames.hxx> -using ::rtl::OUString; using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::awt; @@ -103,9 +102,9 @@ public: virtual void SAL_CALL removeChildByIndex( ::sal_Int32 Index ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setHasChildrenOnDemand( ::sal_Bool ChildrenOnDemand ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setDisplayValue( const ::com::sun::star::uno::Any& Value ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setNodeGraphicURL( const ::rtl::OUString& URL ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setExpandedGraphicURL( const ::rtl::OUString& URL ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setCollapsedGraphicURL( const ::rtl::OUString& URL ) throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setNodeGraphicURL( const OUString& URL ) throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setExpandedGraphicURL( const OUString& URL ) throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setCollapsedGraphicURL( const OUString& URL ) throw (::com::sun::star::uno::RuntimeException); // XTreeNode virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::tree::XTreeNode > SAL_CALL getChildAt( ::sal_Int32 Index ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); @@ -114,9 +113,9 @@ public: virtual ::sal_Int32 SAL_CALL getIndex( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::tree::XTreeNode >& Node ) throw (::com::sun::star::uno::RuntimeException); virtual ::sal_Bool SAL_CALL hasChildrenOnDemand( ) throw (::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Any SAL_CALL getDisplayValue( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getNodeGraphicURL( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getExpandedGraphicURL( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getCollapsedGraphicURL( ) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getNodeGraphicURL( ) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getExpandedGraphicURL( ) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getCollapsedGraphicURL( ) throw (::com::sun::star::uno::RuntimeException); // XServiceInfo virtual OUString SAL_CALL getImplementationName( ) throw (RuntimeException); diff --git a/toolkit/source/controls/unocontrol.cxx b/toolkit/source/controls/unocontrol.cxx index cbf541d9fe9f..499d331f464d 100644 --- a/toolkit/source/controls/unocontrol.cxx +++ b/toolkit/source/controls/unocontrol.cxx @@ -72,17 +72,17 @@ static const LanguageDependentProp aLanguageDependentProp[] = { 0, 0 } }; -static Sequence< ::rtl::OUString> lcl_ImplGetPropertyNames( const Reference< XMultiPropertySet > & rxModel ) +static Sequence< OUString> lcl_ImplGetPropertyNames( const Reference< XMultiPropertySet > & rxModel ) { - Sequence< ::rtl::OUString> aNames; + Sequence< OUString> aNames; Reference< XPropertySetInfo > xPSInf = rxModel->getPropertySetInfo(); DBG_ASSERT( xPSInf.is(), "UpdateFromModel: No PropertySetInfo!" ); if ( xPSInf.is() ) { Sequence< Property> aProps = xPSInf->getProperties(); sal_Int32 nLen = aProps.getLength(); - aNames = Sequence< ::rtl::OUString>( nLen ); - ::rtl::OUString* pNames = aNames.getArray(); + aNames = Sequence< OUString>( nLen ); + OUString* pNames = aNames.getArray(); const Property* pProps = aProps.getConstArray(); for ( sal_Int32 n = 0; n < nLen; ++n, ++pProps, ++pNames) *pNames = pProps->Name; @@ -115,7 +115,7 @@ private: VclListenerLock& operator=( const VclListenerLock& ); // never implemented }; -typedef ::std::map< ::rtl::OUString, sal_Int32 > MapString2Int; +typedef ::std::map< OUString, sal_Int32 > MapString2Int; struct UnoControl_Data { MapString2Int aSuspendedPropertyNotifications; @@ -158,9 +158,9 @@ UnoControl::~UnoControl() DBG_DTOR( UnoControl, NULL ); } -::rtl::OUString UnoControl::GetComponentServiceName() +OUString UnoControl::GetComponentServiceName() { - return ::rtl::OUString(); + return OUString(); } Reference< XWindowPeer > UnoControl::ImplGetCompatiblePeer( sal_Bool bAcceptExistingPeer ) @@ -222,7 +222,7 @@ Reference< XWindowPeer > UnoControl::ImplGetCompatiblePeer( sal_Bool bAcceptE return xCompatiblePeer; } -bool UnoControl::ImplCheckLocalize( ::rtl::OUString& _rPossiblyLocalizable ) +bool UnoControl::ImplCheckLocalize( OUString& _rPossiblyLocalizable ) { if ( !mpData->bLocalizationSupport || ( _rPossiblyLocalizable.isEmpty() ) @@ -236,12 +236,12 @@ bool UnoControl::ImplCheckLocalize( ::rtl::OUString& _rPossiblyLocalizable ) { Reference< XPropertySet > xPropSet( mxModel, UNO_QUERY_THROW ); Reference< resource::XStringResourceResolver > xStringResourceResolver( - xPropSet->getPropertyValue( ::rtl::OUString( "ResourceResolver" ) ), + xPropSet->getPropertyValue( OUString( "ResourceResolver" ) ), UNO_QUERY ); if ( xStringResourceResolver.is() ) { - ::rtl::OUString aLocalizationKey( _rPossiblyLocalizable.copy( 1 ) ); + OUString aLocalizationKey( _rPossiblyLocalizable.copy( 1 ) ); _rPossiblyLocalizable = xStringResourceResolver->resolveString( aLocalizationKey ); return true; } @@ -253,7 +253,7 @@ bool UnoControl::ImplCheckLocalize( ::rtl::OUString& _rPossiblyLocalizable ) return false; } -void UnoControl::ImplSetPeerProperty( const ::rtl::OUString& rPropName, const Any& rVal ) +void UnoControl::ImplSetPeerProperty( const OUString& rPropName, const Any& rVal ) { // since a change made in propertiesChange, we can't be sure that this is called with an valid getPeer(), // this assumption may be false in some (seldom) multi-threading scenarios (cause propertiesChange @@ -275,8 +275,8 @@ void UnoControl::ImplSetPeerProperty( const ::rtl::OUString& rPropName, const An ( rPropName.equalsAsciiL( "CurrencySymbol", 14 )) || ( rPropName.equalsAsciiL( "StringItemList", 14 )) ) { - ::rtl::OUString aValue; - uno::Sequence< rtl::OUString > aSeqValue; + OUString aValue; + uno::Sequence< OUString > aSeqValue; if ( aConvertedValue >>= aValue ) { if ( ImplCheckLocalize( aValue ) ) @@ -323,7 +323,7 @@ void UnoControl::updateFromModel() Reference< XMultiPropertySet > xPropSet( mxModel, UNO_QUERY ); if( xPropSet.is() ) { - Sequence< ::rtl::OUString> aNames = lcl_ImplGetPropertyNames( xPropSet ); + Sequence< OUString> aNames = lcl_ImplGetPropertyNames( xPropSet ); xPropSet->firePropertiesChangeEvent( aNames, this ); } } @@ -401,7 +401,7 @@ void UnoControl::removeEventListener( const Reference< XEventListener >& rxListe maDisposeListeners.removeInterface( rxListener ); } -sal_Bool UnoControl::requiresNewPeer( const ::rtl::OUString& /* _rPropertyName */ ) const +sal_Bool UnoControl::requiresNewPeer( const OUString& /* _rPropertyName */ ) const { return sal_False; } @@ -437,7 +437,7 @@ void UnoControl::propertiesChange( const Sequence< PropertyChangeEvent >& rEvent ImplModelPropertiesChanged( aEvents ); } -void UnoControl::ImplLockPropertyChangeNotification( const ::rtl::OUString& rPropertyName, bool bLock ) +void UnoControl::ImplLockPropertyChangeNotification( const OUString& rPropertyName, bool bLock ) { MapString2Int::iterator pos = mpData->aSuspendedPropertyNotifications.find( rPropertyName ); if ( bLock ) @@ -458,9 +458,9 @@ void UnoControl::ImplLockPropertyChangeNotification( const ::rtl::OUString& rPro } } -void UnoControl::ImplLockPropertyChangeNotifications( const Sequence< ::rtl::OUString >& rPropertyNames, bool bLock ) +void UnoControl::ImplLockPropertyChangeNotifications( const Sequence< OUString >& rPropertyNames, bool bLock ) { - for ( const ::rtl::OUString* pPropertyName = rPropertyNames.getConstArray(); + for ( const OUString* pPropertyName = rPropertyNames.getConstArray(); pPropertyName != rPropertyNames.getConstArray() + rPropertyNames.getLength(); ++pPropertyName ) @@ -606,7 +606,7 @@ void UnoControl::ImplModelPropertiesChanged( const Sequence< PropertyChangeEvent if ( bMustBeInserted ) { // Add language dependent props at the end - ::rtl::OUString aPropName( ::rtl::OUString::createFromAscii( pLangDepProp->pPropName )); + OUString aPropName( OUString::createFromAscii( pLangDepProp->pPropName )); if ( xPSI.is() && xPSI->hasPropertyByName( aPropName ) ) { aPeerPropertiesToSet.push_back( @@ -1087,7 +1087,7 @@ void UnoControl::createPeer( const Reference< XToolkit >& rxToolkit, const Refer if ( !mxModel.is() ) { RuntimeException aException; - aException.Message = ::rtl::OUString("createPeer: no model!"); + aException.Message = OUString("createPeer: no model!"); aException.Context = (XAggregation*)(::cppu::OWeakAggObject*)this; throw( aException ); } @@ -1139,7 +1139,7 @@ void UnoControl::createPeer( const Reference< XToolkit >& rxToolkit, const Refer Reference< XPropertySetInfo > xInfo = xPSet->getPropertySetInfo(); Any aVal; - ::rtl::OUString aPropName = GetPropertyName( BASEPROPERTY_BORDER ); + OUString aPropName = GetPropertyName( BASEPROPERTY_BORDER ); if ( xInfo->hasPropertyByName( aPropName ) ) { aVal = xPSet->getPropertyValue( aPropName ); @@ -1352,10 +1352,10 @@ sal_Bool UnoControl::setModel( const Reference< XControlModel >& rxModel ) throw xPropSet.set( mxModel, UNO_QUERY_THROW ); Reference< XPropertySetInfo > xPSI( xPropSet->getPropertySetInfo(), UNO_SET_THROW ); - Sequence< ::rtl::OUString> aNames = lcl_ImplGetPropertyNames( xPropSet ); + Sequence< OUString> aNames = lcl_ImplGetPropertyNames( xPropSet ); xPropSet->addPropertiesChangeListener( aNames, xListener ); - mpData->bLocalizationSupport = xPSI->hasPropertyByName( ::rtl::OUString( "ResourceResolver" ) ); + mpData->bLocalizationSupport = xPSI->hasPropertyByName( OUString( "ResourceResolver" ) ); } catch( const Exception& ) { @@ -1396,7 +1396,7 @@ void UnoControl::setDesignMode( sal_Bool bOn ) throw(RuntimeException) disposeAccessibleContext(); aModeChangeEvent.Source = *this; - aModeChangeEvent.NewMode = mbDesignMode ? ::rtl::OUString("design") : ::rtl::OUString("alive" ); + aModeChangeEvent.NewMode = mbDesignMode ? OUString("design") : OUString("alive" ); } // ajust the visibility of our window @@ -1418,19 +1418,19 @@ sal_Bool UnoControl::isTransparent( ) throw(RuntimeException) } // XServiceInfo -::rtl::OUString UnoControl::getImplementationName( ) throw(RuntimeException) +OUString UnoControl::getImplementationName( ) throw(RuntimeException) { OSL_FAIL( "This method should be overloaded!" ); - return ::rtl::OUString(); + return OUString(); } -sal_Bool UnoControl::supportsService( const ::rtl::OUString& rServiceName ) throw(RuntimeException) +sal_Bool UnoControl::supportsService( const OUString& rServiceName ) throw(RuntimeException) { ::osl::MutexGuard aGuard( GetMutex() ); - Sequence< ::rtl::OUString > aSNL = getSupportedServiceNames(); - const ::rtl::OUString* pArray = aSNL.getConstArray(); - const ::rtl::OUString* pArrayEnd = aSNL.getConstArray() + aSNL.getLength(); + Sequence< OUString > aSNL = getSupportedServiceNames(); + const OUString* pArray = aSNL.getConstArray(); + const OUString* pArrayEnd = aSNL.getConstArray() + aSNL.getLength(); for (; pArray != pArrayEnd; ++pArray ) if( *pArray == rServiceName ) break; @@ -1438,10 +1438,10 @@ sal_Bool UnoControl::supportsService( const ::rtl::OUString& rServiceName ) thro return pArray != pArrayEnd; } -Sequence< ::rtl::OUString > UnoControl::getSupportedServiceNames( ) throw(RuntimeException) +Sequence< OUString > UnoControl::getSupportedServiceNames( ) throw(RuntimeException) { - ::rtl::OUString sName( "com.sun.star.awt.UnoControl" ); - return Sequence< ::rtl::OUString >( &sName, 1 ); + OUString sName( "com.sun.star.awt.UnoControl" ); + return Sequence< OUString >( &sName, 1 ); } // ------------------------------------------------------------------------ diff --git a/toolkit/source/controls/unocontrolbase.cxx b/toolkit/source/controls/unocontrolbase.cxx index 961f6e0ac3ee..566d11bb3653 100644 --- a/toolkit/source/controls/unocontrolbase.cxx +++ b/toolkit/source/controls/unocontrolbase.cxx @@ -32,11 +32,11 @@ sal_Bool UnoControlBase::ImplHasProperty( sal_uInt16 nPropId ) { - ::rtl::OUString aPropName( GetPropertyName( nPropId ) ); + OUString aPropName( GetPropertyName( nPropId ) ); return ImplHasProperty( aPropName ); } -sal_Bool UnoControlBase::ImplHasProperty( const ::rtl::OUString& aPropertyName ) +sal_Bool UnoControlBase::ImplHasProperty( const OUString& aPropertyName ) { ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xPSet( mxModel, ::com::sun::star::uno::UNO_QUERY ); if ( !xPSet.is() ) @@ -48,7 +48,7 @@ sal_Bool UnoControlBase::ImplHasProperty( const ::rtl::OUString& aPropertyName ) return xInfo->hasPropertyByName( aPropertyName ); } -void UnoControlBase::ImplSetPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues, sal_Bool bUpdateThis ) +void UnoControlBase::ImplSetPropertyValues( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues, sal_Bool bUpdateThis ) { ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet > xMPS( mxModel, ::com::sun::star::uno::UNO_QUERY ); if ( !mxModel.is() ) @@ -79,7 +79,7 @@ void UnoControlBase::ImplSetPropertyValues( const ::com::sun::star::uno::Sequenc } } -void UnoControlBase::ImplSetPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue, sal_Bool bUpdateThis ) +void UnoControlBase::ImplSetPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue, sal_Bool bUpdateThis ) { // Model might be logged off already but an event still fires if ( mxModel.is() ) @@ -103,7 +103,7 @@ void UnoControlBase::ImplSetPropertyValue( const ::rtl::OUString& aPropertyName, } } -::com::sun::star::uno::Any UnoControlBase::ImplGetPropertyValue( const ::rtl::OUString& aPropertyName ) +::com::sun::star::uno::Any UnoControlBase::ImplGetPropertyValue( const OUString& aPropertyName ) { ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xPSet( mxModel, ::com::sun::star::uno::UNO_QUERY ); if ( xPSet.is() ) @@ -156,9 +156,9 @@ double UnoControlBase::ImplGetPropertyValue_DOUBLE( sal_uInt16 nProp ) return n; } -::rtl::OUString UnoControlBase::ImplGetPropertyValue_UString( sal_uInt16 nProp ) +OUString UnoControlBase::ImplGetPropertyValue_UString( sal_uInt16 nProp ) { - ::rtl::OUString aStr; + OUString aStr; if ( mxModel.is() ) { ::com::sun::star::uno::Any aVal = ImplGetPropertyValue( GetPropertyName( nProp ) ); diff --git a/toolkit/source/controls/unocontrolcontainer.cxx b/toolkit/source/controls/unocontrolcontainer.cxx index 97fe8dce2380..015dd1b37069 100644 --- a/toolkit/source/controls/unocontrolcontainer.cxx +++ b/toolkit/source/controls/unocontrolcontainer.cxx @@ -46,16 +46,16 @@ using namespace ::com::sun::star; struct UnoControlHolder { uno::Reference< awt::XControl > mxControl; - ::rtl::OUString msName; + OUString msName; public: - UnoControlHolder( const ::rtl::OUString& rName, const uno::Reference< awt::XControl > & rControl ) + UnoControlHolder( const OUString& rName, const uno::Reference< awt::XControl > & rControl ) : mxControl( rControl ), msName( rName ) { } - inline const ::rtl::OUString& getName() const { return msName; } + inline const OUString& getName() const { return msName; } inline const uno::Reference< awt::XControl >& getControl() const { return mxControl; } }; @@ -82,7 +82,7 @@ public: @return the identifier of the newly added control */ - ControlIdentifier addControl( const uno::Reference< awt::XControl >& _rxControl, const ::rtl::OUString* _pName ); + ControlIdentifier addControl( const uno::Reference< awt::XControl >& _rxControl, const OUString* _pName ); /** returns the number of controls in the list */ @@ -107,7 +107,7 @@ public: /** returns the first control which is registered under the given name */ uno::Reference< awt::XControl > - getControlForName( const ::rtl::OUString& _rName ) const; + getControlForName( const OUString& _rName ) const; /** returns the identifier which a control is registered for, or -1 if the control isn't registered @@ -150,7 +150,7 @@ private: */ ControlIdentifier impl_addControl( const uno::Reference< awt::XControl >& _rxControl, - const ::rtl::OUString* _pName + const OUString* _pName ); /** finds a free identifier @@ -163,7 +163,7 @@ private: @throw uno::RuntimeException if no free name can be found */ - ::rtl::OUString impl_getFreeName_throw(); + OUString impl_getFreeName_throw(); }; //------------------------------------------------------------------------ @@ -177,7 +177,7 @@ UnoControlHolderList::~UnoControlHolderList() } //------------------------------------------------------------------------ -UnoControlHolderList::ControlIdentifier UnoControlHolderList::addControl( const uno::Reference< awt::XControl >& _rxControl, const ::rtl::OUString* _pName ) +UnoControlHolderList::ControlIdentifier UnoControlHolderList::addControl( const uno::Reference< awt::XControl >& _rxControl, const OUString* _pName ) { return impl_addControl( _rxControl, _pName ); } @@ -209,7 +209,7 @@ size_t UnoControlHolderList::getIdentifiers( uno::Sequence< sal_Int32 >& _out_rI } //------------------------------------------------------------------------ -uno::Reference< awt::XControl > UnoControlHolderList::getControlForName( const ::rtl::OUString& _rName ) const +uno::Reference< awt::XControl > UnoControlHolderList::getControlForName( const OUString& _rName ) const { for ( ControlMap::const_iterator loop = maControls.begin(); loop != maControls.end(); @@ -269,11 +269,11 @@ void UnoControlHolderList::replaceControlById( ControlIdentifier _nId, const uno } //------------------------------------------------------------------------ -UnoControlHolderList::ControlIdentifier UnoControlHolderList::impl_addControl( const uno::Reference< awt::XControl >& _rxControl, const ::rtl::OUString* _pName ) +UnoControlHolderList::ControlIdentifier UnoControlHolderList::impl_addControl( const uno::Reference< awt::XControl >& _rxControl, const OUString* _pName ) { DBG_ASSERT( _rxControl.is(), "UnoControlHolderList::impl_addControl: invalid control!" ); - ::rtl::OUString sName = _pName ? *_pName : impl_getFreeName_throw(); + OUString sName = _pName ? *_pName : impl_getFreeName_throw(); sal_Int32 nId = impl_getFreeIdentifier_throw(); maControls[ nId ] = ControlInfo( new UnoControlHolder( sName, _rxControl ) ); @@ -289,16 +289,16 @@ UnoControlHolderList::ControlIdentifier UnoControlHolderList::impl_getFreeIdenti if ( existent == maControls.end() ) return candidateId; } - throw uno::RuntimeException( ::rtl::OUString( "out of identifiers" ), NULL ); + throw uno::RuntimeException( OUString( "out of identifiers" ), NULL ); } //------------------------------------------------------------------------ -::rtl::OUString UnoControlHolderList::impl_getFreeName_throw() +OUString UnoControlHolderList::impl_getFreeName_throw() { - ::rtl::OUString name( "control_" ); + OUString name( "control_" ); for ( ControlIdentifier candidateId = 0; candidateId < ::std::numeric_limits< ControlIdentifier >::max(); ++candidateId ) { - ::rtl::OUString candidateName( name + ::rtl::OUString::valueOf( candidateId ) ); + OUString candidateName( name + OUString::valueOf( candidateId ) ); ControlMap::const_iterator loop = maControls.begin(); for ( ; loop != maControls.end(); ++loop ) { @@ -308,7 +308,7 @@ UnoControlHolderList::ControlIdentifier UnoControlHolderList::impl_getFreeIdenti if ( loop == maControls.end() ) return candidateName; } - throw uno::RuntimeException( ::rtl::OUString( "out of identifiers" ), NULL ); + throw uno::RuntimeException( OUString( "out of identifiers" ), NULL ); } // ---------------------------------------------------- // Function to set the controls' visibility according @@ -337,7 +337,7 @@ void implUpdateVisibility ( xModel, uno::UNO_QUERY ); uno::Reference< beans::XPropertySetInfo > xInfo = xPSet->getPropertySetInfo(); - ::rtl::OUString aPropName( "Step" ); + OUString aPropName( "Step" ); sal_Int32 nControlStep = 0; if ( xInfo->hasPropertyByName( aPropName ) ) { @@ -494,7 +494,7 @@ void UnoControlContainer::removeContainerListener( const uno::Reference< contain uno::Reference< awt::XControl > xControl; if ( !( _rElement >>= xControl ) || !xControl.is() ) throw lang::IllegalArgumentException( - ::rtl::OUString( "Elements must support the XControl interface." ), + OUString( "Elements must support the XControl interface." ), *this, 1 ); @@ -509,7 +509,7 @@ void SAL_CALL UnoControlContainer::removeByIdentifier( ::sal_Int32 _nIdentifier uno::Reference< awt::XControl > xControl; if ( !mpControls->getControlForIdentifier( _nIdentifier, xControl ) ) throw container::NoSuchElementException( - ::rtl::OUString( "There is no element with the given identifier." ), + OUString( "There is no element with the given identifier." ), *this ); @@ -523,14 +523,14 @@ void SAL_CALL UnoControlContainer::replaceByIdentifer( ::sal_Int32 _nIdentifier, uno::Reference< awt::XControl > xExistentControl; if ( !mpControls->getControlForIdentifier( _nIdentifier, xExistentControl ) ) throw container::NoSuchElementException( - ::rtl::OUString( "There is no element with the given identifier." ), + OUString( "There is no element with the given identifier." ), *this ); uno::Reference< awt::XControl > xNewControl; if ( !( _rElement >>= xNewControl ) ) throw lang::IllegalArgumentException( - ::rtl::OUString( "Elements must support the XControl interface." ), + OUString( "Elements must support the XControl interface." ), *this, 1 ); @@ -586,7 +586,7 @@ uno::Type SAL_CALL UnoControlContainer::getElementType( ) throw (uno::RuntimeEx } // awt::XControlContainer -void UnoControlContainer::setStatusText( const ::rtl::OUString& rStatusText ) throw(uno::RuntimeException) +void UnoControlContainer::setStatusText( const OUString& rStatusText ) throw(uno::RuntimeException) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); @@ -604,7 +604,7 @@ uno::Sequence< uno::Reference< awt::XControl > > UnoControlContainer::getControl return aControls; } -uno::Reference< awt::XControl > UnoControlContainer::getControl( const ::rtl::OUString& rName ) throw(uno::RuntimeException) +uno::Reference< awt::XControl > UnoControlContainer::getControl( const OUString& rName ) throw(uno::RuntimeException) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); return mpControls->getControlForName( rName ); @@ -637,7 +637,7 @@ void UnoControlContainer::impl_createControlPeerIfNecessary( const uno::Referenc } -sal_Int32 UnoControlContainer::impl_addControl( const uno::Reference< awt::XControl >& _rxControl, const ::rtl::OUString* _pName ) +sal_Int32 UnoControlContainer::impl_addControl( const uno::Reference< awt::XControl >& _rxControl, const OUString* _pName ) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); UnoControlHolderList::ControlIdentifier id = mpControls->addControl( _rxControl, _pName ); @@ -658,7 +658,7 @@ sal_Int32 UnoControlContainer::impl_addControl( const uno::Reference< awt::XCont return id; } -void UnoControlContainer::addControl( const ::rtl::OUString& rName, const uno::Reference< awt::XControl >& rControl ) throw(uno::RuntimeException) +void UnoControlContainer::addControl( const OUString& rName, const uno::Reference< awt::XControl >& rControl ) throw(uno::RuntimeException) { if ( rControl.is() ) impl_addControl( rControl, &rName ); @@ -673,7 +673,7 @@ void UnoControlContainer::removingControl( const uno::Reference< awt::XControl > } } -void UnoControlContainer::impl_removeControl( sal_Int32 _nId, const uno::Reference< awt::XControl >& _rxControl, const ::rtl::OUString* _pNameAccessor ) +void UnoControlContainer::impl_removeControl( sal_Int32 _nId, const uno::Reference< awt::XControl >& _rxControl, const OUString* _pNameAccessor ) { #ifdef DBG_UTIL { @@ -776,7 +776,7 @@ void UnoControlContainer::createPeer( const uno::Reference< awt::XToolkit >& rxT ( xModel, uno::UNO_QUERY ); uno::Reference< beans::XPropertySetInfo > xInfo = xPSet->getPropertySetInfo(); - ::rtl::OUString aPropName( "Step" ); + OUString aPropName( "Step" ); if ( xInfo->hasPropertyByName( aPropName ) ) { ::com::sun::star::uno::Any aVal = xPSet->getPropertyValue( aPropName ); diff --git a/toolkit/source/controls/unocontrolcontainermodel.cxx b/toolkit/source/controls/unocontrolcontainermodel.cxx index 4af12d9c7226..316d4980ab7d 100644 --- a/toolkit/source/controls/unocontrolcontainermodel.cxx +++ b/toolkit/source/controls/unocontrolcontainermodel.cxx @@ -40,9 +40,9 @@ UnoControlContainerModel::UnoControlContainerModel( const ::com::sun::star::uno: ImplRegisterProperty( BASEPROPERTY_TEXT ); } -::rtl::OUString UnoControlContainerModel::getServiceName() throw(::com::sun::star::uno::RuntimeException) +OUString UnoControlContainerModel::getServiceName() throw(::com::sun::star::uno::RuntimeException) { - return ::rtl::OUString::createFromAscii( szServiceName_UnoControlContainerModel ); + return OUString::createFromAscii( szServiceName_UnoControlContainerModel ); } ::com::sun::star::uno::Any UnoControlContainerModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx index 2def6aef5d80..be3aa3bfa611 100644 --- a/toolkit/source/controls/unocontrolmodel.cxx +++ b/toolkit/source/controls/unocontrolmodel.cxx @@ -294,7 +294,7 @@ sal_Bool UnoControlModel::ImplHasProperty( sal_uInt16 nPropId ) const case BASEPROPERTY_LITERALMASK: case BASEPROPERTY_LABEL: case BASEPROPERTY_TITLE: - case BASEPROPERTY_TEXT: aDefault <<= ::rtl::OUString(); break; + case BASEPROPERTY_TEXT: aDefault <<= OUString(); break; case BASEPROPERTY_WRITING_MODE: case BASEPROPERTY_CONTEXT_WRITING_MODE: @@ -303,7 +303,7 @@ sal_Bool UnoControlModel::ImplHasProperty( sal_uInt16 nPropId ) const case BASEPROPERTY_STRINGITEMLIST: { - ::com::sun::star::uno::Sequence< ::rtl::OUString> aStringSeq; + ::com::sun::star::uno::Sequence< OUString> aStringSeq; aDefault <<= aStringSeq; } @@ -316,12 +316,12 @@ sal_Bool UnoControlModel::ImplHasProperty( sal_uInt16 nPropId ) const break; case BASEPROPERTY_CURRENCYSYMBOL: { - rtl::OUString sDefaultCurrency( + OUString sDefaultCurrency( utl::ConfigManager::getDefaultCurrency() ); // extract the bank symbol sal_Int32 nSepPos = sDefaultCurrency.indexOf( '-' ); - ::rtl::OUString sBankSymbol; + OUString sBankSymbol; if ( nSepPos >= 0 ) { sBankSymbol = sDefaultCurrency.copy( 0, nSepPos ); @@ -339,7 +339,7 @@ sal_Bool UnoControlModel::ImplHasProperty( sal_uInt16 nPropId ) const const Currency2* pAllCurrencies = aAllCurrencies.getConstArray(); const Currency2* pAllCurrenciesEnd = pAllCurrencies + aAllCurrencies.getLength(); - ::rtl::OUString sCurrencySymbol = aLocaleInfo.getCurrSymbol(); + OUString sCurrencySymbol = aLocaleInfo.getCurrSymbol(); if ( sBankSymbol.isEmpty() ) { DBG_ASSERT( pAllCurrencies != pAllCurrenciesEnd, "UnoControlModel::ImplGetDefaultValue: no currencies at all!" ); @@ -466,7 +466,7 @@ void UnoControlModel::removeEventListener( const ::com::sun::star::uno::Referenc // ::com::sun::star::beans::XPropertyState -::com::sun::star::beans::PropertyState UnoControlModel::getPropertyState( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) +::com::sun::star::beans::PropertyState UnoControlModel::getPropertyState( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); @@ -478,12 +478,12 @@ void UnoControlModel::removeEventListener( const ::com::sun::star::uno::Referenc return CompareProperties( aValue, aDefault ) ? ::com::sun::star::beans::PropertyState_DEFAULT_VALUE : ::com::sun::star::beans::PropertyState_DIRECT_VALUE; } -::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > UnoControlModel::getPropertyStates( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > UnoControlModel::getPropertyStates( const ::com::sun::star::uno::Sequence< OUString >& PropertyNames ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); sal_uInt32 nNames = PropertyNames.getLength(); - const ::rtl::OUString* pNames = PropertyNames.getConstArray(); + const OUString* pNames = PropertyNames.getConstArray(); ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > aStates( nNames ); ::com::sun::star::beans::PropertyState* pStates = aStates.getArray(); @@ -494,7 +494,7 @@ void UnoControlModel::removeEventListener( const ::com::sun::star::uno::Referenc return aStates; } -void UnoControlModel::setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) +void UnoControlModel::setPropertyToDefault( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) { Any aDefaultValue; { @@ -504,7 +504,7 @@ void UnoControlModel::setPropertyToDefault( const ::rtl::OUString& PropertyName setPropertyValue( PropertyName, aDefaultValue ); } -::com::sun::star::uno::Any UnoControlModel::getPropertyDefault( const ::rtl::OUString& rPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Any UnoControlModel::getPropertyDefault( const OUString& rPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); @@ -513,12 +513,12 @@ void UnoControlModel::setPropertyToDefault( const ::rtl::OUString& PropertyName // ::com::sun::star::io::XPersistObjec -::rtl::OUString UnoControlModel::getServiceName( ) throw(::com::sun::star::uno::RuntimeException) +OUString UnoControlModel::getServiceName( ) throw(::com::sun::star::uno::RuntimeException) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); OSL_FAIL( "ServiceName von UnoControlModel ?!" ); - return ::rtl::OUString(); + return OUString(); } void UnoControlModel::write( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream >& OutStream ) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) @@ -569,9 +569,9 @@ void UnoControlModel::write( const ::com::sun::star::uno::Reference< ::com::sun: rValue >>= b; OutStream->writeBoolean( b ); } - else if ( rType == ::getCppuType((const ::rtl::OUString*)0) ) + else if ( rType == ::getCppuType((const OUString*)0) ) { - ::rtl::OUString aUString; + OUString aUString; rValue >>= aUString; OutStream->writeUTF( aUString ); } @@ -627,9 +627,9 @@ void UnoControlModel::write( const ::com::sun::star::uno::Reference< ::com::sun: OutStream->writeBoolean( aFD.WordLineMode ); OutStream->writeShort( aFD.Type ); } - else if ( rType == ::getCppuType((const ::com::sun::star::uno::Sequence< ::rtl::OUString>*)0 ) ) + else if ( rType == ::getCppuType((const ::com::sun::star::uno::Sequence< OUString>*)0 ) ) { - ::com::sun::star::uno::Sequence< ::rtl::OUString> aSeq; + ::com::sun::star::uno::Sequence< OUString> aSeq; rValue >>= aSeq; long nEntries = aSeq.getLength(); OutStream->writeLong( nEntries ); @@ -663,12 +663,12 @@ void UnoControlModel::write( const ::com::sun::star::uno::Reference< ::com::sun: #if OSL_DEBUG_LEVEL > 0 else { - ::rtl::OString sMessage( "UnoControlModel::write: don't know how to handle a property of type '" ); - ::rtl::OUString sTypeName( rType.getTypeName() ); - sMessage += ::rtl::OString( sTypeName.getStr(), sTypeName.getLength(), RTL_TEXTENCODING_ASCII_US ); + OString sMessage( "UnoControlModel::write: don't know how to handle a property of type '" ); + OUString sTypeName( rType.getTypeName() ); + sMessage += OString( sTypeName.getStr(), sTypeName.getLength(), RTL_TEXTENCODING_ASCII_US ); sMessage += "'.\n(Currently handling property '"; - ::rtl::OUString sPropertyName( GetPropertyName( *it ) ); - sMessage += ::rtl::OString( sPropertyName.getStr(), sPropertyName.getLength(), osl_getThreadTextEncoding() ); + OUString sPropertyName( GetPropertyName( *it ) ); + sMessage += OString( sPropertyName.getStr(), sPropertyName.getLength(), osl_getThreadTextEncoding() ); sMessage += "'.)"; OSL_FAIL( sMessage.getStr() ); } @@ -748,7 +748,7 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun:: short nVersion = InStream->readShort(); sal_uInt32 nProps = (sal_uInt32)InStream->readLong(); - ::com::sun::star::uno::Sequence< ::rtl::OUString> aProps( nProps ); + ::com::sun::star::uno::Sequence< OUString> aProps( nProps ); ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any> aValues( nProps ); sal_Bool bInvalidEntries = sal_False; @@ -778,9 +778,9 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun:: sal_Bool b = InStream->readBoolean(); aValue <<= b; } - else if ( *pType == ::getCppuType((const ::rtl::OUString*)0) ) + else if ( *pType == ::getCppuType((const OUString*)0) ) { - ::rtl::OUString aUTF = InStream->readUTF(); + OUString aUTF = InStream->readUTF(); aValue <<= aUTF; } else if ( *pType == ::getCppuType((const sal_uInt16*)0) ) @@ -829,10 +829,10 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun:: aFD.Type = InStream->readShort(); aValue <<= aFD; } - else if ( *pType == ::getCppuType((const ::com::sun::star::uno::Sequence< ::rtl::OUString>*)0 ) ) + else if ( *pType == ::getCppuType((const ::com::sun::star::uno::Sequence< OUString>*)0 ) ) { long nEntries = InStream->readLong(); - ::com::sun::star::uno::Sequence< ::rtl::OUString> aSeq( nEntries ); + ::com::sun::star::uno::Sequence< OUString> aSeq( nEntries ); for ( long n = 0; n < nEntries; n++ ) aSeq.getArray()[n] = InStream->readUTF(); aValue <<= aSeq; @@ -862,12 +862,12 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun:: } else { - ::rtl::OString sMessage( "UnoControlModel::read: don't know how to handle a property of type '" ); - ::rtl::OUString sTypeName( pType->getTypeName() ); - sMessage += ::rtl::OString( sTypeName.getStr(), sTypeName.getLength(), RTL_TEXTENCODING_ASCII_US ); + OString sMessage( "UnoControlModel::read: don't know how to handle a property of type '" ); + OUString sTypeName( pType->getTypeName() ); + sMessage += OString( sTypeName.getStr(), sTypeName.getLength(), RTL_TEXTENCODING_ASCII_US ); sMessage += "'.\n(Currently handling property '"; - ::rtl::OUString sPropertyName( GetPropertyName( nPropId ) ); - sMessage += ::rtl::OString( sPropertyName.getStr(), sPropertyName.getLength(), osl_getThreadTextEncoding() ); + OUString sPropertyName( GetPropertyName( nPropId ) ); + sMessage += OString( sPropertyName.getStr(), sPropertyName.getLength(), osl_getThreadTextEncoding() ); sMessage += "'.)"; OSL_FAIL( sMessage.getStr() ); } @@ -993,29 +993,29 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun:: // ::com::sun::star::lang::XServiceInfo -::rtl::OUString UnoControlModel::getImplementationName( ) throw(::com::sun::star::uno::RuntimeException) +OUString UnoControlModel::getImplementationName( ) throw(::com::sun::star::uno::RuntimeException) { OSL_FAIL( "This method should be overloaded!" ); - return ::rtl::OUString(); + return OUString(); } -sal_Bool UnoControlModel::supportsService( const ::rtl::OUString& rServiceName ) throw(::com::sun::star::uno::RuntimeException) +sal_Bool UnoControlModel::supportsService( const OUString& rServiceName ) throw(::com::sun::star::uno::RuntimeException) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); - ::com::sun::star::uno::Sequence< ::rtl::OUString > aSNL = getSupportedServiceNames(); - const ::rtl::OUString * pArray = aSNL.getConstArray(); + ::com::sun::star::uno::Sequence< OUString > aSNL = getSupportedServiceNames(); + const OUString * pArray = aSNL.getConstArray(); for( sal_Int32 i = 0; i < aSNL.getLength(); i++ ) if( pArray[i] == rServiceName ) return sal_True; return sal_False; } -::com::sun::star::uno::Sequence< ::rtl::OUString > UnoControlModel::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException) +::com::sun::star::uno::Sequence< OUString > UnoControlModel::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException) { - ::rtl::OUString sName( "com.sun.star.awt.UnoControlModel" ); - return Sequence< ::rtl::OUString >( &sName, 1 ); + OUString sName( "com.sun.star.awt.UnoControlModel" ); + return Sequence< OUString >( &sName, 1 ); } // ------------------------------------------------------------------ @@ -1134,7 +1134,7 @@ sal_Bool UnoControlModel::convertFastPropertyValue( Any & rConvertedValue, Any & if (!bConverted) { - ::rtl::OUStringBuffer aErrorMessage; + OUStringBuffer aErrorMessage; aErrorMessage.appendAscii( "Unable to convert the given value for the property " ); aErrorMessage.append ( GetPropertyName( (sal_uInt16)nPropId ) ); aErrorMessage.appendAscii( ".\n" ); @@ -1227,7 +1227,7 @@ void UnoControlModel::getFastPropertyValue( ::com::sun::star::uno::Any& rValue, } // ::com::sun::star::beans::XPropertySet -void UnoControlModel::setPropertyValue( const ::rtl::OUString& rPropertyName, const ::com::sun::star::uno::Any& rValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) +void UnoControlModel::setPropertyValue( const OUString& rPropertyName, const ::com::sun::star::uno::Any& rValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) { sal_Int32 nPropId = 0; { @@ -1283,7 +1283,7 @@ void UnoControlModel::setFastPropertyValue( sal_Int32 nPropId, const ::com::sun: return ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >(); } -void UnoControlModel::setPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Values ) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) +void UnoControlModel::setPropertyValues( const ::com::sun::star::uno::Sequence< OUString >& rPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Values ) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) { ::osl::ClearableMutexGuard aGuard( GetMutex() ); diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx index 92d49df671d8..669a8b305da4 100644 --- a/toolkit/source/controls/unocontrols.cxx +++ b/toolkit/source/controls/unocontrols.cxx @@ -84,7 +84,7 @@ ImageHelper::getGraphicAndGraphicObjectFromURL_nothrow( uno::Reference< graphic: if ( _rURL.startsWith( UNO_NAME_GRAPHOBJ_URLPREFIX ) ) { // graphic manager uniqueid - rtl::OUString sID = _rURL.copy( sizeof( UNO_NAME_GRAPHOBJ_URLPREFIX ) - 1 ); + OUString sID = _rURL.copy( sizeof( UNO_NAME_GRAPHOBJ_URLPREFIX ) - 1 ); xOutGraphicObj = graphic::GraphicObject::createWithId( ::comphelper::getProcessComponentContext(), sID ); } else // linked @@ -2616,8 +2616,8 @@ void UnoListBoxControl::itemStateChanged( const awt::ItemEvent& rEvent ) throw(u #if OSL_DEBUG_LEVEL == 0 (void) e; // suppress warning #else - ::rtl::OString sMessage( "UnoListBoxControl::itemStateChanged: caught an exception:\n" ); - sMessage += ::rtl::OString( e.Message.getStr(), e.Message.getLength(), RTL_TEXTENCODING_ASCII_US ); + OString sMessage( "UnoListBoxControl::itemStateChanged: caught an exception:\n" ); + sMessage += OString( e.Message.getStr(), e.Message.getLength(), RTL_TEXTENCODING_ASCII_US ); OSL_FAIL( sMessage.getStr() ); #endif } @@ -2919,8 +2919,8 @@ void UnoComboBoxControl::itemStateChanged( const awt::ItemEvent& rEvent ) throw( #if OSL_DEBUG_LEVEL == 0 (void) e; // suppress warning #else - ::rtl::OString sMessage( "UnoComboBoxControl::itemStateChanged: caught an exception:\n" ); - sMessage += ::rtl::OString( e.Message.getStr(), e.Message.getLength(), RTL_TEXTENCODING_ASCII_US ); + OString sMessage( "UnoComboBoxControl::itemStateChanged: caught an exception:\n" ); + sMessage += OString( e.Message.getStr(), e.Message.getLength(), RTL_TEXTENCODING_ASCII_US ); OSL_FAIL( sMessage.getStr() ); #endif } diff --git a/toolkit/source/helper/accessibilityclient.cxx b/toolkit/source/helper/accessibilityclient.cxx index 3119ba6e3dc9..9ab29d0a4e75 100644 --- a/toolkit/source/helper/accessibilityclient.cxx +++ b/toolkit/source/helper/accessibilityclient.cxx @@ -201,12 +201,12 @@ namespace toolkit if ( !s_pFactory.get() ) { #ifndef DISABLE_DYNLOADING - const ::rtl::OUString sModuleName( SVLIBRARY( "acc" ) ); + const OUString sModuleName( SVLIBRARY( "acc" ) ); s_hAccessibleImplementationModule = osl_loadModuleRelative( &thisModule, sModuleName.pData, 0 ); if ( s_hAccessibleImplementationModule != NULL ) { - const ::rtl::OUString sFactoryCreationFunc = - ::rtl::OUString("getStandardAccessibleFactory"); + const OUString sFactoryCreationFunc = + OUString("getStandardAccessibleFactory"); s_pAccessibleFactoryFunc = (GetStandardAccComponentFactory) osl_getFunctionSymbol( s_hAccessibleImplementationModule, sFactoryCreationFunc.pData ); diff --git a/toolkit/source/helper/formpdfexport.cxx b/toolkit/source/helper/formpdfexport.cxx index 98b509be625f..6d4824acf30e 100644 --- a/toolkit/source/helper/formpdfexport.cxx +++ b/toolkit/source/helper/formpdfexport.cxx @@ -63,7 +63,7 @@ namespace toolkitform */ sal_Int16 classifyFormControl( const Reference< XPropertySet >& _rxModel ) SAL_THROW(( Exception )) { - static const ::rtl::OUString FM_PROP_CLASSID("ClassId"); + static const OUString FM_PROP_CLASSID("ClassId"); sal_Int16 nControlType = FormComponentType::CONTROL; Reference< XPropertySetInfo > xPSI; @@ -154,8 +154,8 @@ namespace toolkitform ::std::vector< sal_Int32 > aPath; Reference< XInterface > xNormalizedLookup( _rxRadioModel, UNO_QUERY ); - ::rtl::OUString sRadioGroupName; - OSL_VERIFY( _rxRadioModel->getPropertyValue( rtl::OUString(FM_PROP_NAME) ) >>= sRadioGroupName ); + OUString sRadioGroupName; + OSL_VERIFY( _rxRadioModel->getPropertyValue( OUString(FM_PROP_NAME) ) >>= sRadioGroupName ); Reference< XIndexAccess > xCurrentContainer( xRoot ); sal_Int32 nStartWithChild = 0; @@ -203,9 +203,9 @@ namespace toolkitform if ( xElement.get() == xNormalizedLookup.get() ) { // look up the name of the radio group in the list of all element names - Sequence< ::rtl::OUString > aElementNames( xElementNameAccess->getElementNames() ); - const ::rtl::OUString* pElementNames = aElementNames.getConstArray(); - const ::rtl::OUString* pElementNamesEnd = pElementNames + aElementNames.getLength(); + Sequence< OUString > aElementNames( xElementNameAccess->getElementNames() ); + const OUString* pElementNames = aElementNames.getConstArray(); + const OUString* pElementNamesEnd = pElementNames + aElementNames.getLength(); while ( pElementNames != pElementNamesEnd ) { if ( *pElementNames == sRadioGroupName ) @@ -241,13 +241,13 @@ namespace toolkitform //-------------------------------------------------------------------- /** copies a StringItemList to a PDF widget's list */ - void getStringItemVector( const Reference< XPropertySet >& _rxModel, ::std::vector< ::rtl::OUString >& _rVector ) + void getStringItemVector( const Reference< XPropertySet >& _rxModel, ::std::vector< OUString >& _rVector ) { - static const ::rtl::OUString FM_PROP_STRINGITEMLIST("StringItemList"); - Sequence< ::rtl::OUString > aListEntries; + static const OUString FM_PROP_STRINGITEMLIST("StringItemList"); + Sequence< OUString > aListEntries; OSL_VERIFY( _rxModel->getPropertyValue( FM_PROP_STRINGITEMLIST ) >>= aListEntries ); ::std::copy( aListEntries.getConstArray(), aListEntries.getConstArray() + aListEntries.getLength(), - ::std::back_insert_iterator< ::std::vector< ::rtl::OUString > >( _rVector ) ); + ::std::back_insert_iterator< ::std::vector< OUString > >( _rVector ) ); } } @@ -282,12 +282,12 @@ namespace toolkitform // -------------------------------- // Name, Description, Text - OSL_VERIFY( xModelProps->getPropertyValue( rtl::OUString(FM_PROP_NAME) ) >>= _rpDescriptor->Name ); - static const ::rtl::OUString FM_PROP_HELPTEXT("HelpText"); + OSL_VERIFY( xModelProps->getPropertyValue( OUString(FM_PROP_NAME) ) >>= _rpDescriptor->Name ); + static const OUString FM_PROP_HELPTEXT("HelpText"); OSL_VERIFY( xModelProps->getPropertyValue( FM_PROP_HELPTEXT ) >>= _rpDescriptor->Description ); Any aText; - static const ::rtl::OUString FM_PROP_TEXT("Text"); - static const ::rtl::OUString FM_PROP_LABEL("Label"); + static const OUString FM_PROP_TEXT("Text"); + static const OUString FM_PROP_LABEL("Label"); if ( xPSI->hasPropertyByName( FM_PROP_TEXT ) ) aText = xModelProps->getPropertyValue( FM_PROP_TEXT ); else if ( xPSI->hasPropertyByName( FM_PROP_LABEL ) ) @@ -297,21 +297,21 @@ namespace toolkitform // -------------------------------- // readonly - static const ::rtl::OUString FM_PROP_READONLY("ReadOnly"); + static const OUString FM_PROP_READONLY("ReadOnly"); if ( xPSI->hasPropertyByName( FM_PROP_READONLY ) ) OSL_VERIFY( xModelProps->getPropertyValue( FM_PROP_READONLY ) >>= _rpDescriptor->ReadOnly ); // -------------------------------- // border { - static const ::rtl::OUString FM_PROP_BORDER("Border"); + static const OUString FM_PROP_BORDER("Border"); if ( xPSI->hasPropertyByName( FM_PROP_BORDER ) ) { sal_Int16 nBorderType = 0; OSL_VERIFY( xModelProps->getPropertyValue( FM_PROP_BORDER ) >>= nBorderType ); _rpDescriptor->Border = ( nBorderType != 0 ); - ::rtl::OUString sBorderColorPropertyName( "BorderColor" ); + OUString sBorderColorPropertyName( "BorderColor" ); if ( xPSI->hasPropertyByName( sBorderColorPropertyName ) ) { sal_Int32 nBoderColor = COL_TRANSPARENT; @@ -325,7 +325,7 @@ namespace toolkitform // -------------------------------- // background color - static const ::rtl::OUString FM_PROP_BACKGROUNDCOLOR("BackgroundColor"); + static const OUString FM_PROP_BACKGROUNDCOLOR("BackgroundColor"); if ( xPSI->hasPropertyByName( FM_PROP_BACKGROUNDCOLOR ) ) { sal_Int32 nBackColor = COL_TRANSPARENT; @@ -336,7 +336,7 @@ namespace toolkitform // -------------------------------- // text color - static const ::rtl::OUString FM_PROP_TEXTCOLOR("TextColor"); + static const OUString FM_PROP_TEXTCOLOR("TextColor"); if ( xPSI->hasPropertyByName( FM_PROP_TEXTCOLOR ) ) { sal_Int32 nTextColor = COL_TRANSPARENT; @@ -351,7 +351,7 @@ namespace toolkitform // multi line and word break // The MultiLine property of the control is mapped to both the "MULTILINE" and // "WORDBREAK" style flags - static const ::rtl::OUString FM_PROP_MULTILINE("MultiLine"); + static const OUString FM_PROP_MULTILINE("MultiLine"); if ( xPSI->hasPropertyByName( FM_PROP_MULTILINE ) ) { sal_Bool bMultiLine = sal_False; @@ -361,7 +361,7 @@ namespace toolkitform } // ............................ // horizontal alignment - static const ::rtl::OUString FM_PROP_ALIGN("Align"); + static const OUString FM_PROP_ALIGN("Align"); if ( xPSI->hasPropertyByName( FM_PROP_ALIGN ) ) { sal_Int16 nAlign = awt::TextAlign::LEFT; @@ -380,7 +380,7 @@ namespace toolkitform // ............................ // vertical alignment { - ::rtl::OUString sVertAlignPropertyName( "VerticalAlign" ); + OUString sVertAlignPropertyName( "VerticalAlign" ); if ( xPSI->hasPropertyByName( sVertAlignPropertyName ) ) { sal_Int16 nAlign = VerticalAlignment_MIDDLE; @@ -397,7 +397,7 @@ namespace toolkitform } // font - static const ::rtl::OUString FM_PROP_FONT("FontDescriptor"); + static const OUString FM_PROP_FONT("FontDescriptor"); if ( xPSI->hasPropertyByName( FM_PROP_FONT ) ) { FontDescriptor aUNOFont; @@ -406,7 +406,7 @@ namespace toolkitform } // tab order - rtl::OUString aTabIndexString( "TabIndex" ); + OUString aTabIndexString( "TabIndex" ); if ( xPSI->hasPropertyByName( aTabIndexString ) ) { sal_Int16 nIndex = -1; @@ -426,7 +426,7 @@ namespace toolkitform pEditWidget->MultiLine = ( _rpDescriptor->TextStyle & TEXT_DRAW_MULTILINE ) != 0; // ............................ // password input - ::rtl::OUString sEchoCharPropName( "EchoChar" ); + OUString sEchoCharPropName( "EchoChar" ); if ( xPSI->hasPropertyByName( sEchoCharPropName ) ) { sal_Int16 nEchoChar = 0; @@ -435,12 +435,12 @@ namespace toolkitform } // ............................ // file select - static const ::rtl::OUString FM_SUN_COMPONENT_FILECONTROL("com.sun.star.form.component.FileControl"); + static const OUString FM_SUN_COMPONENT_FILECONTROL("com.sun.star.form.component.FileControl"); if ( xSI->supportsService( FM_SUN_COMPONENT_FILECONTROL ) ) pEditWidget->FileSelect = true; // ............................ // maximum text length - static const ::rtl::OUString FM_PROP_MAXTEXTLEN("MaxTextLen"); + static const OUString FM_PROP_MAXTEXTLEN("MaxTextLen"); if ( xPSI->hasPropertyByName( FM_PROP_MAXTEXTLEN ) ) { sal_Int16 nMaxTextLength = 0; @@ -458,8 +458,8 @@ namespace toolkitform { ::vcl::PDFWriter::PushButtonWidget* pButtonWidget = static_cast< ::vcl::PDFWriter::PushButtonWidget* >( _rpDescriptor.get() ); FormButtonType eButtonType = FormButtonType_PUSH; - OSL_VERIFY( xModelProps->getPropertyValue( ::rtl::OUString( "ButtonType" ) ) >>= eButtonType ); - static const ::rtl::OUString FM_PROP_TARGET_URL("TargetURL"); + OSL_VERIFY( xModelProps->getPropertyValue( OUString( "ButtonType" ) ) >>= eButtonType ); + static const OUString FM_PROP_TARGET_URL("TargetURL"); if ( eButtonType == FormButtonType_SUBMIT ) { // if a button is a submit button, then it uses the URL at it's parent form @@ -470,19 +470,19 @@ namespace toolkitform if ( xParentProps.is() ) { Reference< XServiceInfo > xParentSI( xParentProps, UNO_QUERY ); - if ( xParentSI.is() && xParentSI->supportsService( ::rtl::OUString( "com.sun.star.form.component.HTMLForm" ) ) ) + if ( xParentSI.is() && xParentSI->supportsService( OUString( "com.sun.star.form.component.HTMLForm" ) ) ) { OSL_VERIFY( xParentProps->getPropertyValue( FM_PROP_TARGET_URL ) >>= pButtonWidget->URL ); pButtonWidget->Submit = true; FormSubmitMethod eMethod = FormSubmitMethod_POST; - OSL_VERIFY( xParentProps->getPropertyValue( rtl::OUString( "SubmitMethod" ) ) >>= eMethod ); + OSL_VERIFY( xParentProps->getPropertyValue( OUString( "SubmitMethod" ) ) >>= eMethod ); pButtonWidget->SubmitGet = (eMethod == FormSubmitMethod_GET); } } } else if ( eButtonType == FormButtonType_URL ) { - ::rtl::OUString sURL; + OUString sURL; OSL_VERIFY( xModelProps->getPropertyValue( FM_PROP_TARGET_URL ) >>= sURL ); const bool bDocumentLocalTarget = !sURL.isEmpty() && ( sURL.getStr()[0] == '#' ); if ( bDocumentLocalTarget ) @@ -518,7 +518,7 @@ namespace toolkitform // -------------------------------- // check boxes - static const ::rtl::OUString FM_PROP_STATE("State"); + static const OUString FM_PROP_STATE("State"); if ( _rpDescriptor->getType() == ::vcl::PDFWriter::CheckBox ) { ::vcl::PDFWriter::CheckBoxWidget* pCheckBoxWidget = static_cast< ::vcl::PDFWriter::CheckBoxWidget* >( _rpDescriptor.get() ); @@ -538,12 +538,12 @@ namespace toolkitform pRadioWidget->RadioGroup = determineRadioGroupId( xModelProps ); try { - static const ::rtl::OUString FM_PROP_REFVALUE("RefValue"); + static const OUString FM_PROP_REFVALUE("RefValue"); xModelProps->getPropertyValue( FM_PROP_REFVALUE ) >>= pRadioWidget->OnValue; } catch(...) { - pRadioWidget->OnValue = rtl::OUString( "On" ); + pRadioWidget->OnValue = OUString( "On" ); } } @@ -554,11 +554,11 @@ namespace toolkitform ::vcl::PDFWriter::ListBoxWidget* pListWidget = static_cast< ::vcl::PDFWriter::ListBoxWidget* >( _rpDescriptor.get() ); // ............................ // drop down - static const ::rtl::OUString FM_PROP_DROPDOWN("Dropdown"); + static const OUString FM_PROP_DROPDOWN("Dropdown"); OSL_VERIFY( xModelProps->getPropertyValue( FM_PROP_DROPDOWN ) >>= pListWidget->DropDown ); // ............................ // multi selection - OSL_VERIFY( xModelProps->getPropertyValue( ::rtl::OUString( "MultiSelection" ) ) >>= pListWidget->MultiSelect ); + OSL_VERIFY( xModelProps->getPropertyValue( OUString( "MultiSelection" ) ) >>= pListWidget->MultiSelect ); // ............................ // entries getStringItemVector( xModelProps, pListWidget->Entries ); @@ -568,7 +568,7 @@ namespace toolkitform // get selected items Sequence< sal_Int16 > aSelectIndices; - OSL_VERIFY( xModelProps->getPropertyValue( rtl::OUString( "SelectedItems" ) ) >>= aSelectIndices ); + OSL_VERIFY( xModelProps->getPropertyValue( OUString( "SelectedItems" ) ) >>= aSelectIndices ); if( aSelectIndices.getLength() > 0 ) { pListWidget->SelectedEntries.resize( 0 ); diff --git a/toolkit/source/helper/property.cxx b/toolkit/source/helper/property.cxx index ba26d0225f3b..451d048f7cd7 100644 --- a/toolkit/source/helper/property.cxx +++ b/toolkit/source/helper/property.cxx @@ -57,7 +57,7 @@ using ::com::sun::star::graphic::XGraphic; struct ImplPropertyInfo { - ::rtl::OUString aName; + OUString aName; sal_uInt16 nPropId; ::com::sun::star::uno::Type aType; sal_Int16 nAttribs; @@ -70,7 +70,7 @@ struct ImplPropertyInfo bDependsOnOthers = sal_False; } - ImplPropertyInfo( rtl::OUString const & theName, sal_uInt16 nId, const ::com::sun::star::uno::Type& rType, + ImplPropertyInfo( OUString const & theName, sal_uInt16 nId, const ::com::sun::star::uno::Type& rType, sal_Int16 nAttrs, sal_Bool bDepends = sal_False ) : aName( theName ) { @@ -83,16 +83,16 @@ struct ImplPropertyInfo }; #define DECL_PROP_1( asciiname, id, type, attrib1 ) \ - ImplPropertyInfo( ::rtl::OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 ) + ImplPropertyInfo( OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 ) #define DECL_PROP_2( asciiname, id, type, attrib1, attrib2 ) \ - ImplPropertyInfo( ::rtl::OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 | ::com::sun::star::beans::PropertyAttribute::attrib2 ) + ImplPropertyInfo( OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 | ::com::sun::star::beans::PropertyAttribute::attrib2 ) #define DECL_PROP_3( asciiname, id, type, attrib1, attrib2, attrib3 ) \ - ImplPropertyInfo( ::rtl::OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 | ::com::sun::star::beans::PropertyAttribute::attrib2 | ::com::sun::star::beans::PropertyAttribute::attrib3 ) + ImplPropertyInfo( OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 | ::com::sun::star::beans::PropertyAttribute::attrib2 | ::com::sun::star::beans::PropertyAttribute::attrib3 ) #define DECL_DEP_PROP_2( asciiname, id, type, attrib1, attrib2 ) \ - ImplPropertyInfo( ::rtl::OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 | ::com::sun::star::beans::PropertyAttribute::attrib2, sal_True ) + ImplPropertyInfo( OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 | ::com::sun::star::beans::PropertyAttribute::attrib2, sal_True ) #define DECL_DEP_PROP_3( asciiname, id, type, attrib1, attrib2, attrib3 ) \ - ImplPropertyInfo( ::rtl::OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 | ::com::sun::star::beans::PropertyAttribute::attrib2 | ::com::sun::star::beans::PropertyAttribute::attrib3, sal_True ) + ImplPropertyInfo( OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 | ::com::sun::star::beans::PropertyAttribute::attrib2 | ::com::sun::star::beans::PropertyAttribute::attrib3, sal_True ) ImplPropertyInfo* ImplGetPropertyInfos( sal_uInt16& rElementCount ) { @@ -105,7 +105,7 @@ ImplPropertyInfo* ImplGetPropertyInfos( sal_uInt16& rElementCount ) { static ImplPropertyInfo aImplPropertyInfos [] = { - DECL_PROP_2 ( "AccessibleName", ACCESSIBLENAME, ::rtl::OUString, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "AccessibleName", ACCESSIBLENAME, OUString, BOUND, MAYBEDEFAULT ), DECL_PROP_3 ( "Align", ALIGN, sal_Int16, BOUND, MAYBEDEFAULT, MAYBEVOID ), DECL_PROP_2 ( "Autocomplete", AUTOCOMPLETE, bool, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "AutoHScroll", AUTOHSCROLL, bool, BOUND, MAYBEDEFAULT ), @@ -117,8 +117,8 @@ ImplPropertyInfo* ImplGetPropertyInfos( sal_uInt16& rElementCount ) DECL_PROP_3 ( "Border", BORDER, sal_Int16, BOUND, MAYBEDEFAULT, MAYBEVOID ), DECL_DEP_PROP_3 ( "BorderColor", BORDERCOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), DECL_PROP_2 ( "Closeable", CLOSEABLE, bool, BOUND, MAYBEDEFAULT ), - DECL_PROP_2 ( "CurrencySymbol", CURRENCYSYMBOL, ::rtl::OUString, BOUND, MAYBEDEFAULT ), - DECL_PROP_2 ( "CustomUnitText", CUSTOMUNITTEXT, ::rtl::OUString, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "CurrencySymbol", CURRENCYSYMBOL, OUString, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "CustomUnitText", CUSTOMUNITTEXT, OUString, BOUND, MAYBEDEFAULT ), DECL_DEP_PROP_3 ( "Date", DATE, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), DECL_PROP_2 ( "DateFormat", EXTDATEFORMAT, sal_Int16, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "DateMax", DATEMAX, sal_Int32, BOUND, MAYBEDEFAULT ), @@ -126,12 +126,12 @@ ImplPropertyInfo* ImplGetPropertyInfos( sal_uInt16& rElementCount ) DECL_PROP_3 ( "DateShowCentury", DATESHOWCENTURY, bool, BOUND, MAYBEDEFAULT, MAYBEVOID ), DECL_PROP_2 ( "DecimalAccuracy", DECIMALACCURACY, sal_Int16, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "DefaultButton", DEFAULTBUTTON, bool, BOUND, MAYBEDEFAULT ), - DECL_PROP_2 ( "DefaultControl", DEFAULTCONTROL, ::rtl::OUString, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "DefaultControl", DEFAULTCONTROL, OUString, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "DesktopAsParent", DESKTOP_AS_PARENT, bool, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "DisplayBackgroundColor", DISPLAYBACKGROUNDCOLOR, sal_Int32, BOUND, MAYBEVOID ), DECL_PROP_2 ( "Dropdown", DROPDOWN, bool, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "EchoChar", ECHOCHAR, sal_Int16, BOUND, MAYBEDEFAULT ), - DECL_PROP_2 ( "EditMask", EDITMASK, ::rtl::OUString, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "EditMask", EDITMASK, OUString, BOUND, MAYBEDEFAULT ), DECL_PROP_3 ( "EffectiveDefault", EFFECTIVE_DEFAULT, Any, BOUND, MAYBEDEFAULT, MAYBEVOID ), DECL_PROP_3 ( "EffectiveMax", EFFECTIVE_MAX, double, BOUND, MAYBEDEFAULT, MAYBEVOID ), DECL_PROP_3 ( "EffectiveMin", EFFECTIVE_MIN, double, BOUND, MAYBEDEFAULT, MAYBEVOID ), @@ -145,8 +145,8 @@ ImplPropertyInfo* ImplGetPropertyInfos( sal_uInt16& rElementCount ) DECL_PROP_2 ( "FontDescriptor", FONTDESCRIPTOR, FontDescriptor, BOUND, MAYBEDEFAULT ), // Teile des ::com::sun::star::awt::FontDescriptor - DECL_PROP_2 ( "FontName", FONTDESCRIPTORPART_NAME, ::rtl::OUString,BOUND, MAYBEDEFAULT ), - DECL_PROP_2 ( "FontStyleName", FONTDESCRIPTORPART_STYLENAME, ::rtl::OUString,BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "FontName", FONTDESCRIPTORPART_NAME, OUString,BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "FontStyleName", FONTDESCRIPTORPART_STYLENAME, OUString,BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "FontFamily", FONTDESCRIPTORPART_FAMILY, sal_Int16, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "FontCharset", FONTDESCRIPTORPART_CHARSET, sal_Int16, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "FontHeight", FONTDESCRIPTORPART_HEIGHT, float, BOUND, MAYBEDEFAULT ), @@ -166,23 +166,23 @@ ImplPropertyInfo* ImplGetPropertyInfos( sal_uInt16& rElementCount ) DECL_PROP_3 ( "FormatsSupplier", FORMATSSUPPLIER, Reference< ::com::sun::star::util::XNumberFormatsSupplier >, BOUND, MAYBEVOID, TRANSIENT ), DECL_PROP_2 ( "Graphic", GRAPHIC, Reference< XGraphic >, BOUND, TRANSIENT ), - DECL_PROP_2 ( "GroupName", GROUPNAME, ::rtl::OUString, BOUND, MAYBEDEFAULT ), - DECL_PROP_2 ( "HelpText", HELPTEXT, ::rtl::OUString, BOUND, MAYBEDEFAULT ), - DECL_PROP_2 ( "HelpURL", HELPURL, ::rtl::OUString, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "GroupName", GROUPNAME, OUString, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "HelpText", HELPTEXT, OUString, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "HelpURL", HELPURL, OUString, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "HideInactiveSelection", HIDEINACTIVESELECTION, bool, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "HighContrastMode", HIGHCONTRASTMODE, bool, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "HScroll", HSCROLL, bool, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "HardLineBreaks", HARDLINEBREAKS, bool, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "ImageAlign", IMAGEALIGN, sal_Int16, BOUND, MAYBEDEFAULT), DECL_PROP_2 ( "ImagePosition", IMAGEPOSITION, sal_Int16, BOUND, MAYBEDEFAULT), - DECL_PROP_2 ( "ImageURL", IMAGEURL, ::rtl::OUString, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "ImageURL", IMAGEURL, OUString, BOUND, MAYBEDEFAULT ), DECL_PROP_3 ( "ItemSeparatorPos", ITEM_SEPARATOR_POS, sal_Int16, BOUND, MAYBEDEFAULT, MAYBEVOID ), - DECL_PROP_2 ( "Label", LABEL, ::rtl::OUString, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "Label", LABEL, OUString, BOUND, MAYBEDEFAULT ), DECL_PROP_3 ( "LineColor", LINECOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), DECL_PROP_2 ( "LineCount", LINECOUNT, sal_Int16, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "LineEndFormat", LINE_END_FORMAT, sal_Int16, BOUND, MAYBEDEFAULT ), DECL_DEP_PROP_2 ( "LineIncrement", LINEINCREMENT, sal_Int32, BOUND, MAYBEDEFAULT ), - DECL_PROP_2 ( "LiteralMask", LITERALMASK, ::rtl::OUString, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "LiteralMask", LITERALMASK, OUString, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "LiveScroll", LIVE_SCROLL, bool, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "MaxTextLen", MAXTEXTLEN, sal_Int16, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "Moveable", MOVEABLE, bool, BOUND, MAYBEDEFAULT ), @@ -224,18 +224,18 @@ ImplPropertyInfo* ImplGetPropertyInfos( sal_uInt16& rElementCount ) DECL_PROP_2 ( "SpinValueMin", SPINVALUE_MIN, sal_Int32, BOUND, MAYBEDEFAULT ), DECL_DEP_PROP_2 ( "State", STATE, sal_Int16, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "StrictFormat", STRICTFORMAT, bool, BOUND, MAYBEDEFAULT ), - DECL_PROP_2 ( "StringItemList", STRINGITEMLIST, Sequence< ::rtl::OUString >, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "StringItemList", STRINGITEMLIST, Sequence< OUString >, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "VisualEffect", VISUALEFFECT, sal_Int16, BOUND, MAYBEDEFAULT ), DECL_PROP_3 ( "SymbolColor", SYMBOL_COLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), DECL_PROP_3 ( "Tabstop", TABSTOP, bool, BOUND, MAYBEDEFAULT, MAYBEVOID ), - DECL_PROP_2 ( "Text", TEXT, ::rtl::OUString, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "Text", TEXT, OUString, BOUND, MAYBEDEFAULT ), DECL_PROP_3 ( "TextColor", TEXTCOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), DECL_PROP_3 ( "TextLineColor", TEXTLINECOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), DECL_DEP_PROP_3 ( "Time", TIME, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), DECL_PROP_2 ( "TimeFormat", EXTTIMEFORMAT, sal_Int16, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "TimeMax", TIMEMAX, sal_Int32, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "TimeMin", TIMEMIN, sal_Int32, BOUND, MAYBEDEFAULT ), - DECL_PROP_2 ( "Title", TITLE, ::rtl::OUString, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "Title", TITLE, OUString, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "Toggle", TOGGLE, bool, BOUND, MAYBEDEFAULT ), DECL_PROP_3 ( "TreatAsNumber", TREATASNUMBER, bool, BOUND, MAYBEDEFAULT,TRANSIENT ), DECL_PROP_2 ( "TriState", TRISTATE, bool, BOUND, MAYBEDEFAULT ), @@ -263,8 +263,8 @@ ImplPropertyInfo* ImplGetPropertyInfos( sal_uInt16& rElementCount ) DECL_PROP_2 ( "ShowsRootHandles", TREE_SHOWSROOTHANDLES, sal_Bool, BOUND, MAYBEDEFAULT ), DECL_PROP_3 ( "RowHeight", ROW_HEIGHT, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), DECL_PROP_2 ( "InvokesStopNodeEditing", TREE_INVOKESSTOPNODEEDITING, sal_Bool, BOUND, MAYBEDEFAULT ), - DECL_PROP_2 ( "DialogSourceURL", DIALOGSOURCEURL, ::rtl::OUString, BOUND, MAYBEDEFAULT ), - DECL_PROP_2 ( "URL", URL, ::rtl::OUString, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "DialogSourceURL", DIALOGSOURCEURL, OUString, BOUND, MAYBEDEFAULT ), + DECL_PROP_2 ( "URL", URL, OUString, BOUND, MAYBEDEFAULT ), DECL_PROP_2 ( "WritingMode", WRITING_MODE, sal_Int16, BOUND, MAYBEDEFAULT ), DECL_PROP_3 ( "ContextWritingMode", CONTEXT_WRITING_MODE, sal_Int16, BOUND, MAYBEDEFAULT, TRANSIENT ), DECL_PROP_2 ( "ShowRowHeader", GRID_SHOWROWHEADER, sal_Bool, BOUND, MAYBEDEFAULT ), @@ -297,17 +297,17 @@ ImplPropertyInfo* ImplGetPropertyInfos( sal_uInt16& rElementCount ) } -struct ImplPropertyInfoCompareFunctor : ::std::binary_function<ImplPropertyInfo,::rtl::OUString,bool> +struct ImplPropertyInfoCompareFunctor : ::std::binary_function<ImplPropertyInfo,OUString,bool> { inline bool operator()(const ImplPropertyInfo& lhs,const ImplPropertyInfo& rhs) const { return lhs.aName.compareTo(rhs.aName) < 0; } - inline bool operator()(const ImplPropertyInfo& lhs,const ::rtl::OUString& rhs) const + inline bool operator()(const ImplPropertyInfo& lhs,const OUString& rhs) const { return lhs.aName.compareTo(rhs) < 0; } - inline bool operator()(const ::rtl::OUString& lhs,const ImplPropertyInfo& rhs) const + inline bool operator()(const OUString& lhs,const ImplPropertyInfo& rhs) const { return lhs.compareTo(rhs.aName) < 0; } @@ -325,7 +325,7 @@ void ImplAssertValidPropertyArray() } } -sal_uInt16 GetPropertyId( const ::rtl::OUString& rPropertyName ) +sal_uInt16 GetPropertyId( const OUString& rPropertyName ) { ImplAssertValidPropertyArray(); @@ -367,7 +367,7 @@ sal_uInt16 GetPropertyOrderNr( sal_uInt16 nPropertyId ) return 0xFFFF; } -const ::rtl::OUString& GetPropertyName( sal_uInt16 nPropertyId ) +const OUString& GetPropertyName( sal_uInt16 nPropertyId ) { const ImplPropertyInfo* pImplPropertyInfo = ImplGetImplPropertyInfo( nPropertyId ); DBG_ASSERT( pImplPropertyInfo, "Invalid PropertyId!" ); diff --git a/toolkit/source/helper/registerservices.cxx b/toolkit/source/helper/registerservices.cxx index 4cecef1ad62b..f4e2bd242c07 100644 --- a/toolkit/source/helper/registerservices.cxx +++ b/toolkit/source/helper/registerservices.cxx @@ -66,12 +66,12 @@ namespace toolkit if ( rtl_str_compare( _pRequiredImplName, _pComponentImplName ) == 0 ) { - Sequence< ::rtl::OUString > aServiceNames( _pAsciiServiceName2 ? 2 : 1 ); - aServiceNames.getArray()[ 0 ] = ::rtl::OUString::createFromAscii( _pAsciiServiceName1 ); + Sequence< OUString > aServiceNames( _pAsciiServiceName2 ? 2 : 1 ); + aServiceNames.getArray()[ 0 ] = OUString::createFromAscii( _pAsciiServiceName1 ); if ( _pAsciiServiceName2 ) - aServiceNames.getArray()[ 1 ] = ::rtl::OUString::createFromAscii( _pAsciiServiceName2 ); + aServiceNames.getArray()[ 1 ] = OUString::createFromAscii( _pAsciiServiceName2 ); Reference< XSingleServiceFactory > xFactory( ::cppu::createSingleFactory( - _rxServiceFactory, ::rtl::OUString::createFromAscii( _pComponentImplName ), + _rxServiceFactory, OUString::createFromAscii( _pComponentImplName ), _pInstantiation, aServiceNames ) ); if ( xFactory.is() ) diff --git a/toolkit/source/helper/tkresmgr.cxx b/toolkit/source/helper/tkresmgr.cxx index 376cc51c501a..1d788efe5c64 100644 --- a/toolkit/source/helper/tkresmgr.cxx +++ b/toolkit/source/helper/tkresmgr.cxx @@ -66,9 +66,9 @@ void TkResMgr::ensureImplExists() } // ----------------------------------------------------------------------------- -::rtl::OUString TkResMgr::loadString( sal_uInt16 nResId ) +OUString TkResMgr::loadString( sal_uInt16 nResId ) { - ::rtl::OUString sReturn; + OUString sReturn; ensureImplExists(); if ( m_pSimpleResMgr ) @@ -90,7 +90,7 @@ Image TkResMgr::loadImage( sal_uInt16 nResId ) } // ----------------------------------------------------------------------------- -Image TkResMgr::getImageFromURL( const ::rtl::OUString& i_rImageURL ) +Image TkResMgr::getImageFromURL( const OUString& i_rImageURL ) { if ( i_rImageURL.isEmpty() ) return Image(); diff --git a/toolkit/source/helper/unopropertyarrayhelper.cxx b/toolkit/source/helper/unopropertyarrayhelper.cxx index aec93eaf7f53..ccad3c9a7a88 100644 --- a/toolkit/source/helper/unopropertyarrayhelper.cxx +++ b/toolkit/source/helper/unopropertyarrayhelper.cxx @@ -50,7 +50,7 @@ sal_Bool UnoPropertyArrayHelper::ImplHasProperty( sal_uInt16 nPropId ) const } // ::cppu::IPropertyArrayHelper -sal_Bool UnoPropertyArrayHelper::fillPropertyMembersByHandle( ::rtl::OUString * pPropName, sal_Int16 * pAttributes, sal_Int32 nPropId ) +sal_Bool UnoPropertyArrayHelper::fillPropertyMembersByHandle( OUString * pPropName, sal_Int16 * pAttributes, sal_Int32 nPropId ) { sal_uInt16 id = sal::static_int_cast< sal_uInt16 >(nPropId); sal_Bool bValid = ImplHasProperty( id ); @@ -99,7 +99,7 @@ sal_Bool UnoPropertyArrayHelper::fillPropertyMembersByHandle( ::rtl::OUString * return aProps; } -::com::sun::star::beans::Property UnoPropertyArrayHelper::getPropertyByName(const ::rtl::OUString& rPropertyName) throw (::com::sun::star::beans::UnknownPropertyException) +::com::sun::star::beans::Property UnoPropertyArrayHelper::getPropertyByName(const OUString& rPropertyName) throw (::com::sun::star::beans::UnknownPropertyException) { ::com::sun::star::beans::Property aProp; sal_uInt16 nId = GetPropertyId( rPropertyName ); @@ -114,20 +114,20 @@ sal_Bool UnoPropertyArrayHelper::fillPropertyMembersByHandle( ::rtl::OUString * return aProp; } -sal_Bool UnoPropertyArrayHelper::hasPropertyByName(const ::rtl::OUString& rPropertyName) +sal_Bool UnoPropertyArrayHelper::hasPropertyByName(const OUString& rPropertyName) { return ImplHasProperty( GetPropertyId( rPropertyName ) ); } -sal_Int32 UnoPropertyArrayHelper::getHandleByName( const ::rtl::OUString & rPropertyName ) +sal_Int32 UnoPropertyArrayHelper::getHandleByName( const OUString & rPropertyName ) { sal_Int32 nId = (sal_Int32 ) GetPropertyId( rPropertyName ); return nId ? nId : (-1); } -sal_Int32 UnoPropertyArrayHelper::fillHandles( sal_Int32* pHandles, const ::com::sun::star::uno::Sequence< ::rtl::OUString > & rPropNames ) +sal_Int32 UnoPropertyArrayHelper::fillHandles( sal_Int32* pHandles, const ::com::sun::star::uno::Sequence< OUString > & rPropNames ) { - const ::rtl::OUString* pNames = rPropNames.getConstArray(); + const OUString* pNames = rPropNames.getConstArray(); sal_Int32 nValues = rPropNames.getLength(); sal_Int32 nValidHandles = 0; |