X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetSpace.h;h=d2a1b6c944cd9cc4762e1d6194f000a0df84242d;hb=0362c6aae73c293d1c20277c12d362acfe0b2ef6;hp=e0c4b65eb246dfd0940d3fbed69ef89ac19c6853;hpb=51fbea02a8f7dc1e360a61bdc95d5ac9200cb5f6;p=lyx.git diff --git a/src/insets/InsetSpace.h b/src/insets/InsetSpace.h index e0c4b65eb2..d2a1b6c944 100644 --- a/src/insets/InsetSpace.h +++ b/src/insets/InsetSpace.h @@ -16,7 +16,7 @@ #define INSET_SPACE_H -#include "InsetBase.h" +#include "Inset.h" namespace lyx { @@ -24,7 +24,7 @@ namespace lyx { class LaTeXFeatures; /// Used to insert different kinds of spaces -class InsetSpace : public InsetBase { +class InsetSpace : public Inset { public: /// The different kinds of spaces we support @@ -56,7 +56,7 @@ public: /// Kind kind() const; /// - bool metrics(MetricsInfo &, Dimension &) const; + void metrics(MetricsInfo &, Dimension &) const; /// void draw(PainterInfo & pi, int x, int y) const; /// @@ -65,18 +65,17 @@ 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; + void textString(Buffer const &, odocstream &) const; /// - InsetBase::Code lyxCode() const { return InsetBase::SPACE_CODE; } + InsetCode lyxCode() const { return SPACE_CODE; } /// We don't need \begin_inset and \end_inset bool directWrite() const { return true; } @@ -88,7 +87,7 @@ public: // a line separator)? bool isSpace() const; private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// And which kind is this? Kind kind_;