#endif
#include "wx/defs.h"
+
+#if wxUSE_XRC
+
#include "wx/string.h"
#include "wx/dynarray.h"
#include "wx/datetime.h"
#define GetXMLID GetXRCID
#endif
+#endif // wxUSE_XRC
#endif // _WX_XMLRES_H_
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_bmp.h"
#include "wx/bitmap.h"
{
return IsOfClass(node, wxT("wxIcon"));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_bmpbt.h"
#include <wx/bmpbuttn.h>
{
return IsOfClass(node, wxT("wxBitmapButton"));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_bttn.h"
#include "wx/button.h"
{
return IsOfClass(node, wxT("wxButton"));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
-#include "wx/setup.h"
-
-#if wxUSE_CALENDARCTRL
+#if wxUSE_XRC && wxUSE_CALENDARCTRL
#include "wx/xrc/xh_cald.h"
#include "wx/event.h"
return IsOfClass(node, wxT("wxCalendarCtrl"));
}
-#endif
+#endif // wxUSE_XRC && wxUSE_CALENDARCTRL
#pragma hdrstop
#endif
+#if wxUSE_XRC && wxUSE_CHECKBOX
+
#include "wx/xrc/xh_chckb.h"
#include "wx/checkbox.h"
-#if wxUSE_CHECKBOX
-
IMPLEMENT_DYNAMIC_CLASS(wxCheckBoxXmlHandler, wxXmlResourceHandler)
wxCheckBoxXmlHandler::wxCheckBoxXmlHandler()
return IsOfClass(node, wxT("wxCheckBox"));
}
-#endif
+#endif // wxUSE_XRC && wxUSE_CHECKBOX
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#if wxUSE_OWNER_DRAWN || !defined(__WXMSW__)
#include "wx/xrc/xh_chckl.h"
(m_insideBox && node->GetName() == wxT("item")));
}
-#endif
+#endif // wxUSE_OWNER_DRAWN || !defined(__WXMSW__)
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_choic.h"
#include "wx/choice.h"
#include "wx/intl.h"
return (IsOfClass(node, wxT("wxChoice")) ||
(m_insideBox && node->GetName() == wxT("item")));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC && wxUSE_COMBOBOX
+
#include "wx/xrc/xh_combo.h"
#include "wx/combobox.h"
#include "wx/intl.h"
-#if wxUSE_COMBOBOX
-
IMPLEMENT_DYNAMIC_CLASS(wxComboBoxXmlHandler, wxXmlResourceHandler)
wxComboBoxXmlHandler::wxComboBoxXmlHandler()
(m_insideBox && node->GetName() == wxT("item")));
}
-#endif
+#endif // wxUSE_XRC && wxUSE_COMBOBOX
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_dlg.h"
#include "wx/dialog.h"
#include "wx/log.h"
{
return IsOfClass(node, wxT("wxDialog"));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_frame.h"
#include "wx/frame.h"
#include "wx/dialog.h" // to get wxDEFAULT_DIALOG_STYLE
{
return IsOfClass(node, wxT("wxFrame"));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC && wxUSE_GAUGE
+
#include "wx/xrc/xh_gauge.h"
#include "wx/gauge.h"
-#if wxUSE_GAUGE
-
IMPLEMENT_DYNAMIC_CLASS(wxGaugeXmlHandler, wxXmlResourceHandler)
wxGaugeXmlHandler::wxGaugeXmlHandler()
return IsOfClass(node, wxT("wxGauge"));
}
-#endif // wxUSE_GAUGE
+#endif // wxUSE_XRC && wxUSE_GAUGE
#pragma hdrstop
#endif
-#include "wx/defs.h"
-#if wxUSE_DIRDLG
+#if wxUSE_XRC && wxUSE_DIRDLG
#include "wx/textctrl.h"
#include "wx/xrc/xh_gdctl.h"
return IsOfClass(node, wxT("wxGenericDirCtrl"));
}
-#endif
+#endif // wxUSE_XRC && wxUSE_DIRDLG
#pragma hdrstop
#endif
-#include "wx/xrc/xh_html.h"
+#if wxUSE_XRC && wxUSE_HTML
-#if wxUSE_HTML
+#include "wx/xrc/xh_html.h"
#include "wx/html/htmlwin.h"
#include "wx/filesys.h"
return IsOfClass(node, wxT("wxHtmlWindow"));
}
-#endif // wxUSE_HTML
+#endif // wxUSE_XRC && wxUSE_HTML
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_listb.h"
#include "wx/listbox.h"
#include "wx/intl.h"
return (IsOfClass(node, wxT("wxListBox")) ||
(m_insideBox && node->GetName() == wxT("item")));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/textctrl.h"
#include "wx/xrc/xh_listc.h"
#include "wx/listctrl.h"
{
return IsOfClass(node, wxT("wxListCtrl"));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_menu.h"
#include "wx/menu.h"
#include "wx/frame.h"
{
return IsOfClass(node, wxT("wxMenuBar"));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
-#include "wx/xrc/xh_notbk.h"
+#if wxUSE_XRC && wxUSE_NOTEBOOK
-#if wxUSE_NOTEBOOK
+#include "wx/xrc/xh_notbk.h"
#include "wx/log.h"
#include "wx/notebook.h"
(m_isInside && IsOfClass(node, wxT("notebookpage"))));
}
-#endif
+#endif // wxUSE_XRC && wxUSE_NOTEBOOK
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_panel.h"
#include "wx/panel.h"
#include "wx/frame.h" // to get wxNO_3D
{
return IsOfClass(node, wxT("wxPanel"));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC && wxUSE_RADIOBOX
+
#include "wx/xrc/xh_radbt.h"
#include "wx/radiobut.h"
-#if wxUSE_RADIOBOX
-
IMPLEMENT_DYNAMIC_CLASS(wxRadioButtonXmlHandler, wxXmlResourceHandler)
wxRadioButtonXmlHandler::wxRadioButtonXmlHandler()
return IsOfClass(node, wxT("wxRadioButton"));
}
-#endif
+#endif // wxUSE_XRC && wxUSE_NOTEBOOK
#pragma hdrstop
#endif
+#if wxUSE_XRC && wxUSE_RADIOBOX
+
#include "wx/xrc/xh_radbx.h"
#include "wx/radiobox.h"
#include "wx/intl.h"
-#if wxUSE_RADIOBOX
-
IMPLEMENT_DYNAMIC_CLASS(wxRadioBoxXmlHandler, wxXmlResourceHandler)
wxRadioBoxXmlHandler::wxRadioBoxXmlHandler()
(m_insideBox && node->GetName() == wxT("item")));
}
-#endif
+#endif // wxUSE_XRC && wxUSE_RADIOBOX
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_scrol.h"
#include "wx/scrolbar.h"
{
return IsOfClass(node, wxT("wxScrollBar"));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_scwin.h"
#include "wx/scrolwin.h"
#include "wx/frame.h" // to get wxNO_3D
{
return IsOfClass(node, wxT("wxScrolledWindow"));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_sizer.h"
#include "wx/sizer.h"
#include "wx/gbsizer.h"
m_parentSizer->Add(sitem);
}
-
-
-
-
-
-
-
-
-
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC && wxUSE_SLIDER
+
#include "wx/xrc/xh_slidr.h"
#include "wx/slider.h"
-#if wxUSE_SLIDER
-
IMPLEMENT_DYNAMIC_CLASS(wxSliderXmlHandler, wxXmlResourceHandler)
wxSliderXmlHandler::wxSliderXmlHandler()
return IsOfClass(node, wxT("wxSlider"));
}
-#endif
+#endif // wxUSE_XRC && wxUSE_SLIDER
#pragma hdrstop
#endif
+#if wxUSE_XRC && wxUSE_SPINBTN
+
#include "wx/xrc/xh_spin.h"
#include "wx/spinctrl.h"
-#if wxUSE_SPINBTN
-
IMPLEMENT_DYNAMIC_CLASS(wxSpinButtonXmlHandler, wxXmlResourceHandler)
wxSpinButtonXmlHandler::wxSpinButtonXmlHandler()
return IsOfClass(node, wxT("wxSpinCtrl"));
}
-#endif // wxUSE_SPINCTRL
+#endif // wxUSE_XRC && wxUSE_SPINCTRL
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_split.h"
#include "wx/splitter.h"
#include "wx/log.h"
return IsOfClass(node, wxT("wxSplitterWindow"));
}
-
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC && wxUSE_STATUSBAR
+
#include "wx/frame.h"
#include "wx/string.h"
#include "wx/log.h"
-#if wxUSE_STATUSBAR
-
#include "wx/xrc/xh_statbar.h"
#include "wx/statusbr.h"
return IsOfClass(node, wxT("wxStatusBar"));
}
-#endif
+#endif // wxUSE_XRC && wxUSE_STATUSBAR
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_stbmp.h"
#include "wx/statbmp.h"
{
return IsOfClass(node, wxT("wxStaticBitmap"));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_stbox.h"
#include "wx/statbox.h"
{
return IsOfClass(node, wxT("wxStaticBox"));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC && wxUSE_STATLINE
+
#include "wx/xrc/xh_stlin.h"
#include "wx/statline.h"
-#if wxUSE_STATLINE
-
IMPLEMENT_DYNAMIC_CLASS(wxStaticLineXmlHandler, wxXmlResourceHandler)
wxStaticLineXmlHandler::wxStaticLineXmlHandler()
return IsOfClass(node, wxT("wxStaticLine"));
}
-#endif
+#endif // wxUSE_XRC && wxUSE_STATLINE
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_sttxt.h"
#include "wx/stattext.h"
{
return IsOfClass(node, wxT("wxStaticText"));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_text.h"
#include "wx/textctrl.h"
{
return IsOfClass(node, wxT("wxTextCtrl"));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC && wxUSE_TOGGLEBTN
+
#include "wx/xrc/xh_tglbtn.h"
#include "wx/tglbtn.h"
-#if wxUSE_TOGGLEBTN
-
IMPLEMENT_DYNAMIC_CLASS(wxToggleButtonXmlHandler, wxXmlResourceHandler)
wxToggleButtonXmlHandler::wxToggleButtonXmlHandler()
return IsOfClass(node, wxT("wxToggleButton"));
}
-#endif
+#endif // wxUSE_XRC && wxUSE_TOGGLEBTN
#pragma hdrstop
#endif
+#if wxUSE_XRC && wxUSE_TOOLBAR
+
#include "wx/xrc/xh_toolb.h"
#include "wx/toolbar.h"
#include "wx/frame.h"
-#if wxUSE_TOOLBAR
-
IMPLEMENT_DYNAMIC_CLASS(wxToolBarXmlHandler, wxXmlResourceHandler)
wxToolBarXmlHandler::wxToolBarXmlHandler()
(m_isInside && IsOfClass(node, wxT("separator"))));
}
-#endif
+#endif // wxUSE_XRC && wxUSE_TOOLBAR
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_tree.h"
#include "wx/treectrl.h"
{
return IsOfClass(node, wxT("wxTreeCtrl"));
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xh_unkwn.h"
#include "wx/window.h"
#include "wx/log.h"
return IsOfClass(node, wxT("unknown"));
}
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
-#if wxUSE_WIZARDDLG
+#if wxUSE_XRC && wxUSE_WIZARDDLG
#include "wx/xrc/xh_wizrd.h"
#include "wx/log.h"
);
}
-#endif // wxUSE_WIZARDDLG
+#endif // wxUSE_XRC && wxUSE_WIZARDDLG
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/dialog.h"
#include "wx/panel.h"
#include "wx/frame.h"
module->Init();
wxModule::RegisterModule(module);
}
+
+#endif // wxUSE_XRC
#pragma hdrstop
#endif
+#if wxUSE_XRC
+
#include "wx/xrc/xmlres.h"
#include "wx/xrc/xh_all.h"
AddHandler(new wxStatusBarXmlHandler);
#endif
}
+
+#endif // wxUSE_XRC