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
);
67 AddHandler(new wxCollapsiblePaneXmlHandler
);
69 #if wxUSE_COLOURPICKERCTRL
70 AddHandler(new wxColourPickerCtrlXmlHandler
);
73 AddHandler(new wxComboBoxXmlHandler
);
75 #if wxUSE_DATEPICKCTRL
76 AddHandler(new wxDateCtrlXmlHandler
);
79 AddHandler(new wxGenericDirCtrlXmlHandler
);
81 #if wxUSE_DIRPICKERCTRL
82 AddHandler(new wxDirPickerCtrlXmlHandler
);
84 #if wxUSE_FILEPICKERCTRL
85 AddHandler(new wxFilePickerCtrlXmlHandler
);
87 #if wxUSE_FONTPICKERCTRL
88 AddHandler(new wxFontPickerCtrlXmlHandler
);
91 AddHandler(new wxGaugeXmlHandler
);
94 AddHandler( new wxGridXmlHandler
);
97 AddHandler(new wxHtmlWindowXmlHandler
);
98 AddHandler(new wxSimpleHtmlListBoxXmlHandler
);
100 #if wxUSE_HYPERLINKCTRL
101 AddHandler( new wxHyperlinkCtrlXmlHandler
);
104 AddHandler(new wxListbookXmlHandler
);
107 AddHandler(new wxListBoxXmlHandler
);
110 AddHandler(new wxListCtrlXmlHandler
);
113 AddHandler(new wxMdiXmlHandler
);
116 AddHandler(new wxMenuXmlHandler
);
117 AddHandler(new wxMenuBarXmlHandler
);
120 AddHandler(new wxNotebookXmlHandler
);
123 AddHandler(new wxOwnerDrawnComboBoxXmlHandler
);
126 AddHandler(new wxRadioBoxXmlHandler
);
129 AddHandler(new wxRadioButtonXmlHandler
);
131 #if 0 && wxUSE_RICHTEXT
132 AddHandler(new wxRichTextCtrlXmlHandler
);
135 AddHandler(new wxScrollBarXmlHandler
);
138 AddHandler(new wxSliderXmlHandler
);
141 AddHandler(new wxSpinButtonXmlHandler
);
144 AddHandler(new wxSpinCtrlXmlHandler
);
147 AddHandler(new wxSplitterWindowXmlHandler
);
150 AddHandler(new wxStaticBitmapXmlHandler
);
153 AddHandler(new wxStaticBoxXmlHandler
);
156 AddHandler(new wxStaticLineXmlHandler
);
159 AddHandler(new wxStaticTextXmlHandler
);
162 AddHandler(new wxStatusBarXmlHandler
);
165 AddHandler(new wxTextCtrlXmlHandler
);
168 AddHandler(new wxToggleButtonXmlHandler
);
171 AddHandler(new wxToolBarXmlHandler
);
174 AddHandler(new wxTreebookXmlHandler
);
177 AddHandler(new wxTreeCtrlXmlHandler
);
180 AddHandler(new wxWizardXmlHandler
);