2
0

UtilSDLI.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  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)
  10. * any later version.
  11. *
  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
  16. * details.
  17. *
  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
  22. */
  23. /* $XConsortium: UtilSDLI.h /main/8 1996/01/29 12:21:37 cde-hp $ */
  24. /*************************************<+>*************************************
  25. *****************************************************************************
  26. **
  27. ** File: UtilSDLI.h
  28. **
  29. ** Project: Cde Help System
  30. **
  31. ** Description: Internal header file for UtilSDL.c
  32. **
  33. ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
  34. **
  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.
  39. **
  40. *****************************************************************************
  41. *************************************<+>*************************************/
  42. #ifndef _DtHelpUtilSDLI_h
  43. #define _DtHelpUtilSDLI_h
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47. /******** Private Define Declarations ********/
  48. #define DTD_NAMELEN 64
  49. /******** End Private Define Declarations ********/
  50. enum _sdlFontMode
  51. {
  52. _SdlFontModeResolve,
  53. _SdlFontModeSave,
  54. _SdlFontModeNone
  55. };
  56. typedef enum _sdlFontMode _SdlFontMode;
  57. /******** Private Macro Declarations ********/
  58. #define _SdlContainerPtrOfSeg(x) (&((x)->handle.container))
  59. /******** Private Function Declarations ********/
  60. extern int _DtHelpCeAllocateFontStruct (
  61. int num,
  62. _DtHelpFontHints **ret_ptr);
  63. extern _DtCvString *_DtHelpCeAllocStrStruct(void);
  64. extern void _DtHelpCeAddSegToList(
  65. _DtCvSegment *seg_ptr,
  66. _DtCvSegment **seg_list,
  67. _DtCvSegment **last_seg);
  68. extern int _DtHelpCeAllocSegment (
  69. int malloc_size,
  70. int *alloc_size,
  71. _DtCvSegment **next_seg,
  72. _DtCvSegment **ret_seg);
  73. extern int _DtHelpCeFindSkipSdlElementEnd(
  74. BufFilePtr f);
  75. extern int _DtHelpCeGetSdlAttribute (
  76. BufFilePtr f,
  77. int max_len,
  78. char *attribute_name);
  79. extern int _DtHelpCeGetSdlAttributeCdata (
  80. BufFilePtr f,
  81. _DtCvValue limit,
  82. char **string);
  83. extern int _DtHelpCeGetSdlCdata (
  84. BufFilePtr f,
  85. SdlOption type,
  86. int char_len,
  87. _DtCvValue nl_to_space,
  88. _DtCvValue *cur_space,
  89. _DtCvValue *cur_nl,
  90. _DtCvValue *cur_mb,
  91. char *non_break_char,
  92. char **string,
  93. int *str_max);
  94. extern int _DtHelpCeGetSdlId (
  95. BufFilePtr f,
  96. char **id_value);
  97. extern int _DtHelpCeGetSdlNumber (
  98. BufFilePtr f,
  99. char *number_string);
  100. extern int _DtHelpCeMatchSdlElement (
  101. BufFilePtr f,
  102. const char *element_str,
  103. int sig_chars);
  104. extern _DtCvSegment *_DtHelpCeMatchSemanticStyle (
  105. _DtCvSegment *toss,
  106. SdlOption clan,
  107. int level,
  108. char *ssi);
  109. extern void _DtHelpCeMergeSdlAttribInfo(
  110. _DtCvSegment *src_toss,
  111. _DtCvSegment *dst_contain,
  112. _DtHelpFontHints *dst_fonts,
  113. void *el_info,
  114. unsigned long *str1_values,
  115. unsigned long *str2_values);
  116. extern int _DtHelpCeReturnSdlElement (
  117. BufFilePtr f,
  118. const SDLElementInfo *el_list,
  119. _DtCvValue cdata_flag,
  120. enum SdlElement *ret_el_define,
  121. char **ret_data,
  122. _DtCvValue *ret_end_flag);
  123. extern int _DtHelpCeSaveString (
  124. _DtCvPointer client_data,
  125. _DtCvSegment **seg_list,
  126. _DtCvSegment **last_seg,
  127. _DtCvSegment **prev_seg,
  128. char *string,
  129. _DtHelpFontHints *font_specs,
  130. int link_index,
  131. int multi_len,
  132. int flags,
  133. void (*load_font)(),
  134. _SdlFontMode resolve_font,
  135. _DtCvValue newline);
  136. extern int _DtHelpCeSkipCdata (
  137. BufFilePtr f,
  138. _DtCvValue flag);
  139. #ifdef __cplusplus
  140. } /* Close scope of 'extern "C"' declaration which encloses file. */
  141. #endif
  142. #endif /* _DtHelpUtilSDLI_h */
  143. /* DON'T ADD ANYTHING AFTER THIS #endif */