X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFloatList.h;h=32a0dd5c81fdefb72660d276bc1e20cf4f6ac912;hb=b73879691f816b0874d9dec0c09e2db7889c4e8e;hp=125d1609d5247c9b6d967f97b4c1296694e7502a;hpb=8e9410b3d034178f5e391c6cfffca3d65afe59ff;p=lyx.git diff --git a/src/insets/InsetFloatList.h b/src/insets/InsetFloatList.h index 125d1609d5..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,42 +23,62 @@ 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 + //@{ /// 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 latex(otexstream &, OutputParams const &) 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 std::string defaultCommand() { return "listoftables"; } /// static bool isCompatibleCommand(std::string const & s); + //@} + private: + /// \name Private functions inherited from Inset class + //@{ + /// + Inset * clone() const { return new InsetFloatList(*this); } /// - virtual Inset * clone() const - { return new InsetFloatList(to_ascii(getParam("type"))); } + docstring layoutName() const; + //@} + + /// \name Private functions inherited from InsetCommand class + //@{ + /// + docstring screenLabel() const; + //@} + /// static ParamInfo param_info_; };