]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloatList.h
* Inset: Prepare for an eventual merge of updateLabels() and addToToc()
[lyx.git] / src / insets / InsetFloatList.h
index 5e814726a38a4d6eee3ac40b1aa4a693c7579faa..8471f4333e11625725d84ff2a8da41549b28f84c 100644 (file)
@@ -31,28 +31,34 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetBase::Code lyxCode() const;
+       InsetCode lyxCode() const { return FLOAT_LIST_CODE; }
        ///
-       bool display() const { return true; }
+       DisplayType display() const { return AlignCenter; }
        ///
        void write(Buffer const &, std::ostream &) const;
        ///
-       void read(Buffer const &, LyXLex &);
+       void read(Buffer const &, Lexer &);
        ///
        int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+                 OutputParams const &) const;
        ///
        int docbook(Buffer const &, odocstream &,
-                   OutputParams const &) const { return 0; }
+                   OutputParams const &) const { return 0; }
        ///
        int plaintext(Buffer const &, odocstream &,
-                     OutputParams const & runparams) const;
+                     OutputParams const & runparams) const;
        ///
        void validate(LaTeXFeatures & features) const;
+       ///
+       static CommandInfo const * findInfo(std::string const & cmdName = "");
+       ///
+       static std::string defaultCommand() { return "listoftables"; };
+       ///
+       static bool isCompatibleCommand(std::string const & s);
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const
+       virtual Inset * clone() const
        {
-               return std::auto_ptr<InsetBase>(new InsetFloatList(to_ascii(getParam("type"))));
+               return new InsetFloatList(to_ascii(getParam("type")));
        }
 };