summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-05-11 22:21:59 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-05-11 22:27:57 +0900
commit193872bcdfc3f988463a4ff62e25a4f31d81469d (patch)
tree74370336ca0d35a39a1d4a10f6cd0c3f401219b0 /svtools
parent568039f392c33e5fb328cd67774df11fd5734744 (diff)
removed dead code
Change-Id: I76361b6fc995b13547e0bf24a593f91e456502c8
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/svimpbox.cxx64
-rw-r--r--svtools/source/contnr/svlbox.cxx50
2 files changed, 0 insertions, 114 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx
index fe806c39c435..9b0baec5954e 100644
--- a/svtools/source/contnr/svimpbox.cxx
+++ b/svtools/source/contnr/svimpbox.cxx
@@ -1656,14 +1656,6 @@ void SvImpLBox::EntrySelected( SvLBoxEntry* pEntry, sal_Bool bSelect )
if( nFlags & F_IGNORE_SELECT )
return;
- /*
- if( (m_nStyle & WB_HIDESELECTION) && pEntry && !pView->HasFocus() )
- {
- SvViewData* pViewData = pView->GetViewData( pEntry );
- pViewData->SetCursored( bSelect );
- }
- */
-
nFlags &= (~F_DESEL_ALL);
if( bSelect &&
aSelEng.GetSelectionMode() == SINGLE_SELECTION &&
@@ -1913,23 +1905,6 @@ void SvImpLBox::EntryInserted( SvLBoxEntry* pEntry )
else if( !pStartEntry )
pView->Invalidate();
- // invalidate the lines
- /*
- if( (bEntryVisible || bPrevEntryVisible) &&
- (m_nStyle & ( WB_HASLINES | WB_HASLINESATROOT )) )
- {
- SvLBoxTab* pTab = pView->GetFirstDynamicTab();
- if( pTab )
- {
- long nDX = pView->GetTabPos( pEntry, pTab );
- Point aTmpPoint;
- Size aSize( nDX, nY );
- Rectangle aRect( aTmpPoint, aSize );
- pView->Invalidate( aRect );
- }
- }
- */
-
SetMostRight( pEntry );
aVerSBar.SetRange( Range(0, pView->GetVisibleCount()-1));
SyncVerThumb(); // if something was inserted before the thumb
@@ -2650,21 +2625,6 @@ void SvImpLBox::GetFocus()
InvalidateEntry( pEntry );
pEntry = pView->NextSelected( pEntry );
}
- /*
- SvLBoxEntry* pEntry = pView->GetModel()->First();
- while( pEntry )
- {
- SvViewData* pViewData = pView->GetViewData( pEntry );
- if( pViewData->IsCursored() )
- {
- pViewData->SetCursored( sal_False );
- InvalidateEntry( pEntry );
- }
- pEntry = pView->GetModel()->Next( pEntry );
- }
- */
-
-
}
}
@@ -2715,12 +2675,6 @@ void ImpLBSelEng::BeginDrag()
pImp->BeginDrag();
}
-/*
-void ImpLBSelEng::EndDrag( const Point& )
-{
-}
-*/
-
void ImpLBSelEng::CreateAnchor()
{
pImp->pAnchor = pImp->pCursor;
@@ -2731,14 +2685,6 @@ void ImpLBSelEng::DestroyAnchor()
pImp->pAnchor = 0;
}
-/*
-void ImpLBSelEng::CreateCursor()
-{
- pImp->pAnchor = 0;
-}
-*/
-
-
sal_Bool ImpLBSelEng::SetCursorAtPoint(const Point& rPoint, sal_Bool bDontSelectAtCursor)
{
SvLBoxEntry* pNewCursor = pImp->MakePointVisible( rPoint );
@@ -2773,16 +2719,6 @@ void ImpLBSelEng::DeselectAtPoint( const Point& rPoint )
pImp->SelectEntry( pEntry, sal_False );
}
-/*
-void ImpLBSelEng::SelectAtPoint( const Point& rPoint )
-{
- SvLBoxEntry* pEntry = pImp->MakePointVisible( rPoint );
- if( !pEntry )
- return;
- pImp->SelectEntry( pEntry, sal_True );
-}
-*/
-
void ImpLBSelEng::DeselectAll()
{
pImp->SelAllDestrAnch( sal_False, sal_False ); // don't reset SelectionEngine!
diff --git a/svtools/source/contnr/svlbox.cxx b/svtools/source/contnr/svlbox.cxx
index 22a2c9583ad0..617428d60937 100644
--- a/svtools/source/contnr/svlbox.cxx
+++ b/svtools/source/contnr/svlbox.cxx
@@ -344,31 +344,6 @@ long SvLBoxTab::CalcOffset( long nItemWidth, long nTabWidth )
return nOffset;
}
-/*
-long SvLBoxTab::CalcOffset( const String& rStr, const OutputDevice& rOutDev )
-{
- DBG_CHKTHIS(SvLBoxTab,0);
- long nWidth;
- if ( nFlags & SV_LBOXTAB_ADJUST_NUMERIC )
- {
- sal_uInt16 nPos = rStr.Search( '.' );
- if ( nPos == STRING_NOTFOUND )
- nPos = rStr.Search( ',' );
- if ( nPos == STRING_NOTFOUND )
- nPos = STRING_LEN;
-
- nWidth = rOutDev.GetTextSize( rStr, 0, nPos ).Width();
- nWidth *= -1;
- }
- else
- {
- nWidth = rOutDev.GetTextSize( rStr ).Width();
- nWidth = CalcOffset( nWidth );
- }
- return nWidth;
-}
-*/
-
// ***************************************************************
// class SvLBoxItem
// ***************************************************************
@@ -821,31 +796,6 @@ sal_Bool SvLBox::NotifyCopying(
{
DBG_CHKTHIS(SvLBox,0);
return NotifyMoving(pTarget,pEntry,rpNewParent,rNewChildPos);
- /*
- DBG_ASSERT(pEntry,"NotifyCopying:SourceEntry?");
- if( !pTarget )
- {
- rpNewParent = 0;
- rNewChildPos = 0;
- return sal_True;
- }
- if ( !pTarget->HasChildren() && !pTarget->HasChildrenOnDemand() )
- {
- // Fall 1
- rpNewParent = GetParent( pTarget );
- rNewChildPos = GetRelPos( pTarget ) + 1;
- }
- else
- {
- // Faelle 2 & 3
- rpNewParent = pTarget;
- if( IsExpanded(pTarget))
- rNewChildPos = 0;
- else
- rNewChildPos = LIST_APPEND;
- }
- return sal_True;
- */
}
SvLBoxEntry* SvLBox::CloneEntry( SvLBoxEntry* pSource )