diff options
Diffstat (limited to 'sc/source/ui/view/tabview3.cxx')
-rw-r--r-- | sc/source/ui/view/tabview3.cxx | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx index f97f0c6e9f02..2357a533ca34 100644 --- a/sc/source/ui/view/tabview3.cxx +++ b/sc/source/ui/view/tabview3.cxx @@ -2220,89 +2220,6 @@ void ScTabView::PaintLeftArea( SCROW nStartRow, SCROW nEndRow ) } } -// InvertBlockMark - Block invertieren - -void ScTabView::InvertBlockMark(SCCOL nStartX, SCROW nStartY, - SCCOL nEndX, SCROW nEndY) -{ - if ( !aViewData.IsActive() ) - return; // invertiert wird nur auf aktiver View - - PutInOrder( nStartX, nEndX ); - PutInOrder( nStartY, nEndY ); - - ScMarkData& rMark = aViewData.GetMarkData(); - ScDocShell* pDocSh = aViewData.GetDocShell(); - ScDocument* pDoc = pDocSh->GetDocument(); - SCTAB nTab = aViewData.GetTabNo(); - - if ( pDocSh->GetLockCount() ) - { - // if paint is locked, avoid repeated inverting - // add repaint areas to paint lock data instead - pDocSh->PostPaint( nStartX,nStartY,nTab, nEndX,nEndY,nTab, PAINT_GRID ); - return; - } - - BOOL bSingle = rMark.IsMultiMarked(); - BOOL bMerge = pDoc->HasAttrib( nStartX, nStartY, nTab, nEndX, nEndY, nTab, - HASATTR_MERGED | HASATTR_OVERLAPPED ); - - USHORT i; - if ( bMerge || bSingle ) - { - for (i=0; i<4; i++) - if (pGridWin[i]) - if (pGridWin[i]->IsVisible()) - pGridWin[i]->InvertSimple( nStartX, nStartY, nEndX, nEndY, - bMerge, bBlockNeg ); - } - else - { - for (i=0; i<4; i++) - if (pGridWin[i]) - if (pGridWin[i]->IsVisible()) - { - ScSplitPos ePos = (ScSplitPos) i; - Point aStartPoint = aViewData.GetScrPos( nStartX, nStartY, ePos ); - Point aEndPoint = aViewData.GetScrPos( nEndX+1, nEndY+1, ePos ); - if ( pDoc->IsLayoutRTL( nTab ) ) - { - long nTemp = aStartPoint.X(); - aStartPoint.X() = aEndPoint.X() + 1; // +1 - excluding start of nEndX+1 - aEndPoint.X() = nTemp; - } - else - aEndPoint.X() -= 1; - aEndPoint.Y() -= 1; - if ( aEndPoint.X() >= aStartPoint.X() && aEndPoint.Y() >= aStartPoint.Y() ) - { - MapMode aOld = pGridWin[ePos]->GetMapMode(); - pGridWin[ePos]->SetMapMode(MAP_PIXEL); - pGridWin[ePos]->Invert( Rectangle(aStartPoint,aEndPoint), INVERT_HIGHLIGHT ); - pGridWin[ePos]->SetMapMode(aOld); - pGridWin[ePos]->CheckInverted(); - } - } - } - - // - // wenn Controls betroffen, neu malen - // - - BOOL bHide = TRUE; // wird Teil der Markierung aufgehoben ? - if (rMark.IsMarked()) - { - ScRange aMarkRange; - rMark.GetMarkArea( aMarkRange ); - if ( aMarkRange.aStart.Col() <= nStartX && aMarkRange.aEnd.Col() >= nEndX && - aMarkRange.aStart.Row() <= nStartY && aMarkRange.aEnd.Row() >= nEndY ) - { - bHide = FALSE; // der ganze Bereich ist markiert - } - } -} - BOOL ScTabView::PaintExtras() { BOOL bRet = FALSE; |