1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/xrc/xmlrsall.cpp
3 // Purpose: wxXmlResource::InitAllHandlers
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2000 Vaclav Slavik
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
20 #include "wx/xrc/xmlres.h"
21 #include "wx/xrc/xh_all.h"
23 void wxXmlResource::InitAllHandlers()
25 // these are the handlers, which we always have
26 AddHandler(new wxUnknownWidgetXmlHandler
);
27 AddHandler(new wxBitmapXmlHandler
);
28 AddHandler(new wxIconXmlHandler
);
29 AddHandler(new wxDialogXmlHandler
);
30 AddHandler(new wxPanelXmlHandler
);
31 AddHandler(new wxSizerXmlHandler
);
32 AddHandler(new wxFrameXmlHandler
);
33 AddHandler(new wxScrolledWindowXmlHandler
);
35 // these are configurable handlers
37 AddHandler(new wxMenuXmlHandler
);
38 AddHandler(new wxMenuBarXmlHandler
);
41 AddHandler(new wxStdDialogButtonSizerXmlHandler
);
42 AddHandler(new wxButtonXmlHandler
);
45 AddHandler(new wxBitmapButtonXmlHandler
);
48 AddHandler(new wxStaticTextXmlHandler
);
51 AddHandler(new wxStaticBoxXmlHandler
);
54 AddHandler(new wxStaticBitmapXmlHandler
);
57 AddHandler(new wxTreeCtrlXmlHandler
);
59 #if wxUSE_CALENDARCTRL
60 AddHandler(new wxCalendarCtrlXmlHandler
);
63 AddHandler(new wxListCtrlXmlHandler
);
65 #if wxUSE_CHECKLISTBOX
66 AddHandler(new wxCheckListBoxXmlHandler
);
69 AddHandler(new wxChoiceXmlHandler
);
72 AddHandler(new wxSliderXmlHandler
);
75 AddHandler(new wxGaugeXmlHandler
);
78 AddHandler(new wxCheckBoxXmlHandler
);
81 AddHandler(new wxToggleButtonXmlHandler
);
84 AddHandler(new wxHtmlWindowXmlHandler
);
87 AddHandler(new wxSpinButtonXmlHandler
);
90 AddHandler(new wxSpinCtrlXmlHandler
);
93 AddHandler(new wxScrollBarXmlHandler
);
96 AddHandler(new wxRadioBoxXmlHandler
);
99 AddHandler(new wxRadioButtonXmlHandler
);
102 AddHandler(new wxComboBoxXmlHandler
);
105 AddHandler(new wxOwnerDrawnComboBoxXmlHandler
);
107 #if wxUSE_BITMAPCOMBOBOX
108 AddHandler(new wxBitmapComboBoxXmlHandler
);
111 AddHandler(new wxNotebookXmlHandler
);
114 AddHandler(new wxListbookXmlHandler
);
117 AddHandler(new wxChoicebookXmlHandler
);
120 AddHandler(new wxTreebookXmlHandler
);
123 AddHandler(new wxTextCtrlXmlHandler
);
126 AddHandler(new wxListBoxXmlHandler
);
129 AddHandler(new wxToolBarXmlHandler
);
132 AddHandler(new wxStaticLineXmlHandler
);
135 AddHandler(new wxGenericDirCtrlXmlHandler
);
138 AddHandler(new wxSplitterWindowXmlHandler
);
141 AddHandler(new wxWizardXmlHandler
);
144 AddHandler(new wxStatusBarXmlHandler
);
146 #if wxUSE_DATEPICKCTRL
147 AddHandler(new wxDateCtrlXmlHandler
);
149 #if wxUSE_COLOURPICKERCTRL
150 AddHandler(new wxColourPickerCtrlXmlHandler
);
152 #if wxUSE_FILEPICKERCTRL
153 AddHandler(new wxFilePickerCtrlXmlHandler
);
155 #if wxUSE_DIRPICKERCTRL
156 AddHandler(new wxDirPickerCtrlXmlHandler
);
158 #if wxUSE_FONTPICKERCTRL
159 AddHandler(new wxFontPickerCtrlXmlHandler
);
162 AddHandler(new wxMdiXmlHandler
);
165 AddHandler( new wxGridXmlHandler
);
167 #if wxUSE_HYPERLINKCTRL
168 AddHandler( new wxHyperlinkCtrlXmlHandler
);