1 /* $XConsortium: MultiSrc.h,v 1.2 94/04/17 20:12:26 kaleb Exp $ */
4 * Copyright 1991 by OMRON Corporation
6 * Permission to use, copy, modify, distribute, and sell this software and its
7 * documentation for any purpose is hereby granted without fee, provided that
8 * the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name OMRON not be used in
11 * advertising or publicity pertaining to distribution of the software without
12 * specific, written prior permission. OMRON makes no representations
13 * about the suitability of this software for any purpose. It is provided
14 * "as is" without express or implied warranty.
16 * OMRON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18 * EVENT SHALL OMRON BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21 * TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22 * PERFORMANCE OF THIS SOFTWARE.
24 * Author: Li Yuhong OMRON Corporation
29 Copyright (c) 1989, 1991, 1994 X Consortium
31 Permission is hereby granted, free of charge, to any person obtaining a copy
32 of this software and associated documentation files (the "Software"), to deal
33 in the Software without restriction, including without limitation the rights
34 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
35 copies of the Software, and to permit persons to whom the Software is
36 furnished to do so, subject to the following conditions:
38 The above copyright notice and this permission notice shall be included in
39 all copies or substantial portions of the Software.
41 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
45 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
46 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
48 Except as contained in this notice, the name of the X Consortium shall not be
49 used in advertising or otherwise to promote the sale, use or other dealings
50 in this Software without prior written authorization from the X Consortium.
55 * This file was modified from AsciiSrc.h.
57 * By Li Yuhong, Sept. 18, 1990
60 #ifndef _XawMultiSrc_h
61 #define _XawMultiSrc_h
63 #include <X11/Xaw/TextSrc.h>
64 /*Xfuncproto.h included by Intrinsic.h*/
68 Name Class RepType Default Value
69 ---- ----- ------- -------------
70 callback Callback Callback (none)
71 dataCompression DataCompression Boolean True
72 length Length int (internal)
73 pieceSize PieceSize int BUFSIZ
74 string String String NULL
75 type Type XawAsciiType XawAsciiString
76 useStringInPlace UseStringInPlace Boolean False
80 /* Class record constants */
82 extern WidgetClass multiSrcObjectClass
;
84 typedef struct _MultiSrcClassRec
*MultiSrcObjectClass
;
85 typedef struct _MultiSrcRec
*MultiSrcObject
;
88 * Just to make people's lives a bit easier.
91 #define MultiSourceObjectClass MultiSrcObjectClass
92 #define MultiSourceObject MultiSrcObject
95 * Resource Definitions.
98 #define XtCDataCompression "DataCompression"
99 #define XtCPieceSize "PieceSize"
100 #define XtCType "Type"
101 #define XtCUseStringInPlace "UseStringInPlace"
103 #define XtNdataCompression "dataCompression"
104 #define XtNpieceSize "pieceSize"
105 #define XtNtype "type"
106 #define XtNuseStringInPlace "useStringInPlace"
108 #define XtRMultiType "MultiType"
110 #define XtEstring "string"
111 #define XtEfile "file"
113 /************************************************************
115 * THESE ROUTINES ARE NOT PUBLIC: Source should call
117 * the AsciiSrc API which currently forwards requests here.
119 * future versions (like theres going to be an R7 Xaw!) may
121 * eliminate this file or at least these functions entirely.
123 ************************************************************/
128 extern void XawMultiSourceFreeString(
129 #if NeedFunctionPrototypes
134 extern Boolean
_XawMultiSave(
135 #if NeedFunctionPrototypes
140 extern Boolean
_XawMultiSaveAsFile(
141 #if NeedFunctionPrototypes
143 _Xconst
char* /* name */
150 #endif /* _XawMultiSrc_h - Don't add anything after this line. */