X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFloatList.h;h=06004634f2edcee802f1b0134be446a8d3c020cb;hb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;hp=c9c1048f317bea50661ced78204eac431e261604;hpb=73849af5df4d92146bf7c57b489f30d698884401;p=features.git diff --git a/src/insets/InsetFloatList.h b/src/insets/InsetFloatList.h index c9c1048f31..06004634f2 100644 --- a/src/insets/InsetFloatList.h +++ b/src/insets/InsetFloatList.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Lars Gullik Bjønnes + * \author Lars Gullik Bjønnes * * Full author contact details are available in file CREDITS. */ @@ -27,33 +27,36 @@ public: /// InsetFloatList(std::string const & type); /// - docstring const getScreenLabel(Buffer const &) const; + docstring screenLabel() const; /// EDITABLE editable() const { return IS_EDITABLE; } /// - Inset::Code lyxCode() const; + InsetCode lyxCode() const { return FLOAT_LIST_CODE; } /// DisplayType display() const { return AlignCenter; } /// - void write(Buffer const &, std::ostream &) const; + void write(std::ostream &) const; /// - void read(Buffer const &, Lexer &); + void read(Lexer &); /// - int latex(Buffer const &, odocstream &, - OutputParams const &) const; + int latex(odocstream &, OutputParams const &) const; /// - int docbook(Buffer const &, odocstream &, - OutputParams const &) const { return 0; } + int docbook(odocstream &, OutputParams const &) const { return 0; } /// - int plaintext(Buffer const &, odocstream &, - OutputParams const & runparams) const; + int plaintext(odocstream &, OutputParams const & runparams) const; /// void validate(LaTeXFeatures & features) const; + /// + static ParamInfo const & findInfo(std::string const &); + /// + static std::string defaultCommand() { return "listoftables"; }; + /// + static bool isCompatibleCommand(std::string const & s); private: - virtual std::auto_ptr doClone() const - { - return std::auto_ptr(new InsetFloatList(to_ascii(getParam("type")))); - } + /// + Inset * clone() const { return new InsetFloatList(*this); } + /// + static ParamInfo param_info_; };