]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/helpchm.h
Applied patch [ 795423 ] Unicode and warning fixes in contrib/mmedia lib and sample
[wxWidgets.git] / include / wx / msw / helpchm.h
CommitLineData
f6bcfd97
BP
1/////////////////////////////////////////////////////////////////////////////
2// Name: helpchm.h
3// Purpose: Help system: MS HTML Help implementation
4// Author: Julian Smart
5// Modified by:
6// Created: 16/04/2000
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_HELPCHM_H_
13#define _WX_HELPCHM_H_
14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
f6bcfd97
BP
16#pragma interface "helpchm.h"
17#endif
18
3295e238 19#if wxUSE_MS_HTML_HELP
f6bcfd97
BP
20
21#include "wx/helpbase.h"
22
3295e238 23class WXDLLEXPORT wxCHMHelpController : public wxHelpControllerBase
f6bcfd97 24{
f6bcfd97 25public:
3295e238
VZ
26 wxCHMHelpController() { }
27 virtual ~wxCHMHelpController();
28
f6bcfd97
BP
29 // Must call this to set the filename
30 virtual bool Initialize(const wxString& file);
3295e238 31
f6bcfd97
BP
32 // If file is "", reloads file given in Initialize
33 virtual bool LoadFile(const wxString& file = wxEmptyString);
34 virtual bool DisplayContents();
35 virtual bool DisplaySection(int sectionNo);
36 virtual bool DisplaySection(const wxString& section);
37 virtual bool DisplayBlock(long blockNo);
5100cabf
JS
38 virtual bool DisplayContextPopup(int contextId);
39 virtual bool DisplayTextPopup(const wxString& text, const wxPoint& pos);
69b5cec2
VS
40 virtual bool KeywordSearch(const wxString& k,
41 wxHelpSearchMode mode = wxHELP_SEARCH_ALL);
f6bcfd97
BP
42 virtual bool Quit();
43
3295e238
VZ
44 wxString GetHelpFile() const { return m_helpFile; }
45
f6bcfd97
BP
46protected:
47 // Append extension if necessary.
48 wxString GetValidFilename(const wxString& file) const;
3295e238 49
f6bcfd97
BP
50protected:
51 wxString m_helpFile;
3295e238
VZ
52
53 DECLARE_CLASS(wxCHMHelpController)
f6bcfd97
BP
54};
55
3295e238
VZ
56#endif // wxUSE_MS_HTML_HELP
57
f6bcfd97
BP
58#endif
59// _WX_HELPCHM_H_