diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-27 08:46:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-27 10:18:31 +0100 |
commit | 53617c8651274e581cc1b55c9705c54e03f93879 (patch) | |
tree | e47a5e84d3b38344b1f845233398a10150949145 /svtools | |
parent | f52b92f1c55657fd737c4d92010ca54e65c387d3 (diff) |
callcatcher: update unused code
Change-Id: Idaed255e4f004ad555ccbd6ba9dc29bf522d3c5f
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/fileview.cxx | 108 | ||||
-rw-r--r-- | svtools/source/contnr/ivctrl.cxx | 5 |
2 files changed, 0 insertions, 113 deletions
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx index 24c08b01bb2b..8ebc78fb3856 100644 --- a/svtools/source/contnr/fileview.cxx +++ b/svtools/source/contnr/fileview.cxx @@ -479,7 +479,6 @@ public: sal_uLong GetEntryPos( const OUString& rURL ); - inline void EnableContextMenu( bool bEnable ); inline void EnableDelete( bool bEnable ); void Resort_Impl( sal_Int16 nColumn, bool bAscending ); @@ -487,7 +486,6 @@ public: const OUString& rTitle, bool bWrapAround ); - inline bool EnableNameReplacing( bool bEnable = true ); // returns false, if action wasn't possible void SetActualFolder( const INetURLObject& rActualFolder ); void SetSelectHandler( const Link& _rHdl ); @@ -509,13 +507,6 @@ protected: virtual void onTimeout( CallbackTimer* _pInstigator ) SAL_OVERRIDE; }; -inline void SvtFileView_Impl::EnableContextMenu( bool bEnable ) -{ - mpView->EnableContextMenuHandling( bEnable ); - if( bEnable ) - mbReplaceNames = false; -} - inline void SvtFileView_Impl::EnableDelete( bool bEnable ) { mpView->EnableDelete( bEnable ); @@ -523,25 +514,6 @@ inline void SvtFileView_Impl::EnableDelete( bool bEnable ) mbReplaceNames = false; } -inline bool SvtFileView_Impl::EnableNameReplacing( bool bEnable ) -{ - mpView->EnableRename( bEnable ); - - bool bRet; - if( mpView->IsDeleteOrContextMenuEnabled() ) - { - DBG_ASSERT( !mbReplaceNames, "SvtFileView_Impl::EnableNameReplacing(): state should be not possible!" ); - bRet = !bEnable; // only for enabling this is an unsuccessful result - } - else - { - mbReplaceNames = bEnable; - bRet = true; - } - - return bRet; -} - inline void SvtFileView_Impl::EndEditing( bool _bCancel ) { if ( mpView->IsEditingActive() ) @@ -1120,24 +1092,6 @@ SvtFileView::SvtFileView( Window* pParent, WinBits nBits, pHeaderBar->SetEndDragHdl( LINK( this, SvtFileView, HeaderEndDrag_Impl ) ); } -SvtFileView::SvtFileView( Window* pParent, WinBits nStyle, sal_uInt8 nFlags ) : - - Control( pParent, nStyle ) -{ - Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext(); - Reference< XInteractionHandler > xInteractionHandler( - InteractionHandler::createWithParent(xContext, 0), UNO_QUERY_THROW ); - Reference < XCommandEnvironment > xCmdEnv = new ::ucbhelper::CommandEnvironment( xInteractionHandler, Reference< XProgressHandler >() ); - - mpImp = new SvtFileView_Impl( this, xCmdEnv, nFlags, nFlags & FILEVIEW_ONLYFOLDER ); - - SetSortColumn( (nFlags & FILEVIEW_SHOW_NONE) == 0 ); - - HeaderBar *pHeaderBar = mpImp->mpView->GetHeaderBar(); - pHeaderBar->SetSelectHdl( LINK( this, SvtFileView, HeaderSelect_Impl ) ); - pHeaderBar->SetEndDragHdl( LINK( this, SvtFileView, HeaderEndDrag_Impl ) ); -} - SvtFileView::~SvtFileView() { // use temp pointer to prevent access of deleted member (GetFocus()) @@ -1321,39 +1275,6 @@ FileViewResult SvtFileView::Initialize( return eFailure; } - -FileViewResult SvtFileView::Initialize( - const OUString& rURL, - const OUString& rFilter, - const FileViewAsyncAction* pAsyncDescriptor ) -{ - return Initialize( rURL, rFilter, pAsyncDescriptor, ::com::sun::star::uno::Sequence< OUString >()); -} - - - - -bool SvtFileView::Initialize( const Sequence< OUString >& aContents ) -{ - WaitObject aWaitCursor( this ); - - mpImp->maViewURL = ""; - mpImp->maCurrentFilter = mpImp->maAllFilter; - - mpImp->Clear(); - mpImp->CreateVector_Impl( aContents ); - if( GetSortColumn() ) - mpImp->SortFolderContent_Impl(); - - mpImp->OpenFolder_Impl(); - - mpImp->maOpenDoneLink.Call( this ); - - return true; -} - - - FileViewResult SvtFileView::ExecuteFilter( const OUString& rFilter, const FileViewAsyncAction* pAsyncDescriptor ) { mpImp->maCurrentFilter = rFilter.toAsciiLowerCase(); @@ -1364,15 +1285,11 @@ FileViewResult SvtFileView::ExecuteFilter( const OUString& rFilter, const FileVi return eResult; } - - void SvtFileView::CancelRunningAsyncAction() { mpImp->CancelRunningAsyncAction(); } - - void SvtFileView::SetNoSelection() { mpImp->mpView->SelectAll( false ); @@ -1422,56 +1339,31 @@ SvTreeListEntry* SvtFileView::NextSelected( SvTreeListEntry* pEntry ) const return mpImp->mpView->NextSelected( pEntry ); } - - void SvtFileView::EnableAutoResize() { mpImp->mpView->EnableAutoResize(); } - - -void SvtFileView::SetFocus() -{ - mpImp->mpView->GrabFocus(); -} - - const OUString& SvtFileView::GetViewURL() const { return mpImp->maViewURL; } - void SvtFileView::SetOpenDoneHdl( const Link& rHdl ) { mpImp->maOpenDoneLink = rHdl; } - -void SvtFileView::EnableContextMenu( bool bEnable ) -{ - mpImp->EnableContextMenu( bEnable ); -} - - void SvtFileView::EnableDelete( bool bEnable ) { mpImp->EnableDelete( bEnable ); } -void SvtFileView::EnableNameReplacing( bool bEnable ) -{ - mpImp->EnableNameReplacing( bEnable ); -} - - void SvtFileView::EndInplaceEditing( bool _bCancel ) { return mpImp->EndEditing( _bCancel ); } - IMPL_LINK( SvtFileView, HeaderSelect_Impl, HeaderBar*, pBar ) { DBG_ASSERT( pBar, "no headerbar" ); diff --git a/svtools/source/contnr/ivctrl.cxx b/svtools/source/contnr/ivctrl.cxx index 0035f80225ba..7fd923f556b1 100644 --- a/svtools/source/contnr/ivctrl.cxx +++ b/svtools/source/contnr/ivctrl.cxx @@ -300,11 +300,6 @@ void SvtIconChoiceCtrl::CreateAutoMnemonics( MnemonicGenerator& _rUsedMnemonics _pImp->CreateAutoMnemonics( &_rUsedMnemonics ); } -void SvtIconChoiceCtrl::CreateAutoMnemonics( void ) -{ - _pImp->CreateAutoMnemonics(); -} - SvxIconChoiceCtrlEntry* SvtIconChoiceCtrl::GetSelectedEntry( sal_uLong& rPos ) const { return _pImp->GetFirstSelectedEntry( rPos ); |