2006-01-09 13:42:57 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-07-06 06:47:13 +00:00
|
|
|
// Name: wx/html/helpdlg.h
|
2006-01-09 13:42:57 +00:00
|
|
|
// Purpose: wxHtmlHelpDialog
|
|
|
|
// Notes: Based on htmlhelp.cpp, implementing a monolithic
|
|
|
|
// HTML Help controller class, by Vaclav Slavik
|
|
|
|
// Author: Harm van der Heijden, Vaclav Slavik, Julian Smart
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Harm van der Heijden, Vaclav Slavik, Julian Smart
|
2010-07-13 13:29:13 +00:00
|
|
|
// Licence: wxWindows licence
|
2006-01-09 13:42:57 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_HELPDLG_H_
|
|
|
|
#define _WX_HELPDLG_H_
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
|
|
|
|
#if wxUSE_WXHTML_HELP
|
|
|
|
|
|
|
|
#include "wx/html/helpdata.h"
|
|
|
|
#include "wx/window.h"
|
2006-07-06 06:47:13 +00:00
|
|
|
#include "wx/dialog.h"
|
2006-01-09 13:42:57 +00:00
|
|
|
#include "wx/frame.h"
|
|
|
|
#include "wx/config.h"
|
|
|
|
#include "wx/splitter.h"
|
|
|
|
#include "wx/notebook.h"
|
|
|
|
#include "wx/listbox.h"
|
|
|
|
#include "wx/choice.h"
|
|
|
|
#include "wx/combobox.h"
|
|
|
|
#include "wx/checkbox.h"
|
|
|
|
#include "wx/stattext.h"
|
|
|
|
#include "wx/html/htmlwin.h"
|
2006-01-11 08:59:17 +00:00
|
|
|
#include "wx/html/helpwnd.h"
|
2006-01-09 13:42:57 +00:00
|
|
|
#include "wx/html/htmprint.h"
|
|
|
|
|
2007-07-09 10:09:52 +00:00
|
|
|
class WXDLLIMPEXP_FWD_HTML wxHtmlHelpController;
|
|
|
|
class WXDLLIMPEXP_FWD_HTML wxHtmlHelpWindow;
|
2006-01-09 13:42:57 +00:00
|
|
|
|
|
|
|
class WXDLLIMPEXP_HTML wxHtmlHelpDialog : public wxDialog
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxHtmlHelpDialog)
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxHtmlHelpDialog(wxHtmlHelpData* data = NULL) { Init(data); }
|
|
|
|
wxHtmlHelpDialog(wxWindow* parent, wxWindowID wxWindowID,
|
|
|
|
const wxString& title = wxEmptyString,
|
|
|
|
int style = wxHF_DEFAULT_STYLE, wxHtmlHelpData* data = NULL);
|
2006-09-05 20:47:48 +00:00
|
|
|
virtual ~wxHtmlHelpDialog();
|
2006-01-09 13:42:57 +00:00
|
|
|
|
|
|
|
bool Create(wxWindow* parent, wxWindowID id, const wxString& title = wxEmptyString,
|
|
|
|
int style = wxHF_DEFAULT_STYLE);
|
|
|
|
|
|
|
|
/// Returns the data associated with this dialog.
|
|
|
|
wxHtmlHelpData* GetData() { return m_Data; }
|
|
|
|
|
|
|
|
/// Returns the controller that created this dialog.
|
|
|
|
wxHtmlHelpController* GetController() const { return m_helpController; }
|
|
|
|
|
|
|
|
/// Sets the controller associated with this dialog.
|
|
|
|
void SetController(wxHtmlHelpController* controller) { m_helpController = controller; }
|
|
|
|
|
|
|
|
/// Returns the help window.
|
|
|
|
wxHtmlHelpWindow* GetHelpWindow() const { return m_HtmlHelpWin; }
|
|
|
|
|
|
|
|
// Sets format of title of the frame. Must contain exactly one "%s"
|
|
|
|
// (for title of displayed HTML page)
|
|
|
|
void SetTitleFormat(const wxString& format);
|
|
|
|
|
|
|
|
// Override to add custom buttons to the toolbar
|
2007-04-14 09:58:37 +00:00
|
|
|
virtual void AddToolbarButtons(wxToolBar* WXUNUSED(toolBar), int WXUNUSED(style)) {}
|
2006-01-09 13:42:57 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void Init(wxHtmlHelpData* data = NULL);
|
|
|
|
|
|
|
|
void OnCloseWindow(wxCloseEvent& event);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// Temporary pointer to pass to window
|
|
|
|
wxHtmlHelpData* m_Data;
|
|
|
|
wxString m_TitleFormat; // title of the help frame
|
|
|
|
wxHtmlHelpWindow *m_HtmlHelpWin;
|
|
|
|
wxHtmlHelpController* m_helpController;
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
2009-02-08 11:45:59 +00:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxHtmlHelpDialog);
|
2006-01-09 13:42:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// wxUSE_WXHTML_HELP
|
|
|
|
|
|
|
|
#endif
|