]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSpecialChar.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetSpecialChar.cpp
index f58e6c382ca0b8cc9eafd04fb3238cea08441ca9..469e82c1c6712bbcb69cb0adaac560add98b9336 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"
@@ -32,7 +33,7 @@ namespace lyx {
 
 
 InsetSpecialChar::InsetSpecialChar(Kind k)
-       : kind_(k)
+       : Inset(0), kind_(k)
 {}
 
 
@@ -291,28 +292,29 @@ int InsetSpecialChar::docbook(odocstream & os, OutputParams const &) const
 }
 
 
-void 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();
 }