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
|
|
|
|
* Copyright 1996-1999 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"
|
|
|
|
|
|
|
|
class Buffer;
|
|
|
|
struct LaTeXFeatures;
|
|
|
|
|
|
|
|
// Created by Lgb 970227
|
|
|
|
|
|
|
|
|
|
|
|
/** Used to insert index labels
|
|
|
|
*/
|
|
|
|
class InsetIndex: public InsetCommand {
|
|
|
|
public:
|
|
|
|
///
|
1999-11-24 22:14:46 +00:00
|
|
|
InsetIndex() : InsetCommand("index") {}
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
InsetIndex(string const & key);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
~InsetIndex();
|
|
|
|
///
|
1999-11-24 22:14:46 +00:00
|
|
|
Inset * Clone() const { return new InsetIndex(contents);}
|
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-03-08 13:52:57 +00:00
|
|
|
EDITABLE Editable() const
|
1999-09-27 18:44:28 +00:00
|
|
|
{
|
2000-03-08 13:52:57 +00:00
|
|
|
return IS_EDITABLE;
|
1999-09-27 18:44:28 +00:00
|
|
|
}
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string getScreenLabel() const;
|
1999-09-27 18:44:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
1999-11-24 22:14:46 +00:00
|
|
|
class InsetPrintIndex : public InsetCommand {
|
1999-09-27 18:44:28 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
InsetPrintIndex();
|
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
InsetPrintIndex(Buffer *);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
~InsetPrintIndex();
|
|
|
|
/// 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-03-08 13:52:57 +00:00
|
|
|
EDITABLE Editable() const{
|
|
|
|
return IS_EDITABLE;
|
1999-09-27 18:44:28 +00:00
|
|
|
}
|
1999-11-24 22:14:46 +00:00
|
|
|
/// WHY is clone missing? (Lgb)
|
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;
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string getScreenLabel() const;
|
1999-09-27 18:44:28 +00:00
|
|
|
private:
|
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
Buffer * owner;
|
1999-09-27 18:44:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// this was shifted here rather than a separate
|
|
|
|
// file because its little and only need by
|
|
|
|
// insetindex.C and lyx_gui_misc.C ARRae 981020
|
|
|
|
struct FD_index_form {
|
1999-11-04 01:40:20 +00:00
|
|
|
FL_FORM * index_form;
|
|
|
|
FL_OBJECT * key;
|
1999-09-27 18:44:28 +00:00
|
|
|
};
|
|
|
|
|
1999-11-04 01:40:20 +00:00
|
|
|
extern FD_index_form * index_form;
|
1999-09-27 18:44:28 +00:00
|
|
|
#endif
|