From 2b179ca1744d12630488619f948e5eb860e1fb41 Mon Sep 17 00:00:00 2001 From: Szabolcs Dezsi Date: Mon, 27 Feb 2012 11:23:51 +0000 Subject: Removed unused code --- svtools/source/config/apearcfg.cxx | 6 ------ svtools/source/contnr/ivctrl.cxx | 15 --------------- svtools/source/contnr/svlbox.cxx | 8 -------- svtools/source/contnr/templwin.cxx | 6 ------ svtools/source/contnr/templwin.hxx | 1 - svtools/source/control/scriptedtext.cxx | 15 --------------- 6 files changed, 51 deletions(-) (limited to 'svtools/source') diff --git a/svtools/source/config/apearcfg.cxx b/svtools/source/config/apearcfg.cxx index 3cbe0ab52a47..0847ad020cd8 100644 --- a/svtools/source/config/apearcfg.cxx +++ b/svtools/source/config/apearcfg.cxx @@ -152,12 +152,6 @@ void SvtTabAppearanceCfg::Notify( const com::sun::star::uno::Sequence< rtl::OUSt { } -void SvtTabAppearanceCfg::SetDragMode ( sal_uInt16 nSet ) -{ - nDragMode = nSet; - SetModified(); -} - void SvtTabAppearanceCfg::SetScaleFactor ( sal_uInt16 nSet ) { nScaleFactor = nSet; diff --git a/svtools/source/contnr/ivctrl.cxx b/svtools/source/contnr/ivctrl.cxx index e5f6919b21f8..9d7a6d564fa7 100644 --- a/svtools/source/contnr/ivctrl.cxx +++ b/svtools/source/contnr/ivctrl.cxx @@ -89,21 +89,6 @@ SvtIconChoiceCtrl::SvtIconChoiceCtrl( Window* pParent, WinBits nWinStyle ) : _pImp->SetPositionMode( IcnViewPositionModeAutoArrange ); } -SvtIconChoiceCtrl::SvtIconChoiceCtrl( Window* pParent, const ResId& rResId ) : - - Control( pParent, rResId ), - - _pCurKeyEvent ( NULL ), - _pImp ( new SvxIconChoiceCtrl_Impl( this, WB_BORDER ) ), - _bAutoFontColor ( sal_False ) - -{ - SetLineColor(); - _pImp->SetGrid( Size( 100, 70 ) ); - _pImp->InitSettings(); - _pImp->SetPositionMode( IcnViewPositionModeAutoArrange ); -} - SvtIconChoiceCtrl::~SvtIconChoiceCtrl() { _pImp->CallEventListeners( VCLEVENT_OBJECT_DYING ); diff --git a/svtools/source/contnr/svlbox.cxx b/svtools/source/contnr/svlbox.cxx index 19068e6c04bb..0809368e0aab 100644 --- a/svtools/source/contnr/svlbox.cxx +++ b/svtools/source/contnr/svlbox.cxx @@ -536,14 +536,6 @@ const Size& SvLBoxItem::GetSize( SvLBox* pView,SvLBoxEntry* pEntry ) return pViewData->aSize; } -const Size& SvLBoxItem::GetSize( SvLBoxEntry* pEntry, SvViewDataEntry* pViewData) -{ - DBG_CHKTHIS(SvLBoxItem,0); - sal_uInt16 nItemPos = pEntry->GetPos( this ); - SvViewDataItem* pItemData = pViewData->pItemData+nItemPos; - return pItemData->aSize; -} - DBG_NAME(SvViewDataItem); SvViewDataItem::SvViewDataItem() diff --git a/svtools/source/contnr/templwin.cxx b/svtools/source/contnr/templwin.cxx index 5cc09c95000e..de5529d00e03 100644 --- a/svtools/source/contnr/templwin.cxx +++ b/svtools/source/contnr/templwin.cxx @@ -459,12 +459,6 @@ String SvtIconWindow_Impl::GetSelectedIconURL() const return aURL; } -String SvtIconWindow_Impl::GetSelectedIconText() const -{ - sal_uLong nPos; - return MnemonicGenerator::EraseAllMnemonicChars( aIconCtrl.GetSelectedEntry( nPos )->GetText() ); -} - String SvtIconWindow_Impl::GetIconText( const String& rURL ) const { String aText; diff --git a/svtools/source/contnr/templwin.hxx b/svtools/source/contnr/templwin.hxx index 070d0167e4c7..6963f333540d 100644 --- a/svtools/source/contnr/templwin.hxx +++ b/svtools/source/contnr/templwin.hxx @@ -91,7 +91,6 @@ public: inline void SetClickHdl( const Link& rLink ) { aIconCtrl.SetClickHdl( rLink ); } String GetSelectedIconURL() const; - String GetSelectedIconText() const; String GetCursorPosIconURL() const; String GetIconText( const String& rURL ) const; void InvalidateIconControl(); diff --git a/svtools/source/control/scriptedtext.cxx b/svtools/source/control/scriptedtext.cxx index 1628d0201d01..9338c116eaf5 100644 --- a/svtools/source/control/scriptedtext.cxx +++ b/svtools/source/control/scriptedtext.cxx @@ -354,21 +354,6 @@ void SvtScriptedTextHelper::SetText( const OUString& _rText, const uno::Referenc mpImpl->SetText( _rText, _xBreakIter ); } -const OUString& SvtScriptedTextHelper::GetText() const -{ - return mpImpl->GetText(); -} - -sal_Int32 SvtScriptedTextHelper::GetTextWidth() const -{ - return mpImpl->GetTextSize().Width(); -} - -sal_Int32 SvtScriptedTextHelper::GetTextHeight() const -{ - return mpImpl->GetTextSize().Height(); -} - const Size& SvtScriptedTextHelper::GetTextSize() const { return mpImpl->GetTextSize(); -- cgit