X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFontList.h;h=2b09c11fb41c09d2019dfe5ed46a1c078fa9a327;hb=d0748cd69ccaf025ec3ebe376811ed29c5580b2b;hp=86824bb55da5afaa56ccca16a1cd93a05a1ec1c2;hpb=4d9007bd61e41bad94b182e806702b6bbe5ea28c;p=lyx.git diff --git a/src/FontList.h b/src/FontList.h index 86824bb55d..2b09c11fb4 100644 --- a/src/FontList.h +++ b/src/FontList.h @@ -56,21 +56,13 @@ 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 matchFT -{ -public: - /// used by lower_bound and upper_bound - int operator()(FontTable const & a, FontTable const & b) const { - return a.pos() < b.pos(); - } -}; +class LaTeXFeatures; /// class FontList @@ -92,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); /// @@ -106,6 +100,9 @@ public: /// void decreasePosAfterPos(pos_type pos); + /// + void validate(LaTeXFeatures & features) const; + private: /// List list_;