[Libreoffice-commits] core.git: include/editeng
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Nov 30 10:56:54 UTC 2018
include/editeng/editstat.hxx | 18 +++++-------------
1 file changed, 5 insertions(+), 13 deletions(-)
New commits:
commit cabf739612a0e979ebcf76f40a24e66a354b10a5
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Fri Nov 30 08:45:09 2018 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Nov 30 11:56:27 2018 +0100
remove unused EditStatusFlags::CRSRLEFTPARA
Change-Id: I385069328ef862f1928d436260db2f2bc13c70d6
Reviewed-on: https://gerrit.libreoffice.org/64318
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/include/editeng/editstat.hxx b/include/editeng/editstat.hxx
index f6894923c2e5..5c8c9873b08a 100644
--- a/include/editeng/editstat.hxx
+++ b/include/editeng/editstat.hxx
@@ -80,20 +80,15 @@ enum class EditStatusFlags
VSCROLL = 0x0002,
CURSOROUT = 0x0004,
CRSRMOVEFAIL = 0x0008,
- CRSRLEFTPARA = 0x0010,
- TEXTWIDTHCHANGED = 0x0020,
- TextHeightChanged = 0x0040,
- WRONGWORDCHANGED = 0x0080
+ TEXTWIDTHCHANGED = 0x0010,
+ TextHeightChanged = 0x0020,
+ WRONGWORDCHANGED = 0x0040
};
namespace o3tl
{
- template<> struct typed_flags<EditStatusFlags> : is_typed_flags<EditStatusFlags, 0xff> {};
+ template<> struct typed_flags<EditStatusFlags> : is_typed_flags<EditStatusFlags, 0x7f> {};
}
-/*
- EditStatusFlags::CRSRLEFTPARA at the time cursor movement and the enter.
-*/
-
inline void SetFlags( EVControlBits& rBits, EVControlBits nMask, bool bOn )
{
if ( bOn )
@@ -107,10 +102,9 @@ class EditStatus
protected:
EditStatusFlags nStatusBits;
EEControlBits nControlBits;
- sal_Int32 nPrevPara; // for EditStatusFlags::CRSRLEFTPARA
public:
- EditStatus() { nStatusBits = EditStatusFlags::NONE; nControlBits = EEControlBits::NONE; nPrevPara = -1; }
+ EditStatus() { nStatusBits = EditStatusFlags::NONE; nControlBits = EEControlBits::NONE; }
void Clear() { nStatusBits = EditStatusFlags::NONE; }
@@ -118,8 +112,6 @@ public:
EditStatusFlags& GetStatusWord() { return nStatusBits; }
EEControlBits& GetControlWord() { return nControlBits; }
-
- sal_Int32& GetPrevParagraph() { return nPrevPara; }
};
enum class SpellCallbackCommand
More information about the Libreoffice-commits
mailing list