]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetVSpace.h
Stupid bug fix.
[lyx.git] / src / insets / InsetVSpace.h
index 7d511d9b223638c82201567548b4efd0c143c081..870e78a4a1eaba80c0018f5bf85e81093920cb7f 100644 (file)
 #ifndef INSET_VSPACE_H
 #define INSET_VSPACE_H
 
-
 #include "Inset.h"
 #include "VSpace.h"
-#include "MailInset.h"
 
 
 namespace lyx {
 
-class InsetVSpace : public Inset {
+class InsetVSpace : public Inset
+{
 public:
        ///
        InsetVSpace() {}
@@ -28,61 +27,49 @@ public:
        InsetVSpace(VSpace const &);
        ///
        ~InsetVSpace();
+       /// How much?
+       VSpace const & space() const { return space_; }
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       InsetCode lyxCode() const { return VSPACE_CODE; }
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
+       void edit(Cursor & cur, bool front,
+               EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
        ///
-       int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       int plaintext(Buffer const &, odocstream &,
-                     OutputParams const &) const;
+       docstring contextMenu(BufferView const & bv, int x, int y) const;
        ///
-       int docbook(Buffer const &, odocstream &,
-                   OutputParams const &) const;
+       static void string2params(std::string const &, VSpace &);
        ///
-       void read(Buffer const &, Lexer & lex);
+       static std::string params2string(VSpace const &);
+private:
        ///
-       void write(Buffer const & buf, std::ostream & os) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
-       DisplayType display() const { return AlignCenter; }
-       /// How much?
-       VSpace const & space() const { return space_; }
-
-protected:
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
-       virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
-
-private:
-       virtual Inset * clone() const;
+       int latex(odocstream &, OutputParams const &) const;
        ///
-       docstring const label() const;
-
+       int plaintext(odocstream &, OutputParams const &) const;
        ///
-       VSpace space_;
-};
-
-
-class InsetVSpaceMailer : public MailInset {
-public:
+       int docbook(odocstream &, OutputParams const &) const;
        ///
-       InsetVSpaceMailer(InsetVSpace & inset);
+       void read(Lexer & lex);
        ///
-       virtual Inset & inset() const { return inset_; }
+       void write(std::ostream & os) const;
        ///
-       virtual std::string const & name() const { return name_; }
+       DisplayType display() const { return AlignCenter; }
        ///
-       virtual std::string const inset2string(Buffer const &) const;
+       void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
-       static void string2params(std::string const &, VSpace &);
+       bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
        ///
-       static std::string const params2string(VSpace const &);
-private:
+       Inset * clone() const { return new InsetVSpace(*this); }
        ///
-       static std::string const name_;
+       docstring const label() const;
+
        ///
-       InsetVSpace & inset_;
+       VSpace space_;
 };