X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFontList.h;h=6400f97524bf0c9b33a1cbfdd7761fd23f213a28;hb=e8c932ff842ced0b26c205ed6983102b6e7e50c2;hp=d21b74c03e273663f18c5c540e590e2e6f56aea0;hpb=2f72a0a7210e90d9f9845b73379376c4f2778180;p=lyx.git diff --git a/src/FontList.h b/src/FontList.h index d21b74c03e..6400f97524 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,20 +84,30 @@ 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); /// + void setRange( + pos_type startpos, + pos_type endpos, + Font const & font); + /// void increasePosAfterPos(pos_type pos); /// void decreasePosAfterPos(pos_type pos); + /// + void validate(LaTeXFeatures & features) const; + private: /// List list_;