#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() {}
~InsetVSpace();
/// How much?
VSpace const & space() const { return space_; }
+ ///
+ InsetCode lyxCode() const { return VSPACE_CODE; }
+ ///
+ void edit(Cursor & cur, bool front,
+ EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
+ ///
+ EDITABLE editable() const { return IS_EDITABLE; }
+ ///
+ docstring contextMenu(BufferView const & bv, int x, int y) const;
+ ///
+ static void string2params(std::string const &, VSpace &);
+ ///
+ static std::string params2string(VSpace const &);
private:
///
void metrics(MetricsInfo & mi, Dimension & dim) const;
///
void doDispatch(Cursor & cur, FuncRequest & cmd);
///
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ ///
Inset * clone() const { return new InsetVSpace(*this); }
///
docstring const label() const;
};
-class InsetVSpaceMailer : public MailInset {
-public:
- ///
- InsetVSpaceMailer(InsetVSpace & inset);
- ///
- virtual Inset & inset() const { return inset_; }
- ///
- virtual std::string const & name() const { return name_; }
- ///
- virtual std::string const inset2string(Buffer const &) const;
- ///
- static void string2params(std::string const &, VSpace &);
- ///
- static std::string const params2string(VSpace const &);
-private:
- ///
- static std::string const name_;
- ///
- InsetVSpace & inset_;
-};
-
-
} // namespace lyx
#endif