]> git.lyx.org Git - lyx.git/blobdiff - src/lyxcursor.h
whichFont down to 5.3%
[lyx.git] / src / lyxcursor.h
index 8110839903358e9a731b4638ec68a65b8881efe4..cc7cb9ef90b91f22d5755a4db3353a2b323314ca 100644 (file)
 #pragma interface
 #endif
 
-#include "paragraph.h"
+#include "support/types.h"
 
-struct Row;
+class Paragraph;
+class Row;
 
 /** All these variables should be explained. Matthias?
  */
 class LyXCursor {
 public:
+       ///
        LyXCursor();
        ///
        void par(Paragraph * p);
        ///
-       //Paragraph * par();
-       ///
        Paragraph * par() const;
        ///
-       void pos(Paragraph::size_type p);
+       void pos(lyx::pos_type p);
        ///
-       Paragraph::size_type pos() const;
+       lyx::pos_type pos() const;
        ///
        void boundary(bool b);
        ///
@@ -54,14 +54,12 @@ public:
        ///
        void row(Row * r);
        ///
-       //Row * row();
-       ///
        Row * row() const;
 private:
        /// The paragraph the cursor is in.
        Paragraph * par_;
        /// The position inside the paragraph
-       Paragraph::size_type pos_;
+       lyx::pos_type pos_;
        ///
        bool boundary_;
        ///