// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-
+
#ifdef __GNUG__
#pragma implementation "xh_wizrd.h"
#endif
#include "wx/log.h"
#include "wx/wizard.h"
+IMPLEMENT_DYNAMIC_CLASS(wxWizardXmlHandler, wxXmlResourceHandler)
wxWizardXmlHandler::wxWizardXmlHandler() : wxXmlResourceHandler()
{
}
wxObject *wxWizardXmlHandler::DoCreateResource()
-{
+{
if (m_class == wxT("wxWizard"))
{
XRC_MAKE_INSTANCE(wiz, wxWizard)
else
{
wxWizardPage *page = NULL;
+ wxUnusedVar(page);
+
if (m_class == wxT("wxWizardPageSimple"))
{
XRC_MAKE_INSTANCE(p, wxWizardPageSimple)
bool wxWizardXmlHandler::CanHandle(wxXmlNode *node)
{
- return IsOfClass(node, wxT("wxWizard")) ||
+ return IsOfClass(node, wxT("wxWizard")) ||
(m_wizard != NULL &&
(IsOfClass(node, wxT("wxWizardPage")) ||
IsOfClass(node, wxT("wxWizardPageSimple")))