* Move some inclusions to the main header.
* Set the default debugging channel globally through the main header.
* Remove inclusions and definitions that already exist in the main header/resource file.
CORE-7716
svn path=/trunk/; revision=61362
*/
#include "hhctrl.h"
-#include "stream.h"
#include <winreg.h>
#include <shlwapi.h>
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp);
/* Reads a string from the #STRINGS section in the CHM file */
static LPCSTR GetChmString(CHMInfo *chm, DWORD offset)
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
-
#include "hhctrl.h"
-#include "stream.h"
-#include "resource.h"
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp);
+#include "resource.h"
typedef enum {
INSERT_NEXT,
#include "hhctrl.h"
-//#include "wingdi.h"
-//#include "commctrl.h"
+#include <wingdi.h>
#include <wininet.h>
-#include "wine/debug.h"
-
#include "resource.h"
-WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp);
-
static LRESULT Help_OnSize(HWND hWnd);
static void ExpandContract(HHInfo *pHHInfo);
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include <wine/debug.h>
-
-#include <stdarg.h>
-
-#define COBJMACROS
-
-#include "windef.h"
-#include "winbase.h"
-#include "winuser.h"
-#include "winnls.h"
-#include "htmlhelp.h"
-#include "ole2.h"
-#include "rpcproxy.h"
-
-#define INIT_GUID
#include "hhctrl.h"
-WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp);
+#include <rpcproxy.h>
HINSTANCE hhctrl_hinstance;
BOOL hh_process = FALSE;
#ifndef HHCTRL_H
#define HHCTRL_H
+#include <stdarg.h>
+
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
-#include <stdarg.h>
+#define NONAMELESSUNION
+#define NONAMELESSSTRUCT
#define COBJMACROS
+#include <initguid.h>
+
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <mshtmhst.h>
#include <commctrl.h>
-#ifdef INIT_GUID
-#include <initguid.h>
-#endif
-
#include <wine/itss.h>
#include <wine/unicode.h>
#include <wine/list.h>
+#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp);
+
+#include "stream.h"
+
#define WB_GOBACK 0
#define WB_GOFORWARD 1
#define WB_GOHOME 2
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
#include <windef.h>
-//#include "winbase.h"
-//#include "wingdi.h"
-//#include "winnls.h"
-//#include "htmlhelp.h"
-//#include "resource.h"
+#include <htmlhelp.h>
+
+#include "resource.h"
#ifdef LANGUAGE_CS_CZ
#include "lang/Cs.rc"
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
-
#include "hhctrl.h"
-#include "stream.h"
-
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp);
/* Fill the TreeView object corresponding to the Index items */
static void fill_index_tree(HWND hwnd, IndexItem *item)
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
/* Czech strings in CP1250 */
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
LANGUAGE LANG_DANISH, SUBLANG_DEFAULT
STRINGTABLE
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
#pragma code_page(65001)
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
LANGUAGE LANG_GREEK, SUBLANG_DEFAULT
STRINGTABLE
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
STRINGTABLE
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
/* UTF-8 */
#pragma code_page(65001)
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
LANGUAGE LANG_FINNISH, SUBLANG_DEFAULT
STRINGTABLE
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
/* UTF-8 */
#pragma code_page(65001)
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
LANGUAGE LANG_HEBREW, SUBLANG_DEFAULT
STRINGTABLE
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT
STRINGTABLE
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
/* UTF-8 */
#pragma code_page(65001)
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
/* UTF-8 */
#pragma code_page(65001)
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
STRINGTABLE
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
/* UTF-8 */
#pragma code_page(65001)
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL
STRINGTABLE
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
LANGUAGE LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL
STRINGTABLE
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
STRINGTABLE
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
#pragma code_page(65001)
LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
#pragma code_page(65001)
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
/* UTF-8 */
#pragma code_page(65001)
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
#pragma code_page(65001)
LANGUAGE LANG_SLOVENIAN, SUBLANG_DEFAULT
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
STRINGTABLE
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
STRINGTABLE
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
/* UTF-8 */
#pragma code_page(65001)
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "resource.h"
-
/* Chinese text is encoded in UTF-8 */
#pragma code_page(65001)
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-//#include <windef.h>
-//#include <winbase.h>
-#include <wingdi.h>
-#include <htmlhelp.h>
+#pragma once
#define IDS_CONTENTS 1
#define IDS_INDEX 2
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
-
#include "hhctrl.h"
-#include "stream.h"
-
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp);
static SearchItem *SearchCHM_Folder(SearchItem *item, IStorage *pStorage,
const WCHAR *folder, const char *needle);
*/
#include "hhctrl.h"
-#include "stream.h"
-
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp);
void strbuf_init(strbuf_t *buf)
{
#include "hhctrl.h"
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp);
-
typedef struct IOleClientSiteImpl
{
IOleClientSite IOleClientSite_iface;