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
///
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_;