X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFontList.h;h=61ab2205f244d3d78f122ff7cf13d1d4e560dc6e;hb=e1a685fcb1da65211e9eecd7ed3ac9daf7cd5f22;hp=e99c4a9fa5839c1472d782b3c0937be591dafb6b;hpb=65b3790153aa39d9dbcdf7ce6c24125607a580a7;p=lyx.git diff --git a/src/FontList.h b/src/FontList.h index e99c4a9fa5..61ab2205f2 100644 --- a/src/FontList.h +++ b/src/FontList.h @@ -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,6 +84,8 @@ public: /// bool empty() const { return list_.empty(); } /// + void clear() { list_.clear(); } + /// void erase(pos_type pos); /// iterator fontIterator(pos_type pos); @@ -92,15 +96,20 @@ 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); /// Returns the height of the highest font in range - Font_size highestInRange( + FontSize highestInRange( pos_type startpos, pos_type endpos, - Font_size def_size + FontSize def_size ) const; /// is there a font change in middle of the word? @@ -109,6 +118,9 @@ public: int len ///< length of the range to check. ) const; + /// + void validate(LaTeXFeatures & features) const; + private: /// List list_;