]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetspecialchar.C
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insetspecialchar.C
index 4e913c1c32afa33e7126681b24f946c57452644f..0c03dde33cea8adad5b0a3fd02d71bdd545a99de 100644 (file)
@@ -20,6 +20,7 @@
 #include "Painter.h"
 #include "font.h"
 #include "lyxlex.h"
+#include "lyxfont.h"
 
 using std::ostream;
 using std::max;
@@ -318,11 +319,17 @@ Inset * InsetSpecialChar::clone(Buffer const &, bool) const
 void InsetSpecialChar::validate(LaTeXFeatures & features) const
 {
        if (kind_ == MENU_SEPARATOR) {
-               features.lyxarrow = true;
+               features.require("lyxarrow");
        }
 }
 
 
+bool InsetSpecialChar::isChar() const
+{
+       return true;
+}
+
+
 bool InsetSpecialChar::isLetter() const
 {
        return kind_ == HYPHENATION || kind_ == LIGATURE_BREAK;
@@ -333,3 +340,9 @@ bool InsetSpecialChar::isSpace() const
 {
        return kind_ == PROTECTED_SEPARATOR;
 }
+
+
+bool InsetSpecialChar::isLineSeparator() const
+{
+       return kind_ == HYPHENATION || kind_ == MENU_SEPARATOR;
+}