]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/helpwin.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / msw / helpwin.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/msw/helpwin.h
2bda0e17
KB
3// Purpose: Help system: WinHelp implementation
4// Author: Julian Smart
5// Modified by:
6// Created: 04/01/98
bbcdf8bc 7// Copyright: (c) Julian Smart
59af881e 8// Licence: wxWindows licence
2bda0e17
KB
9/////////////////////////////////////////////////////////////////////////////
10
bbcdf8bc
JS
11#ifndef _WX_HELPWIN_H_
12#define _WX_HELPWIN_H_
2bda0e17 13
2bda0e17
KB
14#include "wx/wx.h"
15
47d67540 16#if wxUSE_HELP
2bda0e17
KB
17
18#include "wx/helpbase.h"
19
53a2db12 20class WXDLLIMPEXP_CORE wxWinHelpController: public wxHelpControllerBase
2bda0e17 21{
48dd0055 22 DECLARE_DYNAMIC_CLASS(wxWinHelpController)
59af881e 23
f6bcfd97 24public:
3db52265 25 wxWinHelpController(wxWindow* parentWindow = NULL): wxHelpControllerBase(parentWindow) {}
d3c7fc99 26 virtual ~wxWinHelpController() {}
2bda0e17 27
f6bcfd97
BP
28 // Must call this to set the filename
29 virtual bool Initialize(const wxString& file);
0e4acbd4 30 virtual bool Initialize(const wxString& file, int WXUNUSED(server) ) { return Initialize( file ); }
2bda0e17 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);
0e4acbd4 36 virtual bool DisplaySection(const wxString& section) { return KeywordSearch(section); }
f6bcfd97 37 virtual bool DisplayBlock(long blockNo);
5100cabf 38 virtual bool DisplayContextPopup(int contextId);
69b5cec2
VS
39 virtual bool KeywordSearch(const wxString& k,
40 wxHelpSearchMode mode = wxHELP_SEARCH_ALL);
f6bcfd97 41 virtual bool Quit();
2bda0e17 42
f6bcfd97 43 inline wxString GetHelpFile() const { return m_helpFile; }
2bda0e17
KB
44
45protected:
f6bcfd97
BP
46 // Append extension if necessary.
47 wxString GetValidFilename(const wxString& file) const;
59af881e 48
f6bcfd97
BP
49private:
50 wxString m_helpFile;
2bda0e17
KB
51};
52
47d67540 53#endif // wxUSE_HELP
2bda0e17 54#endif
f6bcfd97 55// _WX_HELPWIN_H_