]> git.lyx.org Git - lyx.git/blobdiff - src/Text.h
Transfer current_font and real_current_font from Text to Cursor.
[lyx.git] / src / Text.h
index f0d75fa8efedea35f08fd863f4c56847788cb9d7..b7764d7d8081cf27a65e617d1085c362cbf15938 100644 (file)
@@ -38,7 +38,6 @@ class Inset;
 class Color_color;
 class Cursor;
 class PainterInfo;
-class Row;
 class Spacing;
 
 
@@ -169,8 +168,6 @@ public:
        ///
        void setCursorIntern(Cursor & cur, pit_type par,
                 pos_type pos, bool setfont = true, bool boundary = false);
-       ///
-       void setCurrentFont(Cursor & cur);
 
        ///
        void recUndo(Cursor & cur, pit_type first, pit_type last) const;
@@ -256,13 +253,6 @@ public:
        /// return true if this is the main text
        bool isMainText(Buffer const &) const;
 
-       /// is this row the last in the text?
-       /// FIXME: move to TextMetrics.
-       bool isLastRow(pit_type pit, Row const & row) const;
-       /// is this row the first in the text?
-       /// FIXME: move to TextMetrics.
-       bool isFirstRow(pit_type pit, Row const & row) const;
-
        ///
        double spacing(Buffer const & buffer, Paragraph const & par) const;
        /// make a suggestion for a label
@@ -299,10 +289,6 @@ public:
        void deleteEmptyParagraphMechanism(pit_type first, pit_type last, bool trackChanges);
 
 public:
-       /// the current font settings
-       Font current_font;
-       /// the current font
-       Font real_current_font;
        ///
        int background_color_;