summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-27 12:06:16 +0200
committerNoel Grandin <noel@peralex.com>2015-07-28 08:35:34 +0200
commit4eeeec899f44d2010189251c0f09120ade202dd8 (patch)
tree244f1d354d70cc54697acdf05db0025b05d0aa27 /include
parent01075a7274bd3921501d382a71720581a48bfd66 (diff)
convert RGCHK constants to scoped enum
Change-Id: Iafeae0f85f751469900471cf8fccd5f763407890
Diffstat (limited to 'include')
-rw-r--r--include/editeng/editdata.hxx4
-rw-r--r--include/editeng/editview.hxx10
2 files changed, 9 insertions, 5 deletions
diff --git a/include/editeng/editdata.hxx b/include/editeng/editdata.hxx
index c616759e6940..349efd93045e 100644
--- a/include/editeng/editdata.hxx
+++ b/include/editeng/editdata.hxx
@@ -89,10 +89,6 @@ class ImpEditEngine;
class EditTextObject;
class SfxStyleSheet;
-#define RGCHK_NONE 0 // No correction of ViusArea when scrolling
-#define RGCHK_NEG 1 // No negative ViusArea when scrolling
-#define RGCHK_PAPERSZ1 2 // VisArea must be within paper width, Text Size
-
struct EPosition
{
sal_Int32 nPara;
diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx
index f67fa3480f31..0467638f2f15 100644
--- a/include/editeng/editview.hxx
+++ b/include/editeng/editview.hxx
@@ -71,6 +71,14 @@ namespace linguistic2 {
}
}}}
+enum class ScrollRangeCheck
+{
+ NONE = 0, // No correction of VisArea when scrolling
+ NoNegative = 1, // No negative VisArea when scrolling
+ PaperWidthTextSize = 2, // VisArea must be within paper width, Text Size
+};
+
+
class EDITENG_DLLPUBLIC EditView
{
friend class EditEngine;
@@ -100,7 +108,7 @@ public:
void Paint( const Rectangle& rRect, OutputDevice* pTargetDevice = 0 );
void Invalidate();
- Pair Scroll( long nHorzScroll, long nVertScroll, sal_uInt8 nRangeCheck = RGCHK_NEG );
+ Pair Scroll( long nHorzScroll, long nVertScroll, ScrollRangeCheck nRangeCheck = ScrollRangeCheck::NoNegative );
void ShowCursor( bool bGotoCursor = true, bool bForceVisCursor = true );
void HideCursor();