home *** CD-ROM | disk | FTP | other *** search
/ WordPerfect for Linux Bible / WP4LinuxBible.iso / sdk / wpx / code / wt / client / wtclient.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-06-25  |  1.6 KB  |  62 lines

  1. /* HEADER FILE *****************************************************
  2.  * WTCLIENT.H  -  Writing Tools API Client Sample Application Header
  3.  *                file.
  4.  *******************************************************************
  5.  * Copyright (C) 1993 WordPerfect Corp., All Rights Reserved
  6.  *******************************************************************/
  7.  
  8. #define MAXFILESIZE 0x7fff        /* maximum file size that can be loaded */
  9. #define MAXFILENAME 256          /* maximum length of file pathname      */
  10. #define MAXCUSTFILTER 40         /* maximum size of custom filter buffer */
  11. #define MAXTOOLS 11 
  12. #define MAXPARAMLEN 64 
  13. #define MAXCUSTPROMPT 64 
  14. #define MYMAXBLOCKSIZE 1024
  15. #define MAXBLOCKS    50
  16.  
  17. typedef struct {
  18.      char tool[MAXCUSTFILTER];        /* Tool's keyname */
  19.      char exe[MAXFILENAME];            /* PathExe */
  20.      char menu[MAXCUSTFILTER+1];    /* MenuName */
  21.      char mne;                        /* mnemonic from MenuName */
  22.      char desc[MAXCUSTFILTER];        /* DescriptiveName */
  23.      char params[MAXPARAMLEN+1];    /* Parameters */
  24.      char prompt[MAXCUSTPROMPT+1];    /* LongPrompt */
  25. } TOOLRECORD;
  26.  
  27. /* File menu items */
  28. typedef enum {
  29.     CL_FILE_NEW = 0,
  30.     CL_FILE_OPEN,
  31.     CL_FILE_SAVE,
  32.     CL_FILE_SAVE_AS,
  33.     CL_FILE_PRINT,
  34.     CL_FILE_EXIT,
  35.     CL_FILE_CNT            /* number of File items (ALWAYS LAST ENTRY!!!) */
  36. } CL_FILE;
  37.  
  38. /* Edit menu items */
  39. typedef enum {
  40.     CL_EDIT_UNDO = 0,
  41.     CL_EDIT_CUT,
  42.     CL_EDIT_COPY,
  43.     CL_EDIT_PASTE,
  44.     CL_EDIT_CNT            /* number of Edit items (ALWAYS LAST ENTRY!!!) */
  45. } CL_EDIT;
  46.  
  47. /* Help menu items */
  48. typedef enum {
  49.     CL_HELP_ABOUT = 0,
  50.     CL_HELP_CNT            /* number of Help items (ALWAYS LAST ENTRY!!!) */
  51. } CL_HELP;
  52.  
  53. typedef enum {
  54.     MB_OK = 0,
  55.     MB_YESNO
  56. } MSGBOX;
  57.  
  58. typedef enum {
  59.     FALSE = 0,
  60.     TRUE
  61. } BOOL;
  62.