]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetVSpace.h
Use new display() values to remove some inset hardcoding.
[features.git] / src / insets / InsetVSpace.h
index e065462ced23ba8cf5ec92564c3cbd8854dc20c6..42d76bc9971a73df6f47c6a2018d4bbfd0923955 100644 (file)
@@ -32,22 +32,23 @@ public:
        ///
        bool hasSettings() const { return true; }
        ///
-       docstring contextMenuName() const;
+       bool clickable(BufferView const &, int, int) const { return true; }
+       ///
+       std::string contextMenuName() const;
        ///
        static void string2params(std::string const &, VSpace &);
        ///
        static std::string params2string(VSpace const &);
-       ///
-       bool clickable(int, int) const { return true; }
 private:
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       int latex(odocstream &, OutputParams const &) const;
+       void latex(otexstream &, OutputParams const &) const;
        ///
-       int plaintext(odocstream &, OutputParams const &) const;
+       int plaintext(odocstringstream & ods, OutputParams const & op,
+                     size_t max_length = INT_MAX) const;
        ///
        int docbook(odocstream &, OutputParams const &) const;
        /// Note that this returns the inset rather than writing it,
@@ -61,7 +62,7 @@ private:
        ///
        void write(std::ostream & os) const;
        ///
-       DisplayType display() const { return AlignCenter; }
+       DisplayType display() const { return Display; }
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///