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 / insetindex.h < prev    next >
C/C++ Source or Header  |  1998-04-23  |  1KB  |  78 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_INDEX_H
  13. #define _INSET_INDEX_H
  14.  
  15. #ifdef __GNUG__
  16. #pragma interface
  17. #endif
  18.  
  19. #include "insetcommand.h"
  20.  
  21. class Buffer;
  22. struct LaTeXFeatures;
  23.  
  24. // Created by Lgb 970227
  25.  
  26.  
  27. /** Used to insert index labels  
  28.   */
  29. class InsetIndex: public InsetCommand {
  30. public:
  31.     ///
  32.     InsetIndex(): InsetCommand("index") { }
  33.     ///
  34.     InsetIndex(LString const & key);
  35.     ///
  36.     ~InsetIndex();
  37.     ///
  38.     Inset* Clone() { return new InsetIndex(contents); }
  39.     ///
  40.     void Edit(int, int);
  41.     ///
  42.     unsigned char Editable() const
  43.     {
  44.         return 1;
  45.     }
  46.     ///
  47.     LString getScreenLabel() const;
  48. };
  49.  
  50.  
  51. class InsetPrintIndex: public InsetCommand {
  52. public:
  53.     ///
  54.     InsetPrintIndex();
  55.     ///
  56.     InsetPrintIndex(Buffer*);
  57.     ///
  58.     ~InsetPrintIndex();
  59.     /// Updates needed features for this inset.
  60.     void Validate(LaTeXFeatures &features) const;
  61.     ///
  62.     void Edit(int, int){;}
  63.     ///
  64.     unsigned char Editable() const{
  65.         return 1;
  66.     }
  67.     ///
  68.     bool Display() const { return true; }
  69.     ///
  70.     Inset::Code LyxCode() const;
  71.     ///
  72.     LString getScreenLabel() const;
  73. private:
  74.     ///
  75.     Buffer *owner;
  76. };
  77. #endif
  78.