2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* XlcPublic.h 1.3 - Fujitsu source for CDEnext 95/12/07 10:53:08 */
24 /* $XConsortium: _fallcPublic.h /main/1 1996/04/08 15:18:31 cde-fuj $ */
26 * Copyright 1992, 1993 by TOSHIBA Corp.
28 * Permission to use, copy, modify, and distribute this software and its
29 * documentation for any purpose and without fee is hereby granted, provided
30 * that the above copyright notice appear in all copies and that both that
31 * copyright notice and this permission notice appear in supporting
32 * documentation, and that the name of TOSHIBA not be used in advertising
33 * or publicity pertaining to distribution of the software without specific,
34 * written prior permission. TOSHIBA make no representations about the
35 * suitability of this software for any purpose. It is provided "as is"
36 * without express or implied warranty.
38 * TOSHIBA DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
39 * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
40 * TOSHIBA BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
41 * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
42 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
43 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
46 * Author: Katsuhisa Yano TOSHIBA Corp.
47 * mopi@osa.ilab.toshiba.co.jp
50 * Copyright 1995 by FUJITSU LIMITED
51 * This is source code modified by FUJITSU LIMITED under the Joint
52 * Development Agreement for the CDEnext PST.
53 * This is unpublished proprietry source code of FUJITSU LIMITED
55 * Modifier: Takanori Tateno FUJITSU LIMITED
62 #include "_fallcint.h"
64 #define XlcNCharSize "charSize"
65 #define XlcNCodeset "codeset"
66 #define XlcNControlSequence "controlSequence"
67 #define XlcNDefaultString "defaultString"
68 #define XlcNEncodingName "encodingName"
69 #define XlcNLanguage "language"
70 #define XlcNMbCurMax "mbCurMax"
71 #define XlcNName "name"
72 #define XlcNSetSize "setSize"
73 #define XlcNSide "side"
74 #define XlcNStateDependentEncoding "stateDependentEncoding"
75 #define XlcNTerritory "territory"
78 XlcUnknown, XlcC0, XlcGL, XlcC1, XlcGR, XlcGLGR, XlcOther, XlcNONE
81 typedef struct _FonScope {
85 unsigned long shift_direction;
86 } FontScopeRec, *FontScope;
88 typedef struct _UDCArea {
89 unsigned long start,end;
90 } UDCAreaRec, *UDCArea;
92 typedef struct _XlcCharSetRec *XlcCharSet;
94 typedef char* (*XlcGetCSValuesProc)(
95 #if NeedFunctionPrototypes
96 XlcCharSet /* charset */,
97 XlcArgList /* args */,
102 typedef struct _XlcCharSetRec {
103 char *name; /* character set name */
105 char *encoding_name; /* XLFD encoding name */
106 XrmQuark xrm_encoding_name;
107 XlcSide side; /* GL, GR or others */
108 int char_size; /* number of bytes per character */
109 int set_size; /* graphic character sets */
110 char *ct_sequence; /* control sequence of CT */
111 XlcGetCSValuesProc get_values;
113 Bool string_encoding;
122 typedef struct _XlcConvRec *XlcConv;
124 typedef XlcConv (*XlcOpenConverterProc)(
125 #if NeedFunctionPrototypes
127 char* /* from_type */,
133 typedef void (*XlcCloseConverterProc)(
134 #if NeedFunctionPrototypes
139 typedef int (*XlcConvertProc)(
140 #if NeedFunctionPrototypes
142 XPointer* /* from */,
143 int* /* from_left */,
146 XPointer* /* args */,
151 typedef void (*XlcResetConverterProc)(
152 #if NeedFunctionPrototypes
157 typedef struct _XlcConvMethodsRec{
158 XlcCloseConverterProc close;
159 XlcConvertProc convert;
160 XlcResetConverterProc reset;
161 } XlcConvMethodsRec, *XlcConvMethods;
167 #define XlcNMultiByte "multiByte"
168 #define XlcNWideChar "wideChar"
169 #define XlcNCompoundText "compoundText"
170 #define XlcNString "string"
171 #define XlcNCharSet "charSet"
172 #define XlcNCTCharSet "CTcharSet"
173 #define XlcNChar "char"
175 typedef struct _XlcConvRec {
176 XlcConvMethods methods;
183 extern Bool _falInitOM(
184 #if NeedFunctionPrototypes
189 extern Bool _XInitIM(
190 #if NeedFunctionPrototypes
195 extern char *_falGetLCValues(
196 #if NeedVarargsPrototypes
202 extern XlcCharSet _fallcGetCharSet(
203 #if NeedFunctionPrototypes
208 extern Bool _fallcAddCharSet(
209 #if NeedFunctionPrototypes
210 XlcCharSet /* charset */
214 extern char *_fallcGetCSValues(
215 #if NeedVarargsPrototypes
216 XlcCharSet /* charset */,
221 extern XlcConv _fallcOpenConverter(
222 #if NeedFunctionPrototypes
224 char* /* from_type */,
230 extern void _fallcCloseConverter(
231 #if NeedFunctionPrototypes
236 extern int _fallcConvert(
237 #if NeedFunctionPrototypes
239 XPointer* /* from */,
240 int* /* from_left */,
243 XPointer* /* args */,
248 extern void _fallcResetConverter(
249 #if NeedFunctionPrototypes
254 extern Bool _fallcSetConverter(
255 #if NeedFunctionPrototypes
257 char* /* from_type */,
260 XlcOpenConverterProc /* open_converter */
264 extern void _fallcGetResource(
265 #if NeedFunctionPrototypes
267 char* /* category */,
274 extern char *_fallcFileName(
275 #if NeedFunctionPrototypes
281 extern int _falwcslen(
282 #if NeedFunctionPrototypes
287 extern wchar_t *_falwcscpy(
288 #if NeedFunctionPrototypes
289 wchar_t* /* wstr1 */,
294 extern int _fallcCompareISOLatin1(
295 #if NeedFunctionPrototypes
301 extern int _fallcNCompareISOLatin1(
302 #if NeedFunctionPrototypes
311 #endif /* _XLCPUBLIC_H_ */