1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/xrc/xmlrsall.cpp
3 // Purpose: wxXmlResource::InitAllHandlers
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2000 Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
19 #include "wx/xrc/xmlres.h"
20 #include "wx/xrc/xh_all.h"
22 void wxXmlResource::InitAllHandlers()
24 // these are the handlers, which we always have
25 AddHandler(new wxUnknownWidgetXmlHandler
);
26 AddHandler(new wxBitmapXmlHandler
);
27 AddHandler(new wxIconXmlHandler
);
28 AddHandler(new wxDialogXmlHandler
);
29 AddHandler(new wxPanelXmlHandler
);
30 AddHandler(new wxSizerXmlHandler
);
31 AddHandler(new wxFrameXmlHandler
);
32 AddHandler(new wxScrolledWindowXmlHandler
);
34 // these are configurable handlers
36 // please keep them in alphabetical order of wxUSE_XXX guards
37 #if wxUSE_ANIMATIONCTRL
38 AddHandler(new wxAnimationCtrlXmlHandler
);
40 #if wxUSE_BANNERWINDOW
41 AddHandler(new wxBannerWindowXmlHandler
);
43 #if wxUSE_BITMAPCOMBOBOX
44 AddHandler(new wxBitmapComboBoxXmlHandler
);
47 AddHandler(new wxBitmapButtonXmlHandler
);
50 AddHandler(new wxPropertySheetDialogXmlHandler
);
53 AddHandler(new wxStdDialogButtonSizerXmlHandler
);
54 AddHandler(new wxButtonXmlHandler
);
56 #if wxUSE_CALENDARCTRL
57 AddHandler(new wxCalendarCtrlXmlHandler
);
60 AddHandler(new wxCheckBoxXmlHandler
);
62 #if wxUSE_CHECKLISTBOX
63 AddHandler(new wxCheckListBoxXmlHandler
);
66 AddHandler(new wxChoiceXmlHandler
);
69 AddHandler(new wxChoicebookXmlHandler
);
72 AddHandler(new wxCollapsiblePaneXmlHandler
);
74 #if wxUSE_COLOURPICKERCTRL
75 AddHandler(new wxColourPickerCtrlXmlHandler
);
78 AddHandler(new wxComboBoxXmlHandler
);
81 AddHandler(new wxComboCtrlXmlHandler
);
83 #if wxUSE_COMMANDLINKBUTTON
84 AddHandler(new wxCommandLinkButtonXmlHandler
);
86 #if wxUSE_DATEPICKCTRL
87 AddHandler(new wxDateCtrlXmlHandler
);
90 AddHandler(new wxGenericDirCtrlXmlHandler
);
92 #if wxUSE_DIRPICKERCTRL
93 AddHandler(new wxDirPickerCtrlXmlHandler
);
95 #if wxUSE_EDITABLELISTBOX
96 AddHandler(new wxEditableListBoxXmlHandler
);
99 AddHandler(new wxFileCtrlXmlHandler
);
101 #if wxUSE_FILEPICKERCTRL
102 AddHandler(new wxFilePickerCtrlXmlHandler
);
104 #if wxUSE_FONTPICKERCTRL
105 AddHandler(new wxFontPickerCtrlXmlHandler
);
108 AddHandler(new wxGaugeXmlHandler
);
111 AddHandler( new wxGridXmlHandler
);
114 AddHandler(new wxHtmlWindowXmlHandler
);
115 AddHandler(new wxSimpleHtmlListBoxXmlHandler
);
117 #if wxUSE_HYPERLINKCTRL
118 AddHandler( new wxHyperlinkCtrlXmlHandler
);
121 AddHandler(new wxListbookXmlHandler
);
124 AddHandler(new wxListBoxXmlHandler
);
127 AddHandler(new wxListCtrlXmlHandler
);
130 AddHandler(new wxMdiXmlHandler
);
133 AddHandler(new wxMenuXmlHandler
);
134 AddHandler(new wxMenuBarXmlHandler
);
137 AddHandler(new wxNotebookXmlHandler
);
140 AddHandler(new wxOwnerDrawnComboBoxXmlHandler
);
143 AddHandler(new wxRadioBoxXmlHandler
);
146 AddHandler(new wxRadioButtonXmlHandler
);
149 AddHandler(new wxScrollBarXmlHandler
);
152 AddHandler(new wxSearchCtrlXmlHandler
);
155 AddHandler(new wxSliderXmlHandler
);
158 AddHandler(new wxSpinButtonXmlHandler
);
161 AddHandler(new wxSpinCtrlXmlHandler
);
164 AddHandler(new wxSplitterWindowXmlHandler
);
167 AddHandler(new wxStaticBitmapXmlHandler
);
170 AddHandler(new wxStaticBoxXmlHandler
);
173 AddHandler(new wxStaticLineXmlHandler
);
176 AddHandler(new wxStaticTextXmlHandler
);
179 AddHandler(new wxStatusBarXmlHandler
);
182 AddHandler(new wxTextCtrlXmlHandler
);
185 AddHandler(new wxToggleButtonXmlHandler
);
187 #if wxUSE_TIMEPICKCTRL
188 AddHandler(new wxTimeCtrlXmlHandler
);
191 AddHandler(new wxToolBarXmlHandler
);
194 AddHandler(new wxToolbookXmlHandler
);
197 AddHandler(new wxTreebookXmlHandler
);
200 AddHandler(new wxTreeCtrlXmlHandler
);
203 AddHandler(new wxWizardXmlHandler
);