00001 /* $XConsortium: MultiSrc.h,v 1.2 94/04/17 20:12:26 kaleb Exp $ */ 00002 00003 /* 00004 * Copyright 1991 by OMRON Corporation 00005 * 00006 * Permission to use, copy, modify, distribute, and sell this software and its 00007 * documentation for any purpose is hereby granted without fee, provided that 00008 * the above copyright notice appear in all copies and that both that 00009 * copyright notice and this permission notice appear in supporting 00010 * documentation, and that the name OMRON not be used in 00011 * advertising or publicity pertaining to distribution of the software without 00012 * specific, written prior permission. OMRON makes no representations 00013 * about the suitability of this software for any purpose. It is provided 00014 * "as is" without express or implied warranty. 00015 * 00016 * OMRON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 00017 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 00018 * EVENT SHALL OMRON BE LIABLE FOR ANY SPECIAL, INDIRECT OR 00019 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 00020 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 00021 * TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00022 * PERFORMANCE OF THIS SOFTWARE. 00023 * 00024 * Author: Li Yuhong OMRON Corporation 00025 */ 00026 00027 /* 00028 00029 Copyright (c) 1989, 1991, 1994 X Consortium 00030 00031 Permission is hereby granted, free of charge, to any person obtaining a copy 00032 of this software and associated documentation files (the "Software"), to deal 00033 in the Software without restriction, including without limitation the rights 00034 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00035 copies of the Software, and to permit persons to whom the Software is 00036 furnished to do so, subject to the following conditions: 00037 00038 The above copyright notice and this permission notice shall be included in 00039 all copies or substantial portions of the Software. 00040 00041 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00042 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00043 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00044 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 00045 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00046 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00047 00048 Except as contained in this notice, the name of the X Consortium shall not be 00049 used in advertising or otherwise to promote the sale, use or other dealings 00050 in this Software without prior written authorization from the X Consortium. 00051 00052 */ 00053 00054 /* 00055 * This file was modified from AsciiSrc.h. 00056 * 00057 * By Li Yuhong, Sept. 18, 1990 00058 */ 00059 00060 #ifndef _XawMultiSrc_h 00061 #define _XawMultiSrc_h 00062 00063 #include <X11/Xaw3d/TextSrc.h> 00064 /*Xfuncproto.h included by Intrinsic.h*/ 00065 00066 /* Resources: 00067 00068 Name Class RepType Default Value 00069 ---- ----- ------- ------------- 00070 callback Callback Callback (none) 00071 dataCompression DataCompression Boolean True 00072 length Length int (internal) 00073 pieceSize PieceSize int BUFSIZ 00074 string String String NULL 00075 type Type XawAsciiType XawAsciiString 00076 useStringInPlace UseStringInPlace Boolean False 00077 00078 */ 00079 00080 /* Class record constants */ 00081 00082 extern WidgetClass multiSrcObjectClass; 00083 00084 typedef struct _MultiSrcClassRec *MultiSrcObjectClass; 00085 typedef struct _MultiSrcRec *MultiSrcObject; 00086 00087 /* 00088 * Just to make people's lives a bit easier. 00089 */ 00090 00091 #define MultiSourceObjectClass MultiSrcObjectClass 00092 #define MultiSourceObject MultiSrcObject 00093 00094 /* 00095 * Resource Definitions. 00096 */ 00097 00098 #define XtCDataCompression "DataCompression" 00099 #define XtCPieceSize "PieceSize" 00100 #define XtCType "Type" 00101 #define XtCUseStringInPlace "UseStringInPlace" 00102 00103 #define XtNdataCompression "dataCompression" 00104 #define XtNpieceSize "pieceSize" 00105 #define XtNtype "type" 00106 #define XtNuseStringInPlace "useStringInPlace" 00107 00108 #define XtRMultiType "MultiType" 00109 00110 #define XtEstring "string" 00111 #define XtEfile "file" 00112 00113 /************************************************************ 00114 * 00115 * THESE ROUTINES ARE NOT PUBLIC: Source should call 00116 * 00117 * the AsciiSrc API which currently forwards requests here. 00118 * 00119 * future versions (like theres going to be an R7 Xaw!) may 00120 * 00121 * eliminate this file or at least these functions entirely. 00122 * 00123 ************************************************************/ 00124 00125 _XFUNCPROTOBEGIN 00126 00127 00128 extern void XawMultiSourceFreeString( 00129 #if NeedFunctionPrototypes 00130 Widget /* w */ 00131 #endif 00132 ); 00133 00134 extern Boolean _XawMultiSave( 00135 #if NeedFunctionPrototypes 00136 Widget /* w */ 00137 #endif 00138 ); 00139 00140 extern Boolean _XawMultiSaveAsFile( 00141 #if NeedFunctionPrototypes 00142 Widget /* w */, 00143 _Xconst char* /* name */ 00144 #endif 00145 ); 00146 00147 00148 _XFUNCPROTOEND 00149 00150 #endif /* _XawMultiSrc_h - Don't add anything after this line. */ 00151
1.5.1