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