]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtext.h
LyXText::rebuild -> LyXText::metrics
[lyx.git] / src / lyxtext.h
index f967ee8a9c61c015a6eecdc1c72eed4cc4b0b5a8..a4841b1a1c356ec0ad74f30750f9db11457b21ab 100644 (file)
@@ -34,6 +34,8 @@ class UpdatableInset;
 class VSpace;
 class WordLangTuple;
 class ParagraphList;
+class MetricsInfo;
+class Dimension;
 
 
 /**
@@ -163,8 +165,8 @@ public:
        void partialRebreak();
        /// a full rebreak of the whole text
        void fullRebreak();
-       /// rebuild RowList cache
-       void rebuild(int maxwidth);
+       /// compute text metrics
+       void metrics(MetricsInfo & mi, Dimension & dim);
 
        ///
        RowList::iterator need_break_row;
@@ -495,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: