summaryrefslogtreecommitdiff
path: root/sw/inc/editsh.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-13 11:11:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-13 14:39:28 +0200
commit08a68d853cf0b3c9b1779ac2366cb502b85f9db6 (patch)
tree9a8971d565a8008c72bf5229a6870d3849d03cd5 /sw/inc/editsh.hxx
parent9aada6df968b8148f659c5949a0c20fe9cfe69c1 (diff)
convert GETSELTXT_PARABRK_ constants to scoped enum
Change-Id: I793e092871f8f8239d3e084614cc9e0d5700deb1 Reviewed-on: https://gerrit.libreoffice.org/58925 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/editsh.hxx')
-rw-r--r--sw/inc/editsh.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx
index 07308fa4db3d..72bd50130ff0 100644
--- a/sw/inc/editsh.hxx
+++ b/sw/inc/editsh.hxx
@@ -110,8 +110,10 @@ namespace sw {
class UndoRedoContext;
}
-#define GETSELTXT_PARABRK_TO_BLANK 0
-#define GETSELTXT_PARABRK_TO_ONLYCR 2
+enum class ParaBreakType {
+ ToBlank = 0,
+ ToOnlyCR = 2
+};
/// For querying the INet-attributes for Navigator.
struct SwGetINetAttr
@@ -623,7 +625,7 @@ public:
@returns FALSE, if selected range is too large to be copied
into string buffer or if other errors occur. */
bool GetSelectedText( OUString &rBuf,
- int nHndlParaBreak = GETSELTXT_PARABRK_TO_BLANK );
+ ParaBreakType nHndlParaBreak = ParaBreakType::ToBlank );
/** @return graphic, if CurrentCursor->Point() points to a SwGrfNode
(and mark is not set or points to the same graphic). */