X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FFontList.h;h=6400f97524bf0c9b33a1cbfdd7761fd23f213a28;hb=268ae66e3c7df04effc329373dc887715d9c6f06;hp=582848b5c95a1dcc4ac3c9f4b18b6273e8434c42;hpb=c86e632afa63d938467de4c5a383822d86c5d1d7;p=lyx.git diff --git a/src/FontList.h b/src/FontList.h index 582848b5c9..6400f97524 100644 --- a/src/FontList.h +++ b/src/FontList.h @@ -56,7 +56,7 @@ 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_; @@ -84,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); /// @@ -103,19 +105,6 @@ public: /// void decreasePosAfterPos(pos_type pos); - /// Returns the height of the highest font in range - Font_size highestInRange( - pos_type startpos, - pos_type endpos, - 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;