home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lyx-0.13.2.tar.gz / lyx-0.13.2.tar / lyx-0.13.2 / src / insetlof.h < prev    next >
C/C++ Source or Header  |  1998-04-23  |  1KB  |  52 lines

  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_LOF_H
  13. #define _INSET_LOF_H
  14.  
  15. #ifdef __GNUG__
  16. #pragma interface
  17. #endif
  18.  
  19. #include "insetcommand.h"
  20. #include "gettext.h"
  21.  
  22. // Created by Lgb 970527
  23.  
  24. /** Used to insert table of contents
  25.  */
  26. class InsetLOF: public InsetCommand {
  27. public:
  28.     ///
  29.     InsetLOF(): InsetCommand("listoffigures") { }
  30.     ///
  31.     InsetLOF(Buffer *b): InsetCommand("listoffigures"),owner(b){};
  32.         ///
  33.         Inset* Clone() { return new InsetLOF(owner); }
  34.         ///
  35.     LString getScreenLabel() const { return _("List of Figures"); }
  36.         
  37.     //void Edit(int, int);
  38.         ///
  39.     unsigned char Editable() const {
  40.         return 0; // not yet
  41.     }
  42.     ///
  43.     bool Display() const { return true; }
  44.     ///
  45.     Inset::Code LyxCode() const { return Inset::LOF_CODE; }
  46. private:
  47.     ///
  48.     Buffer *owner;
  49. };
  50.  
  51. #endif
  52.