1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Help system: WinHelp implementation
4 // Author: William Osborne
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "help.h"
23 #include "wx/helpbase.h"
25 class WXDLLEXPORT wxPalmHelpController
: public wxHelpControllerBase
27 DECLARE_CLASS(wxPalmHelpController
)
30 wxPalmHelpController() {};
31 ~wxPalmHelpController() {};
33 // Must call this to set the filename
34 virtual bool Initialize(const wxString
& file
);
35 virtual bool Initialize(const wxString
& file
, int WXUNUSED(server
) ) { return Initialize( file
); }
37 // If file is "", reloads file given in Initialize
38 virtual bool LoadFile(const wxString
& file
= wxEmptyString
);
39 virtual bool DisplayContents();
40 virtual bool DisplaySection(int sectionNo
);
41 virtual bool DisplaySection(const wxString
& section
) { return KeywordSearch(section
); }
42 virtual bool DisplayBlock(long blockNo
);
43 virtual bool DisplayContextPopup(int contextId
);
44 virtual bool KeywordSearch(const wxString
& k
,
45 wxHelpSearchMode mode
= wxHELP_SEARCH_ALL
);
48 inline wxString
GetHelpFile() const { return m_helpFile
; }
51 // Append extension if necessary.
52 wxString
GetValidFilename(const wxString
& file
) const;