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