#include "hhctrl.h"
#include "stream.h"
#include "wine/debug.h"
Go to the source code of this file.
|
| | WINE_DEFAULT_DEBUG_CHANNEL (htmlhelp) |
| |
| static SearchItem * | SearchCHM_Folder (SearchItem *item, IStorage *pStorage, const WCHAR *folder, const char *needle) |
| |
| static SearchItem * | alloc_search_item (WCHAR *title, const WCHAR *filename) |
| |
| static void | fill_search_tree (HWND hwndList, SearchItem *item) |
| |
| static WCHAR * | SearchCHM_File (IStorage *pStorage, const WCHAR *file, const char *needle) |
| |
| static SearchItem * | SearchCHM_Storage (SearchItem *item, IStorage *pStorage, const char *needle) |
| |
| void | InitSearch (HHInfo *info, const char *needle) |
| |
| void | ReleaseSearch (HHInfo *info) |
| |
◆ alloc_search_item()
◆ fill_search_tree()
Definition at line 47 of file search.c.
48{
51
55
56 memset(&lvi, 0,
sizeof(lvi));
64 }
65}
#define LVM_DELETEALLITEMS
struct _TREEITEM * HTREEITEM
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
Referenced by InitSearch().
◆ InitSearch()
Definition at line 224 of file search.c.
225{
228
231 if(
info->search.root)
233 info->search.root = root_item;
234}
static void fill_search_tree(HWND hwndList, SearchItem *item)
static SearchItem * alloc_search_item(WCHAR *title, const WCHAR *filename)
static SearchItem * SearchCHM_Storage(SearchItem *item, IStorage *pStorage, const char *needle)
void ReleaseSearch(HHInfo *info)
Referenced by Child_WndProc().
◆ ReleaseSearch()
◆ SearchCHM_File()
Definition at line 73 of file search.c.
74{
83
88 }
89
93
95
96
99
101 {
104
106 {
111 }
112
119 }
120
123 }
124
125
126
127
130
131
134
139
141 IStream_Release(temp_stream);
142
143 if(!found)
144 {
147 }
149}
static void strbuf_init(strbuf *buf)
#define stricmp(_String1, _String2)
#define MultiByteToWideChar
void strbuf_free(strbuf_t *buf)
BOOL next_node(stream_t *stream, strbuf_t *buf)
BOOL next_content(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)
static void cleanup(void)
_ACRTIMP char *__cdecl strstr(const char *, const char *)
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
wchar_t const *const size_t const buffer_size
Referenced by SearchCHM_Storage().
◆ SearchCHM_Folder()
◆ SearchCHM_Storage()
Definition at line 154 of file search.c.
156{
157 static const WCHAR szHTMext[] = {
'.',
'h',
't',
'm',0};
160 STATSTG entries;
163
164 hres = IStorage_EnumElements(pStorage, 0,
NULL, 0, &
elem);
166 {
167 FIXME(
"Could not enumerate '/' storage elements: %08lx\n",
hres);
169 }
170 while (IEnumSTATSTG_Next(
elem, 1, &entries, &retr) ==
NOERROR)
171 {
175 switch(entries.type) {
176 case STGTY_STORAGE:
178 break;
179 case STGTY_STREAM:
181 {
183
185 {
188 }
189 }
190 break;
191 default:
192 FIXME(
"Unhandled IStorage stream element.\n");
193 }
194 }
195 IEnumSTATSTG_Release(
elem);
197}
static WCHAR * SearchCHM_File(IStorage *pStorage, const WCHAR *file, const char *needle)
static SearchItem * SearchCHM_Folder(SearchItem *item, IStorage *pStorage, const WCHAR *folder, const char *needle)
_ACRTIMP wchar_t *__cdecl wcsstr(const wchar_t *, const wchar_t *)
Referenced by InitSearch(), and SearchCHM_Folder().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
htmlhelp |
| ) |
|