* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
* \author Jean-Marc Lasgouttes
* \author Angus Leeming
* \author Dekel Tsur
#include "ColorCode.h"
#include "FontInfo.h"
-#include "support/docstream.h"
+#include "support/strfwd.h"
namespace lyx {
///
Language const * language() const { return lang_; }
///
+ void setMisspelled(bool misspelled) { misspelled_ = misspelled; }
+ ///
+ bool isMisspelled() const { return misspelled_; }
+ ///
bool isRightToLeft() const;
///
bool isVisibleRightToLeft() const;
FontInfo bits_;
///
Language const * lang_;
+ ///
+ bool misspelled_;
/// Did latexWriteStartChanges open an encoding environment?
mutable bool open_encoding_;
inline
bool operator==(Font const & font1, Font const & font2)
{
- return font1.bits_ == font2.bits_ && font1.lang_ == font2.lang_;
+ return font1.bits_ == font2.bits_ && font1.lang_ == font2.lang_
+ && font1.misspelled_ == font2.misspelled_;
}
///
void setLyXColor(std::string const &, FontInfo &);
/// Read a font specification from Lexer. Used for layout files.
-FontInfo lyxRead(Lexer &);
+FontInfo lyxRead(Lexer &, FontInfo const & fi = sane_font);
} // namespace lyx