]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetVSpace.h
* src/insets/InsetInclude.cpp: formatting (in response to r18445)
[lyx.git] / src / insets / InsetVSpace.h
index 12c6f123358e215ebd1c4378651dabc63732085f..daaa02f713d29d95776e9f7ac56425ec173e7bbf 100644 (file)
 
 
 #include "Inset.h"
-#include "vspace.h"
+#include "VSpace.h"
 #include "MailInset.h"
 
 
 namespace lyx {
 
-class InsetVSpace : public InsetOld {
+class InsetVSpace : public Inset {
 public:
        ///
        InsetVSpace() {}
@@ -42,20 +42,20 @@ public:
        int docbook(Buffer const &, odocstream &,
                    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<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_; }
        ///