]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/help.h
Applied patch [ 1166587 ] [wxMSW] Removes all flicker from wxStaticBox
[wxWidgets.git] / include / wx / palmos / help.h
CommitLineData
ffecfa5a 1/////////////////////////////////////////////////////////////////////////////
e1d63b79 2// Name: wx/palmos/helpwin.h
ffecfa5a 3// Purpose: Help system: WinHelp implementation
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e1d63b79 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_HELP_H_
13#define _WX_HELP_H_
14
15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16#pragma interface "help.h"
17#endif
18
19#include "wx/wx.h"
20
21#if wxUSE_HELP
22
23#include "wx/helpbase.h"
24
25class WXDLLEXPORT wxPalmHelpController: public wxHelpControllerBase
26{
27 DECLARE_CLASS(wxPalmHelpController)
28
29public:
30 wxPalmHelpController() {};
31 ~wxPalmHelpController() {};
32
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 ); }
36
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);
46 virtual bool Quit();
47
48 inline wxString GetHelpFile() const { return m_helpFile; }
49
50protected:
51 // Append extension if necessary.
52 wxString GetValidFilename(const wxString& file) const;
e1d63b79 53
ffecfa5a
JS
54private:
55 wxString m_helpFile;
56};
57
58#endif // wxUSE_HELP
59#endif
60// _WX_HELP_H_