2001-05-04 10:36:36 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-25 14:26:13 +00:00
|
|
|
/**
|
2007-04-25 01:24:38 +00:00
|
|
|
* \file InsetFloatList.h
|
2002-09-25 14:26:13 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-05-04 10:36:36 +00:00
|
|
|
*
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author Lars Gullik Bjønnes
|
2002-03-21 17:09:55 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2002-09-25 14:26:13 +00:00
|
|
|
*/
|
2001-05-04 10:36:36 +00:00
|
|
|
|
|
|
|
#ifndef INSET_FLOATLIST_H
|
|
|
|
#define INSET_FLOATLIST_H
|
|
|
|
|
|
|
|
|
2007-04-25 01:24:38 +00:00
|
|
|
#include "InsetCommand.h"
|
2001-05-04 10:36:36 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
2001-05-04 10:36:36 +00:00
|
|
|
/** Used to insert table of contents
|
|
|
|
*/
|
2001-11-27 10:56:14 +00:00
|
|
|
class InsetFloatList : public InsetCommand {
|
2001-05-04 10:36:36 +00:00
|
|
|
public:
|
|
|
|
///
|
2019-09-17 21:06:18 +00:00
|
|
|
explicit InsetFloatList(Buffer *);
|
2001-05-04 10:36:36 +00:00
|
|
|
///
|
2009-11-08 16:10:34 +00:00
|
|
|
InsetFloatList(Buffer *, std::string const & type);
|
2010-10-27 21:35:13 +00:00
|
|
|
|
|
|
|
/// \name Public functions inherited from Inset class
|
|
|
|
//@{
|
2001-07-20 14:18:48 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
InsetCode lyxCode() const override { return FLOAT_LIST_CODE; }
|
2001-05-04 10:36:36 +00:00
|
|
|
///
|
2021-07-11 22:07:59 +00:00
|
|
|
int rowFlags() const override { return Display; }
|
2003-10-22 10:22:09 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void write(std::ostream &) const override;
|
2001-05-04 10:36:36 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void read(Lexer &) override;
|
2001-05-04 10:36:36 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void latex(otexstream &, OutputParams const &) const override;
|
2001-05-04 10:36:36 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void docbook(XMLStream &, OutputParams const &) const override { return; }
|
2001-05-04 10:36:36 +00:00
|
|
|
///
|
2013-03-08 19:52:18 +00:00
|
|
|
int plaintext(odocstringstream & ods, OutputParams const & op,
|
2020-10-01 07:42:11 +00:00
|
|
|
size_t max_length = INT_MAX) const override;
|
2002-04-04 14:39:55 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
docstring xhtml(XMLStream &, OutputParams const &) const override;
|
2010-01-01 02:41:26 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void doDispatch(Cursor & cur, FuncRequest & cmd) override;
|
2012-02-15 09:42:13 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
bool clickable(BufferView const &, int, int) const override { return true; }
|
2012-02-15 09:42:13 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void validate(LaTeXFeatures & features) const override;
|
2010-10-27 21:35:13 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/// \name Static public methods obligated for InsetCommand derived classes
|
|
|
|
//@{
|
2007-10-25 04:13:56 +00:00
|
|
|
///
|
2008-02-23 22:01:02 +00:00
|
|
|
static ParamInfo const & findInfo(std::string const &);
|
2007-10-25 04:13:56 +00:00
|
|
|
///
|
2010-01-01 02:41:26 +00:00
|
|
|
static std::string defaultCommand() { return "listoftables"; }
|
2007-10-25 04:13:56 +00:00
|
|
|
///
|
|
|
|
static bool isCompatibleCommand(std::string const & s);
|
2010-10-27 21:35:13 +00:00
|
|
|
//@}
|
|
|
|
|
2004-11-23 23:04:52 +00:00
|
|
|
private:
|
2010-10-27 21:35:13 +00:00
|
|
|
/// \name Private functions inherited from Inset class
|
|
|
|
//@{
|
2008-02-23 22:01:02 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
Inset * clone() const override { return new InsetFloatList(*this); }
|
2013-03-27 23:01:33 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
docstring layoutName() const override;
|
2010-10-27 21:35:13 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/// \name Private functions inherited from InsetCommand class
|
|
|
|
//@{
|
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
docstring screenLabel() const override;
|
2010-10-27 21:35:13 +00:00
|
|
|
//@}
|
2001-05-04 10:36:36 +00:00
|
|
|
};
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
2001-05-04 10:36:36 +00:00
|
|
|
#endif
|