]>
Commit | Line | Data |
---|---|---|
78d14f80 | 1 | ///////////////////////////////////////////////////////////////////////////// |
28583246 | 2 | // Name: src/xrc/xmlrsall.cpp |
78d14f80 VS |
3 | // Purpose: wxXmlResource::InitAllHandlers |
4 | // Author: Vaclav Slavik | |
5 | // Created: 2000/03/05 | |
6 | // RCS-ID: $Id$ | |
7 | // Copyright: (c) 2000 Vaclav Slavik | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
f80ea77b | 10 | |
78d14f80 VS |
11 | // For compilers that support precompilation, includes "wx.h". |
12 | #include "wx/wxprec.h" | |
13 | ||
14 | #ifdef __BORLANDC__ | |
15 | #pragma hdrstop | |
16 | #endif | |
17 | ||
621be1ec | 18 | #if wxUSE_XRC |
a1e4ec87 | 19 | |
78d14f80 VS |
20 | #include "wx/xrc/xmlres.h" |
21 | #include "wx/xrc/xh_all.h" | |
22 | ||
23 | void wxXmlResource::InitAllHandlers() | |
24 | { | |
dd47af27 VZ |
25 | // these are the handlers, which we always have |
26 | AddHandler(new wxUnknownWidgetXmlHandler); | |
78d14f80 VS |
27 | AddHandler(new wxBitmapXmlHandler); |
28 | AddHandler(new wxIconXmlHandler); | |
78d14f80 VS |
29 | AddHandler(new wxDialogXmlHandler); |
30 | AddHandler(new wxPanelXmlHandler); | |
78d14f80 | 31 | AddHandler(new wxSizerXmlHandler); |
dd47af27 VZ |
32 | AddHandler(new wxFrameXmlHandler); |
33 | AddHandler(new wxScrolledWindowXmlHandler); | |
34 | ||
35 | // these are configurable handlers | |
ecf48edf VZ |
36 | // |
37 | // please keep them in alphabetical order of wxUSE_XXX guards | |
38 | #if wxUSE_ANIMATIONCTRL | |
39 | AddHandler(new wxAnimationCtrlXmlHandler); | |
dd47af27 | 40 | #endif |
ae2047c3 VZ |
41 | #if wxUSE_BANNERWINDOW |
42 | AddHandler(new wxBannerWindowXmlHandler); | |
43 | #endif | |
ecf48edf VZ |
44 | #if wxUSE_BITMAPCOMBOBOX |
45 | AddHandler(new wxBitmapComboBoxXmlHandler); | |
dd47af27 VZ |
46 | #endif |
47 | #if wxUSE_BMPBUTTON | |
78d14f80 | 48 | AddHandler(new wxBitmapButtonXmlHandler); |
dd47af27 | 49 | #endif |
aa1b2573 JS |
50 | #if wxUSE_BOOKCTRL |
51 | AddHandler(new wxPropertySheetDialogXmlHandler); | |
52 | #endif | |
ecf48edf VZ |
53 | #if wxUSE_BUTTON |
54 | AddHandler(new wxStdDialogButtonSizerXmlHandler); | |
55 | AddHandler(new wxButtonXmlHandler); | |
dd47af27 | 56 | #endif |
f03b9d45 | 57 | #if wxUSE_CALENDARCTRL |
78d14f80 | 58 | AddHandler(new wxCalendarCtrlXmlHandler); |
f03b9d45 | 59 | #endif |
ecf48edf VZ |
60 | #if wxUSE_CHECKBOX |
61 | AddHandler(new wxCheckBoxXmlHandler); | |
dd47af27 | 62 | #endif |
636e7e5d | 63 | #if wxUSE_CHECKLISTBOX |
56572188 | 64 | AddHandler(new wxCheckListBoxXmlHandler); |
78d14f80 VS |
65 | #endif |
66 | #if wxUSE_CHOICE | |
67 | AddHandler(new wxChoiceXmlHandler); | |
68 | #endif | |
ecf48edf VZ |
69 | #if wxUSE_CHOICEBOOK |
70 | AddHandler(new wxChoicebookXmlHandler); | |
71 | #endif | |
912c3932 VZ |
72 | #if wxUSE_COLLPANE |
73 | AddHandler(new wxCollapsiblePaneXmlHandler); | |
74 | #endif | |
ecf48edf VZ |
75 | #if wxUSE_COLOURPICKERCTRL |
76 | AddHandler(new wxColourPickerCtrlXmlHandler); | |
77 | #endif | |
78 | #if wxUSE_COMBOBOX | |
79 | AddHandler(new wxComboBoxXmlHandler); | |
80 | #endif | |
fef4b46d JS |
81 | #if wxUSE_COMBOCTRL |
82 | AddHandler(new wxComboCtrlXmlHandler); | |
83 | #endif | |
53cdd2c1 VZ |
84 | #if wxUSE_COMMANDLINKBUTTON |
85 | AddHandler(new wxCommandLinkButtonXmlHandler); | |
86 | #endif | |
ecf48edf VZ |
87 | #if wxUSE_DATEPICKCTRL |
88 | AddHandler(new wxDateCtrlXmlHandler); | |
89 | #endif | |
90 | #if wxUSE_DIRDLG | |
91 | AddHandler(new wxGenericDirCtrlXmlHandler); | |
92 | #endif | |
93 | #if wxUSE_DIRPICKERCTRL | |
94 | AddHandler(new wxDirPickerCtrlXmlHandler); | |
95 | #endif | |
adcda299 VZ |
96 | #if wxUSE_EDITABLELISTBOX |
97 | AddHandler(new wxEditableListBoxXmlHandler); | |
98 | #endif | |
0d14e4f2 VZ |
99 | #if wxUSE_FILECTRL |
100 | AddHandler(new wxFileCtrlXmlHandler); | |
101 | #endif | |
ecf48edf VZ |
102 | #if wxUSE_FILEPICKERCTRL |
103 | AddHandler(new wxFilePickerCtrlXmlHandler); | |
104 | #endif | |
105 | #if wxUSE_FONTPICKERCTRL | |
106 | AddHandler(new wxFontPickerCtrlXmlHandler); | |
78d14f80 VS |
107 | #endif |
108 | #if wxUSE_GAUGE | |
109 | AddHandler(new wxGaugeXmlHandler); | |
110 | #endif | |
ecf48edf VZ |
111 | #if wxUSE_GRID |
112 | AddHandler( new wxGridXmlHandler); | |
85f138db | 113 | #endif |
78d14f80 VS |
114 | #if wxUSE_HTML |
115 | AddHandler(new wxHtmlWindowXmlHandler); | |
9ebb7cad | 116 | AddHandler(new wxSimpleHtmlListBoxXmlHandler); |
f80ea77b | 117 | #endif |
ecf48edf VZ |
118 | #if wxUSE_HYPERLINKCTRL |
119 | AddHandler( new wxHyperlinkCtrlXmlHandler); | |
78d14f80 | 120 | #endif |
ecf48edf VZ |
121 | #if wxUSE_LISTBOOK |
122 | AddHandler(new wxListbookXmlHandler); | |
dd47af27 | 123 | #endif |
ecf48edf VZ |
124 | #if wxUSE_LISTBOX |
125 | AddHandler(new wxListBoxXmlHandler); | |
78d14f80 | 126 | #endif |
ecf48edf VZ |
127 | #if wxUSE_LISTCTRL |
128 | AddHandler(new wxListCtrlXmlHandler); | |
78d14f80 | 129 | #endif |
ecf48edf VZ |
130 | #if wxUSE_MDI |
131 | AddHandler(new wxMdiXmlHandler); | |
582f07c2 | 132 | #endif |
ecf48edf VZ |
133 | #if wxUSE_MENUS |
134 | AddHandler(new wxMenuXmlHandler); | |
135 | AddHandler(new wxMenuBarXmlHandler); | |
95a46303 | 136 | #endif |
78d14f80 VS |
137 | #if wxUSE_NOTEBOOK |
138 | AddHandler(new wxNotebookXmlHandler); | |
9aaf1192 | 139 | #endif |
ecf48edf VZ |
140 | #if wxUSE_ODCOMBOBOX |
141 | AddHandler(new wxOwnerDrawnComboBoxXmlHandler); | |
eca15c0d | 142 | #endif |
ecf48edf VZ |
143 | #if wxUSE_RADIOBOX |
144 | AddHandler(new wxRadioBoxXmlHandler); | |
78d14f80 | 145 | #endif |
ecf48edf VZ |
146 | #if wxUSE_RADIOBTN |
147 | AddHandler(new wxRadioButtonXmlHandler); | |
dd47af27 | 148 | #endif |
87c2432d | 149 | #if 0 && wxUSE_RICHTEXT |
fd4344d6 JS |
150 | AddHandler(new wxRichTextCtrlXmlHandler); |
151 | #endif | |
ecf48edf VZ |
152 | #if wxUSE_SCROLLBAR |
153 | AddHandler(new wxScrollBarXmlHandler); | |
78d14f80 | 154 | #endif |
c7db82dc VZ |
155 | #if wxUSE_SEARCHCTRL |
156 | AddHandler(new wxSearchCtrlXmlHandler); | |
157 | #endif | |
ecf48edf VZ |
158 | #if wxUSE_SLIDER |
159 | AddHandler(new wxSliderXmlHandler); | |
78d14f80 | 160 | #endif |
ecf48edf VZ |
161 | #if wxUSE_SPINBTN |
162 | AddHandler(new wxSpinButtonXmlHandler); | |
78d14f80 | 163 | #endif |
ecf48edf VZ |
164 | #if wxUSE_SPINCTRL |
165 | AddHandler(new wxSpinCtrlXmlHandler); | |
995c1788 | 166 | #endif |
dd47af27 | 167 | #if wxUSE_SPLITTER |
2f5b93fb | 168 | AddHandler(new wxSplitterWindowXmlHandler); |
dd47af27 | 169 | #endif |
ecf48edf VZ |
170 | #if wxUSE_STATBMP |
171 | AddHandler(new wxStaticBitmapXmlHandler); | |
e5db28fd | 172 | #endif |
ecf48edf VZ |
173 | #if wxUSE_STATBOX |
174 | AddHandler(new wxStaticBoxXmlHandler); | |
b0fb0f3c | 175 | #endif |
ecf48edf VZ |
176 | #if wxUSE_STATLINE |
177 | AddHandler(new wxStaticLineXmlHandler); | |
1ee3fb38 | 178 | #endif |
ecf48edf VZ |
179 | #if wxUSE_STATTEXT |
180 | AddHandler(new wxStaticTextXmlHandler); | |
ec376c8f | 181 | #endif |
ecf48edf VZ |
182 | #if wxUSE_STATUSBAR |
183 | AddHandler(new wxStatusBarXmlHandler); | |
ec376c8f | 184 | #endif |
ecf48edf VZ |
185 | #if wxUSE_TEXTCTRL |
186 | AddHandler(new wxTextCtrlXmlHandler); | |
ec376c8f | 187 | #endif |
ecf48edf VZ |
188 | #if wxUSE_TOGGLEBTN |
189 | AddHandler(new wxToggleButtonXmlHandler); | |
ec376c8f | 190 | #endif |
6b9103c6 VZ |
191 | #if wxUSE_TIMEPICKCTRL |
192 | AddHandler(new wxTimeCtrlXmlHandler); | |
193 | #endif | |
ecf48edf VZ |
194 | #if wxUSE_TOOLBAR |
195 | AddHandler(new wxToolBarXmlHandler); | |
5a0348c4 | 196 | #endif |
4689441b VZ |
197 | #if wxUSE_TOOLBOOK |
198 | AddHandler(new wxToolbookXmlHandler); | |
199 | #endif | |
ecf48edf VZ |
200 | #if wxUSE_TREEBOOK |
201 | AddHandler(new wxTreebookXmlHandler); | |
0e3c83a7 | 202 | #endif |
ecf48edf VZ |
203 | #if wxUSE_TREECTRL |
204 | AddHandler(new wxTreeCtrlXmlHandler); | |
17e91437 | 205 | #endif |
ecf48edf VZ |
206 | #if wxUSE_WIZARDDLG |
207 | AddHandler(new wxWizardXmlHandler); | |
9e29cd0a | 208 | #endif |
78d14f80 | 209 | } |
a1e4ec87 VS |
210 | |
211 | #endif // wxUSE_XRC |