home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / xgopher.1.3 / KeyWSinkP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-25  |  3.0 KB  |  105 lines

  1.  
  2.  
  3. /***********************************************************
  4. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  5. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  6.  
  7.                         All Rights Reserved
  8.  
  9. Permission to use, copy, modify, and distribute this software and its 
  10. documentation for any purpose and without fee is hereby granted, 
  11. provided that the above copyright notice appear in all copies and that
  12. both that copyright notice and this permission notice appear in 
  13. supporting documentation, and that the names of Digital or MIT not be
  14. used in advertising or publicity pertaining to distribution of the
  15. software without specific, written prior permission.  
  16.  
  17. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ******************************************************************/
  26.  
  27. /* 
  28.  * keyWSinkP.h - Private definitions for keyWSink object
  29.  * 
  30.  */
  31.  
  32. #ifndef _XawKeyWSinkP_h
  33. #define _XawKeyWSinkP_h
  34.  
  35. /***********************************************************************
  36.  *
  37.  * KeyWSink Object Private Data
  38.  *
  39.  ***********************************************************************/
  40.  
  41. #include <X11/Xaw/TextSinkP.h> 
  42. #include <X11/Xaw/AsciiSinkP.h> 
  43. #include "KeyWSink.h"
  44.  
  45. /************************************************************
  46.  *
  47.  * New fields for the KeyWSink object class record.
  48.  *
  49.  ************************************************************/
  50.  
  51. typedef struct _KeyWSinkClassPart {
  52.   int foo;
  53. } KeyWSinkClassPart;
  54.  
  55. /* Full class record declaration */
  56.  
  57. typedef struct _KeyWSinkClassRec {
  58.     ObjectClassPart     object_class;
  59.     TextSinkClassPart    text_sink_class;
  60.     AsciiSinkClassPart    ascii_sink_class;
  61.     KeyWSinkClassPart    keyw_sink_class;
  62. } KeyWSinkClassRec;
  63.  
  64. extern KeyWSinkClassRec keyWSinkClassRec;
  65.  
  66. /* New fields for the KeyWSink object record */
  67. typedef struct {
  68.     /* public resources */
  69.     char  **wordList;
  70.  
  71.     /* private state */
  72. } KeyWSinkPart;
  73.  
  74. /****************************************************************
  75.  *
  76.  * Full instance record declaration
  77.  *
  78.  ****************************************************************/
  79.  
  80. typedef struct _KeyWSinkRec {
  81.     ObjectPart          object;
  82.     TextSinkPart    text_sink;
  83.     AsciiSinkPart    ascii_sink;
  84.     KeyWSinkPart    keyw_sink;
  85. } KeyWSinkRec;
  86.  
  87. /* These symbols are not defined prior to X11R5 (or is is R4).
  88.    Earlier Xaw versions used just LF, TAB, and SP amoung others.
  89.    They normally come from TextP.h which is included by TextSink.h
  90.    (included above); so, just to make sure... */
  91.  
  92. #ifndef XawLF
  93. #define    XawLF    0x0a
  94. #endif
  95.  
  96. #ifndef XawTAB
  97. #define    XawTAB    0x09
  98. #endif
  99.  
  100. #ifndef XawSP
  101. #define    XawSP    0x20
  102. #endif
  103.  
  104. #endif /* _XawKeyWSinkP_h */
  105.