]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetVSpace.h
Forgot to restore this before committing 18494. This fixes bug 3725.
[lyx.git] / src / insets / InsetVSpace.h
index 3614846779e65f244a1527387fdc44983acfdfa3..daaa02f713d29d95776e9f7ac56425ec173e7bbf 100644 (file)
@@ -20,7 +20,7 @@
 
 namespace lyx {
 
-class InsetVSpace : public InsetOld {
+class InsetVSpace : public Inset {
 public:
        ///
        InsetVSpace() {}
@@ -46,16 +46,16 @@ public:
        ///
        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<InsetBase> doClone() const;
+       virtual std::auto_ptr<Inset> doClone() 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_; }
        ///