]> git.lyx.org Git - lyx.git/blobdiff - src/FontList.h
Pure HTML output for math macros.
[lyx.git] / src / FontList.h
index e99c4a9fa5839c1472d782b3c0937be591dafb6b..388a04ee21c33c58382e463dff947ae0fd76d6e5 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.
        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_;
 };
 
        allowed in these font tables.
        */
        Font font_;
 };
 
+class LaTeXFeatures;
+
 ///
 class FontList
 {
 ///
 class FontList
 {
@@ -82,6 +84,8 @@ public:
        ///
        bool empty() const { return list_.empty(); }
        ///
        ///
        bool empty() const { return list_.empty(); }
        ///
+       void clear() { list_.clear(); }
+       ///
        void erase(pos_type pos);
        ///
        iterator fontIterator(pos_type pos);
        void erase(pos_type pos);
        ///
        iterator fontIterator(pos_type pos);
@@ -92,15 +96,26 @@ public:
        ///
        void set(pos_type pos, Font const & font);
        ///
        ///
        void set(pos_type pos, Font const & font);
        ///
+       void setRange(
+               pos_type startpos,
+               pos_type endpos,
+               Font const & font);
+       ///
        void increasePosAfterPos(pos_type pos);
        ///
        void decreasePosAfterPos(pos_type pos);
 
        void increasePosAfterPos(pos_type pos);
        ///
        void decreasePosAfterPos(pos_type pos);
 
+       ///
+       void setMisspelled(
+               pos_type startpos,
+               pos_type endpos,
+               bool misspelled);
+
        /// Returns the height of the highest font in range
        /// Returns the height of the highest font in range
-       Font_size highestInRange(
+       FontSize highestInRange(
                pos_type startpos,
                pos_type endpos,
                pos_type startpos,
                pos_type endpos,
-               Font_size def_size
+               FontSize def_size
                ) const;
 
        /// is there a font change in middle of the word?
                ) const;
 
        /// is there a font change in middle of the word?
@@ -109,6 +124,9 @@ public:
                int len ///< length of the range to check.
                ) const;
 
                int len ///< length of the range to check.
                ) const;
 
+       ///
+       void validate(LaTeXFeatures & features) const;
+
 private:
        ///
        List list_;
 private:
        ///
        List list_;