]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetVSpace.h
Remove all BufferParam arguments in InsetXXX methods (since insets know about their...
[lyx.git] / src / insets / InsetVSpace.h
index 38bc2bf9bd5ddd8f8b9c5e5c53473c011d42b322..86ed8833b51d391e692c1c486f1751e0270fe004 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
 #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() {}
@@ -33,12 +32,13 @@ public:
        ///
        InsetCode lyxCode() const { return VSPACE_CODE; }
        ///
-       void edit(Cursor & cur, bool front,
-               EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
+       bool hasSettings() const { return true; }
+       ///
+       docstring contextMenu(BufferView const & bv, int x, int y) const;
        ///
-       EDITABLE editable() const { return IS_EDITABLE; }
+       static void string2params(std::string const &, VSpace &);
        ///
-       virtual docstring contextMenu(BufferView const & bv, int x, int y) const;
+       static std::string params2string(VSpace const &);
 private:
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
@@ -51,6 +51,8 @@ private:
        ///
        int docbook(odocstream &, OutputParams const &) const;
        ///
+       docstring xhtml(odocstream &, OutputParams const &) const;
+       ///
        void read(Lexer & lex);
        ///
        void write(std::ostream & os) const;
@@ -64,31 +66,11 @@ private:
        Inset * clone() const { return new InsetVSpace(*this); }
        ///
        docstring const label() const;
-
        ///
-       VSpace space_;
-};
-
+       bool showInsetDialog(BufferView * bv) 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_;
+       VSpace space_;
 };