1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of*
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
1999-11-04 01:40:20 +00:00
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1996-1999 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_LOT_H
|
|
|
|
#define INSET_LOT_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "insetcommand.h"
|
|
|
|
#include "gettext.h"
|
|
|
|
|
|
|
|
// Created by Lgb 970527
|
|
|
|
|
|
|
|
/** Used to insert table of contents
|
|
|
|
*/
|
|
|
|
class InsetLOT: public InsetCommand {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
InsetLOT(): InsetCommand("listoftables") {}
|
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
InsetLOT(Buffer * b): InsetCommand("listoftables"), owner(b) {}
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
Inset * Clone() { return new InsetLOT(owner); }
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string getScreenLabel() const { return _("List of Tables"); }
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
//void Edit(int, int);
|
|
|
|
///
|
|
|
|
unsigned char Editable() const {
|
|
|
|
return 0; // not yet
|
|
|
|
}
|
|
|
|
///
|
|
|
|
bool Display() const { return true; }
|
|
|
|
///
|
|
|
|
Inset::Code LyxCode() const { return Inset::LOT_CODE; }
|
|
|
|
private:
|
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
Buffer * owner;
|
1999-09-27 18:44:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|