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
|
|
|
|
|
|
|
|
#include "insetbutton.h"
|
|
|
|
|
|
|
|
/** Used to insert table of contents
|
|
|
|
*/
|
|
|
|
class InsetFloatList : public InsetButton {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
InsetFloatList() {}
|
|
|
|
///
|
|
|
|
InsetFloatList(string const & type)
|
|
|
|
: float_type(type) {}
|
|
|
|
///
|
2001-07-06 15:57:54 +00:00
|
|
|
Inset * clone(Buffer const &, bool same_id = false) const {
|
2001-05-04 10:36:36 +00:00
|
|
|
return new InsetFloatList(*this);
|
|
|
|
}
|
|
|
|
///
|
|
|
|
string const getScreenLabel() const;
|
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
void edit(BufferView * bv, int, int, unsigned int);
|
2001-05-04 10:36:36 +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; }
|
|
|
|
///
|
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-06-28 10:25:20 +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
|
|
|
private:
|
|
|
|
string float_type;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|