]> git.lyx.org Git - lyx.git/blobdiff - src/FontList.h
* Paragraph: reserve memory by chunks of 100 chars. This improve the loading of big...
[lyx.git] / src / FontList.h
index 57d6d729508ea36d4d6cc48b59c0f4d799b8716e..582848b5c95a1dcc4ac3c9f4b18b6273e8434c42 100644 (file)
@@ -62,6 +62,8 @@ private:
        Font font_;
 };
 
+class LaTeXFeatures;
+
 ///
 class FontList
 {
@@ -92,6 +94,11 @@ public:
        ///
        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);
@@ -103,6 +110,15 @@ public:
                Font_size def_size
                ) const;
 
+       /// is there a font change in middle of the word?
+       bool hasChangeInRange(
+               pos_type pos, ///< position in the paragraph.
+               int len ///< length of the range to check.
+               ) const;
+
+       ///
+       void validate(LaTeXFeatures & features) const;
+
 private:
        ///
        List list_;