X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetVSpace.h;h=7d511d9b223638c82201567548b4efd0c143c081;hb=2c357c1d23b7b83839a9beb8225d4f1ae4f793b4;hp=0d90e65fc35866e1325127b9088647bf2609a694;hpb=00e305c9d9bd8b0ff54b6c58adb6192d5934ed60;p=lyx.git diff --git a/src/insets/InsetVSpace.h b/src/insets/InsetVSpace.h index 0d90e65fc3..7d511d9b22 100644 --- a/src/insets/InsetVSpace.h +++ b/src/insets/InsetVSpace.h @@ -20,7 +20,7 @@ namespace lyx { -class InsetVSpace : public InsetOld { +class InsetVSpace : public Inset { public: /// InsetVSpace() {} @@ -29,33 +29,33 @@ public: /// ~InsetVSpace(); /// - bool metrics(MetricsInfo & mi, Dimension & dim) const; + void metrics(MetricsInfo & mi, Dimension & dim) const; /// void draw(PainterInfo & pi, int x, int y) const; /// 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; /// - void read(Buffer const &, LyXLex & lex); + void read(Buffer const &, Lexer & lex); /// void write(Buffer const & buf, std::ostream & os) const; /// - bool display() const { return true; } + DisplayType display() const { return AlignCenter; } /// How much? VSpace const & space() const { return space_; } protected: /// - virtual void doDispatch(LCursor & cur, FuncRequest & cmd); + virtual void doDispatch(Cursor & cur, FuncRequest & cmd); private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// docstring const label() const; @@ -69,7 +69,7 @@ public: /// InsetVSpaceMailer(InsetVSpace & inset); /// - virtual InsetBase & inset() const { return inset_; } + virtual Inset & inset() const { return inset_; } /// virtual std::string const & name() const { return name_; } ///