]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetVSpace.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetVSpace.h
index adf601224925a00dd780435e004fd627daf16af0..7d511d9b223638c82201567548b4efd0c143c081 100644 (file)
@@ -29,24 +29,24 @@ 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 &, 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_; }
 
@@ -55,7 +55,7 @@ protected:
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
 
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
        ///
        docstring const label() const;