]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfont.h
fix compilation pb ; update eu.po
[lyx.git] / src / lyxfont.h
index 07a0348d80e4ac14af04e85d8a1c6b3d557fe572..86df589be609d14678af1b5925e69c3cae8a555a 100644 (file)
 #include <iosfwd>
 
 #include "LString.h"
-#include "language.h"
 #include "LColor.h"
-
-// It might happen that locale.h defines ON and OFF. This is not good
-// for us, since we use these names below. But of course this is due
-// to some old compilers. Than is broken when it comes to C++ scoping.
-#include "gettext.h" // so that we are sure tht it won't be included
-// later. 
-#ifdef ON
-#undef ON
-#endif
-
-#ifdef OFF
-#undef OFF
-#endif
+#include "language.h"
 
 class LyXLex;
 class BufferParams;
 
+
 ///
 class LyXFont {
 public:
@@ -376,6 +364,33 @@ LyXFont::FONT_SHAPE LyXFont::shape() const
 }
 
 
+inline
+LyXFont::LyXFont()
+       : bits(sane), lang(default_language)
+{}
+
+
+inline
+LyXFont::FONT_FAMILY LyXFont::family() const 
+{
+       return bits.family;
+}
+
+
+inline
+LyXFont::FONT_SERIES LyXFont::series() const
+{
+       return bits.series;
+}
+
+
+inline
+LyXFont::FONT_SIZE LyXFont::size() const
+{
+       return bits.size;
+}
+
+
 inline
 LyXFont::FONT_MISC_STATE LyXFont::emph() const
 {
@@ -383,6 +398,13 @@ LyXFont::FONT_MISC_STATE LyXFont::emph() const
 }
 
 
+inline
+LyXFont::FONT_MISC_STATE LyXFont::noun() const
+{
+       return bits.noun;
+}
+
+
 ///
 std::ostream & operator<<(std::ostream &, LyXFont::FONT_MISC_STATE);