]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSpecialChar.h
InsetTabular.cpp: fix #6585 also for wrapped floats - thanks Vincent
[lyx.git] / src / insets / InsetSpecialChar.h
index 7172cf5424483b3ce7e80567dd8c37719d07f6cb..7fff625da0b2a9c8be97ac94dc84923c9a210179 100644 (file)
@@ -6,7 +6,7 @@
  *
  * \author Asger Alstrup Nielsen
  * \author Jean-Marc Lasgouttes
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -45,7 +45,7 @@ public:
        };
 
        ///
-       InsetSpecialChar() {}
+       InsetSpecialChar() : Inset(0) {}
        ///
        explicit InsetSpecialChar(Kind k);
        ///
@@ -64,8 +64,10 @@ public:
        int plaintext(odocstream &, OutputParams const &) const;
        ///
        int docbook(odocstream &, OutputParams const &) const;
+       ///
+       docstring xhtml(XHTMLStream &, OutputParams const &) const;
        /// the string that is passed to the TOC
-       void textString(odocstream &) const;
+       void tocString(odocstream &) const;
        ///
        InsetCode lyxCode() const { return SPECIALCHAR_CODE; }
        /// We don't need \begin_inset and \end_inset
@@ -74,13 +76,13 @@ public:
        void validate(LaTeXFeatures &) const;
 
        // should this inset be handled like a normal charater
-       bool isChar() const;
+       bool isChar() const { return true; }
        /// is this equivalent to a letter?
        bool isLetter() const;
        // should we break lines after this inset?
        bool isLineSeparator() const;
 private:
-       Inset * clone() const;
+       Inset * clone() const { return new InsetSpecialChar(*this); };
 
        /// And which kind is this?
        Kind kind_;