home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / NSDEDIT2.ZIP / EDTKT06B.ZIP / ABBREV.HPP < prev    next >
C/C++ Source or Header  |  1994-09-06  |  3KB  |  81 lines

  1. /***********************************************************************
  2. *                                                                      *
  3. *  Definition file for ABBREV.HPP                                      *
  4. *                                                                      *
  5. *  Purpose : Input functions for edit                                  *
  6. *                                                                      *
  7. *  Author  : Peter Bloemendaal                                         *
  8. *            Brainbox systems +31-70-3523661                           *
  9. *  eMail   : internet -> bloemendaal@rullf2.LeidenUniv.nl              *
  10. *            fidonet  -> 2:281/908                                     *
  11. *                                                                      *
  12. *----------------------------------------------------------------------*
  13. *                                                                      *
  14. *                                                                      *
  15. * $Log: abbrev.hpv $
  16. // Revision 1.7  1994/08/23  21:58:18  BRAINBOX
  17. // 1. Implementation moved to abbrev.cpp
  18. //                                                                *
  19. *                                                                      *
  20. ************************************************************************
  21. */
  22.  
  23.  
  24. #define _MAX_WORD_LENGTH 40
  25. #define _MAX_STOP_LENGTH 10
  26.  
  27. #if 0
  28. class AbbreviationEdit : public Edit
  29. {
  30.    private:
  31.       char **abbrev ;
  32.       char **abbext ;
  33.       char stopchar[_MAX_STOP_LENGTH] ;
  34.       bool status ;
  35.       int  nr ;
  36.  
  37.  
  38.    public:
  39.       void addchar(char) ;
  40.       AbbreviationEdit(int x1, int y1, int x2, int y2, unsigned char *s) :
  41.          Edit(x1, y1, x2, y2, s)
  42.          {
  43.             nr = 0 ;
  44.             status = TRUE
  45.              ;
  46.             strcpy(stopchar," .,!?\n") ;
  47.          } ;
  48.       ~AbbreviationEdit(void) ;
  49.  
  50.       void setAbbrevStatus(int) ;
  51.       int  loadAbbreviation(char *filename) ;
  52. } ;
  53. #else
  54. class AbbreviationEdit : public Edit
  55. {
  56.    private:
  57.       char **abbrev ;
  58.       char **abbext ;
  59.       char *stopchar;
  60.       bool status ;
  61.       int  nr ;
  62.  
  63.       void addchar(char) ;
  64.  
  65.    public:
  66.       AbbreviationEdit(int x1, int y1, int x2, int y2, unsigned char *s) :
  67.          Edit(x1, y1, x2, y2, s)
  68.          {
  69.             nr = 0 ;
  70.             status = TRUE
  71.              ;
  72.             stopchar = " .,!?\n";
  73.          } ;
  74.       ~AbbreviationEdit(void) ;
  75.  
  76.       void setAbbrevStatus(int) ;
  77.       int  loadAbbreviation(char *filename) ;
  78. } ;
  79. #endif
  80.  
  81.