1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of*
|
1999-11-15 10:58:38 +00:00
|
|
|
* ======================================================
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
1999-11-04 01:40:20 +00:00
|
|
|
* Copyright 1995 Matthias Ettrich
|
2000-03-16 04:29:22 +00:00
|
|
|
* Copyright 1996-2000 the LyX Team.
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
1999-11-15 10:58:38 +00:00
|
|
|
* ====================================================== */
|
1999-09-27 18:44:28 +00:00
|
|
|
|
1999-11-04 01:40:20 +00:00
|
|
|
#ifndef INSET_INDEX_H
|
|
|
|
#define INSET_INDEX_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "insetcommand.h"
|
|
|
|
|
|
|
|
struct LaTeXFeatures;
|
|
|
|
|
|
|
|
/** Used to insert index labels
|
|
|
|
*/
|
2000-08-04 13:12:30 +00:00
|
|
|
class InsetIndex : public InsetCommand {
|
1999-09-27 18:44:28 +00:00
|
|
|
public:
|
|
|
|
///
|
2000-08-03 12:56:25 +00:00
|
|
|
InsetIndex(InsetCommandParams const &);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-08-03 12:56:25 +00:00
|
|
|
Inset * Clone() const { return new InsetIndex(params());}
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-09-14 17:53:12 +00:00
|
|
|
string const getScreenLabel() const;
|
2000-07-07 07:46:37 +00:00
|
|
|
///
|
2000-08-03 12:56:25 +00:00
|
|
|
EDITABLE Editable() const { return IS_EDITABLE; }
|
2000-07-07 07:46:37 +00:00
|
|
|
///
|
2000-08-03 12:56:25 +00:00
|
|
|
void Edit(BufferView *, int, int, unsigned int);
|
1999-09-27 18:44:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2000-08-04 13:12:30 +00:00
|
|
|
class InsetPrintIndex : public InsetCommand {
|
1999-09-27 18:44:28 +00:00
|
|
|
public:
|
|
|
|
///
|
2000-08-03 12:56:25 +00:00
|
|
|
InsetPrintIndex(InsetCommandParams const &);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-08-03 12:56:25 +00:00
|
|
|
Inset * Clone() const { return new InsetPrintIndex(params());}
|
1999-09-27 18:44:28 +00:00
|
|
|
/// Updates needed features for this inset.
|
1999-11-04 01:40:20 +00:00
|
|
|
void Validate(LaTeXFeatures & features) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-02-25 12:06:15 +00:00
|
|
|
void Edit(BufferView *, int, int, unsigned int) {}
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-08-03 12:56:25 +00:00
|
|
|
EDITABLE Editable() const{ return NOT_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
|
|
|
///
|
|
|
|
Inset::Code LyxCode() const;
|
|
|
|
///
|
2000-09-14 17:53:12 +00:00
|
|
|
string const getScreenLabel() const;
|
1999-09-27 18:44:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|