]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSpecialChar.h
* src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to
[lyx.git] / src / insets / InsetSpecialChar.h
index 18cbcf8ee13d57f461eab4121af5f139d7e563b1..fc11ce7dd0f7e38c37824dc8bb00dc48168984ea 100644 (file)
@@ -15,7 +15,7 @@
 #define INSET_SPECIALCHAR_H
 
 
-#include "InsetBase.h"
+#include "Inset.h"
 
 
 namespace lyx {
@@ -23,7 +23,7 @@ namespace lyx {
 class LaTeXFeatures;
 
 ///  Used to insert special chars
-class InsetSpecialChar : public InsetBase {
+class InsetSpecialChar : public Inset {
 public:
 
        /// The different kinds of special chars we support
@@ -48,7 +48,7 @@ public:
        ///
        Kind kind() const;
        ///
-       bool metrics(MetricsInfo &, Dimension &) const;
+       void metrics(MetricsInfo &, Dimension &) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -57,18 +57,18 @@ public:
        void read(Buffer const &, Lexer & lex);
        ///
        int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+                 OutputParams const &) const;
        ///
        int plaintext(Buffer const &, odocstream &,
-                     OutputParams const &) const;
+                     OutputParams const &) const;
        ///
        int docbook(Buffer const &, odocstream &,
-                   OutputParams const &) const;
+                   OutputParams const &) const;
        /// the string that is passed to the TOC
        virtual int textString(Buffer const &, odocstream &,
                OutputParams const &) const;
        ///
-       InsetBase::Code lyxCode() const { return InsetBase::SPECIALCHAR_CODE; }
+       Inset::Code lyxCode() const { return Inset::SPECIALCHAR_CODE; }
        /// We don't need \begin_inset and \end_inset
        bool directWrite() const { return true; }
        ///
@@ -81,7 +81,7 @@ public:
        // should we break lines after this inset?
        bool isLineSeparator() const;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
 
        /// And which kind is this?
        Kind kind_;