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_FILEPICKERCTRL
91 AddHandler(new wxFilePickerCtrlXmlHandler
);
93 #if wxUSE_FONTPICKERCTRL
94 AddHandler(new wxFontPickerCtrlXmlHandler
);
97 AddHandler(new wxGaugeXmlHandler
);
100 AddHandler( new wxGridXmlHandler
);
103 AddHandler(new wxHtmlWindowXmlHandler
);
104 AddHandler(new wxSimpleHtmlListBoxXmlHandler
);
106 #if wxUSE_HYPERLINKCTRL
107 AddHandler( new wxHyperlinkCtrlXmlHandler
);
110 AddHandler(new wxListbookXmlHandler
);
113 AddHandler(new wxListBoxXmlHandler
);
116 AddHandler(new wxListCtrlXmlHandler
);
119 AddHandler(new wxMdiXmlHandler
);
122 AddHandler(new wxMenuXmlHandler
);
123 AddHandler(new wxMenuBarXmlHandler
);
126 AddHandler(new wxNotebookXmlHandler
);
129 AddHandler(new wxOwnerDrawnComboBoxXmlHandler
);
132 AddHandler(new wxRadioBoxXmlHandler
);
135 AddHandler(new wxRadioButtonXmlHandler
);
137 #if 0 && wxUSE_RICHTEXT
138 AddHandler(new wxRichTextCtrlXmlHandler
);
141 AddHandler(new wxScrollBarXmlHandler
);
144 AddHandler(new wxSearchCtrlXmlHandler
);
147 AddHandler(new wxSliderXmlHandler
);
150 AddHandler(new wxSpinButtonXmlHandler
);
153 AddHandler(new wxSpinCtrlXmlHandler
);
156 AddHandler(new wxSplitterWindowXmlHandler
);
159 AddHandler(new wxStaticBitmapXmlHandler
);
162 AddHandler(new wxStaticBoxXmlHandler
);
165 AddHandler(new wxStaticLineXmlHandler
);
168 AddHandler(new wxStaticTextXmlHandler
);
171 AddHandler(new wxStatusBarXmlHandler
);
174 AddHandler(new wxTextCtrlXmlHandler
);
177 AddHandler(new wxToggleButtonXmlHandler
);
180 AddHandler(new wxToolBarXmlHandler
);
183 AddHandler(new wxTreebookXmlHandler
);
186 AddHandler(new wxTreeCtrlXmlHandler
);
189 AddHandler(new wxWizardXmlHandler
);