2001-05-04 10:36:36 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of*
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Word Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1996-2001 The LyX Team.
|
|
|
|
*
|
|
|
|
* ====================================================== */
|
|
|
|
|
|
|
|
#ifndef INSET_FLOATLIST_H
|
|
|
|
#define INSET_FLOATLIST_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
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
|
|
|
///
|
2001-07-09 14:19:41 +00:00
|
|
|
Inset * clone(Buffer const &, bool = false) const {
|
2001-11-27 10:56:14 +00:00
|
|
|
return new InsetFloatList(getCmdName());
|
2001-05-04 10:36:36 +00:00
|
|
|
}
|
2001-07-20 14:18:48 +00:00
|
|
|
///
|
2001-07-28 12:24:16 +00:00
|
|
|
string const getScreenLabel(Buffer const *) const;
|
2001-05-04 10:36:36 +00:00
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
void edit(BufferView * bv, int, int, unsigned int);
|
2001-07-20 14:18:48 +00:00
|
|
|
///
|
|
|
|
void edit(BufferView * bv, bool front = true);
|
|
|
|
///
|
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; }
|
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
Inset::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
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
int latex(Buffer const *, std::ostream &, bool, bool) 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
|
|
|
///
|
2001-09-04 11:02:09 +00:00
|
|
|
int docbook(Buffer const *, std::ostream &) 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;
|
2001-05-04 10:36:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|