X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetspecialchar.C;h=5de4d19e84d49899b586f4d5404a6485692eadbe;hb=b922cdd796f9e4b9a46a79808cdee596e04903eb;hp=0524855dc050f543e523a4e94337d79f5377ec68;hpb=922ed31d7aff55d7ea764ec89aa1d9fd77c53261;p=lyx.git diff --git a/src/insets/insetspecialchar.C b/src/insets/insetspecialchar.C index 0524855dc0..5de4d19e84 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,6 +319,18 @@ 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::isLetter() const +{ + return kind_ == HYPHENATION || kind_ == LIGATURE_BREAK; +} + + +bool InsetSpecialChar::isSpace() const +{ + return kind_ == PROTECTED_SEPARATOR; +}