Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:26:35

0001 /***********************************************************
0002 
0003 Copyright 1987, 1988, 1994, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024 
0025 
0026 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
0027 
0028                         All Rights Reserved
0029 
0030 Permission to use, copy, modify, and distribute this software and its
0031 documentation for any purpose and without fee is hereby granted,
0032 provided that the above copyright notice appear in all copies and that
0033 both that copyright notice and this permission notice appear in
0034 supporting documentation, and that the name of Digital not be
0035 used in advertising or publicity pertaining to distribution of the
0036 software without specific, written prior permission.
0037 
0038 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
0039 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
0040 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
0041 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
0042 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
0043 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
0044 SOFTWARE.
0045 
0046 ******************************************************************/
0047 
0048 /*
0049  * AsciiText.c - Private header file for AsciiText Widget.
0050  *
0051  * This Widget is intended to be used as a simple front end to the
0052  * text widget with an ascii source and ascii sink attached to it.
0053  *
0054  * Date:    June 29, 1989
0055  *
0056  * By:      Chris D. Peterson
0057  *          MIT X Consortium
0058  *          kit@expo.lcs.mit.edu
0059  */
0060 
0061 #ifndef _AsciiTextP_h
0062 #define _AsciiTextP_h
0063 
0064 #include <X11/Xaw/TextP.h>
0065 #include <X11/Xaw/AsciiText.h>
0066 #include <X11/Xaw/AsciiSrc.h>
0067 #include <X11/Xaw/MultiSrc.h>
0068 
0069 typedef struct {
0070   XtPointer extension;
0071 } AsciiClassPart;
0072 
0073 typedef struct _AsciiTextClassRec {
0074     CoreClassPart   core_class;
0075     SimpleClassPart simple_class;
0076     TextClassPart   text_class;
0077     AsciiClassPart  ascii_class;
0078 } AsciiTextClassRec;
0079 
0080 extern AsciiTextClassRec asciiTextClassRec;
0081 
0082 typedef struct {
0083     int resource;
0084 #ifndef OLDXAW
0085     XtPointer pad[4];   /* for future use and keep binary compatibility */
0086 #endif
0087 } AsciiPart;
0088 
0089 typedef struct _AsciiRec {
0090     CorePart        core;
0091     SimplePart      simple;
0092     TextPart        text;
0093     AsciiPart       ascii;
0094 } AsciiRec;
0095 
0096 /*
0097  * Ascii String Emulation widget
0098  */
0099 #ifdef ASCII_STRING
0100 typedef struct {
0101   XtPointer extension;
0102 } AsciiStringClassPart;
0103 
0104 typedef struct _AsciiStringClassRec {
0105     CoreClassPart   core_class;
0106     SimpleClassPart simple_class;
0107     TextClassPart   text_class;
0108     AsciiClassPart  ascii_class;
0109     AsciiStringClassPart string_class;
0110 } AsciiStringClassRec;
0111 
0112 extern AsciiStringClassRec asciiStringClassRec;
0113 
0114 typedef struct {
0115     int resource;
0116 #ifndef OLDXAW
0117     XtPointer pad[4];   /* for future use and keep binary compatibility */
0118 #endif
0119 } AsciiStringPart;
0120 
0121 typedef struct _AsciiStringRec {
0122     CorePart        core;
0123     SimplePart      simple;
0124     TextPart        text;
0125     AsciiPart           ascii;
0126     AsciiStringPart     ascii_str;
0127 } AsciiStringRec;
0128 #endif /* ASCII_STRING */
0129 
0130 #ifdef ASCII_DISK
0131 /*
0132  * Ascii Disk Emulation widget
0133  */
0134 typedef struct {
0135     XtPointer extension;
0136 } AsciiDiskClassPart;
0137 
0138 typedef struct _AsciiDiskClassRec {
0139     CoreClassPart   core_class;
0140     SimpleClassPart simple_class;
0141     TextClassPart   text_class;
0142     AsciiClassPart  ascii_class;
0143     AsciiDiskClassPart  disk_class;
0144 } AsciiDiskClassRec;
0145 
0146 extern AsciiDiskClassRec asciiDiskClassRec;
0147 
0148 typedef struct {
0149     char resource;
0150 #ifndef OLDXAW
0151     XtPointer pad[4];   /* for future use and keep binary compatibility */
0152 #endif
0153 } AsciiDiskPart;
0154 
0155 typedef struct _AsciiDiskRec {
0156     CorePart        core;
0157     SimplePart      simple;
0158     TextPart        text;
0159     AsciiPart           ascii;
0160     AsciiDiskPart       ascii_disk;
0161 } AsciiDiskRec;
0162 #endif /* ASCII_DISK */
0163 
0164 #endif /* _AsciiTextP_h */