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 // please keep them in alphabetical order of wxUSE_XXX guards
38 #if wxUSE_ANIMATIONCTRL
39 AddHandler(new wxAnimationCtrlXmlHandler
);
41 #if wxUSE_BANNERWINDOW
42 AddHandler(new wxBannerWindowXmlHandler
);
44 #if wxUSE_BITMAPCOMBOBOX
45 AddHandler(new wxBitmapComboBoxXmlHandler
);
48 AddHandler(new wxBitmapButtonXmlHandler
);
51 AddHandler(new wxPropertySheetDialogXmlHandler
);
54 AddHandler(new wxStdDialogButtonSizerXmlHandler
);
55 AddHandler(new wxButtonXmlHandler
);
57 #if wxUSE_CALENDARCTRL
58 AddHandler(new wxCalendarCtrlXmlHandler
);
61 AddHandler(new wxCheckBoxXmlHandler
);
63 #if wxUSE_CHECKLISTBOX
64 AddHandler(new wxCheckListBoxXmlHandler
);
67 AddHandler(new wxChoiceXmlHandler
);
70 AddHandler(new wxChoicebookXmlHandler
);
73 AddHandler(new wxCollapsiblePaneXmlHandler
);
75 #if wxUSE_COLOURPICKERCTRL
76 AddHandler(new wxColourPickerCtrlXmlHandler
);
79 AddHandler(new wxComboBoxXmlHandler
);
82 AddHandler(new wxComboCtrlXmlHandler
);
84 #if wxUSE_COMMANDLINKBUTTON
85 AddHandler(new wxCommandLinkButtonXmlHandler
);
87 #if wxUSE_DATEPICKCTRL
88 AddHandler(new wxDateCtrlXmlHandler
);
91 AddHandler(new wxGenericDirCtrlXmlHandler
);
93 #if wxUSE_DIRPICKERCTRL
94 AddHandler(new wxDirPickerCtrlXmlHandler
);
96 #if wxUSE_EDITABLELISTBOX
97 AddHandler(new wxEditableListBoxXmlHandler
);
100 AddHandler(new wxFileCtrlXmlHandler
);
102 #if wxUSE_FILEPICKERCTRL
103 AddHandler(new wxFilePickerCtrlXmlHandler
);
105 #if wxUSE_FONTPICKERCTRL
106 AddHandler(new wxFontPickerCtrlXmlHandler
);
109 AddHandler(new wxGaugeXmlHandler
);
112 AddHandler( new wxGridXmlHandler
);
115 AddHandler(new wxHtmlWindowXmlHandler
);
116 AddHandler(new wxSimpleHtmlListBoxXmlHandler
);
118 #if wxUSE_HYPERLINKCTRL
119 AddHandler( new wxHyperlinkCtrlXmlHandler
);
122 AddHandler(new wxListbookXmlHandler
);
125 AddHandler(new wxListBoxXmlHandler
);
128 AddHandler(new wxListCtrlXmlHandler
);
131 AddHandler(new wxMdiXmlHandler
);
134 AddHandler(new wxMenuXmlHandler
);
135 AddHandler(new wxMenuBarXmlHandler
);
138 AddHandler(new wxNotebookXmlHandler
);
141 AddHandler(new wxOwnerDrawnComboBoxXmlHandler
);
144 AddHandler(new wxRadioBoxXmlHandler
);
147 AddHandler(new wxRadioButtonXmlHandler
);
150 AddHandler(new wxScrollBarXmlHandler
);
153 AddHandler(new wxSearchCtrlXmlHandler
);
156 AddHandler(new wxSliderXmlHandler
);
159 AddHandler(new wxSpinButtonXmlHandler
);
162 AddHandler(new wxSpinCtrlXmlHandler
);
165 AddHandler(new wxSplitterWindowXmlHandler
);
168 AddHandler(new wxStaticBitmapXmlHandler
);
171 AddHandler(new wxStaticBoxXmlHandler
);
174 AddHandler(new wxStaticLineXmlHandler
);
177 AddHandler(new wxStaticTextXmlHandler
);
180 AddHandler(new wxStatusBarXmlHandler
);
183 AddHandler(new wxTextCtrlXmlHandler
);
186 AddHandler(new wxToggleButtonXmlHandler
);
188 #if wxUSE_TIMEPICKCTRL
189 AddHandler(new wxTimeCtrlXmlHandler
);
192 AddHandler(new wxToolBarXmlHandler
);
195 AddHandler(new wxToolbookXmlHandler
);
198 AddHandler(new wxTreebookXmlHandler
);
201 AddHandler(new wxTreeCtrlXmlHandler
);
204 AddHandler(new wxWizardXmlHandler
);