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 /vcl/unx/kde | |
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 'vcl/unx/kde')
-rw-r--r-- | vcl/unx/kde/UnxCommandThread.cxx | 42 | ||||
-rw-r--r-- | vcl/unx/kde/UnxCommandThread.hxx | 16 | ||||
-rw-r--r-- | vcl/unx/kde/UnxFilePicker.cxx | 168 | ||||
-rw-r--r-- | vcl/unx/kde/UnxFilePicker.hxx | 40 | ||||
-rw-r--r-- | vcl/unx/kde/UnxNotifyThread.hxx | 2 | ||||
-rw-r--r-- | vcl/unx/kde/kdedata.cxx | 10 |
6 files changed, 139 insertions, 139 deletions
diff --git a/vcl/unx/kde/UnxCommandThread.cxx b/vcl/unx/kde/UnxCommandThread.cxx index c7f30edeabe9..d281949f6e37 100644 --- a/vcl/unx/kde/UnxCommandThread.cxx +++ b/vcl/unx/kde/UnxCommandThread.cxx @@ -50,26 +50,26 @@ sal_Bool SAL_CALL UnxFilePickerCommandThread::result() return m_aResult; } -::rtl::OUString SAL_CALL UnxFilePickerCommandThread::getCurrentFilter() +OUString SAL_CALL UnxFilePickerCommandThread::getCurrentFilter() { ::osl::MutexGuard aGuard( m_aMutex ); return m_aGetCurrentFilter; } -::rtl::OUString SAL_CALL UnxFilePickerCommandThread::getDirectory() +OUString SAL_CALL UnxFilePickerCommandThread::getDirectory() { ::osl::MutexGuard aGuard( m_aMutex ); return m_aGetDirectory; } -uno::Sequence< ::rtl::OUString > SAL_CALL UnxFilePickerCommandThread::getFiles() +uno::Sequence< OUString > SAL_CALL UnxFilePickerCommandThread::getFiles() { ::osl::MutexGuard aGuard( m_aMutex ); sal_Int32 nSize = m_aGetFiles.size(); - uno::Sequence< ::rtl::OUString > aFiles( ( nSize > 1 )? nSize + 1: nSize ); + uno::Sequence< OUString > aFiles( ( nSize > 1 )? nSize + 1: nSize ); if ( nSize == 1 ) aFiles[0] = m_aGetFiles.front(); @@ -78,18 +78,18 @@ uno::Sequence< ::rtl::OUString > SAL_CALL UnxFilePickerCommandThread::getFiles() // First entry in the sequence must be the dirname, the others are the // filenames, so we have to rearrange the list... - ::rtl::OUString aFront = m_aGetFiles.front(); + OUString aFront = m_aGetFiles.front(); sal_Int32 nLastSlash = aFront.lastIndexOf( '/' ); - aFiles[0] = ( nLastSlash >= 0 )? aFront.copy( 0, nLastSlash ): ::rtl::OUString(); + aFiles[0] = ( nLastSlash >= 0 )? aFront.copy( 0, nLastSlash ): OUString(); ++nLastSlash; sal_Int32 nIdx = 1; - for ( ::std::list< ::rtl::OUString >::const_iterator it = m_aGetFiles.begin(); + for ( ::std::list< OUString >::const_iterator it = m_aGetFiles.begin(); it != m_aGetFiles.end(); ++it, ++nIdx ) { sal_Int32 nLength = (*it).getLength() - nLastSlash; - aFiles[nIdx] = ( nLength >= 0 )? (*it).copy( nLastSlash, nLength ): ::rtl::OUString(); + aFiles[nIdx] = ( nLength >= 0 )? (*it).copy( nLastSlash, nLength ): OUString(); } } @@ -133,7 +133,7 @@ void SAL_CALL UnxFilePickerCommandThread::run() if ( strcmp( pEntryBegin, "exited" ) == 0 ) bShouldExit = sal_True; else - handleCommand( ::rtl::OUString( pEntryBegin, pEntryEnd - pEntryBegin, RTL_TEXTENCODING_UTF8 )/*, bQuit*/ ); + handleCommand( OUString( pEntryBegin, pEntryEnd - pEntryBegin, RTL_TEXTENCODING_UTF8 )/*, bQuit*/ ); pEntryBegin = pEntryEnd + 1; } @@ -162,7 +162,7 @@ void SAL_CALL UnxFilePickerCommandThread::run() } } -void SAL_CALL UnxFilePickerCommandThread::handleCommand( const ::rtl::OUString &rCommand ) +void SAL_CALL UnxFilePickerCommandThread::handleCommand( const OUString &rCommand ) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -171,12 +171,12 @@ void SAL_CALL UnxFilePickerCommandThread::handleCommand( const ::rtl::OUString & OUStringToOString( rCommand, RTL_TEXTENCODING_ASCII_US ).getStr() << "\"" << ::std::endl; #endif - ::std::list< ::rtl::OUString > aList = tokenize( rCommand ); + ::std::list< OUString > aList = tokenize( rCommand ); if ( aList.empty() ) return; - ::rtl::OUString aCommandName = aList.front(); + OUString aCommandName = aList.front(); aList.pop_front(); if ( aCommandName == "accept" ) @@ -201,7 +201,7 @@ void SAL_CALL UnxFilePickerCommandThread::handleCommand( const ::rtl::OUString & } else if ( aCommandName == "value" ) { - ::rtl::OUString aType; + OUString aType; if ( !aList.empty() ) { aType = aList.front(); @@ -226,7 +226,7 @@ void SAL_CALL UnxFilePickerCommandThread::handleCommand( const ::rtl::OUString & } else if ( aType == "string" ) { - ::rtl::OUString aValue; + OUString aValue; if ( !aList.empty() ) aValue = aList.front(); @@ -235,9 +235,9 @@ void SAL_CALL UnxFilePickerCommandThread::handleCommand( const ::rtl::OUString & } else if ( aType == "stringList" ) { - uno::Sequence< ::rtl::OUString > aSequence( aList.size() ); + uno::Sequence< OUString > aSequence( aList.size() ); sal_Int32 nIdx = 0; - for ( ::std::list< ::rtl::OUString >::const_iterator it = aList.begin(); it != aList.end(); ++it, ++nIdx ) + for ( ::std::list< OUString >::const_iterator it = aList.begin(); it != aList.end(); ++it, ++nIdx ) aSequence[nIdx] = (*it); m_aGetValue <<= aSequence; @@ -251,12 +251,12 @@ void SAL_CALL UnxFilePickerCommandThread::handleCommand( const ::rtl::OUString & } else if ( aCommandName == "currentFilter" ) { - m_aGetCurrentFilter = aList.empty()? ::rtl::OUString(): aList.front(); + m_aGetCurrentFilter = aList.empty()? OUString(): aList.front(); m_aGetCurrentFilterCondition.set(); } else if ( aCommandName == "currentDirectory" ) { - m_aGetDirectory = aList.empty()? ::rtl::OUString(): aList.front(); + m_aGetDirectory = aList.empty()? OUString(): aList.front(); m_aGetDirectoryCondition.set(); } else @@ -268,10 +268,10 @@ void SAL_CALL UnxFilePickerCommandThread::handleCommand( const ::rtl::OUString & } } -::std::list< ::rtl::OUString > SAL_CALL UnxFilePickerCommandThread::tokenize( const ::rtl::OUString &rCommand ) +::std::list< OUString > SAL_CALL UnxFilePickerCommandThread::tokenize( const OUString &rCommand ) { - ::std::list< ::rtl::OUString > aList; - ::rtl::OUStringBuffer aBuffer( 1024 ); + ::std::list< OUString > aList; + OUStringBuffer aBuffer( 1024 ); const sal_Unicode *pUnicode = rCommand.getStr(); const sal_Unicode *pEnd = pUnicode + rCommand.getLength(); diff --git a/vcl/unx/kde/UnxCommandThread.hxx b/vcl/unx/kde/UnxCommandThread.hxx index 787899af7fbc..ef569740eaec 100644 --- a/vcl/unx/kde/UnxCommandThread.hxx +++ b/vcl/unx/kde/UnxCommandThread.hxx @@ -84,13 +84,13 @@ protected: sal_Bool m_aResult; ::osl::Condition m_aGetCurrentFilterCondition; - ::rtl::OUString m_aGetCurrentFilter; + OUString m_aGetCurrentFilter; ::osl::Condition m_aGetDirectoryCondition; - ::rtl::OUString m_aGetDirectory; + OUString m_aGetDirectory; ::osl::Condition m_aGetFilesCondition; - ::std::list< ::rtl::OUString > m_aGetFiles; + ::std::list< OUString > m_aGetFiles; ::osl::Condition m_aGetValueCondition; ::com::sun::star::uno::Any m_aGetValue; @@ -103,13 +103,13 @@ public: sal_Bool SAL_CALL result(); ::osl::Condition& SAL_CALL getCurrentFilterCondition() { return m_aGetCurrentFilterCondition; } - ::rtl::OUString SAL_CALL getCurrentFilter(); + OUString SAL_CALL getCurrentFilter(); ::osl::Condition& SAL_CALL getDirectoryCondition() { return m_aGetDirectoryCondition; } - ::rtl::OUString SAL_CALL getDirectory(); + OUString SAL_CALL getDirectory(); ::osl::Condition& SAL_CALL getFilesCondition() { return m_aGetFilesCondition; } - ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getFiles(); + ::com::sun::star::uno::Sequence< OUString > SAL_CALL getFiles(); ::osl::Condition& SAL_CALL getValueCondition() { return m_aGetValueCondition; } ::com::sun::star::uno::Any SAL_CALL getValue(); @@ -117,8 +117,8 @@ public: protected: virtual void SAL_CALL run(); - virtual void SAL_CALL handleCommand( const ::rtl::OUString &rCommand/*, sal_Bool &rQuit*/ ); - ::std::list< ::rtl::OUString > SAL_CALL tokenize( const ::rtl::OUString &rCommand ); + virtual void SAL_CALL handleCommand( const OUString &rCommand/*, sal_Bool &rQuit*/ ); + ::std::list< OUString > SAL_CALL tokenize( const OUString &rCommand ); }; #endif // _UNXCOMMANDTHREAD_HXX_ diff --git a/vcl/unx/kde/UnxFilePicker.cxx b/vcl/unx/kde/UnxFilePicker.cxx index afd4350f8719..5ccc84251544 100644 --- a/vcl/unx/kde/UnxFilePicker.cxx +++ b/vcl/unx/kde/UnxFilePicker.cxx @@ -68,15 +68,15 @@ namespace const bool STARTUP_SUSPENDED = true; const bool STARTUP_ALIVE = false; - uno::Sequence<rtl::OUString> SAL_CALL FilePicker_getSupportedServiceNames() + uno::Sequence<OUString> SAL_CALL FilePicker_getSupportedServiceNames() { - uno::Sequence<rtl::OUString> aRet(3); - aRet[0] = rtl::OUString("com.sun.star.ui.dialogs.FilePicker"); - aRet[1] = rtl::OUString("com.sun.star.ui.dialogs.SystemFilePicker"); + uno::Sequence<OUString> aRet(3); + aRet[0] = OUString("com.sun.star.ui.dialogs.FilePicker"); + aRet[1] = OUString("com.sun.star.ui.dialogs.SystemFilePicker"); #if ENABLE_TDE - aRet[2] = rtl::OUString("com.sun.star.ui.dialogs.TDEFilePicker"); + aRet[2] = OUString("com.sun.star.ui.dialogs.TDEFilePicker"); #else // ENABLE_TDE - aRet[2] = rtl::OUString("com.sun.star.ui.dialogs.KDEFilePicker"); + aRet[2] = OUString("com.sun.star.ui.dialogs.KDEFilePicker"); #endif // ENABLE_TDE return aRet; } @@ -101,7 +101,7 @@ UnxFilePicker::~UnxFilePicker() { if ( m_nFilePickerPid > 0 ) { - sendCommand( ::rtl::OUString( "exit" ) ); + sendCommand( OUString( "exit" ) ); waitpid( m_nFilePickerPid, NULL, 0 ); } @@ -148,13 +148,13 @@ void SAL_CALL UnxFilePicker::removeFilePickerListener( const uno::Reference<XFil m_pNotifyThread->removeFilePickerListener( xListener ); } -void SAL_CALL UnxFilePicker::setTitle( const rtl::OUString &rTitle ) +void SAL_CALL UnxFilePicker::setTitle( const OUString &rTitle ) throw( uno::RuntimeException ) { checkFilePicker(); ::osl::MutexGuard aGuard( m_aMutex ); - ::rtl::OUStringBuffer aBuffer( 1024 ); + OUStringBuffer aBuffer( 1024 ); aBuffer.appendAscii( "setTitle " ); appendEscaped( aBuffer, rTitle ); @@ -170,7 +170,7 @@ sal_Int16 SAL_CALL UnxFilePicker::execute() // this is _not_ an osl::Condition, see i#93366 m_pCommandThread->execCondition().reset(); - sendCommand( ::rtl::OUString( "exec" )); + sendCommand( OUString( "exec" )); m_pCommandThread->execCondition().wait(); @@ -183,20 +183,20 @@ void SAL_CALL UnxFilePicker::setMultiSelectionMode( sal_Bool bMode ) checkFilePicker(); ::osl::MutexGuard aGuard( m_aMutex ); - ::rtl::OUString aString = bMode? - ::rtl::OUString( "setMultiSelection true" ): - ::rtl::OUString( "setMultiSelection false" ); + OUString aString = bMode? + OUString( "setMultiSelection true" ): + OUString( "setMultiSelection false" ); sendCommand( aString ); } -void SAL_CALL UnxFilePicker::setDefaultName( const ::rtl::OUString &rName ) +void SAL_CALL UnxFilePicker::setDefaultName( const OUString &rName ) throw( uno::RuntimeException ) { checkFilePicker(); ::osl::MutexGuard aGuard( m_aMutex ); - ::rtl::OUStringBuffer aBuffer( 1024 ); + OUStringBuffer aBuffer( 1024 ); aBuffer.appendAscii( "setDefaultName " ); appendEscaped( aBuffer, rName ); @@ -204,13 +204,13 @@ void SAL_CALL UnxFilePicker::setDefaultName( const ::rtl::OUString &rName ) sendCommand( aBuffer.makeStringAndClear() ); } -void SAL_CALL UnxFilePicker::setDisplayDirectory( const rtl::OUString &rDirectory ) +void SAL_CALL UnxFilePicker::setDisplayDirectory( const OUString &rDirectory ) throw( uno::RuntimeException ) { checkFilePicker(); ::osl::MutexGuard aGuard( m_aMutex ); - ::rtl::OUStringBuffer aBuffer( 1024 ); + OUStringBuffer aBuffer( 1024 ); aBuffer.appendAscii( "setDirectory " ); appendEscaped( aBuffer, rDirectory ); @@ -218,37 +218,37 @@ void SAL_CALL UnxFilePicker::setDisplayDirectory( const rtl::OUString &rDirector sendCommand( aBuffer.makeStringAndClear() ); } -rtl::OUString SAL_CALL UnxFilePicker::getDisplayDirectory() +OUString SAL_CALL UnxFilePicker::getDisplayDirectory() throw( uno::RuntimeException ) { checkFilePicker(); ::osl::MutexGuard aGuard( m_aMutex ); - sendCommand( ::rtl::OUString( "getDirectory" ), + sendCommand( OUString( "getDirectory" ), m_pCommandThread->getDirectoryCondition() ); return m_pCommandThread->getDirectory(); } -uno::Sequence< ::rtl::OUString > SAL_CALL UnxFilePicker::getFiles() +uno::Sequence< OUString > SAL_CALL UnxFilePicker::getFiles() throw( uno::RuntimeException ) { checkFilePicker(); ::osl::MutexGuard aGuard( m_aMutex ); - sendCommand( ::rtl::OUString( "getFiles" ), + sendCommand( OUString( "getFiles" ), m_pCommandThread->getFilesCondition() ); return m_pCommandThread->getFiles(); } -void SAL_CALL UnxFilePicker::appendFilter( const ::rtl::OUString &rTitle, const ::rtl::OUString &rFilter ) +void SAL_CALL UnxFilePicker::appendFilter( const OUString &rTitle, const OUString &rFilter ) throw( lang::IllegalArgumentException, uno::RuntimeException ) { checkFilePicker(); ::osl::MutexGuard aGuard( m_aMutex ); - ::rtl::OUStringBuffer aBuffer( 1024 ); + OUStringBuffer aBuffer( 1024 ); aBuffer.appendAscii( "appendFilter " ); appendEscaped( aBuffer, rTitle ); @@ -258,13 +258,13 @@ void SAL_CALL UnxFilePicker::appendFilter( const ::rtl::OUString &rTitle, const sendCommand( aBuffer.makeStringAndClear() ); } -void SAL_CALL UnxFilePicker::setCurrentFilter( const rtl::OUString &rTitle ) +void SAL_CALL UnxFilePicker::setCurrentFilter( const OUString &rTitle ) throw( lang::IllegalArgumentException, uno::RuntimeException ) { checkFilePicker(); ::osl::MutexGuard aGuard( m_aMutex ); - ::rtl::OUStringBuffer aBuffer( 1024 ); + OUStringBuffer aBuffer( 1024 ); aBuffer.appendAscii( "setCurrentFilter " ); appendEscaped( aBuffer, rTitle ); @@ -272,25 +272,25 @@ void SAL_CALL UnxFilePicker::setCurrentFilter( const rtl::OUString &rTitle ) sendCommand( aBuffer.makeStringAndClear() ); } -rtl::OUString SAL_CALL UnxFilePicker::getCurrentFilter() +OUString SAL_CALL UnxFilePicker::getCurrentFilter() throw( uno::RuntimeException ) { checkFilePicker(); ::osl::MutexGuard aGuard( m_aMutex ); - sendCommand( ::rtl::OUString( "getCurrentFilter" ), + sendCommand( OUString( "getCurrentFilter" ), m_pCommandThread->getCurrentFilterCondition() ); return m_pCommandThread->getCurrentFilter(); } -void SAL_CALL UnxFilePicker::appendFilterGroup( const rtl::OUString &rGroupTitle, const uno::Sequence<beans::StringPair> &rFilters ) +void SAL_CALL UnxFilePicker::appendFilterGroup( const OUString &rGroupTitle, const uno::Sequence<beans::StringPair> &rFilters ) throw( lang::IllegalArgumentException, uno::RuntimeException ) { checkFilePicker(); ::osl::MutexGuard aGuard( m_aMutex ); - ::rtl::OUStringBuffer aBuffer( 1024 ); + OUStringBuffer aBuffer( 1024 ); aBuffer.appendAscii( "appendFilterGroup " ); appendEscaped( aBuffer, rGroupTitle ); @@ -314,13 +314,13 @@ void SAL_CALL UnxFilePicker::setValue( sal_Int16 nControlId, sal_Int16 nControlA checkFilePicker(); ::osl::MutexGuard aGuard( m_aMutex ); - ::rtl::OUString aType; - ::rtl::OUString aAction; + OUString aType; + OUString aAction; sal_Int32 nTitleId; if ( controlIdInfo( nControlId, aType, nTitleId ) && controlActionInfo( nControlAction, aAction ) ) { - ::rtl::OUStringBuffer aBuffer( 1024 ); + OUStringBuffer aBuffer( 1024 ); aBuffer.appendAscii( "setValue " ); aBuffer.append( static_cast< sal_Int32 >( nControlId ) ); @@ -342,7 +342,7 @@ void SAL_CALL UnxFilePicker::setValue( sal_Int16 nControlId, sal_Int16 nControlA case ControlActions::ADD_ITEM: case ControlActions::SET_HELP_URL: { - ::rtl::OUString aString; + OUString aString; if ( rValue >>= aString ) { aBuffer.appendAscii( " ", 1 ); @@ -353,7 +353,7 @@ void SAL_CALL UnxFilePicker::setValue( sal_Int16 nControlId, sal_Int16 nControlA case ControlActions::ADD_ITEMS: { - uno::Sequence< ::rtl::OUString > aSequence; + uno::Sequence< OUString > aSequence; if ( rValue >>= aSequence ) { for ( sal_Int32 nIdx = 0; nIdx < aSequence.getLength(); ++nIdx ) @@ -395,11 +395,11 @@ uno::Any SAL_CALL UnxFilePicker::getValue( sal_Int16 nControlId, sal_Int16 nCont checkFilePicker(); ::osl::MutexGuard aGuard( m_aMutex ); - ::rtl::OUString aAction; + OUString aAction; if ( controlActionInfo( nControlAction, aAction ) ) { - ::rtl::OUStringBuffer aBuffer( 1024 ); + OUStringBuffer aBuffer( 1024 ); aBuffer.appendAscii( "getValue " ); aBuffer.append( static_cast< sal_Int32 >( nControlId ) ); @@ -421,7 +421,7 @@ void SAL_CALL UnxFilePicker::enableControl( sal_Int16 nControlId, sal_Bool bEnab checkFilePicker(); ::osl::MutexGuard aGuard( m_aMutex ); - ::rtl::OUStringBuffer aBuffer( 1024 ); + OUStringBuffer aBuffer( 1024 ); aBuffer.appendAscii( "enableControl " ); aBuffer.append( static_cast< sal_Int32 >( nControlId ) ); @@ -430,13 +430,13 @@ void SAL_CALL UnxFilePicker::enableControl( sal_Int16 nControlId, sal_Bool bEnab sendCommand( aBuffer.makeStringAndClear() ); } -void SAL_CALL UnxFilePicker::setLabel( sal_Int16 nControlId, const ::rtl::OUString &rLabel ) +void SAL_CALL UnxFilePicker::setLabel( sal_Int16 nControlId, const OUString &rLabel ) throw( uno::RuntimeException ) { checkFilePicker(); ::osl::MutexGuard aGuard( m_aMutex ); - ::rtl::OUStringBuffer aBuffer( 1024 ); + OUStringBuffer aBuffer( 1024 ); aBuffer.appendAscii( "setLabel " ); aBuffer.append( static_cast< sal_Int32 >( nControlId ) ); @@ -446,7 +446,7 @@ void SAL_CALL UnxFilePicker::setLabel( sal_Int16 nControlId, const ::rtl::OUStri sendCommand( aBuffer.makeStringAndClear() ); } -rtl::OUString SAL_CALL UnxFilePicker::getLabel(sal_Int16 /*nControlId*/) +OUString SAL_CALL UnxFilePicker::getLabel(sal_Int16 /*nControlId*/) throw ( uno::RuntimeException ) { // FIXME getLabel() is not yet implemented @@ -454,7 +454,7 @@ rtl::OUString SAL_CALL UnxFilePicker::getLabel(sal_Int16 /*nControlId*/) ::osl::MutexGuard aGuard( m_aMutex ); // TODO return m_pImpl->getLabel(nControlId); - return ::rtl::OUString(); + return OUString(); } /* TODO @@ -531,21 +531,21 @@ void SAL_CALL UnxFilePicker::initialize( const uno::Sequence<uno::Any> &rArgumen uno::Any aAny; if ( 0 == rArguments.getLength( ) ) throw lang::IllegalArgumentException( - rtl::OUString( "no arguments" ), + OUString( "no arguments" ), static_cast< XFilePicker2* >( this ), 1 ); aAny = rArguments[0]; if ( ( aAny.getValueType() != ::getCppuType( (sal_Int16*)0 ) ) && ( aAny.getValueType() != ::getCppuType( (sal_Int8*)0 ) ) ) throw lang::IllegalArgumentException( - rtl::OUString( "invalid argument type" ), + OUString( "invalid argument type" ), static_cast< XFilePicker2* >( this ), 1 ); sal_Int16 templateId = -1; aAny >>= templateId; - ::rtl::OUString aTypeOpen(RTL_CONSTASCII_USTRINGPARAM( "setType \"open\"" )); - ::rtl::OUString aTypeSaveAs(RTL_CONSTASCII_USTRINGPARAM( "setType \"save\"" )); + OUString aTypeOpen(RTL_CONSTASCII_USTRINGPARAM( "setType \"open\"" )); + OUString aTypeSaveAs(RTL_CONSTASCII_USTRINGPARAM( "setType \"save\"" )); switch ( templateId ) { @@ -622,7 +622,7 @@ void SAL_CALL UnxFilePicker::initialize( const uno::Sequence<uno::Any> &rArgumen default: throw lang::IllegalArgumentException( - rtl::OUString( "Unknown template" ), + OUString( "Unknown template" ), static_cast< XFilePicker2* >( this ), 1 ); } @@ -647,16 +647,16 @@ void SAL_CALL UnxFilePicker::disposing( const lang::EventObject &rEvent ) removeFilePickerListener( xFilePickerListener ); } -rtl::OUString SAL_CALL UnxFilePicker::getImplementationName() +OUString SAL_CALL UnxFilePicker::getImplementationName() throw( uno::RuntimeException ) { - return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( FILE_PICKER_IMPL_NAME )); + return OUString(RTL_CONSTASCII_USTRINGPARAM( FILE_PICKER_IMPL_NAME )); } -sal_Bool SAL_CALL UnxFilePicker::supportsService( const rtl::OUString& ServiceName ) +sal_Bool SAL_CALL UnxFilePicker::supportsService( const OUString& ServiceName ) throw( uno::RuntimeException ) { - uno::Sequence< ::rtl::OUString > SupportedServicesNames = FilePicker_getSupportedServiceNames(); + uno::Sequence< OUString > SupportedServicesNames = FilePicker_getSupportedServiceNames(); for ( sal_Int32 n = SupportedServicesNames.getLength(); n--; ) { @@ -667,7 +667,7 @@ sal_Bool SAL_CALL UnxFilePicker::supportsService( const rtl::OUString& ServiceNa return sal_False; } -uno::Sequence< ::rtl::OUString > SAL_CALL UnxFilePicker::getSupportedServiceNames() +uno::Sequence< OUString > SAL_CALL UnxFilePicker::getSupportedServiceNames() throw( uno::RuntimeException ) { return FilePicker_getSupportedServiceNames(); @@ -704,14 +704,14 @@ void UnxFilePicker::initFilePicker() // The executable name #if ENABLE_TDE - rtl::OUString helperurl("${ORIGIN}/tdefilepicker"); + OUString helperurl("${ORIGIN}/tdefilepicker"); #else // ENABLE_TDE - rtl::OUString helperurl("${ORIGIN}/kdefilepicker"); + OUString helperurl("${ORIGIN}/kdefilepicker"); #endif // ENABLE_TDE rtl::Bootstrap::expandMacros( helperurl ); - rtl::OUString helperpath; + OUString helperpath; osl::FileBase::getSystemPathFromFileURL( helperurl, helperpath ); - rtl::OString helper( rtl::OUStringToOString( helperpath, osl_getThreadTextEncoding())); + OString helper( OUStringToOString( helperpath, osl_getThreadTextEncoding())); // ID of the main window const int nIdLen = 20; @@ -769,17 +769,17 @@ void UnxFilePicker::checkFilePicker() throw( ::com::sun::star::uno::RuntimeExcep else { throw uno::RuntimeException( - ::rtl::OUString( "the external file picker does not run" ), + OUString( "the external file picker does not run" ), *this ); } } -void UnxFilePicker::sendCommand( const ::rtl::OUString &rCommand ) +void UnxFilePicker::sendCommand( const OUString &rCommand ) { if ( m_nFilePickerWrite < 0 ) return; - ::rtl::OString aUtfString = OUStringToOString( rCommand + ::rtl::OUString( "\n" ), RTL_TEXTENCODING_UTF8 ); + OString aUtfString = OUStringToOString( rCommand + OUString( "\n" ), RTL_TEXTENCODING_UTF8 ); #if OSL_DEBUG_LEVEL > 0 ::std::cerr << "UnxFilePicker sent: \"" << aUtfString.getStr() << "\"" << ::std::endl; @@ -788,7 +788,7 @@ void UnxFilePicker::sendCommand( const ::rtl::OUString &rCommand ) write( m_nFilePickerWrite, aUtfString.getStr(), aUtfString.getLength() ); } -void UnxFilePicker::sendCommand( const ::rtl::OUString &rCommand, ::osl::Condition &rCondition ) +void UnxFilePicker::sendCommand( const OUString &rCommand, ::osl::Condition &rCondition ) { rCondition.reset(); @@ -797,7 +797,7 @@ void UnxFilePicker::sendCommand( const ::rtl::OUString &rCommand, ::osl::Conditi rCondition.wait(); } -void UnxFilePicker::appendEscaped( ::rtl::OUStringBuffer &rBuffer, const ::rtl::OUString &rString ) +void UnxFilePicker::appendEscaped( OUStringBuffer &rBuffer, const OUString &rString ) { const sal_Unicode *pUnicode = rString.getStr(); const sal_Unicode *pEnd = pUnicode + rString.getLength(); @@ -819,20 +819,20 @@ void UnxFilePicker::appendEscaped( ::rtl::OUStringBuffer &rBuffer, const ::rtl:: rBuffer.appendAscii( "\"", 1 ); } -sal_Bool UnxFilePicker::controlIdInfo( sal_Int16 nControlId, ::rtl::OUString &rType, sal_Int32 &rTitleId ) +sal_Bool UnxFilePicker::controlIdInfo( sal_Int16 nControlId, OUString &rType, sal_Int32 &rTitleId ) { typedef struct { sal_Int16 nId; - const ::rtl::OUString *pType; + const OUString *pType; sal_Int32 nTitle; } ElementToName; - const ::rtl::OUString aCheckBox( "checkbox" ); - const ::rtl::OUString aControl( "control" ); - const ::rtl::OUString aEdit( "edit" ); - const ::rtl::OUString aLabel( "label" ); - const ::rtl::OUString aListBox( "listbox" ); - const ::rtl::OUString aPushButton( "pushbutton" ); + const OUString aCheckBox( "checkbox" ); + const OUString aControl( "control" ); + const OUString aEdit( "edit" ); + const OUString aLabel( "label" ); + const OUString aListBox( "listbox" ); + const OUString aPushButton( "pushbutton" ); const ElementToName *pPtr; const ElementToName pArray[] = @@ -873,27 +873,27 @@ sal_Bool UnxFilePicker::controlIdInfo( sal_Int16 nControlId, ::rtl::OUString &rT return sal_False; } -sal_Bool UnxFilePicker::controlActionInfo( sal_Int16 nControlAction, ::rtl::OUString &rType ) +sal_Bool UnxFilePicker::controlActionInfo( sal_Int16 nControlAction, OUString &rType ) { typedef struct { sal_Int16 nId; - const ::rtl::OUString pType; + const OUString pType; } ElementToName; const ElementToName *pPtr; const ElementToName pArray[] = { - { ControlActions::ADD_ITEM, ::rtl::OUString( "addItem" ) }, - { ControlActions::ADD_ITEMS, ::rtl::OUString( "addItems" ) }, - { ControlActions::DELETE_ITEM, ::rtl::OUString( "deleteItem" ) }, - { ControlActions::DELETE_ITEMS, ::rtl::OUString( "deleteItems" ) }, - { ControlActions::SET_SELECT_ITEM, ::rtl::OUString( "setSelectedItem" ) }, - { ControlActions::GET_ITEMS, ::rtl::OUString( "getItems" ) }, - { ControlActions::GET_SELECTED_ITEM, ::rtl::OUString( "getSelectedItem" ) }, - { ControlActions::GET_SELECTED_ITEM_INDEX, ::rtl::OUString( "getSelectedItemIndex" ) }, - { ControlActions::SET_HELP_URL, ::rtl::OUString( "setHelpURL" ) }, - { ControlActions::GET_HELP_URL, ::rtl::OUString( "getHelpURL" ) }, - { 0, ::rtl::OUString( "noAction" ) } + { ControlActions::ADD_ITEM, OUString( "addItem" ) }, + { ControlActions::ADD_ITEMS, OUString( "addItems" ) }, + { ControlActions::DELETE_ITEM, OUString( "deleteItem" ) }, + { ControlActions::DELETE_ITEMS, OUString( "deleteItems" ) }, + { ControlActions::SET_SELECT_ITEM, OUString( "setSelectedItem" ) }, + { ControlActions::GET_ITEMS, OUString( "getItems" ) }, + { ControlActions::GET_SELECTED_ITEM, OUString( "getSelectedItem" ) }, + { ControlActions::GET_SELECTED_ITEM_INDEX, OUString( "getSelectedItemIndex" ) }, + { ControlActions::SET_HELP_URL, OUString( "setHelpURL" ) }, + { ControlActions::GET_HELP_URL, OUString( "getHelpURL" ) }, + { 0, OUString( "noAction" ) } }; for ( pPtr = pArray; pPtr->nId && ( pPtr->nId != nControlAction ); ++pPtr ) @@ -906,12 +906,12 @@ sal_Bool UnxFilePicker::controlActionInfo( sal_Int16 nControlAction, ::rtl::OUSt void UnxFilePicker::sendAppendControlCommand( sal_Int16 nControlId ) { - ::rtl::OUString aType; + OUString aType; sal_Int32 nTitleId; if ( controlIdInfo( nControlId, aType, nTitleId ) ) { - ::rtl::OUStringBuffer aBuffer( 1024 ); + OUStringBuffer aBuffer( 1024 ); aBuffer.appendAscii( "appendControl " ); aBuffer.append( static_cast< sal_Int32 >( nControlId ) ); @@ -924,7 +924,7 @@ void UnxFilePicker::sendAppendControlCommand( sal_Int16 nControlId ) } } -uno::Sequence< ::rtl::OUString > SAL_CALL UnxFilePicker::getSelectedFiles() +uno::Sequence< OUString > SAL_CALL UnxFilePicker::getSelectedFiles() throw( uno::RuntimeException ) { return getFiles(); diff --git a/vcl/unx/kde/UnxFilePicker.hxx b/vcl/unx/kde/UnxFilePicker.hxx index afc5b6cae4d1..198eba03a962 100644 --- a/vcl/unx/kde/UnxFilePicker.hxx +++ b/vcl/unx/kde/UnxFilePicker.hxx @@ -83,34 +83,34 @@ public: // XExecutableDialog functions - virtual void SAL_CALL setTitle( const ::rtl::OUString &rTitle ) throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setTitle( const OUString &rTitle ) throw( ::com::sun::star::uno::RuntimeException ); virtual sal_Int16 SAL_CALL execute() throw( ::com::sun::star::uno::RuntimeException ); // XFilePicker functions virtual void SAL_CALL setMultiSelectionMode( sal_Bool bMode ) throw( ::com::sun::star::uno::RuntimeException ); - virtual void SAL_CALL setDefaultName( const ::rtl::OUString &rName ) throw( ::com::sun::star::uno::RuntimeException ); - virtual void SAL_CALL setDisplayDirectory( const ::rtl::OUString &rDirectory ) throw( ::com::sun::star::uno::RuntimeException ); - virtual ::rtl::OUString SAL_CALL getDisplayDirectory() throw( ::com::sun::star::uno::RuntimeException ); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getFiles() throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setDefaultName( const OUString &rName ) throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setDisplayDirectory( const OUString &rDirectory ) throw( ::com::sun::star::uno::RuntimeException ); + virtual OUString SAL_CALL getDisplayDirectory() throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getFiles() throw( ::com::sun::star::uno::RuntimeException ); // XFilterManager functions - virtual void SAL_CALL appendFilter( const ::rtl::OUString &rTitle, const ::rtl::OUString &rFilter ) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException ); - virtual void SAL_CALL setCurrentFilter( const ::rtl::OUString &rTitle ) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException ); - virtual ::rtl::OUString SAL_CALL getCurrentFilter() throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL appendFilter( const OUString &rTitle, const OUString &rFilter ) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setCurrentFilter( const OUString &rTitle ) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException ); + virtual OUString SAL_CALL getCurrentFilter() throw( ::com::sun::star::uno::RuntimeException ); // XFilterGroupManager functions - virtual void SAL_CALL appendFilterGroup( const ::rtl::OUString &rGroupTitle, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > &rFilters ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL appendFilterGroup( const OUString &rGroupTitle, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > &rFilters ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); // XFilePickerControlAccess functions virtual void SAL_CALL setValue( sal_Int16 nControlId, sal_Int16 nControlAction, const ::com::sun::star::uno::Any &rValue ) throw (::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Any SAL_CALL getValue( sal_Int16 nControlId, sal_Int16 nControlAction ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL enableControl( sal_Int16 nControlId, sal_Bool bEnable ) throw( ::com::sun::star::uno::RuntimeException ); - virtual void SAL_CALL setLabel( sal_Int16 nControlId, const ::rtl::OUString &rLabel ) throw (::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getLabel( sal_Int16 nControlId ) throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setLabel( sal_Int16 nControlId, const OUString &rLabel ) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getLabel( sal_Int16 nControlId ) throw (::com::sun::star::uno::RuntimeException); /* TODO XFilePreview @@ -125,7 +125,7 @@ public: // XFilePicker2 - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSelectedFiles() + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSelectedFiles() throw (::com::sun::star::uno::RuntimeException); // XInitialization @@ -142,9 +142,9 @@ public: // XServiceInfo - virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException ); - virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString &rServiceName ) 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 &rServiceName ) throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException ); private: // prevent copy and assignment @@ -156,14 +156,14 @@ protected: void checkFilePicker() throw( ::com::sun::star::uno::RuntimeException ); // Async sendCommand - void sendCommand( const ::rtl::OUString &rCommand ); + void sendCommand( const OUString &rCommand ); // Synchronized sendCommand - void sendCommand( const ::rtl::OUString &rCommand, ::osl::Condition &rCondition ); - void appendEscaped( ::rtl::OUStringBuffer &rBuffer, const ::rtl::OUString &rString ); + void sendCommand( const OUString &rCommand, ::osl::Condition &rCondition ); + void appendEscaped( OUStringBuffer &rBuffer, const OUString &rString ); private: - sal_Bool controlIdInfo( sal_Int16 nControlId, ::rtl::OUString &rType, sal_Int32 &rTitleId ); - sal_Bool controlActionInfo( sal_Int16 nControlId, ::rtl::OUString &rType ); + sal_Bool controlIdInfo( sal_Int16 nControlId, OUString &rType, sal_Int32 &rTitleId ); + sal_Bool controlActionInfo( sal_Int16 nControlId, OUString &rType ); void sendAppendControlCommand( sal_Int16 nControlId ); }; diff --git a/vcl/unx/kde/UnxNotifyThread.hxx b/vcl/unx/kde/UnxNotifyThread.hxx index 36e74cef1de7..266f190f49e9 100644 --- a/vcl/unx/kde/UnxNotifyThread.hxx +++ b/vcl/unx/kde/UnxNotifyThread.hxx @@ -65,7 +65,7 @@ public: void SAL_CALL fileSelectionChanged(); /* TODO void SAL_CALL directoryChanged( ::com::sun::star::ui::dialogs::FilePickerEvent aEvent ); - rtl::OUString SAL_CALL helpRequested( ::com::sun::star::ui::dialogs::FilePickerEvent aEvent ) const; + OUString SAL_CALL helpRequested( ::com::sun::star::ui::dialogs::FilePickerEvent aEvent ) const; void SAL_CALL controlStateChanged( ::com::sun::star::ui::dialogs::FilePickerEvent aEvent ); void SAL_CALL dialogSizeChanged( ); */ diff --git a/vcl/unx/kde/kdedata.cxx b/vcl/unx/kde/kdedata.cxx index 07706b2ec921..9c6e19d4a3ed 100644 --- a/vcl/unx/kde/kdedata.cxx +++ b/vcl/unx/kde/kdedata.cxx @@ -127,8 +127,8 @@ void KDEXLib::Init() m_nFakeCmdLineArgs = 1; sal_uInt16 nIdx; int nParams = osl_getCommandArgCount(); - rtl::OString aDisplay; - rtl::OUString aParam, aBin; + OString aDisplay; + OUString aParam, aBin; for ( nIdx = 0; nIdx < nParams; ++nIdx ) { @@ -136,7 +136,7 @@ void KDEXLib::Init() if ( !m_pFreeCmdLineArgs && aParam == "-display" && nIdx + 1 < nParams ) { osl_getCommandArg( nIdx + 1, &aParam.pData ); - aDisplay = rtl::OUStringToOString( aParam, osl_getThreadTextEncoding() ); + aDisplay = OUStringToOString( aParam, osl_getThreadTextEncoding() ); m_nFakeCmdLineArgs = 3; m_pFreeCmdLineArgs = new char*[ m_nFakeCmdLineArgs ]; @@ -149,7 +149,7 @@ void KDEXLib::Init() osl_getExecutableFile( &aParam.pData ); osl_getSystemPathFromFileURL( aParam.pData, &aBin.pData ); - rtl::OString aExec = rtl::OUStringToOString( aBin, osl_getThreadTextEncoding() ); + OString aExec = OUStringToOString( aBin, osl_getThreadTextEncoding() ); m_pFreeCmdLineArgs[0] = strdup( aExec.getStr() ); // make a copy of the string list for freeing it since @@ -214,7 +214,7 @@ extern "C" { if( ! ( pNoXInitThreads && *pNoXInitThreads ) ) XInitThreads(); - rtl::OString aVersion( qVersion() ); + OString aVersion( qVersion() ); SAL_INFO( "vcl.kde", "qt version string is \"" << aVersion << "\"" ); sal_Int32 nIndex = 0, nMajor = 0, nMinor = 0, nMicro = 0; |