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
);
95 AddHandler(new wxSimpleHtmlListBoxXmlHandler
);
97 #if wxUSE_HYPERLINKCTRL
98 AddHandler( new wxHyperlinkCtrlXmlHandler
);
101 AddHandler(new wxListbookXmlHandler
);
104 AddHandler(new wxListBoxXmlHandler
);
107 AddHandler(new wxListCtrlXmlHandler
);
110 AddHandler(new wxMdiXmlHandler
);
113 AddHandler(new wxMenuXmlHandler
);
114 AddHandler(new wxMenuBarXmlHandler
);
117 AddHandler(new wxNotebookXmlHandler
);
120 AddHandler(new wxOwnerDrawnComboBoxXmlHandler
);
123 AddHandler(new wxRadioBoxXmlHandler
);
126 AddHandler(new wxRadioButtonXmlHandler
);
129 AddHandler(new wxScrollBarXmlHandler
);
132 AddHandler(new wxSliderXmlHandler
);
135 AddHandler(new wxSpinButtonXmlHandler
);
138 AddHandler(new wxSpinCtrlXmlHandler
);
141 AddHandler(new wxSplitterWindowXmlHandler
);
144 AddHandler(new wxStaticBitmapXmlHandler
);
147 AddHandler(new wxStaticBoxXmlHandler
);
150 AddHandler(new wxStaticLineXmlHandler
);
153 AddHandler(new wxStaticTextXmlHandler
);
156 AddHandler(new wxStatusBarXmlHandler
);
159 AddHandler(new wxTextCtrlXmlHandler
);
162 AddHandler(new wxToggleButtonXmlHandler
);
165 AddHandler(new wxToolBarXmlHandler
);
168 AddHandler(new wxTreebookXmlHandler
);
171 AddHandler(new wxTreeCtrlXmlHandler
);
174 AddHandler(new wxWizardXmlHandler
);