]> 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 a57eb58f5102814aa7d9b0b3bc46a4c3832f1b24..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;
@@ -263,7 +264,7 @@ int InsetSpecialChar::ascii(Buffer const *, ostream & os, int) const
 }
 
 
-int InsetSpecialChar::linuxdoc(Buffer const * buf, ostream & os) const
+int InsetSpecialChar::linuxdoc(Buffer const *, ostream & os) const
 {
        switch (kind_) {
        case HYPHENATION:
@@ -286,7 +287,7 @@ int InsetSpecialChar::linuxdoc(Buffer const * buf, ostream & os) const
 }
 
 
-int InsetSpecialChar::docbook(Buffer const * buf, ostream & os) const
+int InsetSpecialChar::docbook(Buffer const *, ostream & os) const
 {
        switch (kind_) {
        case HYPHENATION:
@@ -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;
+}