]> 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 27eaa25f3478bdfb7bc3e3f759e476f1e4a91888..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;
@@ -323,6 +324,12 @@ void InsetSpecialChar::validate(LaTeXFeatures & features) const
 }
 
 
+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;
+}