* 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.
*/
class InsetFloatList : public InsetCommand {
public:
///
- InsetFloatList();
+ explicit InsetFloatList(Buffer *);
///
- InsetFloatList(std::string const & type);
+ InsetFloatList(Buffer *, std::string const & type);
+
+ /// \name Public functions inherited from Inset class
+ //@{
+ ///
+ InsetCode lyxCode() const override { return FLOAT_LIST_CODE; }
+ ///
+ int rowFlags() const override { return Display; }
///
- docstring const getScreenLabel(Buffer const &) const;
+ void write(std::ostream &) const override;
///
- EDITABLE editable() const { return IS_EDITABLE; }
+ void read(Lexer &) override;
///
- Inset::Code lyxCode() const;
+ void latex(otexstream &, OutputParams const &) const override;
///
- DisplayType display() const { return AlignCenter; }
+ void docbook(XMLStream &, OutputParams const &) const override { return; }
///
- void write(Buffer const &, std::ostream &) const;
+ int plaintext(odocstringstream & ods, OutputParams const & op,
+ size_t max_length = INT_MAX) const override;
///
- void read(Buffer const &, Lexer &);
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- int latex(Buffer const &, odocstream &,
- OutputParams const &) const;
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
+ ///
+ bool clickable(BufferView const &, int, int) const override { return true; }
+ ///
+ void validate(LaTeXFeatures & features) const override;
+ //@}
+
+ /// \name Static public methods obligated for InsetCommand derived classes
+ //@{
///
- int docbook(Buffer const &, odocstream &,
- OutputParams const &) const { return 0; }
+ static ParamInfo const & findInfo(std::string const &);
///
- int plaintext(Buffer const &, odocstream &,
- OutputParams const & runparams) const;
+ static std::string defaultCommand() { return "listoftables"; }
///
- void validate(LaTeXFeatures & features) const;
+ static bool isCompatibleCommand(std::string const & s);
+ //@}
+
private:
- virtual Inset * clone() const
- {
- return new InsetFloatList(to_ascii(getParam("type")));
- }
+ /// \name Private functions inherited from Inset class
+ //@{
+ ///
+ Inset * clone() const override { return new InsetFloatList(*this); }
+ ///
+ docstring layoutName() const override;
+ //@}
+
+ /// \name Private functions inherited from InsetCommand class
+ //@{
+ ///
+ docstring screenLabel() const override;
+ //@}
};