X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFloatList.h;h=32a0dd5c81fdefb72660d276bc1e20cf4f6ac912;hb=815e6c9f2fefccf698f92fb07f9c6a5ba574f65d;hp=e837889221e679fd9813365107af196148b54039;hpb=897436efbb9bd641b61467d185a2dfae9839e575;p=lyx.git diff --git a/src/insets/InsetFloatList.h b/src/insets/InsetFloatList.h index e837889221..32a0dd5c81 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,64 @@ namespace lyx { class InsetFloatList : public InsetCommand { public: /// - InsetFloatList(); + InsetFloatList(Buffer *); /// - InsetFloatList(std::string const & type); + InsetFloatList(Buffer *, std::string const & type); + + /// \name Public functions inherited from Inset class + //@{ + /// + InsetCode lyxCode() const { return FLOAT_LIST_CODE; } /// - docstring const getScreenLabel(Buffer const &) const; + DisplayType display() const { return AlignCenter; } /// - EDITABLE editable() const { return IS_EDITABLE; } + void write(std::ostream &) const; /// - Inset::Code lyxCode() const; + void read(Lexer &); /// - DisplayType display() const { return AlignCenter; } + void latex(otexstream &, OutputParams const &) const; /// - void write(Buffer const &, std::ostream &) const; + int docbook(odocstream &, OutputParams const &) const { return 0; } /// - void read(Buffer const &, Lexer &); + int plaintext(odocstringstream & ods, OutputParams const & op, + size_t max_length = INT_MAX) const; /// - int latex(Buffer const &, odocstream &, - OutputParams const &) const; + docstring xhtml(XHTMLStream &, OutputParams const &) const; /// - int docbook(Buffer const &, odocstream &, - OutputParams const &) const { return 0; } + void doDispatch(Cursor & cur, FuncRequest & cmd); /// - int plaintext(Buffer const &, odocstream &, - OutputParams const & runparams) const; + bool clickable(BufferView const &, int, int) const { return true; } /// 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); } + /// + docstring layoutName() const; + //@} + + /// \name Private functions inherited from InsetCommand class + //@{ + /// + docstring screenLabel() const; + //@} + + /// + static ParamInfo param_info_; };