2001-05-04 10:36:36 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-09-25 14:26:13 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file insetfloatlist.h
|
|
|
|
|
* 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
|
|
|
|
*
|
2002-09-25 14:26:13 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
|
*/
|
2001-05-04 10:36:36 +00:00
|
|
|
|
|
|
|
|
|
#ifndef INSET_FLOATLIST_H
|
|
|
|
|
#define INSET_FLOATLIST_H
|
|
|
|
|
|
|
|
|
|
|
2001-11-27 10:56:14 +00:00
|
|
|
|
#include "insetcommand.h"
|
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
|
|
|
|
///
|
2001-11-27 10:56:14 +00:00
|
|
|
|
InsetFloatList(string const & type);
|
2001-05-04 10:36:36 +00:00
|
|
|
|
///
|
2003-02-25 14:51:38 +00:00
|
|
|
|
~InsetFloatList();
|
|
|
|
|
///
|
2003-07-25 17:11:25 +00:00
|
|
|
|
virtual std::auto_ptr<InsetBase> clone() const {
|
|
|
|
|
return std::auto_ptr<InsetBase>(new InsetFloatList(getCmdName()));
|
2001-05-04 10:36:36 +00:00
|
|
|
|
}
|
2001-07-20 14:18:48 +00:00
|
|
|
|
///
|
2003-05-16 07:44:00 +00:00
|
|
|
|
dispatch_result localDispatch(FuncRequest const & cmd);
|
2001-07-20 14:18:48 +00:00
|
|
|
|
///
|
2003-05-16 07:44:00 +00:00
|
|
|
|
string 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
|
|
|
|
///
|
|
|
|
|
bool display() const { return true; }
|
|
|
|
|
///
|
2003-07-25 21:20:24 +00:00
|
|
|
|
InsetOld::Code lyxCode() const;
|
2001-05-04 10:36:36 +00:00
|
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
|
void write(Buffer const *, std::ostream &) const;
|
2001-05-04 10:36:36 +00:00
|
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
|
void read(Buffer const *, LyXLex &);
|
2001-05-04 10:36:36 +00:00
|
|
|
|
///
|
2003-05-23 08:59:47 +00:00
|
|
|
|
int latex(Buffer const *, std::ostream &,
|
|
|
|
|
LatexRunParams const &) const;
|
2001-05-04 10:36:36 +00:00
|
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
|
int linuxdoc(Buffer const *, std::ostream &) const { return 0; }
|
2001-05-04 10:36:36 +00:00
|
|
|
|
///
|
2002-06-24 17:26:15 +00:00
|
|
|
|
int docbook(Buffer const *, std::ostream &, bool) const { return 0; }
|
2001-05-04 10:36:36 +00:00
|
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
|
int ascii(Buffer const *, std::ostream &, int linelen) const;
|
2002-04-04 14:39:55 +00:00
|
|
|
|
///
|
|
|
|
|
void validate(LaTeXFeatures & features) const;
|
2001-05-04 10:36:36 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|