/////////////////////////////////////////////////////////////////////////////
-// Name: helpbest.h
+// Name: wx/msw/helpbest.h
// Purpose: Tries to load MS HTML Help, falls back to wxHTML upon failure
// Author: Mattia Barbon
// Modified by:
#ifndef _WX_HELPBEST_H_
#define _WX_HELPBEST_H_
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma interface "helpbest.h"
-#endif
-
-#if wxUSE_HELP && wxUSE_MS_HTML_HELP && defined(__WIN95__) \
+#if wxUSE_HELP && wxUSE_MS_HTML_HELP \
&& wxUSE_WXHTML_HELP && !defined(__WXUNIVERSAL__)
#include "wx/helpbase.h"
class WXDLLIMPEXP_HTML wxBestHelpController: public wxHelpControllerBase
{
public:
- wxBestHelpController()
- : m_helpControllerType( wxUseNone ),
+ wxBestHelpController(wxWindow* parentWindow = NULL)
+ : wxHelpControllerBase( parentWindow ), m_helpControllerType( wxUseNone ),
m_helpController( NULL )
{
}
newFrameEachTime );
}
+ /// Set the window that can optionally be used for the help window's parent.
+ virtual void SetParentWindow(wxWindow* win) { m_helpController->SetParentWindow(win); }
+
+ /// Get the window that can optionally be used for the help window's parent.
+ virtual wxWindow* GetParentWindow() const { return m_helpController->GetParentWindow(); }
+
protected:
// Append/change extension if necessary.
wxString GetValidFilename(const wxString& file) const;
DECLARE_NO_COPY_CLASS(wxBestHelpController)
};
-#endif // wxUSE_HELP && wxUSE_MS_HTML_HELP && defined(__WIN95__) && wxUSE_WXHTML_HELP
+#endif // wxUSE_HELP && wxUSE_MS_HTML_HELP && wxUSE_WXHTML_HELP
#endif
// _WX_HELPBEST_H_