]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetVSpace.h
Fix trailing whitespace in cpp files.
[lyx.git] / src / insets / InsetVSpace.h
index 916b440fa5418e35ffdc80082660be0f592834c8..21afbcd03605392a1f999bf0e46fc4a9c656d570 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() {}
+       InsetVSpace() : Inset(0) {}
        ///
        InsetVSpace(VSpace const &);
+       /// How much?
+       VSpace const & space() const { return space_; }
        ///
-       ~InsetVSpace();
-       ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
-       ///
-       Dimension const dimension(BufferView const &) const { return dim_; };
-       ///
-       void draw(PainterInfo & pi, int x, int y) const;
+       InsetCode lyxCode() const { return VSPACE_CODE; }
        ///
-       int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+       bool hasSettings() const { return true; }
        ///
-       int plaintext(Buffer const &, odocstream &,
-                     OutputParams const &) const;
+       bool clickable(BufferView const &, int, int) const { return true; }
        ///
-       int docbook(Buffer const &, odocstream &,
-                   OutputParams const &) const;
+       std::string contextMenuName() const;
        ///
-       void read(Buffer const &, Lexer & lex);
+       static void string2params(std::string const &, VSpace &);
        ///
-       void write(Buffer const & buf, std::ostream & os) const;
+       static std::string params2string(VSpace const &);
+private:
        ///
-       DisplayType display() const { return AlignCenter; }
-       /// How much?
-       VSpace const & space() const { return space_; }
-
-protected:
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
-       virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
-
-private:
-       virtual Inset * clone() const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
-       docstring const label() const;
-
+       void latex(otexstream &, OutputParams const &) const;
        ///
-       VSpace space_;
+       int plaintext(odocstringstream & ods, OutputParams const & op,
+                     size_t max_length = INT_MAX) const;
        ///
-       mutable Dimension dim_;
-};
-
-
-class InsetVSpaceMailer : public MailInset {
-public:
+       int docbook(odocstream &, OutputParams const &) const;
+       /// Note that this returns the inset rather than writing it,
+       /// so it will actually be written after the present paragraph.
+       /// The normal case is that this inset will be on a line by
+       /// itself, and in that case the present paragraph will not,
+       /// in fact, appear at all.
+       docstring xhtml(XHTMLStream &, 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_;
 };