diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-29 00:31:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-29 09:56:08 +0100 |
commit | de82a40f84c69081a517617989c344ec9597cb45 (patch) | |
tree | 6b9c15c67b11db681e6e8417b62efdd0a98b013a /sfx2 | |
parent | 313332e76bd17c0a5a6bd67c0abc467877948a3a (diff) |
callcatcher: drop various unused methods
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sfx2/imgmgr.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 10 | ||||
-rw-r--r-- | sfx2/source/inc/templdgi.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/toolbox/imgmgr.cxx | 27 |
4 files changed, 0 insertions, 40 deletions
diff --git a/sfx2/inc/sfx2/imgmgr.hxx b/sfx2/inc/sfx2/imgmgr.hxx index 7cc90c0326bb..82d3798878db 100644 --- a/sfx2/inc/sfx2/imgmgr.hxx +++ b/sfx2/inc/sfx2/imgmgr.hxx @@ -52,8 +52,6 @@ public: void RegisterToolBox( ToolBox *pBox, sal_uInt16 nFlags=0xFFFF); void ReleaseToolBox( ToolBox *pBox ); - void SetImagesForceSize( ToolBox& rToolBox, bool bLarge ); - Image GetImage( sal_uInt16 nId, bool bLarge ) const; Image GetImage( sal_uInt16 nId) const; Image SeekImage( sal_uInt16 nId, bool bLarge ) const; diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index dd2e5a8384d0..df6f09d76322 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -343,16 +343,6 @@ IMPL_LINK( DropListBox_Impl, OnAsyncExecuteDrop, SvLBoxEntry*, EMPTYARG ) return 0; } - -IMPL_LINK( DropListBox_Impl, OnAsyncExecuteError, void*, NOTINTERESTEDIN ) -{ - (void)NOTINTERESTEDIN; // unused - ErrorHandler::HandleError( ERRCODE_IO_WRONGFORMAT ); - - return 0; -} - - long DropListBox_Impl::Notify( NotifyEvent& rNEvt ) { long nRet = 0; diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx index 461c5b82321a..45e00a25a8e8 100644 --- a/sfx2/source/inc/templdgi.hxx +++ b/sfx2/source/inc/templdgi.hxx @@ -67,7 +67,6 @@ class DropListBox_Impl : public SvTreeListBox { private: DECL_LINK( OnAsyncExecuteDrop, SvLBoxEntry* ); - DECL_LINK( OnAsyncExecuteError, void* ); protected: SfxCommonTemplateDialog_Impl* pDialog; diff --git a/sfx2/source/toolbox/imgmgr.cxx b/sfx2/source/toolbox/imgmgr.cxx index c9faccf1802d..90261f512f49 100644 --- a/sfx2/source/toolbox/imgmgr.cxx +++ b/sfx2/source/toolbox/imgmgr.cxx @@ -400,31 +400,4 @@ void SfxImageManager::ReleaseToolBox( ToolBox *pBox ) } } -void SfxImageManager::SetImagesForceSize( ToolBox& rToolBox, bool bLarge ) -{ - ImageList* pImageList = pImp->GetImageList( bLarge ); - - sal_uInt16 nCount = rToolBox.GetItemCount(); - for (sal_uInt16 n=0; n<nCount; n++) - { - sal_uInt16 nId = rToolBox.GetItemId(n); - switch ( rToolBox.GetItemType(n) ) - { - case TOOLBOXITEM_BUTTON: - { - if ( pImageList && pImageList->HasImageAtPos( nId ) ) - rToolBox.SetItemImage( nId, pImageList->GetImage( nId )); - else - rToolBox.SetItemImage( nId, Image() ); - } - - case TOOLBOXITEM_SEPARATOR: - case TOOLBOXITEM_SPACE: - case TOOLBOXITEM_BREAK: - default: - break; - } - } -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |