X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursorSlice.h;h=981f59c47de361aa7fbd4a5a50bd968edbd14273;hb=e995e8556bd670c7183bab7e105073a5f4ccfbc0;hp=94a2cb325110c0a3e6f7ed0c4106ecb2a085f3e1;hpb=314bc39ae96fab0225b647f124c521dab4305b2d;p=lyx.git diff --git a/src/CursorSlice.h b/src/CursorSlice.h index 94a2cb3251..981f59c47d 100644 --- a/src/CursorSlice.h +++ b/src/CursorSlice.h @@ -18,11 +18,9 @@ #define CURSORSLICE_H #include "support/types.h" +#include "support/strfwd.h" #include "insets/Inset.h" -#include -#include - namespace lyx { @@ -58,6 +56,15 @@ public: /// explicit CursorSlice(Inset &); + /// comparison operators. + //@{ + friend bool operator==(CursorSlice const &, CursorSlice const &); + friend bool operator!=(CursorSlice const &, CursorSlice const &); + friend bool operator<(CursorSlice const &, CursorSlice const &); + friend bool operator>(CursorSlice const &, CursorSlice const &); + friend bool operator<=(CursorSlice const &, CursorSlice const &); + //@} + /// the current inset Inset & inset() const { return *inset_; } /// return the cell this cursor is in @@ -156,17 +163,6 @@ private: pos_type pos_; }; -/// test for equality -bool operator==(CursorSlice const &, CursorSlice const &); -/// test for inequality -bool operator!=(CursorSlice const &, CursorSlice const &); -/// test for order -bool operator<(CursorSlice const &, CursorSlice const &); -/// test for order -bool operator>(CursorSlice const &, CursorSlice const &); -/// test for order -bool operator<=(CursorSlice const &, CursorSlice const &); - } // namespace lyx