X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetloa.h;h=0a4254a2832f5419fceca5a98e714b06caf47770;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=c67e0bee1d8c9246c7bfc068fc3470eada9cb15b;hpb=0eccdd1c3613e5170deb77b22174dd0afde833e9;p=lyx.git diff --git a/src/insets/insetloa.h b/src/insets/insetloa.h index c67e0bee1d..0a4254a283 100644 --- a/src/insets/insetloa.h +++ b/src/insets/insetloa.h @@ -4,13 +4,13 @@ * * 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_LOA_H -#define _INSET_LOA_H +#ifndef INSET_LOA_H +#define INSET_LOA_H #ifdef __GNUG__ #pragma interface @@ -19,36 +19,35 @@ #include "insetcommand.h" #include "gettext.h" -// Created by Bernhard 970807 +class Buffer; /** Used to insert table of algorithms */ -class InsetLOA: public InsetCommand { +class InsetLOA : public InsetCommand { public: /// - InsetLOA(): InsetCommand("listofalgorithms") {} + InsetLOA() : InsetCommand("listofalgorithms") {} /// - InsetLOA(Buffer *b): InsetCommand("listofalgorithms"),owner(b) {} + explicit + InsetLOA(Buffer * b) : InsetCommand("listofalgorithms"), owner(b) {} /// - void Validate(LaTeXFeatures &features) const; + void Validate(LaTeXFeatures & features) const; /// - Inset* Clone() { return new InsetLOA(owner); } + Inset * Clone() const { return new InsetLOA(owner); } /// - string getScreenLabel() const { return _("List of Algorithms"); } + 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::LOA_CODE; } private: /// - Buffer *owner; + Buffer * owner; }; #endif