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_BITMAPCOMBOBOX
42 AddHandler(new wxBitmapComboBoxXmlHandler
);
45 AddHandler(new wxBitmapButtonXmlHandler
);
48 AddHandler(new wxStdDialogButtonSizerXmlHandler
);
49 AddHandler(new wxButtonXmlHandler
);
51 #if wxUSE_CALENDARCTRL
52 AddHandler(new wxCalendarCtrlXmlHandler
);
55 AddHandler(new wxCheckBoxXmlHandler
);
57 #if wxUSE_CHECKLISTBOX
58 AddHandler(new wxCheckListBoxXmlHandler
);
61 AddHandler(new wxChoiceXmlHandler
);
64 AddHandler(new wxChoicebookXmlHandler
);
66 #if wxUSE_COLOURPICKERCTRL
67 AddHandler(new wxColourPickerCtrlXmlHandler
);
70 AddHandler(new wxComboBoxXmlHandler
);
72 #if wxUSE_DATEPICKCTRL
73 AddHandler(new wxDateCtrlXmlHandler
);
76 AddHandler(new wxGenericDirCtrlXmlHandler
);
78 #if wxUSE_DIRPICKERCTRL
79 AddHandler(new wxDirPickerCtrlXmlHandler
);
81 #if wxUSE_FILEPICKERCTRL
82 AddHandler(new wxFilePickerCtrlXmlHandler
);
84 #if wxUSE_FONTPICKERCTRL
85 AddHandler(new wxFontPickerCtrlXmlHandler
);
88 AddHandler(new wxGaugeXmlHandler
);
91 AddHandler( new wxGridXmlHandler
);
94 AddHandler(new wxHtmlWindowXmlHandler
);
96 #if wxUSE_HYPERLINKCTRL
97 AddHandler( new wxHyperlinkCtrlXmlHandler
);
100 AddHandler(new wxListbookXmlHandler
);
103 AddHandler(new wxListBoxXmlHandler
);
106 AddHandler(new wxListCtrlXmlHandler
);
109 AddHandler(new wxMdiXmlHandler
);
112 AddHandler(new wxMenuXmlHandler
);
113 AddHandler(new wxMenuBarXmlHandler
);
116 AddHandler(new wxNotebookXmlHandler
);
119 AddHandler(new wxOwnerDrawnComboBoxXmlHandler
);
122 AddHandler(new wxRadioBoxXmlHandler
);
125 AddHandler(new wxRadioButtonXmlHandler
);
128 AddHandler(new wxScrollBarXmlHandler
);
131 AddHandler(new wxSliderXmlHandler
);
134 AddHandler(new wxSpinButtonXmlHandler
);
137 AddHandler(new wxSpinCtrlXmlHandler
);
140 AddHandler(new wxSplitterWindowXmlHandler
);
143 AddHandler(new wxStaticBitmapXmlHandler
);
146 AddHandler(new wxStaticBoxXmlHandler
);
149 AddHandler(new wxStaticLineXmlHandler
);
152 AddHandler(new wxStaticTextXmlHandler
);
155 AddHandler(new wxStatusBarXmlHandler
);
158 AddHandler(new wxTextCtrlXmlHandler
);
161 AddHandler(new wxToggleButtonXmlHandler
);
164 AddHandler(new wxToolBarXmlHandler
);
167 AddHandler(new wxTreebookXmlHandler
);
170 AddHandler(new wxTreeCtrlXmlHandler
);
173 AddHandler(new wxWizardXmlHandler
);