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
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __WX_HELPEXT_H_
11 #define __WX_HELPEXT_H_
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 #include "wx/helpbase.h"
23 // ----------------------------------------------------------------------------
24 // wxExtHelpController
25 // ----------------------------------------------------------------------------
27 // This class implements help via an external browser.
28 class WXDLLIMPEXP_ADV wxExtHelpController
: public wxHelpControllerBase
31 wxExtHelpController(wxWindow
* parentWindow
= NULL
);
32 virtual ~wxExtHelpController();
34 #if WXWIN_COMPATIBILITY_2_8
35 wxDEPRECATED(void SetBrowser(const wxString
& browsername
= wxEmptyString
, bool isNetscape
= false) );
38 // Set viewer: new name for SetBrowser
39 virtual void SetViewer(const wxString
& viewer
= wxEmptyString
,
40 long flags
= wxHELP_NETSCAPE
);
42 virtual bool Initialize(const wxString
& dir
, int WXUNUSED(server
))
43 { return Initialize(dir
); }
45 virtual bool Initialize(const wxString
& dir
);
46 virtual bool LoadFile(const wxString
& file
= wxEmptyString
);
47 virtual bool DisplayContents(void);
48 virtual bool DisplaySection(int sectionNo
);
49 virtual bool DisplaySection(const wxString
& section
);
50 virtual bool DisplayBlock(long blockNo
);
51 virtual bool KeywordSearch(const wxString
& k
,
52 wxHelpSearchMode mode
= wxHELP_SEARCH_ALL
);
54 virtual bool Quit(void);
55 virtual void OnQuit(void);
57 virtual bool DisplayHelp(const wxString
&) ;
59 virtual void SetFrameParameters(const wxString
& WXUNUSED(title
),
60 const wxSize
& WXUNUSED(size
),
61 const wxPoint
& WXUNUSED(pos
) = wxDefaultPosition
,
62 bool WXUNUSED(newFrameEachTime
) = false)
64 // does nothing by default
67 virtual wxFrame
*GetFrameParameters(wxSize
*WXUNUSED(size
) = NULL
,
68 wxPoint
*WXUNUSED(pos
) = NULL
,
69 bool *WXUNUSED(newFrameEachTime
) = NULL
)
71 return NULL
; // does nothing by default
75 // Filename of currently active map file.
78 // How many entries do we have in the map file?
81 // A list containing all id,url,documentation triples.
85 // parse a single line of the map file (called by LoadFile())
87 // return true if the line was valid or false otherwise
88 bool ParseMapFileLine(const wxString
& line
);
90 // Deletes the list and all objects.
91 void DeleteList(void);
94 // How to call the html viewer.
95 wxString m_BrowserName
;
97 // Is the viewer a variant of netscape?
98 bool m_BrowserIsNetscape
;
100 DECLARE_CLASS(wxExtHelpController
)
105 #endif // __WX_HELPEXT_H_