X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetspecialchar.C;h=0c03dde33cea8adad5b0a3fd02d71bdd545a99de;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=4e913c1c32afa33e7126681b24f946c57452644f;hpb=ee7037edbb0e4e8e78682baf02c1bc53da41d1fa;p=lyx.git diff --git a/src/insets/insetspecialchar.C b/src/insets/insetspecialchar.C index 4e913c1c32..0c03dde33c 100644 --- a/src/insets/insetspecialchar.C +++ b/src/insets/insetspecialchar.C @@ -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; +}