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
|
|
|
|
*
|
2002-09-25 14:26:13 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>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:
|
|
|
|
|
///
|
2001-11-27 10:56:14 +00:00
|
|
|
|
InsetFloatList();
|
2001-05-04 10:36:36 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
InsetFloatList(std::string const & type);
|
2001-05-04 10:36:36 +00:00
|
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
|
docstring const getScreenLabel(Buffer const &) const;
|
2001-07-20 14:18:48 +00:00
|
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
|
EDITABLE editable() const { return IS_EDITABLE; }
|
2001-05-04 10:36:36 +00:00
|
|
|
|
///
|
2007-10-16 16:48:21 +00:00
|
|
|
|
InsetCode lyxCode() const { return FLOAT_LIST_CODE; }
|
2001-05-04 10:36:36 +00:00
|
|
|
|
///
|
2007-05-18 14:32:29 +00:00
|
|
|
|
DisplayType display() const { return AlignCenter; }
|
2003-10-22 10:22:09 +00:00
|
|
|
|
///
|
2003-08-28 07:41:31 +00:00
|
|
|
|
void write(Buffer const &, std::ostream &) const;
|
2001-05-04 10:36:36 +00:00
|
|
|
|
///
|
2007-04-26 11:30:54 +00:00
|
|
|
|
void read(Buffer const &, Lexer &);
|
2001-05-04 10:36:36 +00:00
|
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
|
int latex(Buffer const &, odocstream &,
|
2007-05-28 22:27:45 +00:00
|
|
|
|
OutputParams const &) const;
|
2001-05-04 10:36:36 +00:00
|
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
|
int docbook(Buffer const &, odocstream &,
|
2007-05-28 22:27:45 +00:00
|
|
|
|
OutputParams const &) const { return 0; }
|
2001-05-04 10:36:36 +00:00
|
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
|
int plaintext(Buffer const &, odocstream &,
|
2007-05-28 22:27:45 +00:00
|
|
|
|
OutputParams const & runparams) const;
|
2002-04-04 14:39:55 +00:00
|
|
|
|
///
|
|
|
|
|
void validate(LaTeXFeatures & features) const;
|
2004-11-23 23:04:52 +00:00
|
|
|
|
private:
|
2007-08-30 18:03:17 +00:00
|
|
|
|
virtual Inset * clone() const
|
2004-11-23 23:04:52 +00:00
|
|
|
|
{
|
2007-08-30 18:03:17 +00:00
|
|
|
|
return new InsetFloatList(to_ascii(getParam("type")));
|
2004-11-23 23:04:52 +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
|