]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetVSpace.h
more latin1..utf8 schanges. all of src/* should be utf8 now
[lyx.git] / src / insets / InsetVSpace.h
index daaa02f713d29d95776e9f7ac56425ec173e7bbf..b4b599feba52db46206982783cbcc850dd205d4f 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() {}
@@ -28,61 +27,49 @@ public:
        InsetVSpace(VSpace const &);
        ///
        ~InsetVSpace();
+       /// How much?
+       VSpace const & space() const { return space_; }
        ///
-       bool 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 std::auto_ptr<Inset> doClone() 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_;
 };