]> 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 e837889221e679fd9813365107af196148b54039..8471f4333e11625725d84ff2a8da41549b28f84c 100644 (file)
@@ -31,7 +31,7 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset::Code lyxCode() const;
+       InsetCode lyxCode() const { return FLOAT_LIST_CODE; }
        ///
        DisplayType display() const { return AlignCenter; }
        ///
@@ -49,10 +49,16 @@ public:
                      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<Inset> doClone() const
+       virtual Inset * clone() const
        {
-               return std::auto_ptr<Inset>(new InsetFloatList(to_ascii(getParam("type"))));
+               return new InsetFloatList(to_ascii(getParam("type")));
        }
 };