mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
71f8ac34a9
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1095 a592a061-630c-0410-9148-cb99ea01b6c8
65 lines
1.3 KiB
C++
65 lines
1.3 KiB
C++
// -*- C++ -*-
|
|
/* This file is part of*
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 1995 Matthias Ettrich
|
|
* Copyright 1996-2000 the LyX Team.
|
|
*
|
|
* ====================================================== */
|
|
|
|
#ifndef INSET_INDEX_H
|
|
#define INSET_INDEX_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "insetcommand.h"
|
|
|
|
struct LaTeXFeatures;
|
|
|
|
/** Used to insert index labels
|
|
*/
|
|
class InsetIndex : public InsetCommand {
|
|
public:
|
|
///
|
|
InsetIndex(InsetCommandParams const &);
|
|
///
|
|
Inset * Clone(Buffer const &) const {
|
|
return new InsetIndex(params());
|
|
}
|
|
///
|
|
string const getScreenLabel() const;
|
|
///
|
|
EDITABLE Editable() const { return IS_EDITABLE; }
|
|
///
|
|
void Edit(BufferView *, int, int, unsigned int);
|
|
};
|
|
|
|
|
|
class InsetPrintIndex : public InsetCommand {
|
|
public:
|
|
///
|
|
InsetPrintIndex(InsetCommandParams const &);
|
|
///
|
|
Inset * Clone(Buffer const &) const {
|
|
return new InsetPrintIndex(params());
|
|
}
|
|
/// Updates needed features for this inset.
|
|
void Validate(LaTeXFeatures & features) const;
|
|
///
|
|
void Edit(BufferView *, int, int, unsigned int) {}
|
|
///
|
|
EDITABLE Editable() const{ return NOT_EDITABLE; }
|
|
///
|
|
bool display() const { return true; }
|
|
///
|
|
Inset::Code LyxCode() const;
|
|
///
|
|
string const getScreenLabel() const;
|
|
};
|
|
|
|
#endif
|