]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSpecialChar.cpp
* add PreBabelPreamble to Language definition (fixes #4786).
[lyx.git] / src / insets / InsetSpecialChar.cpp
index ef3826d97563b32125611b8e5a587a4a18884def..91c13645b535af7e541e949f2c71748b8fce16b2 100644 (file)
@@ -19,6 +19,7 @@
 #include "LaTeXFeatures.h"
 #include "Lexer.h"
 #include "MetricsInfo.h"
+#include "output_xhtml.h"
 
 #include "frontends/FontMetrics.h"
 #include "frontends/Painter.h"
@@ -291,26 +292,26 @@ int InsetSpecialChar::docbook(odocstream & os, OutputParams const &) const
 }
 
 
-docstring InsetSpecialChar::xhtml(odocstream & os, OutputParams const &) const
+docstring InsetSpecialChar::xhtml(XHTMLStream & xs, OutputParams const &) const
 {
        switch (kind_) {
        case HYPHENATION:
        case LIGATURE_BREAK:
                break;
        case END_OF_SENTENCE:
-               os << '.';
+               xs << '.';
                break;
        case LDOTS:
-               os << "&hellip;";
+               xs << XHTMLStream::NextRaw() << "&hellip;";
                break;
        case MENU_SEPARATOR:
-               os << "&rArr;";
+               xs << XHTMLStream::NextRaw() << "&rArr;";
                break;
        case SLASH:
-               os << "&frasl;";
+               xs << XHTMLStream::NextRaw() << "&frasl;";
                break;
        case NOBREAKDASH:
-               os << '-';
+               xs << '-';
                break;
        }
        return docstring();
@@ -332,12 +333,6 @@ void InsetSpecialChar::validate(LaTeXFeatures & features) const
 }
 
 
-bool InsetSpecialChar::isChar() const
-{
-       return true;
-}
-
-
 bool InsetSpecialChar::isLetter() const
 {
        return kind_ == HYPHENATION || kind_ == LIGATURE_BREAK;