]> git.saurik.com Git - wxWidgets.git/blob - src/xrc/xmlrsall.cpp
test indeterminate wxGauge mode (part of patch 1551409)
[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_BITMAPCOMBOBOX
42 AddHandler(new wxBitmapComboBoxXmlHandler);
43 #endif
44 #if wxUSE_BMPBUTTON
45 AddHandler(new wxBitmapButtonXmlHandler);
46 #endif
47 #if wxUSE_BUTTON
48 AddHandler(new wxStdDialogButtonSizerXmlHandler);
49 AddHandler(new wxButtonXmlHandler);
50 #endif
51 #if wxUSE_CALENDARCTRL
52 AddHandler(new wxCalendarCtrlXmlHandler);
53 #endif
54 #if wxUSE_CHECKBOX
55 AddHandler(new wxCheckBoxXmlHandler);
56 #endif
57 #if wxUSE_CHECKLISTBOX
58 AddHandler(new wxCheckListBoxXmlHandler);
59 #endif
60 #if wxUSE_CHOICE
61 AddHandler(new wxChoiceXmlHandler);
62 #endif
63 #if wxUSE_CHOICEBOOK
64 AddHandler(new wxChoicebookXmlHandler);
65 #endif
66 #if wxUSE_COLOURPICKERCTRL
67 AddHandler(new wxColourPickerCtrlXmlHandler);
68 #endif
69 #if wxUSE_COMBOBOX
70 AddHandler(new wxComboBoxXmlHandler);
71 #endif
72 #if wxUSE_DATEPICKCTRL
73 AddHandler(new wxDateCtrlXmlHandler);
74 #endif
75 #if wxUSE_DIRDLG
76 AddHandler(new wxGenericDirCtrlXmlHandler);
77 #endif
78 #if wxUSE_DIRPICKERCTRL
79 AddHandler(new wxDirPickerCtrlXmlHandler);
80 #endif
81 #if wxUSE_FILEPICKERCTRL
82 AddHandler(new wxFilePickerCtrlXmlHandler);
83 #endif
84 #if wxUSE_FONTPICKERCTRL
85 AddHandler(new wxFontPickerCtrlXmlHandler);
86 #endif
87 #if wxUSE_GAUGE
88 AddHandler(new wxGaugeXmlHandler);
89 #endif
90 #if wxUSE_GRID
91 AddHandler( new wxGridXmlHandler);
92 #endif
93 #if wxUSE_HTML
94 AddHandler(new wxHtmlWindowXmlHandler);
95 #endif
96 #if wxUSE_HYPERLINKCTRL
97 AddHandler( new wxHyperlinkCtrlXmlHandler);
98 #endif
99 #if wxUSE_LISTBOOK
100 AddHandler(new wxListbookXmlHandler);
101 #endif
102 #if wxUSE_LISTBOX
103 AddHandler(new wxListBoxXmlHandler);
104 #endif
105 #if wxUSE_LISTCTRL
106 AddHandler(new wxListCtrlXmlHandler);
107 #endif
108 #if wxUSE_MDI
109 AddHandler(new wxMdiXmlHandler);
110 #endif
111 #if wxUSE_MENUS
112 AddHandler(new wxMenuXmlHandler);
113 AddHandler(new wxMenuBarXmlHandler);
114 #endif
115 #if wxUSE_NOTEBOOK
116 AddHandler(new wxNotebookXmlHandler);
117 #endif
118 #if wxUSE_ODCOMBOBOX
119 AddHandler(new wxOwnerDrawnComboBoxXmlHandler);
120 #endif
121 #if wxUSE_RADIOBOX
122 AddHandler(new wxRadioBoxXmlHandler);
123 #endif
124 #if wxUSE_RADIOBTN
125 AddHandler(new wxRadioButtonXmlHandler);
126 #endif
127 #if wxUSE_SCROLLBAR
128 AddHandler(new wxScrollBarXmlHandler);
129 #endif
130 #if wxUSE_SLIDER
131 AddHandler(new wxSliderXmlHandler);
132 #endif
133 #if wxUSE_SPINBTN
134 AddHandler(new wxSpinButtonXmlHandler);
135 #endif
136 #if wxUSE_SPINCTRL
137 AddHandler(new wxSpinCtrlXmlHandler);
138 #endif
139 #if wxUSE_SPLITTER
140 AddHandler(new wxSplitterWindowXmlHandler);
141 #endif
142 #if wxUSE_STATBMP
143 AddHandler(new wxStaticBitmapXmlHandler);
144 #endif
145 #if wxUSE_STATBOX
146 AddHandler(new wxStaticBoxXmlHandler);
147 #endif
148 #if wxUSE_STATLINE
149 AddHandler(new wxStaticLineXmlHandler);
150 #endif
151 #if wxUSE_STATTEXT
152 AddHandler(new wxStaticTextXmlHandler);
153 #endif
154 #if wxUSE_STATUSBAR
155 AddHandler(new wxStatusBarXmlHandler);
156 #endif
157 #if wxUSE_TEXTCTRL
158 AddHandler(new wxTextCtrlXmlHandler);
159 #endif
160 #if wxUSE_TOGGLEBTN
161 AddHandler(new wxToggleButtonXmlHandler);
162 #endif
163 #if wxUSE_TOOLBAR
164 AddHandler(new wxToolBarXmlHandler);
165 #endif
166 #if wxUSE_TREEBOOK
167 AddHandler(new wxTreebookXmlHandler);
168 #endif
169 #if wxUSE_TREECTRL
170 AddHandler(new wxTreeCtrlXmlHandler);
171 #endif
172 #if wxUSE_WIZARDDLG
173 AddHandler(new wxWizardXmlHandler);
174 #endif
175 }
176
177 #endif // wxUSE_XRC