X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFloatList.h;h=9c8d0f34125f2ae3e9b5c0ef4f5da46163080c3c;hb=12c7e7dde3851ad894380fd42ba741dd3d0cbcc7;hp=e837889221e679fd9813365107af196148b54039;hpb=897436efbb9bd641b61467d185a2dfae9839e575;p=lyx.git diff --git a/src/insets/InsetFloatList.h b/src/insets/InsetFloatList.h index e837889221..9c8d0f3412 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. */ @@ -23,37 +23,57 @@ namespace lyx { class InsetFloatList : public InsetCommand { public: /// - InsetFloatList(); + InsetFloatList(Buffer *); /// - InsetFloatList(std::string const & type); - /// - docstring const getScreenLabel(Buffer const &) const; - /// - EDITABLE editable() const { return IS_EDITABLE; } + InsetFloatList(Buffer *, std::string const & type); + + /// \name Public functions inherited from Inset class + //@{ /// - 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(Lexer &); /// - void read(Buffer const &, Lexer &); + int latex(odocstream &, OutputParams const &) const; /// - int latex(Buffer const &, odocstream &, - OutputParams const &) const; + int docbook(odocstream &, OutputParams const &) const { return 0; } /// - int docbook(Buffer const &, odocstream &, - OutputParams const &) const { return 0; } + int plaintext(odocstream &, OutputParams const & runparams) const; /// - int plaintext(Buffer const &, odocstream &, - OutputParams const & runparams) const; + docstring xhtml(XHTMLStream &, OutputParams const &) const; /// void validate(LaTeXFeatures & features) const; + //@} + + /// \name Static public methods obligated for InsetCommand derived classes + //@{ + /// + 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")))); - } + /// \name Private functions inherited from Inset class + //@{ + /// + Inset * clone() const { return new InsetFloatList(*this); } + //@} + + /// \name Private functions inherited from InsetCommand class + //@{ + /// + docstring screenLabel() const; + //@} + + /// + static ParamInfo param_info_; };