]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtext.h
LyXText::rebuild -> LyXText::metrics
[lyx.git] / src / lyxtext.h
index c4d1556768eae7a3c7290e07c4aea896d75e169a..a4841b1a1c356ec0ad74f30750f9db11457b21ab 100644 (file)
@@ -34,6 +34,8 @@ class UpdatableInset;
 class VSpace;
 class WordLangTuple;
 class ParagraphList;
+class MetricsInfo;
+class Dimension;
 
 
 /**
@@ -163,6 +165,8 @@ public:
        void partialRebreak();
        /// a full rebreak of the whole text
        void fullRebreak();
+       /// compute text metrics
+       void metrics(MetricsInfo & mi, Dimension & dim);
 
        ///
        RowList::iterator need_break_row;
@@ -205,6 +209,13 @@ public:
        RowList::iterator getRow(LyXCursor const & cursor) const;
        /// convenience
        RowList::iterator cursorRow() const;
+       /**
+        * Return the next row, when cursor is at the end of the
+        * previous row, for insets that take a full row.
+        *
+        * FIXME: explain why we need this ? especially for y...
+        */
+       RowList::iterator cursorIRow() const;
 
        /** returns a pointer to the row near the specified y-coordinate
          (relative to the whole text). y is set to the real beginning
@@ -486,10 +497,10 @@ public:
 
        /** this calculates the specified parameters. needed when setting
         * the cursor and when creating a visible row */
-       void prepareToPrint(RowList::iterator row, float & x,
-                           float & fill_separator,
-                           float & fill_hfill,
-                           float & fill_label_hfill,
+       void prepareToPrint(RowList::iterator row, int & x,
+                           int & fill_separator,
+                           int & fill_hfill,
+                           int & fill_label_hfill,
                            bool bidi = true) const;
 
 private: