#ifndef LYXFONT_H
#define LYXFONT_H
-#ifdef __GNUG__
-#pragma interface
-#endif
-
#include <iosfwd>
#include "LString.h"
///
EUFRAK_FAMILY,
///
+ WASY_FAMILY,
+ ///
INHERIT_FAMILY,
///
IGNORE_FAMILY,
void reduce(LyXFont const & tmplt);
/// Realize font from a template (INHERIT are realized)
-#ifndef INHERIT_LANGUAGE
LyXFont & realize(LyXFont const & tmplt);
-#else
- LyXFont & realize(LyXFont const & tmplt, Language const * language);
-#endif
/// Is a given font fully resolved?
bool resolved() const;
LyXFont & lyxRead(LyXLex &);
/// Writes the changes from this font to orgfont in .lyx format in file
-#ifndef INHERIT_LANGUAGE
void lyxWriteChanges(LyXFont const & orgfont, std::ostream &) const;
-#else
- void lyxWriteChanges(LyXFont const & orgfont, Language const * doclang,
- std::ostream &) const;
-#endif
/** Writes the head of the LaTeX needed to change to this font.
Writes to string, the head of the LaTeX needed to change
/// Converts logical attributes to concrete shape attribute
LyXFont::FONT_SHAPE realShape() const;
-private:
- ///
+
+ /** Compaq cxx 6.5 requires that the definition be public so that
+ it can compile operator==()
+ */
struct FontBits {
- ///
- bool operator==(FontBits const & fb1) const;
- ///
- bool operator!=(FontBits const & fb1) const;
///
FONT_FAMILY family;
///
///
FONT_MISC_STATE number;
};
+private:
///
FontBits bits;
case LyXFont::CMEX_FAMILY:
case LyXFont::MSA_FAMILY:
case LyXFont::MSB_FAMILY:
+ case LyXFont::WASY_FAMILY:
return true;
default:
return false;
///
std::ostream & operator<<(std::ostream &, LyXFont::FONT_MISC_STATE);
+bool operator==(LyXFont::FontBits const & lhs, LyXFont::FontBits const & rhs);
+
+inline
+bool operator!=(LyXFont::FontBits const & lhs, LyXFont::FontBits const & rhs)
+{
+ return !(lhs == rhs);
+}
+
///
inline
bool operator==(LyXFont const & font1, LyXFont const & font2)
{
return !(font1 == font2);
}
+
#endif