diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-21 09:25:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-21 10:33:12 +0100 |
commit | d65e8cc152d30916f3ccc153a1a1f7498858a1a0 (patch) | |
tree | 063c6ae50fa10bd846aab85195a70a80ed5345a4 /sfx2 | |
parent | 778576d9f3b9e09750f3b884f5b1dd88003341c5 (diff) |
unused methods
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/sfxhelp.cxx | 26 | ||||
-rw-r--r-- | sfx2/source/bastyp/helper.cxx | 50 | ||||
-rw-r--r-- | sfx2/source/inc/helper.hxx | 4 |
3 files changed, 0 insertions, 80 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx index 31c40aa7ef5d..c69f775dbcf2 100644 --- a/sfx2/source/appl/sfxhelp.cxx +++ b/sfx2/source/appl/sfxhelp.cxx @@ -327,7 +327,6 @@ private: sal_Bool m_bIsDebug; // environment variable "help_debug=1" SfxHelpOptions_Impl* m_pOpt; // the options ::std::vector< ::rtl::OUString > m_aModulesList; // list of all installed modules - void Load(); public: SfxHelp_Impl( sal_Bool bDebug ); @@ -350,31 +349,6 @@ SfxHelp_Impl::~SfxHelp_Impl() delete m_pOpt; } -void SfxHelp_Impl::Load() -{ - // fill modules list - // create the help url (empty, without module and helpid) - String sHelpURL( DEFINE_CONST_UNICODE("vnd.sun.star.help://") ); - AppendConfigToken( sHelpURL, sal_True ); - - // open ucb content and get the list of the help modules - // the list contains strings with three tokens "ui title \t type \t url" - Sequence< ::rtl::OUString > aAllModulesList = SfxContentHelper::GetResultSet( sHelpURL ); - sal_Int32 nLen = aAllModulesList.getLength(); - m_aModulesList.reserve( nLen + 1 ); - const ::rtl::OUString* pBegin = aAllModulesList.getConstArray(); - const ::rtl::OUString* pEnd = pBegin + nLen; - for ( ; pBegin != pEnd; ++pBegin ) - { - // get one module string - String sModule( *pBegin ); - // extract the url - String sURL = sModule.GetToken( 2, '\t' ); - // insert the module (the host part of the "vnd.sun.star.help" url) - m_aModulesList.push_back( ::rtl::OUString( INetURLObject( sURL ).GetHost() ) ); - } -} - String SfxHelp_Impl::GetHelpText( const rtl::OUString& aCommandURL, const String& rModule ) { // create help url diff --git a/sfx2/source/bastyp/helper.cxx b/sfx2/source/bastyp/helper.cxx index 26bbae44506a..15d40a0d568b 100644 --- a/sfx2/source/bastyp/helper.cxx +++ b/sfx2/source/bastyp/helper.cxx @@ -86,56 +86,6 @@ void AppendDateTime_Impl( const util::DateTime rDT, rRow += aDateStr; } -// SfxContentHelper ------------------------------------------------------ - -sal_Bool SfxContentHelper::Transfer_Impl( const String& rSource, const String& rDest, sal_Bool bMoveData, sal_Int32 nNameClash ) -{ - sal_Bool bRet = sal_True, bKillSource = sal_False; - INetURLObject aSourceObj( rSource ); - DBG_ASSERT( aSourceObj.GetProtocol() != INET_PROT_NOT_VALID, "Invalid URL!" ); - - INetURLObject aDestObj( rDest ); - DBG_ASSERT( aDestObj.GetProtocol() != INET_PROT_NOT_VALID, "Invalid URL!" ); - if ( bMoveData && aSourceObj.GetProtocol() != aDestObj.GetProtocol() ) - { - bMoveData = sal_False; - bKillSource = sal_True; - } - String aName = aDestObj.getName(); - aDestObj.removeSegment(); - aDestObj.setFinalSlash(); - - try - { - ::ucbhelper::Content aDestPath( aDestObj.GetMainURL( INetURLObject::NO_DECODE ), uno::Reference< ucb::XCommandEnvironment > () ); - uno::Reference< ucb::XCommandInfo > xInfo = aDestPath.getCommands(); - OUString aTransferName(RTL_CONSTASCII_USTRINGPARAM("transfer")); - if ( xInfo->hasCommandByName( aTransferName ) ) - { - aDestPath.executeCommand( aTransferName, uno::makeAny( - ucb::TransferInfo( bMoveData, aSourceObj.GetMainURL( INetURLObject::NO_DECODE ), aName, nNameClash ) ) ); - } - else - { - DBG_ERRORFILE( "transfer command not available" ); - } - } - catch( const ucb::CommandAbortedException& ) - { - bRet = sal_False; - } - catch( const uno::Exception& ) - { - DBG_ERRORFILE( "Any other exception" ); - bRet = sal_False; - } - - if ( bKillSource ) - SfxContentHelper::Kill( rSource ); - - return bRet; -} - // ----------------------------------------------------------------------- sal_Bool SfxContentHelper::IsDocument( const String& rContent ) diff --git a/sfx2/source/inc/helper.hxx b/sfx2/source/inc/helper.hxx index 537b09d8f578..8059510bda85 100644 --- a/sfx2/source/inc/helper.hxx +++ b/sfx2/source/inc/helper.hxx @@ -41,10 +41,6 @@ class SfxContentHelper { -private: - static sal_Bool Transfer_Impl( const String& rSource, const String& rDest, sal_Bool bMoveData, - sal_Int32 nNameClash ); - public: static sal_Bool IsDocument( const String& rContent ); static sal_Bool Kill( const String& rContent ); |