AsciiTextP.h

Go to the documentation of this file.
00001 /*
00002  * $XConsortium: AsciiTextP.h,v 1.17 94/04/17 20:11:52 kaleb Exp $ 
00003  */
00004 
00005 /***********************************************************
00006 
00007 Copyright (c) 1987, 1988, 1994  X Consortium
00008 
00009 Permission is hereby granted, free of charge, to any person obtaining a copy
00010 of this software and associated documentation files (the "Software"), to deal
00011 in the Software without restriction, including without limitation the rights
00012 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00013 copies of the Software, and to permit persons to whom the Software is
00014 furnished to do so, subject to the following conditions:
00015 
00016 The above copyright notice and this permission notice shall be included in
00017 all copies or substantial portions of the Software.
00018 
00019 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00020 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00021 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00022 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00023 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00024 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00025 
00026 Except as contained in this notice, the name of the X Consortium shall not be
00027 used in advertising or otherwise to promote the sale, use or other dealings
00028 in this Software without prior written authorization from the X Consortium.
00029 
00030 
00031 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
00032 
00033                         All Rights Reserved
00034 
00035 Permission to use, copy, modify, and distribute this software and its 
00036 documentation for any purpose and without fee is hereby granted, 
00037 provided that the above copyright notice appear in all copies and that
00038 both that copyright notice and this permission notice appear in 
00039 supporting documentation, and that the name of Digital not be
00040 used in advertising or publicity pertaining to distribution of the
00041 software without specific, written prior permission.  
00042 
00043 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
00044 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
00045 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
00046 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
00047 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
00048 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
00049 SOFTWARE.
00050 
00051 ******************************************************************/
00052 
00053 /***********************************************************************
00054  *
00055  * AsciiText Widget
00056  *
00057  ***********************************************************************/
00058 
00059 /*
00060  * AsciiText.c - Private header file for AsciiText Widget.
00061  *
00062  * This Widget is intended to be used as a simple front end to the 
00063  * text widget with an ascii source and ascii sink attached to it.
00064  *
00065  * Date:    June 29, 1989
00066  *
00067  * By:      Chris D. Peterson
00068  *          MIT X Consortium 
00069  *          kit@expo.lcs.mit.edu
00070  */
00071 
00072 #ifndef _AsciiTextP_h
00073 #define _AsciiTextP_h
00074 
00075 #include <X11/Xaw3d/TextP.h>
00076 #include <X11/Xaw3d/AsciiText.h>
00077 #include <X11/Xaw3d/AsciiSrc.h>
00078 #include <X11/Xaw3d/MultiSrc.h>
00079 
00080 typedef struct {int empty;} AsciiClassPart;
00081 
00082 typedef struct _AsciiTextClassRec {
00083     CoreClassPart       core_class;
00084     SimpleClassPart     simple_class;
00085     TextClassPart       text_class;
00086     AsciiClassPart      ascii_class;
00087 } AsciiTextClassRec;
00088 
00089 extern AsciiTextClassRec asciiTextClassRec;
00090 
00091 typedef struct { char foo; /* keep compiler happy. */ } AsciiPart;
00092 
00093 typedef struct _AsciiRec {
00094     CorePart            core;
00095     SimplePart          simple;
00096     TextPart            text;
00097     AsciiPart           ascii;
00098 } AsciiRec;
00099 
00100 /************************************************************
00101  *
00102  * Ascii String Emulation widget.
00103  *
00104  ************************************************************/ 
00105 
00106 #ifdef ASCII_STRING
00107 
00108 typedef struct {int empty;} AsciiStringClassPart;
00109 
00110 typedef struct _AsciiStringClassRec {
00111     CoreClassPart       core_class;
00112     SimpleClassPart     simple_class;
00113     TextClassPart       text_class;
00114     AsciiClassPart      ascii_class;
00115     AsciiStringClassPart string_class;
00116 } AsciiStringClassRec;
00117 
00118 extern AsciiStringClassRec asciiStringClassRec;
00119 
00120 typedef struct { char foo; /* keep compiler happy. */ } AsciiStringPart;
00121 
00122 typedef struct _AsciiStringRec {
00123     CorePart            core;
00124     SimplePart          simple;
00125     TextPart            text;
00126     AsciiPart           ascii;
00127     AsciiStringPart     ascii_str;
00128 } AsciiStringRec;
00129 
00130 #endif /* ASCII_STRING */
00131 
00132 #ifdef ASCII_DISK
00133 
00134 /************************************************************
00135  *
00136  * Ascii Disk Emulation widget.
00137  *
00138  ************************************************************/ 
00139 
00140 typedef struct {int empty;} AsciiDiskClassPart;
00141 
00142 typedef struct _AsciiDiskClassRec {
00143     CoreClassPart       core_class;
00144     SimpleClassPart     simple_class;
00145     TextClassPart       text_class;
00146     AsciiClassPart      ascii_class;
00147     AsciiDiskClassPart  disk_class;
00148 } AsciiDiskClassRec;
00149 
00150 extern AsciiDiskClassRec asciiDiskClassRec;
00151 
00152 typedef struct { char foo; /* keep compiler happy. */ } AsciiDiskPart;
00153 
00154 typedef struct _AsciiDiskRec {
00155     CorePart            core;
00156     SimplePart          simple;
00157     TextPart            text;
00158     AsciiPart           ascii;
00159     AsciiDiskPart       ascii_disk;
00160 } AsciiDiskRec;
00161 #endif /* ASCII_DISK */
00162 
00163 #endif /* _AsciiTextP_h */

Generated on Sun Mar 4 15:03:55 2007 for Scilab [trunk] by  doxygen 1.5.1