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