#endif
class LyXLex;
+class BufferParams;
///
class LyXFont {
LyXFont(LyXFont const & x);
/// Shortcut initialization
+ explicit
LyXFont(LyXFont::FONT_INIT1);
/// Shortcut initialization
+ explicit
LyXFont(LyXFont::FONT_INIT2);
/// Shortcut initialization
+ explicit
LyXFont(LyXFont::FONT_INIT3);
/// Shortcut initialization
LyXFont(LyXFont::FONT_INIT1, Language const * l);
LyXFont const & next) const;
/// Build GUI description of font state
- string stateText() const;
+ string stateText(BufferParams * params) const;
///
LColor::color realColor() const;
///
friend
bool operator!=(LyXFont const & font1, LyXFont const & font2) {
- return font1.bits != font2.bits ||
- font1.lang != font2.lang;
+ return !(font1 == font2);
}
/// compares two fonts, ignoring the setting of the Latex part.
lang = l;
}
+
inline
LyXFont & LyXFont::operator=(LyXFont const & x)
{
inline
bool LyXFont::isRightToLeft() const
{
- return lang->RightToLeft;
+ return lang->RightToLeft();
}
inline
bool LyXFont::isVisibleRightToLeft() const
{
- return (lang->RightToLeft && latex() != ON);
+ return (lang->RightToLeft() && latex() != ON);
}