]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetVSpace.h
BUG 3598: display framed and shaded notes in a separate paragraph, require package...
[lyx.git] / src / insets / InsetVSpace.h
index e3a22dfcd7c14fcd07f0de2f24e8948ada707ef7..daaa02f713d29d95776e9f7ac56425ec173e7bbf 100644 (file)
 #define INSET_VSPACE_H
 
 
-#include "InsetBase.h"
+#include "Inset.h"
 #include "VSpace.h"
 #include "MailInset.h"
 
 
 namespace lyx {
 
-class InsetVSpace : public InsetBase {
+class InsetVSpace : public Inset {
 public:
        ///
        InsetVSpace() {}
@@ -46,7 +46,7 @@ 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_; }
 
@@ -55,7 +55,7 @@ protected:
        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_; }
        ///