#include "hhctrl.h"
#include "stream.h"
#include "wine/debug.h"
Go to the source code of this file.
◆ fill_index_tree()
Definition at line 28 of file index.c.
29{
32
35
37 {
38 FIXME(
"HTML Help index item has no keyword.\n");
40 continue;
41 }
42 memset(&lvi, 0,
sizeof(lvi));
51 }
52}
struct _TREEITEM * HTREEITEM
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
Referenced by InitIndex().
◆ InitIndex()
Definition at line 265 of file index.c.
266{
268
272
275 TRACE(
"Could not get index stream\n");
276 return;
277 }
278
281
283}
void SetChmPath(ChmPath *file, LPCWSTR base_file, LPCWSTR path)
IStream * GetChmStream(CHMInfo *info, LPCWSTR parent_chm, ChmPath *chm_file)
static void parse_hhindex(HHInfo *info, IStream *str, IndexItem *item)
static void fill_index_tree(HWND hwnd, IndexItem *item)
Referenced by CreateViewer().
◆ item_realloc()
◆ parse_hhindex()
Definition at line 215 of file index.c.
216{
219 int indent_level = -1;
220
223
225
228
230
233
236 int num_items =
item->nItems;
237
243 } else if(new_item) {
244 item->next = new_item;
247 item->indentLevel = indent_level;
248 }
250 indent_level++;
252 indent_level--;
253 }else {
254 WARN(
"Unhandled tag! %s\n", node_name.
buf);
255 }
256
258 }
259
262}
static BOOL heap_free(void *mem)
static void strbuf_init(strbuf *buf)
#define _strnicmp(_String1, _String2, _MaxCount)
static IndexItem * parse_li(HHInfo *info, stream_t *stream)
static void item_realloc(IndexItem *item, int num_items)
void strbuf_free(strbuf_t *buf)
BOOL next_node(stream_t *stream, strbuf_t *buf)
void strbuf_zero(strbuf_t *buf)
void stream_init(stream_t *stream, IStream *str)
void get_node_name(strbuf_t *node, strbuf_t *name)
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
#define memcpy(s1, s2, n)
Referenced by InitIndex().
◆ parse_index_obj_node_param()
Definition at line 71 of file index.c.
72{
76
79 WARN(
"name attr not found\n");
80 return;
81 }
82
83
84
85
91
92
93
94
97 item->itemFlags |= 0x01;
100 item->itemFlags |= 0x10;
102 }else {
104 return;
105 }
106
109 WARN(
"value attr not found\n");
110 return;
111 }
112
114}
_Out_opt_ UINT * code_page
static __inline const char * debugstr_an(const char *s, int n)
WCHAR * decode_html(const char *html_fragment, int html_fragment_len, UINT code_page)
const char * get_attr(const char *node, const char *name, int *len)
Referenced by parse_index_sitemap_object().
◆ parse_index_sitemap_object()
Definition at line 122 of file index.c.
123{
126
129
132 item->items = heap_alloc_zero(0);
133 item->itemFlags = 0x11;
134
137
139
143 break;
144 }else {
145 WARN(
"Unhandled tag! %s\n", node_name.
buf);
146 }
147
149 }
150
153
155}
static void parse_index_obj_node_param(IndexItem *item, const char *text, UINT code_page)
Referenced by parse_li().
◆ parse_li()
Definition at line 163 of file index.c.
164{
167
170
173
175
179
180 static const char sz_text_sitemap[] = "text/sitemap";
181
183
184 if(
ptr &&
len ==
sizeof(sz_text_sitemap)-1
187 break;
188 }
189 }else {
190 WARN(
"Unhandled tag! %s\n", node_name.
buf);
191 }
192
194 }
196 FIXME(
"Failed to parse <li> tag!\n");
197
200
202}
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
static IndexItem * parse_index_sitemap_object(HHInfo *info, stream_t *stream)
Referenced by parse_hhindex().
◆ ReleaseIndex()
Definition at line 288 of file index.c.
289{
292
294
299
304 }
306
308 }
309}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static unsigned __int64 next
Referenced by ReleaseHelpViewer().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
htmlhelp |
| ) |
|