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 /* $XConsortium: UtilSDLI.h /main/8 1996/01/29 12:21:37 cde-hp $ */
24 /*************************************<+>*************************************
25 *****************************************************************************
29 ** Project: Cde Help System
31 ** Description: Internal header file for UtilSDL.c
33 ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
35 ** (c) Copyright 1993, 1994 Hewlett-Packard Company
36 ** (c) Copyright 1993, 1994 International Business Machines Corp.
37 ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
38 ** (c) Copyright 1993, 1994 Novell, Inc.
40 *****************************************************************************
41 *************************************<+>*************************************/
42 #ifndef _DtHelpUtilSDLI_h
43 #define _DtHelpUtilSDLI_h
50 /******** Private Define Declarations ********/
51 #define DTD_NAMELEN 64
52 /******** End Private Define Declarations ********/
61 typedef enum _sdlFontMode _SdlFontMode;
63 /******** Private Macro Declarations ********/
65 #define _SdlContainerPtrOfSeg(x) (&((x)->handle.container))
67 /******** Private Function Declarations ********/
69 extern int _DtHelpCeAllocateFontStruct (
71 _DtHelpFontHints **ret_ptr);
72 extern _DtCvString *_DtHelpCeAllocStrStruct(void);
73 extern void _DtHelpCeAddSegToList(
74 _DtCvSegment *seg_ptr,
75 _DtCvSegment **seg_list,
76 _DtCvSegment **last_seg);
77 extern int _DtHelpCeAllocSegment (
80 _DtCvSegment **next_seg,
81 _DtCvSegment **ret_seg);
82 extern int _DtHelpCeFindSkipSdlElementEnd(
84 extern int _DtHelpCeGetSdlAttribute (
87 char *attribute_name);
88 extern int _DtHelpCeGetSdlAttributeCdata (
92 extern int _DtHelpCeGetSdlCdata (
96 _DtCvValue nl_to_space,
97 _DtCvValue *cur_space,
100 char *non_break_char,
103 extern int _DtHelpCeGetSdlId (
106 extern int _DtHelpCeGetSdlNumber (
108 char *number_string);
109 extern int _DtHelpCeMatchSdlElement (
111 const char *element_str,
113 extern _DtCvSegment *_DtHelpCeMatchSemanticStyle (
118 extern void _DtHelpCeMergeSdlAttribInfo(
119 _DtCvSegment *src_toss,
120 _DtCvSegment *dst_contain,
121 _DtHelpFontHints *dst_fonts,
123 unsigned long *str1_values,
124 unsigned long *str2_values);
125 extern int _DtHelpCeReturnSdlElement (
127 const SDLElementInfo *el_list,
128 _DtCvValue cdata_flag,
129 enum SdlElement *ret_el_define,
131 _DtCvValue *ret_end_flag);
132 extern int _DtHelpCeSaveString (
133 _DtCvPointer client_data,
134 _DtCvSegment **seg_list,
135 _DtCvSegment **last_seg,
136 _DtCvSegment **prev_seg,
138 _DtHelpFontHints *font_specs,
143 _SdlFontMode resolve_font,
145 extern int _DtHelpCeSkipCdata (
150 } /* Close scope of 'extern "C"' declaration which encloses file. */
153 #endif /* _DtHelpUtilSDLI_h */
154 /* DON'T ADD ANYTHING AFTER THIS #endif */