1999-09-27 18:44:28 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-09-25 14:26:13 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file insettoc.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
1999-09-27 18:44:28 +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
|
|
|
|
|
*/
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
1999-11-04 01:40:20 +00:00
|
|
|
|
#ifndef INSET_TOC_H
|
|
|
|
|
#define INSET_TOC_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "insetcommand.h"
|
|
|
|
|
|
|
|
|
|
/** Used to insert table of contents
|
|
|
|
|
*/
|
2000-08-04 13:12:30 +00:00
|
|
|
|
class InsetTOC : public InsetCommand {
|
1999-09-27 18:44:28 +00:00
|
|
|
|
public:
|
|
|
|
|
///
|
2003-05-26 09:13:55 +00:00
|
|
|
|
InsetTOC(InsetCommandParams const &);
|
|
|
|
|
///
|
2003-02-25 14:51:38 +00:00
|
|
|
|
~InsetTOC();
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2003-06-03 15:10:14 +00:00
|
|
|
|
virtual Inset * clone() const {
|
2003-05-26 09:13:55 +00:00
|
|
|
|
return new InsetTOC(params());
|
2001-06-28 10:25:20 +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-29 06:30:53 +00:00
|
|
|
|
EDITABLE editable() const { return IS_EDITABLE; }
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
1999-11-22 16:19:48 +00:00
|
|
|
|
bool display() const { return true; }
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2001-06-29 06:30:53 +00:00
|
|
|
|
Inset::Code lyxCode() const;
|
2000-03-06 02:42:40 +00:00
|
|
|
|
///
|
2001-06-29 06:30:53 +00:00
|
|
|
|
int ascii(Buffer const *, std::ostream &, int linelen) const;
|
2001-01-11 14:55:36 +00:00
|
|
|
|
///
|
2001-06-29 06:30:53 +00:00
|
|
|
|
int linuxdoc(Buffer const *, std::ostream &) const;
|
2000-03-06 02:42:40 +00:00
|
|
|
|
///
|
2002-06-18 15:44:30 +00:00
|
|
|
|
int docbook(Buffer const *, std::ostream &, bool mixcont) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|