|
||||
File indexing completed on 2025-01-30 10:26:36
0001 /* 0002 * Copyright 1991 by OMRON Corporation 0003 * 0004 * Permission to use, copy, modify, distribute, and sell this software and its 0005 * documentation for any purpose is hereby granted without fee, provided that 0006 * the above copyright notice appear in all copies and that both that 0007 * copyright notice and this permission notice appear in supporting 0008 * documentation, and that the name OMRON not be used in 0009 * advertising or publicity pertaining to distribution of the software without 0010 * specific, written prior permission. OMRON make no representations 0011 * about the suitability of this software for any purpose. It is provided 0012 * "as is" without express or implied warranty. 0013 * 0014 * OMRON DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 0015 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 0016 * EVENT SHALL OMRON BE LIABLE FOR ANY SPECIAL, INDIRECT OR 0017 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 0018 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 0019 * TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 0020 * PERFORMANCE OF THIS SOFTWARE. 0021 * 0022 * Author: Li Yuhong OMRON Corporation 0023 */ 0024 0025 0026 /*********************************************************** 0027 0028 Copyright 1987, 1988, 1991, 1994, 1998 The Open Group 0029 0030 Permission to use, copy, modify, distribute, and sell this software and its 0031 documentation for any purpose is hereby granted without fee, provided that 0032 the above copyright notice appear in all copies and that both that 0033 copyright notice and this permission notice appear in supporting 0034 documentation. 0035 0036 The above copyright notice and this permission notice shall be included in 0037 all copies or substantial portions of the Software. 0038 0039 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 0040 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0041 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 0042 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 0043 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 0044 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 0045 0046 Except as contained in this notice, the name of The Open Group shall not be 0047 used in advertising or otherwise to promote the sale, use or other dealings 0048 in this Software without prior written authorization from The Open Group. 0049 0050 0051 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 0052 0053 All Rights Reserved 0054 0055 Permission to use, copy, modify, and distribute this software and its 0056 documentation for any purpose and without fee is hereby granted, 0057 provided that the above copyright notice appear in all copies and that 0058 both that copyright notice and this permission notice appear in 0059 supporting documentation, and that the name of Digital not be 0060 used in advertising or publicity pertaining to distribution of the 0061 software without specific, written prior permission. 0062 0063 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 0064 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 0065 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 0066 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 0067 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 0068 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 0069 SOFTWARE. 0070 0071 ******************************************************************/ 0072 0073 /* 0074 * MultiSrcP.h - Private Header for Multi Text Source. 0075 * 0076 * This is the private header file for the Multi Text Source. 0077 * It is intended to be used with the Text widget, the simplest way to use 0078 * this text source is to use the MultiText Object. 0079 * 0080 * Date: June 29, 1989 0081 * 0082 * By: Chris D. Peterson 0083 * MIT X Consortium 0084 * kit@expo.lcs.mit.edu 0085 */ 0086 0087 /* 0088 * This file was changed from AsciiSrcP.h. 0089 * 0090 * By Li Yuhong, Sept. 18, 1990 0091 */ 0092 0093 #ifndef _XawMultiSrcP_h 0094 #define _XawMultiSrcP_h 0095 0096 #include <X11/Xfuncproto.h> 0097 #include <X11/Xaw/TextSrcP.h> 0098 #include <X11/Xaw/MultiSrc.h> 0099 0100 #ifdef L_tmpnam 0101 #define TMPSIZ L_tmpnam 0102 #else 0103 #ifdef PATH_MAX 0104 #define TMPSIZ PATH_MAX 0105 #else 0106 #define TMPSIZ 1024 /* bytes to allocate for tmpnam */ 0107 #endif 0108 #endif 0109 0110 typedef struct _MultiPiece { /* Piece of the text file of BUFSIZ allocated 0111 characters */ 0112 wchar_t* text; /* The text in this buffer */ 0113 XawTextPosition used; /* The number of characters of this buffer 0114 that have been used */ 0115 struct _MultiPiece *prev, *next; /* linked list pointers */ 0116 } MultiPiece; 0117 0118 /* New fields for the MultiSrc object class */ 0119 typedef struct _MultiSrcClassPart { 0120 XtPointer extension; 0121 } MultiSrcClassPart; 0122 0123 /* Full class record */ 0124 typedef struct _MultiSrcClassRec { 0125 ObjectClassPart object_class; 0126 TextSrcClassPart text_src_class; 0127 MultiSrcClassPart multi_src_class; 0128 } MultiSrcClassRec; 0129 0130 extern MultiSrcClassRec multiSrcClassRec; 0131 0132 /* New fields for the MultiSrc object */ 0133 typedef struct _MultiSrcPart { 0134 /* resources */ 0135 XIC ic; /* for X Input Method */ 0136 XtPointer string; /* either the string, or the file name, depend- 0137 ing upon the `type'. ALWAYS IN MB FORMAT */ 0138 XawAsciiType type; /* either string or disk */ 0139 XawTextPosition piece_size; /* Size of text buffer for each piece */ 0140 Boolean data_compression; /* compress to minimum memory automatically 0141 on save? */ 0142 #ifdef OLDXAW 0143 XtCallbackList callback; 0144 #endif 0145 Boolean use_string_in_place;/* Use the string passed in place */ 0146 int multi_length; /* length field for multi string emulation */ 0147 0148 /* private */ 0149 0150 Boolean is_tempfile; /* Is this a temporary file? */ 0151 #ifdef OLDXAW 0152 Boolean changes; 0153 #endif 0154 Boolean allocated_string; /* Have I allocated the 0155 string in multi_src->string? */ 0156 XawTextPosition length; /* length of file - IN CHARACTERS, NOT BYTES */ 0157 MultiPiece *first_piece; /* first piece of the text */ 0158 #ifndef OLDXAW 0159 XtPointer pad[4]; /* for future use and keep binary compatibility */ 0160 #endif 0161 } MultiSrcPart; 0162 0163 /* Full instance record */ 0164 typedef struct _MultiSrcRec { 0165 ObjectPart object; 0166 TextSrcPart text_src; 0167 MultiSrcPart multi_src; 0168 } MultiSrcRec; 0169 0170 _XFUNCPROTOBEGIN 0171 0172 void _XawMultiSourceFreeString 0173 ( 0174 Widget w 0175 ); 0176 0177 _XFUNCPROTOEND 0178 0179 #endif /* _XawMultiSrcP_h */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |