lyx_mirror/src/insets/insetlot.h

52 lines
1.0 KiB
C
Raw Normal View History

// -*- C++ -*-
/* This file is part of*
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
* Copyright 1996-1999 LyX Team
*
* ====================================================== */
#ifndef INSET_LOT_H
#define INSET_LOT_H
#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") {}
///
InsetLOT(Buffer * b): InsetCommand("listoftables"), owner(b) {}
///
Inset * Clone() { return new InsetLOT(owner); }
///
string getScreenLabel() const { return _("List of Tables"); }
//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:
///
Buffer * owner;
};
#endif