1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/helpext.h
3 // Purpose: an external help controller for wxWidgets
4 // Author: Karsten Ballueder (Ballueder@usa.net)
6 // Copyright: (c) Karsten Ballueder 1998
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_HELPEXT_H_
12 #define __WX_HELPEXT_H_
17 // ----------------------------------------------------------------------------
19 // ----------------------------------------------------------------------------
21 #include "wx/helpbase.h"
24 // ----------------------------------------------------------------------------
25 // wxExtHelpController
26 // ----------------------------------------------------------------------------
28 // This class implements help via an external browser.
29 class WXDLLIMPEXP_ADV wxExtHelpController
: public wxHelpControllerBase
32 wxExtHelpController(wxWindow
* parentWindow
= NULL
);
33 virtual ~wxExtHelpController();
35 #if WXWIN_COMPATIBILITY_2_8
36 wxDEPRECATED(void SetBrowser(const wxString
& browsername
= wxEmptyString
, bool isNetscape
= false) );
39 // Set viewer: new name for SetBrowser
40 virtual void SetViewer(const wxString
& viewer
= wxEmptyString
,
41 long flags
= wxHELP_NETSCAPE
);
43 virtual bool Initialize(const wxString
& dir
, int WXUNUSED(server
))
44 { return Initialize(dir
); }
46 virtual bool Initialize(const wxString
& dir
);
47 virtual bool LoadFile(const wxString
& file
= wxEmptyString
);
48 virtual bool DisplayContents(void);
49 virtual bool DisplaySection(int sectionNo
);
50 virtual bool DisplaySection(const wxString
& section
);
51 virtual bool DisplayBlock(long blockNo
);
52 virtual bool KeywordSearch(const wxString
& k
,
53 wxHelpSearchMode mode
= wxHELP_SEARCH_ALL
);
55 virtual bool Quit(void);
56 virtual void OnQuit(void);
58 virtual bool DisplayHelp(const wxString
&) ;
60 virtual void SetFrameParameters(const wxString
& WXUNUSED(title
),
61 const wxSize
& WXUNUSED(size
),
62 const wxPoint
& WXUNUSED(pos
) = wxDefaultPosition
,
63 bool WXUNUSED(newFrameEachTime
) = false)
65 // does nothing by default
68 virtual wxFrame
*GetFrameParameters(wxSize
*WXUNUSED(size
) = NULL
,
69 wxPoint
*WXUNUSED(pos
) = NULL
,
70 bool *WXUNUSED(newFrameEachTime
) = NULL
)
72 return NULL
; // does nothing by default
76 // Filename of currently active map file.
79 // How many entries do we have in the map file?
82 // A list containing all id,url,documentation triples.
86 // parse a single line of the map file (called by LoadFile())
88 // return true if the line was valid or false otherwise
89 bool ParseMapFileLine(const wxString
& line
);
91 // Deletes the list and all objects.
92 void DeleteList(void);
95 // How to call the html viewer.
96 wxString m_BrowserName
;
98 // Is the viewer a variant of netscape?
99 bool m_BrowserIsNetscape
;
101 DECLARE_CLASS(wxExtHelpController
)
106 #endif // __WX_HELPEXT_H_