]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtext.h
Added function firstRow() to LyXText as this function is needed in
[lyx.git] / src / lyxtext.h
index 601f7960f1a8562e8f1446ea89e0e5dba1ad04d5..fdc849bfa78f563da504cacc950568111af27076 100644 (file)
@@ -227,7 +227,12 @@ public:
         */
        Row * getRow(Paragraph * par,
                     lyx::pos_type pos, int & y) const;
-
+       /** returns the firstrow, this could be done with the above too but
+           IMO it's stupid to have to allocate a dummy y all the time I need
+           the first row
+       */
+       Row * firstRow() { return firstrow; }
+                       
        /** returns the height of a default row, needed  for scrollbar
         */
        int defaultHeight() const;
@@ -501,10 +506,9 @@ public:
                return bidi_start == -1 ||
                        (bidi_start <= pos && pos <= bidi_end);
        }
-public:
+private:
        ///
        mutable Row * firstrow;
-private:
        ///
        mutable Row * lastrow;