]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNewline.h
* the old cursor is stored before dispatch and then used after moving
[lyx.git] / src / insets / InsetNewline.h
index adf37d4aa39d944db352a3665051389867dc94fa..54ca6699df5fce9efc2fe0d4bebf370457070451 100644 (file)
 
 namespace lyx {
 
-class InsetNewline : public InsetOld {
+class InsetNewline : public Inset {
 public:
 
        InsetNewline() {}
 
-       InsetBase::Code lyxCode() const { return InsetBase::NEWLINE_CODE; }
+       Inset::Code lyxCode() const { return Inset::NEWLINE_CODE; }
 
        bool metrics(MetricsInfo &, Dimension &) const;
 
@@ -35,7 +35,7 @@ public:
 
        int docbook(Buffer const &, odocstream &, OutputParams const &) const;
 
-       virtual void read(Buffer const &, LyXLex & lex);
+       virtual void read(Buffer const &, Lexer & lex);
 
        virtual void write(Buffer const & buf, std::ostream & os) const;
        /// We don't need \begin_inset and \end_inset
@@ -44,9 +44,9 @@ public:
        // a line separator)?
        bool isSpace() const;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const
+       virtual std::auto_ptr<Inset> doClone() const
        {
-               return std::auto_ptr<InsetBase>(new InsetNewline);
+               return std::auto_ptr<Inset>(new InsetNewline);
        }
 };