* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1996-1999 the LyX Team.
+ * Copyright 1996-2000 the LyX Team.
*
* ====================================================== */
#ifndef INSET_LOF_H
#define INSET_LOF_H
-#ifdef __GNUG__
-#pragma interface
-#endif
-
#include "insetcommand.h"
#include "gettext.h"
// Created by Lgb 970527
+#ifdef __GNUG__
+#pragma interface
+#endif
+
/** Used to insert table of contents
*/
-class InsetLOF: public InsetCommand {
+class InsetLOF : public InsetCommand {
public:
///
- InsetLOF(): InsetCommand("listoffigures") {}
+ InsetLOF() : InsetCommand("listoffigures") {}
///
- InsetLOF(Buffer * b): InsetCommand("listoffigures"), owner(b) {}
+ explicit
+ InsetLOF(Buffer * b) : InsetCommand("listoffigures"), owner(b) {}
///
- Inset * Clone() { return new InsetLOF(owner); }
+ Inset * Clone() const { return new InsetLOF(owner); }
///
- string getScreenLabel() const { return _("List of Figures"); }
+ string getScreenLabel() const;
- //void Edit(int, int);
///
- unsigned char Editable() const {
- return 0; // not yet
+ EDITABLE Editable() const {
+ return NOT_EDITABLE; // not yet
}
///
- bool Display() const { return true; }
+ bool display() const { return true; }
///
Inset::Code LyxCode() const { return Inset::LOF_CODE; }
private: