Kaydet (Commit) d1075aab authored tarafından Chr. Rossmanith's avatar Chr. Rossmanith Kaydeden (comit) Fridrich Strba

Remove RTL_CONSTASCII_(U)STRING in toolkit

Change-Id: I62c89716d93c4dfb51a38b78f795a532e2b1d0b7
Reviewed-on: https://gerrit.libreoffice.org/2770Reviewed-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
Tested-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
üst 37d25888
...@@ -274,23 +274,23 @@ IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD_BODY( ClassName, InterfaceName, MethodNa ...@@ -274,23 +274,23 @@ IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD_BODY( ClassName, InterfaceName, MethodNa
// ------------------------------------------------------------------------------------- // -------------------------------------------------------------------------------------
#define DECLIMPL_SERVICEINFO_DERIVED( ImplName, BaseClass, ServiceName ) \ #define DECLIMPL_SERVICEINFO_DERIVED( ImplName, BaseClass, ServiceName ) \
::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException) { return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "stardiv.Toolkit." #ImplName )); } \ OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException) { return OUString("stardiv.Toolkit." #ImplName ); } \
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) \ ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) \
{ \ { \
::com::sun::star::uno::Sequence< ::rtl::OUString > aNames = BaseClass::getSupportedServiceNames( ); \ ::com::sun::star::uno::Sequence< ::rtl::OUString > aNames = BaseClass::getSupportedServiceNames( ); \
aNames.realloc( aNames.getLength() + 1 ); \ aNames.realloc( aNames.getLength() + 1 ); \
aNames[ aNames.getLength() - 1 ] = ::rtl::OUString::createFromAscii( ServiceName ); \ aNames[ aNames.getLength() - 1 ] = OUString::createFromAscii( ServiceName ); \
return aNames; \ return aNames; \
} \ } \
// ------------------------------------------------------------------------------------- // -------------------------------------------------------------------------------------
#define DECLIMPL_SERVICEINFO( ImplName, ServiceName ) \ #define DECLIMPL_SERVICEINFO( ImplName, ServiceName ) \
::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException) { return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "stardiv.Toolkit." #ImplName )); } \ OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException) { return OUString("stardiv.Toolkit." #ImplName ); } \
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) \ ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) \
{ \ { \
::com::sun::star::uno::Sequence< ::rtl::OUString > aNames( 1 ); \ ::com::sun::star::uno::Sequence< ::rtl::OUString > aNames( 1 ); \
aNames[ 0 ] = ::rtl::OUString::createFromAscii( ServiceName ); \ aNames[ 0 ] = OUString::createFromAscii( ServiceName ); \
return aNames; \ return aNames; \
} \ } \
DECLIMPL_SUPPORTS_SERVICE( ) DECLIMPL_SUPPORTS_SERVICE( )
......
...@@ -113,7 +113,7 @@ namespace toolkit ...@@ -113,7 +113,7 @@ namespace toolkit
INetURLObject aURL( i_imageURL ); INetURLObject aURL( i_imageURL );
if ( aURL.GetProtocol() != INET_PROT_PRIV_SOFFICE ) if ( aURL.GetProtocol() != INET_PROT_PRIV_SOFFICE )
{ {
OSL_VERIFY( aURL.insertName( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "hicontrast" ) ), false, 0 ) ); OSL_VERIFY( aURL.insertName( OUString( "hicontrast" ), false, 0 ) );
return aURL.GetMainURL( INetURLObject::NO_DECODE ); return aURL.GetMainURL( INetURLObject::NO_DECODE );
} }
// the private: scheme is not considered to be hierarchical by INetURLObject, so manually insert the // the private: scheme is not considered to be hierarchical by INetURLObject, so manually insert the
...@@ -158,7 +158,7 @@ namespace toolkit ...@@ -158,7 +158,7 @@ namespace toolkit
if ( i_graphic.is() ) if ( i_graphic.is() )
{ {
const Reference< XPropertySet > xGraphicProps( i_graphic, UNO_QUERY_THROW ); const Reference< XPropertySet > xGraphicProps( i_graphic, UNO_QUERY_THROW );
OSL_VERIFY( xGraphicProps->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "SizePixel" ) ) ) >>= aSizePixel ); OSL_VERIFY( xGraphicProps->getPropertyValue( OUString( "SizePixel" ) ) >>= aSizePixel );
} }
} }
catch( const Exception& ) catch( const Exception& )
......
...@@ -142,16 +142,14 @@ IMPL_STATIC_LINK_NOINSTANCE( AsyncCallback, Notify_Impl, CallbackData*, pCallbac ...@@ -142,16 +142,14 @@ IMPL_STATIC_LINK_NOINSTANCE( AsyncCallback, Notify_Impl, CallbackData*, pCallbac
// component helper namespace // component helper namespace
namespace comp_AsyncCallback { namespace comp_AsyncCallback {
::rtl::OUString SAL_CALL _getImplementationName() { OUString SAL_CALL _getImplementationName() {
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( return OUString("com.sun.star.awt.comp.AsyncCallback");
"com.sun.star.awt.comp.AsyncCallback"));
} }
css::uno::Sequence< ::rtl::OUString > SAL_CALL _getSupportedServiceNames() css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames()
{ {
css::uno::Sequence< ::rtl::OUString > s(1); css::uno::Sequence< OUString > s(1);
s[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( s[0] = "com.sun.star.awt.AsyncCallback";
"com.sun.star.awt.AsyncCallback"));
return s; return s;
} }
......
...@@ -39,18 +39,18 @@ ...@@ -39,18 +39,18 @@
#define THROW_MENUITEM_NOT_FOUND( Func, nItemId ) \ #define THROW_MENUITEM_NOT_FOUND( Func, nItemId ) \
if ( MENU_ITEM_NOTFOUND == mpMenu->GetItemPos( nItemId ) ) \ if ( MENU_ITEM_NOTFOUND == mpMenu->GetItemPos( nItemId ) ) \
throw ::com::sun::star::container::NoSuchElementException( \ throw ::com::sun::star::container::NoSuchElementException( \
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( Func ) ) \ OUString( Func ) \
+= ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": There is no menu item with " ) ) \ += OUString( ": There is no menu item with " ) \
+= ::rtl::OUString::valueOf( sal_Int32( nItemId ) ) \ += OUString::valueOf( sal_Int32( nItemId ) ) \
+= ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " as identifier" ) ), \ += OUString( " as identifier" ), \
*this \ *this \
); );
#define THROW_MENUPOS_NOT_FOUND( Func, nPos ) \ #define THROW_MENUPOS_NOT_FOUND( Func, nPos ) \
if ( MENU_ITEM_NOTFOUND == sal_uInt16( nPos ) ) \ if ( MENU_ITEM_NOTFOUND == sal_uInt16( nPos ) ) \
throw ::com::sun::star::container::NoSuchElementException( \ throw ::com::sun::star::container::NoSuchElementException( \
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( Func ) ) \ OUString( Func ) \
+= ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ": There is no menu item at position " ) ) \ += OUString( ": There is no menu item at position " ) \
+= ::rtl::OUString::valueOf( sal_Int32( nPos ) ), \ += OUString::valueOf( sal_Int32( nPos ) ), \
*this \ *this \
); );
#else #else
...@@ -203,18 +203,18 @@ IMPL_LINK( VCLXMenu, MenuEventListener, VclSimpleEvent*, pEvent ) ...@@ -203,18 +203,18 @@ IMPL_LINK( VCLXMenu, MenuEventListener, VclSimpleEvent*, pEvent )
// ::com::sun::star::lang::XServiceInfo // ::com::sun::star::lang::XServiceInfo
::rtl::OUString SAL_CALL VCLXMenu::getImplementationName( ) OUString SAL_CALL VCLXMenu::getImplementationName( )
throw (::com::sun::star::uno::RuntimeException) throw (::com::sun::star::uno::RuntimeException)
{ {
::osl::ResettableGuard < ::osl::Mutex > aGuard( GetMutex() ); ::osl::ResettableGuard < ::osl::Mutex > aGuard( GetMutex() );
const sal_Bool bIsPopupMenu = IsPopupMenu(); const sal_Bool bIsPopupMenu = IsPopupMenu();
aGuard.clear(); aGuard.clear();
::rtl::OUString implName( RTL_CONSTASCII_USTRINGPARAM( "stardiv.Toolkit." ) ); OUString implName( "stardiv.Toolkit." );
if ( bIsPopupMenu ) if ( bIsPopupMenu )
implName += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "VCLXPopupMenu" ) ); implName += "VCLXPopupMenu";
else else
implName += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "VCLXMenuBar" ) ); implName += "VCLXMenuBar";
return implName; return implName;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment