home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / include / x11 / xaw / asciitextp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-17  |  5.1 KB  |  164 lines

  1. /*
  2.  * $XConsortium: AsciiTextP.h,v 1.17 94/04/17 20:11:52 kaleb Exp $ 
  3.  */
  4.  
  5. /***********************************************************
  6.  
  7. Copyright (c) 1987, 1988, 1994  X Consortium
  8.  
  9. Permission is hereby granted, free of charge, to any person obtaining a copy
  10. of this software and associated documentation files (the "Software"), to deal
  11. in the Software without restriction, including without limitation the rights
  12. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  13. copies of the Software, and to permit persons to whom the Software is
  14. furnished to do so, subject to the following conditions:
  15.  
  16. The above copyright notice and this permission notice shall be included in
  17. all copies or substantial portions of the Software.
  18.  
  19. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  20. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  22. X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  23. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  24. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25.  
  26. Except as contained in this notice, the name of the X Consortium shall not be
  27. used in advertising or otherwise to promote the sale, use or other dealings
  28. in this Software without prior written authorization from the X Consortium.
  29.  
  30.  
  31. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
  32.  
  33.                         All Rights Reserved
  34.  
  35. Permission to use, copy, modify, and distribute this software and its 
  36. documentation for any purpose and without fee is hereby granted, 
  37. provided that the above copyright notice appear in all copies and that
  38. both that copyright notice and this permission notice appear in 
  39. supporting documentation, and that the name of Digital not be
  40. used in advertising or publicity pertaining to distribution of the
  41. software without specific, written prior permission.  
  42.  
  43. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  44. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  45. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  46. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  47. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  48. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  49. SOFTWARE.
  50.  
  51. ******************************************************************/
  52.  
  53. /***********************************************************************
  54.  *
  55.  * AsciiText Widget
  56.  *
  57.  ***********************************************************************/
  58.  
  59. /*
  60.  * AsciiText.c - Private header file for AsciiText Widget.
  61.  *
  62.  * This Widget is intended to be used as a simple front end to the 
  63.  * text widget with an ascii source and ascii sink attached to it.
  64.  *
  65.  * Date:    June 29, 1989
  66.  *
  67.  * By:      Chris D. Peterson
  68.  *          MIT X Consortium 
  69.  *          kit@expo.lcs.mit.edu
  70.  */
  71.  
  72. #ifndef _AsciiTextP_h
  73. #define _AsciiTextP_h
  74.  
  75. #include <X11/Xaw/TextP.h>
  76. #include <X11/Xaw/AsciiText.h>
  77. #include <X11/Xaw/AsciiSrc.h>
  78. #include <X11/Xaw/MultiSrc.h>
  79.  
  80. typedef struct {int empty;} AsciiClassPart;
  81.  
  82. typedef struct _AsciiTextClassRec {
  83.     CoreClassPart    core_class;
  84.     SimpleClassPart    simple_class;
  85.     TextClassPart    text_class;
  86.     AsciiClassPart    ascii_class;
  87. } AsciiTextClassRec;
  88.  
  89. extern AsciiTextClassRec asciiTextClassRec;
  90.  
  91. typedef struct { char foo; /* keep compiler happy. */ } AsciiPart;
  92.  
  93. typedef struct _AsciiRec {
  94.     CorePart        core;
  95.     SimplePart        simple;
  96.     TextPart        text;
  97.     AsciiPart        ascii;
  98. } AsciiRec;
  99.  
  100. /************************************************************
  101.  *
  102.  * Ascii String Emulation widget.
  103.  *
  104.  ************************************************************/ 
  105.  
  106. #ifdef ASCII_STRING
  107.  
  108. typedef struct {int empty;} AsciiStringClassPart;
  109.  
  110. typedef struct _AsciiStringClassRec {
  111.     CoreClassPart    core_class;
  112.     SimpleClassPart    simple_class;
  113.     TextClassPart    text_class;
  114.     AsciiClassPart    ascii_class;
  115.     AsciiStringClassPart string_class;
  116. } AsciiStringClassRec;
  117.  
  118. extern AsciiStringClassRec asciiStringClassRec;
  119.  
  120. typedef struct { char foo; /* keep compiler happy. */ } AsciiStringPart;
  121.  
  122. typedef struct _AsciiStringRec {
  123.     CorePart        core;
  124.     SimplePart        simple;
  125.     TextPart        text;
  126.     AsciiPart           ascii;
  127.     AsciiStringPart     ascii_str;
  128. } AsciiStringRec;
  129.  
  130. #endif /* ASCII_STRING */
  131.  
  132. #ifdef ASCII_DISK
  133.  
  134. /************************************************************
  135.  *
  136.  * Ascii Disk Emulation widget.
  137.  *
  138.  ************************************************************/ 
  139.  
  140. typedef struct {int empty;} AsciiDiskClassPart;
  141.  
  142. typedef struct _AsciiDiskClassRec {
  143.     CoreClassPart    core_class;
  144.     SimpleClassPart    simple_class;
  145.     TextClassPart    text_class;
  146.     AsciiClassPart    ascii_class;
  147.     AsciiDiskClassPart    disk_class;
  148. } AsciiDiskClassRec;
  149.  
  150. extern AsciiDiskClassRec asciiDiskClassRec;
  151.  
  152. typedef struct { char foo; /* keep compiler happy. */ } AsciiDiskPart;
  153.  
  154. typedef struct _AsciiDiskRec {
  155.     CorePart        core;
  156.     SimplePart        simple;
  157.     TextPart        text;
  158.     AsciiPart           ascii;
  159.     AsciiDiskPart       ascii_disk;
  160. } AsciiDiskRec;
  161. #endif /* ASCII_DISK */
  162.  
  163. #endif /* _AsciiTextP_h */
  164.