]>
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 |
ecf48edf VZ |
41 | #if wxUSE_BITMAPCOMBOBOX |
42 | AddHandler(new wxBitmapComboBoxXmlHandler); | |
dd47af27 VZ |
43 | #endif |
44 | #if wxUSE_BMPBUTTON | |
78d14f80 | 45 | AddHandler(new wxBitmapButtonXmlHandler); |
dd47af27 | 46 | #endif |
ecf48edf VZ |
47 | #if wxUSE_BUTTON |
48 | AddHandler(new wxStdDialogButtonSizerXmlHandler); | |
49 | AddHandler(new wxButtonXmlHandler); | |
dd47af27 | 50 | #endif |
f03b9d45 | 51 | #if wxUSE_CALENDARCTRL |
78d14f80 | 52 | AddHandler(new wxCalendarCtrlXmlHandler); |
f03b9d45 | 53 | #endif |
ecf48edf VZ |
54 | #if wxUSE_CHECKBOX |
55 | AddHandler(new wxCheckBoxXmlHandler); | |
dd47af27 | 56 | #endif |
636e7e5d | 57 | #if wxUSE_CHECKLISTBOX |
56572188 | 58 | AddHandler(new wxCheckListBoxXmlHandler); |
78d14f80 VS |
59 | #endif |
60 | #if wxUSE_CHOICE | |
61 | AddHandler(new wxChoiceXmlHandler); | |
62 | #endif | |
ecf48edf VZ |
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); | |
78d14f80 VS |
86 | #endif |
87 | #if wxUSE_GAUGE | |
88 | AddHandler(new wxGaugeXmlHandler); | |
89 | #endif | |
ecf48edf VZ |
90 | #if wxUSE_GRID |
91 | AddHandler( new wxGridXmlHandler); | |
85f138db | 92 | #endif |
78d14f80 VS |
93 | #if wxUSE_HTML |
94 | AddHandler(new wxHtmlWindowXmlHandler); | |
f80ea77b | 95 | #endif |
ecf48edf VZ |
96 | #if wxUSE_HYPERLINKCTRL |
97 | AddHandler( new wxHyperlinkCtrlXmlHandler); | |
78d14f80 | 98 | #endif |
ecf48edf VZ |
99 | #if wxUSE_LISTBOOK |
100 | AddHandler(new wxListbookXmlHandler); | |
dd47af27 | 101 | #endif |
ecf48edf VZ |
102 | #if wxUSE_LISTBOX |
103 | AddHandler(new wxListBoxXmlHandler); | |
78d14f80 | 104 | #endif |
ecf48edf VZ |
105 | #if wxUSE_LISTCTRL |
106 | AddHandler(new wxListCtrlXmlHandler); | |
78d14f80 | 107 | #endif |
ecf48edf VZ |
108 | #if wxUSE_MDI |
109 | AddHandler(new wxMdiXmlHandler); | |
582f07c2 | 110 | #endif |
ecf48edf VZ |
111 | #if wxUSE_MENUS |
112 | AddHandler(new wxMenuXmlHandler); | |
113 | AddHandler(new wxMenuBarXmlHandler); | |
95a46303 | 114 | #endif |
78d14f80 VS |
115 | #if wxUSE_NOTEBOOK |
116 | AddHandler(new wxNotebookXmlHandler); | |
9aaf1192 | 117 | #endif |
ecf48edf VZ |
118 | #if wxUSE_ODCOMBOBOX |
119 | AddHandler(new wxOwnerDrawnComboBoxXmlHandler); | |
eca15c0d | 120 | #endif |
ecf48edf VZ |
121 | #if wxUSE_RADIOBOX |
122 | AddHandler(new wxRadioBoxXmlHandler); | |
78d14f80 | 123 | #endif |
ecf48edf VZ |
124 | #if wxUSE_RADIOBTN |
125 | AddHandler(new wxRadioButtonXmlHandler); | |
dd47af27 | 126 | #endif |
ecf48edf VZ |
127 | #if wxUSE_SCROLLBAR |
128 | AddHandler(new wxScrollBarXmlHandler); | |
78d14f80 | 129 | #endif |
ecf48edf VZ |
130 | #if wxUSE_SLIDER |
131 | AddHandler(new wxSliderXmlHandler); | |
78d14f80 | 132 | #endif |
ecf48edf VZ |
133 | #if wxUSE_SPINBTN |
134 | AddHandler(new wxSpinButtonXmlHandler); | |
78d14f80 | 135 | #endif |
ecf48edf VZ |
136 | #if wxUSE_SPINCTRL |
137 | AddHandler(new wxSpinCtrlXmlHandler); | |
995c1788 | 138 | #endif |
dd47af27 | 139 | #if wxUSE_SPLITTER |
2f5b93fb | 140 | AddHandler(new wxSplitterWindowXmlHandler); |
dd47af27 | 141 | #endif |
ecf48edf VZ |
142 | #if wxUSE_STATBMP |
143 | AddHandler(new wxStaticBitmapXmlHandler); | |
e5db28fd | 144 | #endif |
ecf48edf VZ |
145 | #if wxUSE_STATBOX |
146 | AddHandler(new wxStaticBoxXmlHandler); | |
b0fb0f3c | 147 | #endif |
ecf48edf VZ |
148 | #if wxUSE_STATLINE |
149 | AddHandler(new wxStaticLineXmlHandler); | |
1ee3fb38 | 150 | #endif |
ecf48edf VZ |
151 | #if wxUSE_STATTEXT |
152 | AddHandler(new wxStaticTextXmlHandler); | |
ec376c8f | 153 | #endif |
ecf48edf VZ |
154 | #if wxUSE_STATUSBAR |
155 | AddHandler(new wxStatusBarXmlHandler); | |
ec376c8f | 156 | #endif |
ecf48edf VZ |
157 | #if wxUSE_TEXTCTRL |
158 | AddHandler(new wxTextCtrlXmlHandler); | |
ec376c8f | 159 | #endif |
ecf48edf VZ |
160 | #if wxUSE_TOGGLEBTN |
161 | AddHandler(new wxToggleButtonXmlHandler); | |
ec376c8f | 162 | #endif |
ecf48edf VZ |
163 | #if wxUSE_TOOLBAR |
164 | AddHandler(new wxToolBarXmlHandler); | |
5a0348c4 | 165 | #endif |
ecf48edf VZ |
166 | #if wxUSE_TREEBOOK |
167 | AddHandler(new wxTreebookXmlHandler); | |
0e3c83a7 | 168 | #endif |
ecf48edf VZ |
169 | #if wxUSE_TREECTRL |
170 | AddHandler(new wxTreeCtrlXmlHandler); | |
17e91437 | 171 | #endif |
ecf48edf VZ |
172 | #if wxUSE_WIZARDDLG |
173 | AddHandler(new wxWizardXmlHandler); | |
9e29cd0a | 174 | #endif |
78d14f80 | 175 | } |
a1e4ec87 VS |
176 | |
177 | #endif // wxUSE_XRC |