1999-09-27 18:44:28 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-09-25 14:26:13 +00:00
|
|
|
|
/**
|
2007-04-25 01:24:38 +00:00
|
|
|
|
* \file InsetTOC.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.
|
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
|
|
|
|
*
|
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
|
|
|
|
*/
|
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
|
|
|
|
|
2007-04-25 01:24:38 +00:00
|
|
|
|
#include "InsetCommand.h"
|
2003-09-04 01:18:42 +00:00
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
|
|
|
2003-12-10 09:45:32 +00:00
|
|
|
|
/// Used to insert table of contents and similar lists
|
2000-08-04 13:12:30 +00:00
|
|
|
|
class InsetTOC : public InsetCommand {
|
1999-09-27 18:44:28 +00:00
|
|
|
|
public:
|
|
|
|
|
///
|
2003-10-28 11:18:40 +00:00
|
|
|
|
explicit InsetTOC(InsetCommandParams const &);
|
2003-05-26 09:13:55 +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-29 06:30:53 +00:00
|
|
|
|
EDITABLE editable() const { return IS_EDITABLE; }
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
2004-11-25 19:13:07 +00:00
|
|
|
|
InsetBase::Code lyxCode() const;
|
2000-03-06 02:42:40 +00:00
|
|
|
|
///
|
2003-10-22 10:22:09 +00:00
|
|
|
|
bool display() const { return true; }
|
|
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
|
int plaintext(Buffer const &, odocstream &,
|
2007-02-17 11:59:42 +00:00
|
|
|
|
OutputParams const &) const;
|
2001-01-11 14:55:36 +00:00
|
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
|
int docbook(Buffer const &, odocstream &,
|
2007-02-17 11:59:42 +00:00
|
|
|
|
OutputParams const &) const;
|
2004-11-23 23:04:52 +00:00
|
|
|
|
private:
|
|
|
|
|
virtual std::auto_ptr<InsetBase> doClone() const;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
};
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
#endif
|