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 /* xoakufont.h 1.4 - Fujitsu source for CDEnext 96/05/30 11:20:56 */
24 /* $XConsortium: xoakufont.h /main/4 1996/06/25 20:17:03 cde-fuj $ */
26 * (c) Copyright 1995 FUJITSU LIMITED
27 * This is source code modified by FUJITSU LIMITED under the Joint
28 * Development Agreement for the CDEnext PST.
29 * This is unpublished proprietary source code of FUJITSU LIMITED
36 extern Widget CreateOblB();
37 extern Widget CreateOblBG();
38 extern Widget CreateToglBG();
39 extern Widget CreateToglB();
40 extern Widget CreateRecBG();
41 extern Widget CreateRecB();
42 extern Widget CreateCapt();
43 extern Widget CreateCaptG();
44 extern Widget CreateLabelG();
45 extern Widget CreateLabel();
46 extern void SetString();
49 extern int writeSNF();
50 extern int ptnClose();
53 extern int ptnSense();
56 extern int ptnSqToNo();
57 extern int ptnNoToSq();
58 extern int noToCode();
59 extern int noToCode2();
60 extern int codeToNo();
61 extern int codeToNo2();
62 extern int codeCheck();
63 extern int codeCheck2();
64 extern void bitSetInfo();
66 extern void bitReset();
68 extern void bitPtnClear();
69 extern void bitPtnCopy();
70 extern int bitDrawLine();
71 extern int bitDrawRect();
72 extern int bitDrawCls();
73 extern int bitDrawSet();
74 extern int bitDrawRev();
75 extern int bitDrawCpy();
76 extern int bitDrawMov();
77 extern int bitDrawRoll();
78 extern int bitDrawSymV();
79 extern int bitDrawSymH();
83 #define SetString(w,s) UpdateMessage((s))
97 #define PROC_CIRCLE 12
99 #define PROC_SELECT 14
101 #define RES_MSG (1L<<0)
102 #define RES_PROC (1L<<1)
103 #define RES_SLCT (1L<<2)
104 #define RES_RSV (1L<<3)
108 #define CPY_OVERLAY 1
118 #define SET_NORMAL_U90_G1 0
119 #define SET_NORMAL_G1 1
120 #define SET_SYSTEM_G1 2
127 #define MG_MAXSIZE 100
132 #define Dprintf2 printf
133 #define Dprintf printf
140 /**********************************************************************
142 **********************************************************************/
144 /* editting character */
145 typedef struct _EditChar {
151 char ptn[MAXPTNBYTE];
157 typedef struct _EditList {
171 typedef struct _EditPane {
183 typedef struct _XlibInf {
188 Window list_winID; /* 1995.10.02 */
197 typedef struct _DelInf {
212 typedef struct _DelPtnInf {
215 char ptn[MAXPTNBYTE];
218 /* editting pattern */
219 typedef struct _EditPtnInf {
232 char rsv_ptn[MAXPTNBYTE];
236 typedef struct _CopyPtnInf {
246 typedef struct _FontInf {
252 /**********************************************************************
255 **********************************************************************/
257 #ifdef substance_source
263 #endif /* substance_source */
265 ex Widget toplevel I(NULL);
267 ex Widget editPtnW I(NULL);
268 ex Widget cpyPtnW I(NULL);
269 ex Widget mngPtnW I(NULL);
272 #ifdef substance_source
273 ={ 0,0,0,0,0,0,0, OFF }
274 #endif /* substance_source */
277 #ifdef substance_source
278 ={ EDLIST_MAX, 0,0,0,0,0,0,0,0,0 }
279 #endif /* substance_source */
282 #ifdef substance_source
283 ={ EDPANE_SIZE, EDPANE_SIZE, 0,0,0,0,0,0 }
284 #endif /* substance_source */
288 #ifdef substance_source
289 ={ 0,0,0,0,0,0,0,0,0,0,0 }
290 #endif /* substance_source */
292 ex DelPtnInf dl[D_MAX] ;
293 ex DelPtnInf dl_glyph[EDLIST_MAX] ; /* add dl_disp 1995.09.20 */
294 ex int sq_disp[EDLIST_MAX] ; /* add sq_disp 1995.09.20 */
297 #ifdef substance_source
298 ={ OFF,0,0,0,0,0,0,0,0,0,0,0,0,0 }
299 #endif /* substance_source */
302 #ifdef substance_source
304 #endif /* substance_source */
312 * resources for font editor
315 #include"ufontrsrc.h" /* 1995.06.28 H.Chiba */
318 /*Resource resource; del 1995.05.30 H.Chiba BSC */
321 #ifdef substance_source /* add 1995.06.29 H.Chiba -> */
324 /* CreateCaptionFrame() */
325 Boolean capt_resize = True ; /* resizable: */
326 int capt_lftoff = 2 ; /* leftOffset: */
327 int capt_topoff = 2 ; /* topOffset: */
328 int capt_rghoff = 2 ; /* rightOffset: */
330 Pixel pane_background;
331 Pixel pane_foreground;
333 /* CreateMenuButtons() */
334 Dimension menu_margin = 0 ; /* margin: */
336 /* CreateDialogAndButtons() */
337 Boolean dia_tm_automng = False ; /* autoUnmanage: */
338 Dimension dia_tm_width = 4 ; /* marginWidth: */
339 Dimension dia_tm_height = 4 ; /* marginHeight: */
340 Boolean dia_tm_resize = True ; /* noResize: */
341 Boolean dia_tm_minimize = True ; /* minimizeButtons: */
343 Dimension dia_rw_width = 6 ; /* marginWidth: */
344 Dimension dia_rw_height = 6 ; /* marginHeight: */
345 Dimension dia_rw_spacing = 4 ; /* spacing: */
347 /* CreateDrawingArea() */
348 Dimension draw_border = 1 ; /* borderWidth: */
349 int draw_topoff = 2 ; /* topOffset: */
350 int draw_lftoff = 2 ; /* leftOffset: */
353 Boolean pop_resize = True ; /* noResize: */
354 Boolean pop_minimize = True ; /* minimizeButtons: */
356 /* CreateTemplateDialog() */
357 Boolean temp_resize = True ; /* noResize: */
358 Boolean temp_minimize = True ; /* minimizeButtons: */
360 Dimension temp_width = 1 ; /* width: */
361 Dimension temp_height = 1 ; /* height: */
363 /* CreateMenuBarAndFooterMessageForm() */
365 ed_functions = ( MWM_FUNC_MOVE | MWM_FUNC_MINIMIZE | MWM_FUNC_CLOSE ) ;/* mwmFunctions: */
368 int ed_bar_topoff = 1 ; /* topOffset: */
369 int ed_bar_lftoff = 1 ; /* leftOffset: */
370 int ed_bar_rghoff = 1 ; /* rightOffset: */
372 int ed_frm_btmoff = 3 ; /* bottomOffset: */
373 int ed_frm_lftoff = 3 ; /* leftOffset: */
374 int ed_frm_rghoff = 3 ; /* rightOffset: */
376 Dimension ed_msg_margintop = 3 ; /* marginTop: */
377 Dimension ed_msg_marginbtm = 3 ; /* marginBottom: */
379 Dimension ed_mesg_margintop = 3 ; /* marginTop: */
380 Dimension ed_mesg_marginbtm = 3 ; /* marginBottom: */
382 int ed_sep_btmoff = 3 ; /* bottomOffset: */
383 int ed_sep_lftoff = 0 ; /* leftOffset: */
384 int ed_sep_rghoff = 0 ; /* rightOffset: */
385 Dimension ed_sep_margin = 0 ; /* margin: */
387 int ed_wge_topoff = 10 ; /* topOffset: */
388 int ed_wge_lftoff = 10 ; /* leftOffset: */
389 int ed_wge_rghoff = 10 ; /* rightOffset: */
390 int ed_wge_btmoff = 10 ; /* bottomOffset: */
393 Boolean frame_resize = False ; /* resizable: */
395 /* CreateScrollBase() */
396 Dimension scll_fr_width = 500 ; /* width: */
398 Dimension scll_fr_thick = 2 ; /* shadowThickness: */
400 int scll_bar_lftoff = 4 ; /* leftOffset: */
402 #endif /* substance_source */ /* -> add 1995.06.29 H.Chiba */