X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetlof.h;h=20e9790c5d0dbd08c11683e5747da88856c17cf3;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=ee8e17a830fa5e4eaf93378db6c362911c076c25;hpb=27de1486ca34aaad446adb798d71a77d6f6304da;p=lyx.git diff --git a/src/insets/insetlof.h b/src/insets/insetlof.h index ee8e17a830..20e9790c5d 100644 --- a/src/insets/insetlof.h +++ b/src/insets/insetlof.h @@ -4,48 +4,47 @@ * * LyX, The Document Processor * - * Copyright (C) 1995 Matthias Ettrich - * 1996-1998 LyX Team + * Copyright 1995 Matthias Ettrich + * Copyright 1996-2000 the LyX Team. * - *======================================================*/ + * ====================================================== */ -#ifndef _INSET_LOF_H -#define _INSET_LOF_H - -#ifdef __GNUG__ -#pragma interface -#endif +#ifndef INSET_LOF_H +#define INSET_LOF_H #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); } /// - LString 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: /// - Buffer *owner; + Buffer * owner; }; - #endif