summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/output.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-01-24 12:27:54 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-01-24 15:43:22 +0100
commitb6cbae43385418be3238ed6e5cd5f90aeb69aa8a (patch)
tree434b149c984295bdfd8f50cfe0cd2695a45e5e01 /sc/source/ui/view/output.cxx
parent8be66091da0f1a08d986573676bea5b64dca286c (diff)
Remove OLD_SELECTION_PAINT.
Diffstat (limited to 'sc/source/ui/view/output.cxx')
-rw-r--r--sc/source/ui/view/output.cxx58
1 files changed, 0 insertions, 58 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx
index ca0248599a29..28ae297beff2 100644
--- a/sc/source/ui/view/output.cxx
+++ b/sc/source/ui/view/output.cxx
@@ -1782,64 +1782,6 @@ void ScOutputData::FindChanged()
pDoc->DisableIdle( bWasIdleDisabled );
}
-#ifdef OLD_SELECTION_PAINT
-void ScOutputData::DrawMark( Window* pWin )
-{
- Rectangle aRect;
- ScInvertMerger aInvert( pWin );
- //! additional method AddLineRect for ScInvertMerger?
-
- long nPosY = nScrY;
- for (SCSIZE nArrY=1; nArrY+1<nArrCount; nArrY++)
- {
- RowInfo* pThisRowInfo = &pRowInfo[nArrY];
- if (pThisRowInfo->bChanged)
- {
- long nPosX = nScrX;
- if (bLayoutRTL)
- nPosX += nMirrorW - 1; // always in pixels
-
- aRect = Rectangle( Point( nPosX,nPosY ), Size(1, pThisRowInfo->nHeight) );
- if (bLayoutRTL)
- aRect.Left() = aRect.Right() + 1;
- else
- aRect.Right() = aRect.Left() - 1;
-
- BOOL bOldMarked = FALSE;
- for (SCCOL nX=nX1; nX<=nX2; nX++)
- {
- if (pThisRowInfo->pCellInfo[nX+1].bMarked != bOldMarked)
- {
- if (bOldMarked && aRect.Right() >= aRect.Left())
- aInvert.AddRect( aRect );
-
- if (bLayoutRTL)
- aRect.Right() = nPosX;
- else
- aRect.Left() = nPosX;
-
- bOldMarked = pThisRowInfo->pCellInfo[nX+1].bMarked;
- }
-
- if (bLayoutRTL)
- {
- nPosX -= pRowInfo[0].pCellInfo[nX+1].nWidth;
- aRect.Left() = nPosX+1;
- }
- else
- {
- nPosX += pRowInfo[0].pCellInfo[nX+1].nWidth;
- aRect.Right() = nPosX-1;
- }
- }
- if (bOldMarked && aRect.Right() >= aRect.Left())
- aInvert.AddRect( aRect );
- }
- nPosY += pThisRowInfo->nHeight;
- }
-}
-#endif
-
void ScOutputData::DrawRefMark( SCCOL nRefStartX, SCROW nRefStartY,
SCCOL nRefEndX, SCROW nRefEndY,
const Color& rColor, BOOL bHandle )