lyx_mirror/src/insets/insetloa.h
1999-11-24 22:14:46 +00:00

53 lines
1.1 KiB
C++

// -*- C++ -*-
/* This file is part of*
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
* Copyright 1996-1999 the LyX Team.
*
* ====================================================== */
#ifndef INSET_LOA_H
#define INSET_LOA_H
#ifdef __GNUG__
#pragma interface
#endif
#include "insetcommand.h"
#include "gettext.h"
// Created by Bernhard 970807
/** Used to insert table of algorithms
*/
class InsetLOA : public InsetCommand {
public:
///
InsetLOA() : InsetCommand("listofalgorithms") {}
///
InsetLOA(Buffer * b) : InsetCommand("listofalgorithms"), owner(b) {}
///
void Validate(LaTeXFeatures & features) const;
///
Inset * Clone() const { return new InsetLOA(owner); }
///
string getScreenLabel() const { return _("List of Algorithms"); }
///
unsigned char Editable() const {
return 0; // not yet
}
///
bool display() const { return true; }
///
Inset::Code LyxCode() const { return Inset::LOA_CODE; }
private:
///
Buffer * owner;
};
#endif