]> git.saurik.com Git - wxWidgets.git/blob - src/xrc/xmlrsall.cpp
Use two step creation of wxListHeaderWindow to avoid reentrancy under OSX.
[wxWidgets.git] / src / xrc / xmlrsall.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/xrc/xmlrsall.cpp
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 /////////////////////////////////////////////////////////////////////////////
10
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
13
14 #ifdef __BORLANDC__
15 #pragma hdrstop
16 #endif
17
18 #if wxUSE_XRC
19
20 #include "wx/xrc/xmlres.h"
21 #include "wx/xrc/xh_all.h"
22
23 void wxXmlResource::InitAllHandlers()
24 {
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);
34
35 // these are configurable handlers
36 //
37 // please keep them in alphabetical order of wxUSE_XXX guards
38 #if wxUSE_ANIMATIONCTRL
39 AddHandler(new wxAnimationCtrlXmlHandler);
40 #endif
41 #if wxUSE_BANNERWINDOW
42 AddHandler(new wxBannerWindowXmlHandler);
43 #endif
44 #if wxUSE_BITMAPCOMBOBOX
45 AddHandler(new wxBitmapComboBoxXmlHandler);
46 #endif
47 #if wxUSE_BMPBUTTON
48 AddHandler(new wxBitmapButtonXmlHandler);
49 #endif
50 #if wxUSE_BOOKCTRL
51 AddHandler(new wxPropertySheetDialogXmlHandler);
52 #endif
53 #if wxUSE_BUTTON
54 AddHandler(new wxStdDialogButtonSizerXmlHandler);
55 AddHandler(new wxButtonXmlHandler);
56 #endif
57 #if wxUSE_CALENDARCTRL
58 AddHandler(new wxCalendarCtrlXmlHandler);
59 #endif
60 #if wxUSE_CHECKBOX
61 AddHandler(new wxCheckBoxXmlHandler);
62 #endif
63 #if wxUSE_CHECKLISTBOX
64 AddHandler(new wxCheckListBoxXmlHandler);
65 #endif
66 #if wxUSE_CHOICE
67 AddHandler(new wxChoiceXmlHandler);
68 #endif
69 #if wxUSE_CHOICEBOOK
70 AddHandler(new wxChoicebookXmlHandler);
71 #endif
72 #if wxUSE_COLLPANE
73 AddHandler(new wxCollapsiblePaneXmlHandler);
74 #endif
75 #if wxUSE_COLOURPICKERCTRL
76 AddHandler(new wxColourPickerCtrlXmlHandler);
77 #endif
78 #if wxUSE_COMBOBOX
79 AddHandler(new wxComboBoxXmlHandler);
80 #endif
81 #if wxUSE_COMBOCTRL
82 AddHandler(new wxComboCtrlXmlHandler);
83 #endif
84 #if wxUSE_COMMANDLINKBUTTON
85 AddHandler(new wxCommandLinkButtonXmlHandler);
86 #endif
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
96 #if wxUSE_EDITABLELISTBOX
97 AddHandler(new wxEditableListBoxXmlHandler);
98 #endif
99 #if wxUSE_FILECTRL
100 AddHandler(new wxFileCtrlXmlHandler);
101 #endif
102 #if wxUSE_FILEPICKERCTRL
103 AddHandler(new wxFilePickerCtrlXmlHandler);
104 #endif
105 #if wxUSE_FONTPICKERCTRL
106 AddHandler(new wxFontPickerCtrlXmlHandler);
107 #endif
108 #if wxUSE_GAUGE
109 AddHandler(new wxGaugeXmlHandler);
110 #endif
111 #if wxUSE_GRID
112 AddHandler( new wxGridXmlHandler);
113 #endif
114 #if wxUSE_HTML
115 AddHandler(new wxHtmlWindowXmlHandler);
116 AddHandler(new wxSimpleHtmlListBoxXmlHandler);
117 #endif
118 #if wxUSE_HYPERLINKCTRL
119 AddHandler( new wxHyperlinkCtrlXmlHandler);
120 #endif
121 #if wxUSE_LISTBOOK
122 AddHandler(new wxListbookXmlHandler);
123 #endif
124 #if wxUSE_LISTBOX
125 AddHandler(new wxListBoxXmlHandler);
126 #endif
127 #if wxUSE_LISTCTRL
128 AddHandler(new wxListCtrlXmlHandler);
129 #endif
130 #if wxUSE_MDI
131 AddHandler(new wxMdiXmlHandler);
132 #endif
133 #if wxUSE_MENUS
134 AddHandler(new wxMenuXmlHandler);
135 AddHandler(new wxMenuBarXmlHandler);
136 #endif
137 #if wxUSE_NOTEBOOK
138 AddHandler(new wxNotebookXmlHandler);
139 #endif
140 #if wxUSE_ODCOMBOBOX
141 AddHandler(new wxOwnerDrawnComboBoxXmlHandler);
142 #endif
143 #if wxUSE_RADIOBOX
144 AddHandler(new wxRadioBoxXmlHandler);
145 #endif
146 #if wxUSE_RADIOBTN
147 AddHandler(new wxRadioButtonXmlHandler);
148 #endif
149 #if wxUSE_SCROLLBAR
150 AddHandler(new wxScrollBarXmlHandler);
151 #endif
152 #if wxUSE_SEARCHCTRL
153 AddHandler(new wxSearchCtrlXmlHandler);
154 #endif
155 #if wxUSE_SLIDER
156 AddHandler(new wxSliderXmlHandler);
157 #endif
158 #if wxUSE_SPINBTN
159 AddHandler(new wxSpinButtonXmlHandler);
160 #endif
161 #if wxUSE_SPINCTRL
162 AddHandler(new wxSpinCtrlXmlHandler);
163 #endif
164 #if wxUSE_SPLITTER
165 AddHandler(new wxSplitterWindowXmlHandler);
166 #endif
167 #if wxUSE_STATBMP
168 AddHandler(new wxStaticBitmapXmlHandler);
169 #endif
170 #if wxUSE_STATBOX
171 AddHandler(new wxStaticBoxXmlHandler);
172 #endif
173 #if wxUSE_STATLINE
174 AddHandler(new wxStaticLineXmlHandler);
175 #endif
176 #if wxUSE_STATTEXT
177 AddHandler(new wxStaticTextXmlHandler);
178 #endif
179 #if wxUSE_STATUSBAR
180 AddHandler(new wxStatusBarXmlHandler);
181 #endif
182 #if wxUSE_TEXTCTRL
183 AddHandler(new wxTextCtrlXmlHandler);
184 #endif
185 #if wxUSE_TOGGLEBTN
186 AddHandler(new wxToggleButtonXmlHandler);
187 #endif
188 #if wxUSE_TIMEPICKCTRL
189 AddHandler(new wxTimeCtrlXmlHandler);
190 #endif
191 #if wxUSE_TOOLBAR
192 AddHandler(new wxToolBarXmlHandler);
193 #endif
194 #if wxUSE_TOOLBOOK
195 AddHandler(new wxToolbookXmlHandler);
196 #endif
197 #if wxUSE_TREEBOOK
198 AddHandler(new wxTreebookXmlHandler);
199 #endif
200 #if wxUSE_TREECTRL
201 AddHandler(new wxTreeCtrlXmlHandler);
202 #endif
203 #if wxUSE_WIZARDDLG
204 AddHandler(new wxWizardXmlHandler);
205 #endif
206 }
207
208 #endif // wxUSE_XRC