]> git.lyx.org Git - lyx.git/blob - src/insets/insetloa.h
Initial revision
[lyx.git] / src / insets / insetloa.h
1 // -*- C++ -*-
2 /* This file is part of*
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *       
7  *          Copyright (C) 1995 Matthias Ettrich
8  *                        1996-1998 LyX Team
9  * 
10  *======================================================*/
11
12 #ifndef _INSET_LOA_H
13 #define _INSET_LOA_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "insetcommand.h"
20 #include "gettext.h"
21
22 // Created by Bernhard 970807
23
24 /** Used to insert table of algorithms
25  */
26 class InsetLOA: public InsetCommand {
27 public:
28         ///
29         InsetLOA(): InsetCommand("listofalgorithms") {}
30         ///
31         InsetLOA(Buffer *b): InsetCommand("listofalgorithms"),owner(b) {}
32         ///
33         void Validate(LaTeXFeatures &features) const;
34         ///
35         Inset* Clone() { return new InsetLOA(owner); }
36         ///
37         LString getScreenLabel() const { return _("List of Algorithms"); }
38
39         
40         //void Edit(int, int);
41         ///
42         unsigned char Editable() const {
43                 return 0; // not yet
44         }
45         ///
46         bool Display() const { return true; }
47         ///
48         Inset::Code LyxCode() const { return Inset::LOA_CODE; }
49 private:
50         ///
51         Buffer *owner;
52 };
53
54 #endif