X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFloatList.h;h=32a0dd5c81fdefb72660d276bc1e20cf4f6ac912;hb=0f5554a8f230b9522ff0a1c6e4e0784333ecfdcd;hp=d699cc7d51c5d1be189b67143f5352b54c45611c;hpb=db8c16d554ebb1dcb319e44d318572de6eff024b;p=lyx.git diff --git a/src/insets/InsetFloatList.h b/src/insets/InsetFloatList.h index d699cc7d51..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,13 +23,12 @@ namespace lyx { class InsetFloatList : public InsetCommand { public: /// - InsetFloatList(); + InsetFloatList(Buffer *); /// - InsetFloatList(std::string const & type); - /// - docstring screenLabel() 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; } /// @@ -39,23 +38,47 @@ public: /// void read(Lexer &); /// - int latex(odocstream &, OutputParams const &) const; + void latex(otexstream &, OutputParams const &) const; /// int docbook(odocstream &, OutputParams const &) const { return 0; } /// - int plaintext(odocstream &, OutputParams const & runparams) const; + int plaintext(odocstringstream & ods, OutputParams const & op, + size_t max_length = INT_MAX) const; + /// + docstring xhtml(XHTMLStream &, OutputParams const &) const; + /// + void doDispatch(Cursor & cur, FuncRequest & cmd); + /// + 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 + //@{ /// - virtual Inset * clone() const - { return new InsetFloatList(to_ascii(getParam("type"))); } + Inset * clone() const { return new InsetFloatList(*this); } + /// + docstring layoutName() const; + //@} + + /// \name Private functions inherited from InsetCommand class + //@{ + /// + docstring screenLabel() const; + //@} + /// static ParamInfo param_info_; };