]> git.lyx.org Git - lyx.git/blobdiff - src/CursorSlice.h
Fix layout bug. Pasting text into a cell tried to set Standard layout, because
[lyx.git] / src / CursorSlice.h
index be31f56a99cff5bf0709c28bd525ff8b82fa9f9c..981f59c47de361aa7fbd4a5a50bd968edbd14273 100644 (file)
@@ -56,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
@@ -154,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