]> 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 4724c7b5670ff6abd7ce8906374c2d0dfb3caab7..42d76bc9971a73df6f47c6a2018d4bbfd0923955 100644 (file)
@@ -32,6 +32,8 @@ public:
        ///
        bool hasSettings() const { return true; }
        ///
+       bool clickable(BufferView const &, int, int) const { return true; }
+       ///
        std::string contextMenuName() const;
        ///
        static void string2params(std::string const &, VSpace &);
@@ -45,7 +47,8 @@ private:
        ///
        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,
@@ -59,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);
        ///