summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/gridwin.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-26 09:41:14 +0200
committerNoel Grandin <noel@peralex.com>2016-09-26 09:41:44 +0200
commit93160bcb2dce54bbccb5935cd0a71b52ad5e5461 (patch)
tree3eca677a42ba9d46e53f158061ecf81427517718 /sc/source/ui/view/gridwin.cxx
parentc506954ce9a466fbc5204b3b5e2190ed907dfffe (diff)
convert PAINT constants to typed_flags
Change-Id: Ie0a02c87ca225ee7a8b8e76a2498836836e79c82
Diffstat (limited to 'sc/source/ui/view/gridwin.cxx')
-rw-r--r--sc/source/ui/view/gridwin.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 2f4776b9a1fa..6e4338cc25cb 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -4926,16 +4926,16 @@ static void lcl_PaintOneRange( ScDocShell* pDocSh, const ScRange& rRange, sal_uI
{
// Only along the edges (The corners are hit twice)
if ( nEdges & SCE_TOP )
- pDocSh->PostPaint( nCol1, nRow1, nTab1, nCol2, nRow1, nTab2, PAINT_MARKS );
+ pDocSh->PostPaint( nCol1, nRow1, nTab1, nCol2, nRow1, nTab2, PaintPartFlags::Marks );
if ( nEdges & SCE_LEFT )
- pDocSh->PostPaint( nCol1, nRow1, nTab1, nCol1, nRow2, nTab2, PAINT_MARKS );
+ pDocSh->PostPaint( nCol1, nRow1, nTab1, nCol1, nRow2, nTab2, PaintPartFlags::Marks );
if ( nEdges & SCE_RIGHT )
- pDocSh->PostPaint( nCol2, nRow1, nTab1, nCol2, nRow2, nTab2, PAINT_MARKS );
+ pDocSh->PostPaint( nCol2, nRow1, nTab1, nCol2, nRow2, nTab2, PaintPartFlags::Marks );
if ( nEdges & SCE_BOTTOM )
- pDocSh->PostPaint( nCol1, nRow2, nTab1, nCol2, nRow2, nTab2, PAINT_MARKS );
+ pDocSh->PostPaint( nCol1, nRow2, nTab1, nCol2, nRow2, nTab2, PaintPartFlags::Marks );
}
else // everything in one call
- pDocSh->PostPaint( nCol1, nRow1, nTab1, nCol2, nRow2, nTab2, PAINT_MARKS );
+ pDocSh->PostPaint( nCol1, nRow1, nTab1, nCol2, nRow2, nTab2, PaintPartFlags::Marks );
}
static void lcl_PaintRefChanged( ScDocShell* pDocSh, const ScRange& rOldUn, const ScRange& rNewUn )
@@ -5595,7 +5595,7 @@ bool ScGridWindow::ContinueOnlineSpelling()
}
// Broadcast for re-paint.
- ScPaintHint aHint(ScRange(nCol, nRow, nTab), PAINT_GRID);
+ ScPaintHint aHint(ScRange(nCol, nRow, nTab), PaintPartFlags::Grid);
aHint.SetPrintFlag(false);
pDoc->GetDocumentShell()->Broadcast(aHint);
}