diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-22 09:19:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-22 10:17:52 +0100 |
commit | 83ee1bccf9899bb5c1913389b9a26a73a515ad82 (patch) | |
tree | fc5666fa8902e3bd1c2bec50515317c2419e13a4 /sfx2 | |
parent | f921ca3cc59825745b1eac52499d72ef8bfa1db5 (diff) |
callcatcher: remove unused methods
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sfx2/docfile.hxx | 6 | ||||
-rw-r--r-- | sfx2/inc/sfx2/progress.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/bastyp/helper.cxx | 27 | ||||
-rw-r--r-- | sfx2/source/bastyp/progress.cxx | 24 | ||||
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 34 | ||||
-rw-r--r-- | sfx2/source/doc/new.cxx | 13 | ||||
-rw-r--r-- | sfx2/source/doc/objmisc.cxx | 27 | ||||
-rw-r--r-- | sfx2/source/inc/helper.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/inc/objshimp.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/inc/preview.hxx | 3 |
10 files changed, 0 insertions, 139 deletions
diff --git a/sfx2/inc/sfx2/docfile.hxx b/sfx2/inc/sfx2/docfile.hxx index 273fb3d3ef45..5435a01da858 100644 --- a/sfx2/inc/sfx2/docfile.hxx +++ b/sfx2/inc/sfx2/docfile.hxx @@ -246,7 +246,6 @@ public: SAL_DLLPRIVATE ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetInputStream_Impl(); SAL_DLLPRIVATE void CloseAndReleaseStreams_Impl(); - SAL_DLLPRIVATE void RefreshName_Impl(); SAL_DLLPRIVATE sal_uInt16 AddVersion_Impl( com::sun::star::util::RevisionTag& rVersion ); SAL_DLLPRIVATE sal_Bool TransferVersionList_Impl( SfxMedium& rMedium ); SAL_DLLPRIVATE sal_Bool SaveVersionList_Impl( sal_Bool bUseXML ); @@ -254,8 +253,6 @@ public: SAL_DLLPRIVATE void SetExpired_Impl( const DateTime& rDateTime ); SAL_DLLPRIVATE SvKeyValueIterator* GetHeaderAttributes_Impl(); - SAL_DLLPRIVATE const String& GetPreRedirectedURL() const; - SAL_DLLPRIVATE void SetOrigFilter_Impl( const SfxFilter* pFilter ); // Diese Protokolle liefern MIME Typen SAL_DLLPRIVATE sal_Bool SupportsMIME_Impl() const; @@ -275,12 +272,9 @@ public: { aLongName = rName; } SAL_DLLPRIVATE const String & GetLongName() const { return aLongName; } SAL_DLLPRIVATE ErrCode CheckOpenMode_Impl( sal_Bool bSilent, sal_Bool bAllowRO = sal_True ); - SAL_DLLPRIVATE sal_Bool IsDownloadDone_Impl(); SAL_DLLPRIVATE sal_Bool IsPreview_Impl(); SAL_DLLPRIVATE void ClearBackup_Impl(); SAL_DLLPRIVATE void Done_Impl( ErrCode ); - SAL_DLLPRIVATE void DataAvailable_Impl(); - SAL_DLLPRIVATE void Cancel_Impl(); SAL_DLLPRIVATE void SetPhysicalName_Impl(const String& rName); SAL_DLLPRIVATE void CanDisposeStorage_Impl( sal_Bool bDisposeStorage ); SAL_DLLPRIVATE sal_Bool WillDisposeStorageOnClose_Impl(); diff --git a/sfx2/inc/sfx2/progress.hxx b/sfx2/inc/sfx2/progress.hxx index f8bd9e7ffb9d..4b1fb074e4b8 100644 --- a/sfx2/inc/sfx2/progress.hxx +++ b/sfx2/inc/sfx2/progress.hxx @@ -82,8 +82,6 @@ public: DECL_DLLPRIVATE_STATIC_LINK( SfxProgress, SetStateHdl, PlugInLoadStatus* ); DECL_DLLPRIVATE_STATIC_LINK( SfxProgress, DefaultBindingProgress, SvProgressArg* ); - SAL_DLLPRIVATE bool StatusBarManagerGone_Impl(SfxStatusBarManager*pStb); - SAL_DLLPRIVATE const String& GetStateText_Impl() const; }; #endif diff --git a/sfx2/source/bastyp/helper.cxx b/sfx2/source/bastyp/helper.cxx index 15d40a0d568b..e00fbda6c374 100644 --- a/sfx2/source/bastyp/helper.cxx +++ b/sfx2/source/bastyp/helper.cxx @@ -121,33 +121,6 @@ sal_Bool SfxContentHelper::IsDocument( const String& rContent ) // ----------------------------------------------------------------------- -sal_Bool SfxContentHelper::Kill( const String& rContent ) -{ - sal_Bool bRet = sal_True; - INetURLObject aDeleteObj( rContent ); - DBG_ASSERT( aDeleteObj.GetProtocol() != INET_PROT_NOT_VALID, "Invalid URL!" ); - - try - { - ::ucbhelper::Content aCnt( aDeleteObj.GetMainURL( INetURLObject::NO_DECODE ), uno::Reference< ucb::XCommandEnvironment > () ); - aCnt.executeCommand( OUString(RTL_CONSTASCII_USTRINGPARAM("delete")), uno::makeAny( sal_Bool( sal_True ) ) ); - } - catch( const ucb::CommandAbortedException& ) - { - DBG_WARNING( "CommandAbortedException" ); - bRet = sal_False; - } - catch( const uno::Exception& ) - { - DBG_ERRORFILE( "Any other exception" ); - bRet = sal_False; - } - - return bRet; -} - -// ----------------------------------------------------------------------- - uno::Sequence < OUString > SfxContentHelper::GetResultSet( const String& rURL ) { StringList_Impl* pList = NULL; diff --git a/sfx2/source/bastyp/progress.cxx b/sfx2/source/bastyp/progress.cxx index 8905cc9f5d39..534abbfe8c89 100644 --- a/sfx2/source/bastyp/progress.cxx +++ b/sfx2/source/bastyp/progress.cxx @@ -258,13 +258,6 @@ void SfxProgress::SetText // ----------------------------------------------------------------------- -const String& SfxProgress::GetStateText_Impl() const -{ - return pImp->aStateText; -} - -// ----------------------------------------------------------------------- - // Required in App data static sal_uIntPtr nLastTime = 0; @@ -669,21 +662,4 @@ void SfxProgress::LeaveLock() pImp->nRescheduleLocks--; } -// ----------------------------------------------------------------------- - -bool SfxProgress::StatusBarManagerGone_Impl -( - SfxStatusBarManager * // This <SfxStatusBarManager> will be destroyed -) - -/* [Description] - - Internal method for notifying the SfxProgress that the specified - SfxStatusBarManger will be destroyed so that the Progress can let go of it. -*/ - -{ - return sal_True; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 5c5ce9685953..2de5796370e2 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -323,17 +323,6 @@ public: ~SfxMedium_Impl(); }; -void SfxMedium::DataAvailable_Impl() -{ - pImp->aAvailableLink.ClearPendingCall(); - pImp->aAvailableLink.Call( NULL ); -} - -void SfxMedium::Cancel_Impl() -{ - SetError( ERRCODE_IO_GENERAL, ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ) ); -} - //------------------------------------------------------------------ SfxMedium_Impl::SfxMedium_Impl( SfxMedium* pAntiImplP ) : SvCompatWeakBase( pAntiImplP ), @@ -2587,13 +2576,6 @@ const SfxFilter* SfxMedium::GetOrigFilter( sal_Bool bNotCurrent ) const //---------------------------------------------------------------- -void SfxMedium::SetOrigFilter_Impl( const SfxFilter* pOrigFilter ) -{ - pImp->pOrigFilter = pOrigFilter; -} - -//------------------------------------------------------------------ - sal_uInt32 SfxMedium::CreatePasswordToModifyHash( const ::rtl::OUString& aPasswd, sal_Bool bWriter ) { sal_uInt32 nHash = 0; @@ -2753,10 +2735,6 @@ void SfxMedium::CloseStreams_Impl() //------------------------------------------------------------------ -void SfxMedium::RefreshName_Impl() -{ -} - void SfxMedium::SetIsRemote_Impl() { INetURLObject aObj( GetName() ); @@ -3040,13 +3018,6 @@ const INetURLObject& SfxMedium::GetURLObject() const //---------------------------------------------------------------- -const String& SfxMedium::GetPreRedirectedURL() const -{ - return pImp->aPreRedirectionURL; -} - -//---------------------------------------------------------------- - void SfxMedium::SetReferer( const String& rRefer ) { pImp->aReferer = rRefer; @@ -3144,11 +3115,6 @@ SvCompatWeakHdl* SfxMedium::GetHdl() return pImp->GetHdl(); } -sal_Bool SfxMedium::IsDownloadDone_Impl() -{ - return pImp->bDownloadDone; -} - ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SfxMedium::GetInputStream() { if ( !pImp->xInputStream.is() ) diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx index c263b7521bba..743fe48e65cf 100644 --- a/sfx2/source/doc/new.cxx +++ b/sfx2/source/doc/new.cxx @@ -104,19 +104,6 @@ void SfxPreviewBase_Impl::Resize() Invalidate(); } -void SfxPreviewBase_Impl::SetGDIFile( ::boost::shared_ptr<GDIMetaFile> pFile ) -{ - pMetaFile = pFile; - Invalidate(); -} - -SfxFrameWindow* SfxPreviewWin_Impl::PreviewFactory( - SfxFrame* pFrame, const String& /*rName*/ ) -{ - return new SfxFrameWindow( new SfxPreviewWin_Impl( - &pFrame->GetCurrentViewFrame()->GetWindow() ) ); -} - void SfxPreviewWin_Impl::ImpPaint( const Rectangle&, GDIMetaFile* pFile, Window* pWindow ) { diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index 769328e14635..14d87ac3df96 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -2079,33 +2079,6 @@ sal_Bool SfxObjectShell::UseInteractionToHandleError( return bResult; } -sal_Bool SfxObjectShell_Impl::NeedsOfficeUpdateDialog() -{ - // if the configuration is not available for any reason, the default behavior is to show the message - sal_Bool bResult = sal_True; - - try - { - uno::Reference< lang::XMultiServiceFactory > xServiceManager( ::comphelper::getProcessServiceFactory(), uno::UNO_SET_THROW ); - uno::Reference< uno::XInterface > xCommonConfig( - ::comphelper::ConfigurationHelper::openConfig( - xServiceManager, - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/org.openoffice.Office.Common" ) ), - ::comphelper::ConfigurationHelper::E_STANDARD ), - uno::UNO_SET_THROW ); - - ::comphelper::ConfigurationHelper::readRelativeKey( - xCommonConfig, - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Load/" ) ), - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ShowOfficeUpdateDialog" ) ) ) >>= bResult; - } - catch( uno::Exception& ) - { - } - - return bResult; -} - sal_Int16 SfxObjectShell_Impl::getCurrentMacroExecMode() const { sal_Int16 nImposedExecMode( MacroExecMode::NEVER_EXECUTE ); diff --git a/sfx2/source/inc/helper.hxx b/sfx2/source/inc/helper.hxx index 8059510bda85..36b8ee9e3d46 100644 --- a/sfx2/source/inc/helper.hxx +++ b/sfx2/source/inc/helper.hxx @@ -43,7 +43,6 @@ class SfxContentHelper { public: static sal_Bool IsDocument( const String& rContent ); - static sal_Bool Kill( const String& rContent ); static ::com::sun::star::uno::Sequence< ::rtl::OUString > GetResultSet( const String& rURL ); diff --git a/sfx2/source/inc/objshimp.hxx b/sfx2/source/inc/objshimp.hxx index 023031334fd3..9d32752771d2 100644 --- a/sfx2/source/inc/objshimp.hxx +++ b/sfx2/source/inc/objshimp.hxx @@ -157,8 +157,6 @@ struct SfxObjectShell_Impl : public ::sfx2::IMacroDocumentAccess SfxObjectShell_Impl( SfxObjectShell& _rDocShell ); virtual ~SfxObjectShell_Impl(); - static sal_Bool NeedsOfficeUpdateDialog(); - // IMacroDocumentAccess overridables virtual sal_Int16 getCurrentMacroExecMode() const; virtual sal_Bool setCurrentMacroExecMode( sal_uInt16 nMacroMode ); diff --git a/sfx2/source/inc/preview.hxx b/sfx2/source/inc/preview.hxx index 483e651fa604..35b7d2c98b3e 100644 --- a/sfx2/source/inc/preview.hxx +++ b/sfx2/source/inc/preview.hxx @@ -48,7 +48,6 @@ public: SfxPreviewBase_Impl( Window* pParent ); ~SfxPreviewBase_Impl( ); void SetObjectShell( SfxObjectShell* pObj ); - void SetGDIFile( ::boost::shared_ptr<GDIMetaFile> pFile ); virtual void Resize(); }; @@ -66,8 +65,6 @@ public: : SfxPreviewBase_Impl( pParent ){}; static void ImpPaint( const Rectangle& rRect, GDIMetaFile* pFile, Window* pWindow ); - static SfxFrameWindow* - PreviewFactory( SfxFrame* pFrame, const String& rName ); }; #endif |