]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetloa.C
Some more changes for updating text-insets.
[lyx.git] / src / insets / insetloa.C
index 71b5582477629e3c9f1e1b09aa71905e6fcafa03..bb3ef255bd2f9c67a210e797c439cfd630c7b76e 100644 (file)
@@ -4,26 +4,38 @@
  *
  *           LyX, The Document Processor
  *      
- *         Copyright (C) 1995 Matthias Ettrich
- *          Copyright (C) 1996-1998 The LyX Team.
+ *          Copyright 1995 Matthias Ettrich
+ *          Copyright 1996-2000 The LyX Team.
  * 
- *======================================================*/
+ * ====================================================== */
 
 // Created by Bernhard 970908
 
 #include <config.h>
 
-
 #ifdef __GNUG__
-#pragma implementation "insetloa.h"
-#pragma implementation "insetlof.h"
-#pragma implementation "insetlot.h"
+#pragma implementation
 #endif
 
-#include "LaTeXFeatures.h"
 #include "insetloa.h"
-#include "insetlof.h"
-#include "insetlot.h"
+#include "LaTeXFeatures.h"
+#include "BufferView.h"
+#include "LyXView.h"
+#include "lyxfunc.h"
+#include "commandtags.h"
+
+void InsetLOA::Validate(LaTeXFeatures & features) const 
+{
+       features.algorithm = true;
+}
+
+
+string InsetLOA::getScreenLabel() const 
+{
+       return _("List of Algorithms");
+}
 
-void InsetLOA::Validate(LaTeXFeatures &features) const 
-{ features.algorithm = true; }
+void InsetLOA::Edit(BufferView * bv, int, int, unsigned int)
+{
+       bv->owner()->getLyXFunc()->Dispatch(LFUN_LOAVIEW);
+}