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 librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* XomGeneric.h 1.6 - Fujitsu source for CDEnext 96/02/29 18:02:52 */
24 /* $XConsortium: _falomGeneric.h /main/1 1996/04/08 15:20:29 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 proprietary source code of FUJITSU LIMITED
55 * Modifier: Takanori Tateno FUJITSU LIMITED
59 #ifndef _XOMGENERIC_H_
60 #define _XOMGENERIC_H_
62 #include "_fallcPublic.h"
64 #define XOM_GENERIC(om) (&((XOMGeneric) om)->gen)
65 #define XOC_GENERIC(font_set) (&((XOCGeneric) font_set)->gen)
68 typedef struct _CodeRangeRec {
73 } CodeRangeRec, *CodeRange;
75 typedef struct _VRotateRec {
76 char *charset_name; /* Charset name */
77 XlcSide side; /* Encoding side */
82 } VRotateRec, *VRotate;
89 typedef struct _FontDataRec {
97 } FontDataRec, *FontData;
99 #define VROTATE_NONE 0
100 #define VROTATE_PART 1
101 #define VROTATE_ALL 2
103 typedef struct _OMDataRec {
105 XlcCharSet *charset_list;
111 /* Vertical Writing */
117 } OMDataRec, *OMData;
119 typedef struct _XOMGenericPart {
122 Bool on_demand_loading;
126 typedef struct _XOMGenericRec {
130 } XOMGenericRec, *XOMGeneric;
136 typedef struct _FontSetRec {
139 XlcCharSet *charset_list;
150 /* Vertical Writing */
155 } FontSetRec, *FontSet;
157 typedef struct _XOCGenericPart {
164 typedef struct _XOCGenericRec {
168 } XOCGenericRec, *XOCGeneric;
172 extern XOM _falomGenericOpenOM(
173 #if NeedFunctionPrototypes
176 XrmDatabase /* rdb */,
177 _Xconst char* /* res_name */,
178 _Xconst char* /* res_class */
182 extern XlcConv _XomInitConverter(
183 #if NeedFunctionPrototypes
185 XOMTextType /* type */
189 extern int _XomConvert(
190 #if NeedFunctionPrototypes
193 XPointer* /* from */,
194 int* /* from_left */,
197 XPointer* /* args */,
204 #endif /* _XOMGENERIC_H_ */