]> git.lyx.org Git - lyx.git/blobdiff - src/lyxcursor.C
Alfredo's second patch
[lyx.git] / src / lyxcursor.C
index 4e02327fbc0b982a41bfb466522085f4ff7d39cd..46234269c24c20419bfd8ab1ee9a4b8085c2e6c4 100644 (file)
@@ -1,35 +1,29 @@
-/* This file is part of
- * ======================================================
+/**
+ * \file lyxcursor.C
+ * Copyright 1995-2001 the LyX Team
+ * Read the file COPYING
  *
- *           LyX, The Document Processor
- *
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * \author Matthias Ettrich
+ */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "lyxcursor.h"
 
 
 LyXCursor::LyXCursor()
        : par_(0), pos_(0), boundary_(false),
-         x_(0), x_fix_(0), y_(0), iy_(0), row_(0)
+         x_(0), ix_(0), x_fix_(0), y_(0), iy_(0), row_(0)
 {}
 
 
-void LyXCursor::par(Paragraph * p)
+void LyXCursor::par(ParagraphList::iterator pit)
 {
-       par_ = p;
+       par_ = pit;
 }
 
 
-Paragraph * LyXCursor::par() const
+ParagraphList::iterator LyXCursor::par() const
 {
        return par_;
 }
@@ -70,6 +64,17 @@ int LyXCursor::x() const
 }
 
 
+void LyXCursor::ix(int n)
+{
+       ix_ = n;
+}
+
+int LyXCursor::ix() const
+{
+       return ix_;
+}
+
+
 void LyXCursor::x_fix(int i)
 {
        x_fix_ = i;
@@ -106,13 +111,25 @@ int LyXCursor::iy() const
 }
 
 
-void LyXCursor::row(Row * r)
+void LyXCursor::row(RowList::iterator r)
 {
        row_ = r;
 }
 
 
-Row * LyXCursor::row() const
+RowList::iterator LyXCursor::row() const
 {
        return row_;
 }
+
+
+void LyXCursor::irow(RowList::iterator r)
+{
+       irow_ = r;
+}
+
+
+RowList::iterator LyXCursor::irow() const
+{
+       return irow_;
+}