]> git.lyx.org Git - lyx.git/blobdiff - src/FontList.h
de.po
[lyx.git] / src / FontList.h
index 57d6d729508ea36d4d6cc48b59c0f4d799b8716e..2b09c11fb41c09d2019dfe5ed46a1c078fa9a327 100644 (file)
@@ -56,12 +56,14 @@ private:
        paragraph or, in the case of nested paragraphs, from the
        layout in the environment one level up until completely
        resolved.
-       The values Font::IGNORE_* and Font::TOGGLE are NOT
+       The values Font::IGNORE_* and FONT_TOGGLE are NOT
        allowed in these font tables.
        */
        Font font_;
 };
 
+class LaTeXFeatures;
+
 ///
 class FontList
 {
@@ -82,13 +84,15 @@ public:
        ///
        bool empty() const { return list_.empty(); }
        ///
+       void clear() { list_.clear(); }
+       ///
        void erase(pos_type pos);
        ///
        iterator fontIterator(pos_type pos);
        ///
        const_iterator fontIterator(pos_type pos) const;
        ///
-       Font & get(pos_type pos);
+       Font const & get(pos_type pos);
        ///
        void set(pos_type pos, Font const & font);
        ///
@@ -96,12 +100,8 @@ public:
        ///
        void decreasePosAfterPos(pos_type pos);
 
-       /// Returns the height of the highest font in range
-       Font_size highestInRange(
-               pos_type startpos,
-               pos_type endpos,
-               Font_size def_size
-               ) const;
+       ///
+       void validate(LaTeXFeatures & features) const;
 
 private:
        ///