]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.h
Math.lyx, Tutorial.lyx: fix some typos spotted by a user
[lyx.git] / src / insets / InsetCaption.h
index dc28873fb109acd464d1789f6f7688a0f5ed2186..d792d77640f4cb8b23602f61d3599a02bd7b67d1 100644 (file)
@@ -21,19 +21,21 @@ namespace lyx {
 class InsetCaption : public InsetText {
 public:
        ///
-       InsetCaption(Buffer *);
+       InsetCaption(Buffer *, std::string const &);
        ///
        std::string const & type() const { return type_; }
        ///
+       std::string const & floattype() const { return floattype_; }
+       ///
        docstring layoutName() const;
        /// return the mandatory argument (LaTeX format) only
        void getArgument(otexstream & os, OutputParams const &) const;
-       /// return the optional argument(s) only
-       void getOptArg(otexstream & os, OutputParams const &) const;
        /// return the caption text
        int getCaptionAsPlaintext(odocstream & os, OutputParams const &) const;
        /// return the caption text as HTML
        docstring getCaptionAsHTML(XHTMLStream & os, OutputParams const &) const;
+       ///
+       std::string contextMenuName() const;
 private:
        ///
        void write(std::ostream & os) const;
@@ -61,6 +63,8 @@ private:
        ///
        bool insetAllowed(InsetCode code) const;
        ///
+       void doDispatch(Cursor & cur, FuncRequest & cmd);
+       ///
        bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
        // Update the counters of this inset and of its contents
        void updateBuffer(ParIterator const &, UpdateType);
@@ -88,6 +92,8 @@ private:
        ///
        mutable int labelwidth_;
        ///
+       std::string floattype_;
+       ///
        std::string type_;
        ///
        docstring custom_label_;