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 wxPropertySheetDialogXmlHandler
);
51 AddHandler(new wxStdDialogButtonSizerXmlHandler
);
52 AddHandler(new wxButtonXmlHandler
);
54 #if wxUSE_CALENDARCTRL
55 AddHandler(new wxCalendarCtrlXmlHandler
);
58 AddHandler(new wxCheckBoxXmlHandler
);
60 #if wxUSE_CHECKLISTBOX
61 AddHandler(new wxCheckListBoxXmlHandler
);
64 AddHandler(new wxChoiceXmlHandler
);
67 AddHandler(new wxChoicebookXmlHandler
);
70 AddHandler(new wxCollapsiblePaneXmlHandler
);
72 #if wxUSE_COLOURPICKERCTRL
73 AddHandler(new wxColourPickerCtrlXmlHandler
);
76 AddHandler(new wxComboBoxXmlHandler
);
79 AddHandler(new wxComboCtrlXmlHandler
);
81 #if wxUSE_DATEPICKCTRL
82 AddHandler(new wxDateCtrlXmlHandler
);
85 AddHandler(new wxGenericDirCtrlXmlHandler
);
87 #if wxUSE_DIRPICKERCTRL
88 AddHandler(new wxDirPickerCtrlXmlHandler
);
90 #if wxUSE_EDITABLELISTBOX
91 AddHandler(new wxEditableListBoxXmlHandler
);
94 AddHandler(new wxFileCtrlXmlHandler
);
96 #if wxUSE_FILEPICKERCTRL
97 AddHandler(new wxFilePickerCtrlXmlHandler
);
99 #if wxUSE_FONTPICKERCTRL
100 AddHandler(new wxFontPickerCtrlXmlHandler
);
103 AddHandler(new wxGaugeXmlHandler
);
106 AddHandler( new wxGridXmlHandler
);
109 AddHandler(new wxHtmlWindowXmlHandler
);
110 AddHandler(new wxSimpleHtmlListBoxXmlHandler
);
112 #if wxUSE_HYPERLINKCTRL
113 AddHandler( new wxHyperlinkCtrlXmlHandler
);
116 AddHandler(new wxListbookXmlHandler
);
119 AddHandler(new wxListBoxXmlHandler
);
122 AddHandler(new wxListCtrlXmlHandler
);
125 AddHandler(new wxMdiXmlHandler
);
128 AddHandler(new wxMenuXmlHandler
);
129 AddHandler(new wxMenuBarXmlHandler
);
132 AddHandler(new wxNotebookXmlHandler
);
135 AddHandler(new wxOwnerDrawnComboBoxXmlHandler
);
138 AddHandler(new wxRadioBoxXmlHandler
);
141 AddHandler(new wxRadioButtonXmlHandler
);
143 #if 0 && wxUSE_RICHTEXT
144 AddHandler(new wxRichTextCtrlXmlHandler
);
147 AddHandler(new wxScrollBarXmlHandler
);
150 AddHandler(new wxSearchCtrlXmlHandler
);
153 AddHandler(new wxSliderXmlHandler
);
156 AddHandler(new wxSpinButtonXmlHandler
);
159 AddHandler(new wxSpinCtrlXmlHandler
);
162 AddHandler(new wxSplitterWindowXmlHandler
);
165 AddHandler(new wxStaticBitmapXmlHandler
);
168 AddHandler(new wxStaticBoxXmlHandler
);
171 AddHandler(new wxStaticLineXmlHandler
);
174 AddHandler(new wxStaticTextXmlHandler
);
177 AddHandler(new wxStatusBarXmlHandler
);
180 AddHandler(new wxTextCtrlXmlHandler
);
183 AddHandler(new wxToggleButtonXmlHandler
);
186 AddHandler(new wxToolBarXmlHandler
);
189 AddHandler(new wxTreebookXmlHandler
);
192 AddHandler(new wxTreeCtrlXmlHandler
);
195 AddHandler(new wxWizardXmlHandler
);