]>
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 |
aa1b2573 JS |
47 | #if wxUSE_BOOKCTRL |
48 | AddHandler(new wxPropertySheetDialogXmlHandler); | |
49 | #endif | |
ecf48edf VZ |
50 | #if wxUSE_BUTTON |
51 | AddHandler(new wxStdDialogButtonSizerXmlHandler); | |
52 | AddHandler(new wxButtonXmlHandler); | |
dd47af27 | 53 | #endif |
f03b9d45 | 54 | #if wxUSE_CALENDARCTRL |
78d14f80 | 55 | AddHandler(new wxCalendarCtrlXmlHandler); |
f03b9d45 | 56 | #endif |
ecf48edf VZ |
57 | #if wxUSE_CHECKBOX |
58 | AddHandler(new wxCheckBoxXmlHandler); | |
dd47af27 | 59 | #endif |
636e7e5d | 60 | #if wxUSE_CHECKLISTBOX |
56572188 | 61 | AddHandler(new wxCheckListBoxXmlHandler); |
78d14f80 VS |
62 | #endif |
63 | #if wxUSE_CHOICE | |
64 | AddHandler(new wxChoiceXmlHandler); | |
65 | #endif | |
ecf48edf VZ |
66 | #if wxUSE_CHOICEBOOK |
67 | AddHandler(new wxChoicebookXmlHandler); | |
68 | #endif | |
912c3932 VZ |
69 | #if wxUSE_COLLPANE |
70 | AddHandler(new wxCollapsiblePaneXmlHandler); | |
71 | #endif | |
ecf48edf VZ |
72 | #if wxUSE_COLOURPICKERCTRL |
73 | AddHandler(new wxColourPickerCtrlXmlHandler); | |
74 | #endif | |
75 | #if wxUSE_COMBOBOX | |
76 | AddHandler(new wxComboBoxXmlHandler); | |
77 | #endif | |
fef4b46d JS |
78 | #if wxUSE_COMBOCTRL |
79 | AddHandler(new wxComboCtrlXmlHandler); | |
80 | #endif | |
ecf48edf VZ |
81 | #if wxUSE_DATEPICKCTRL |
82 | AddHandler(new wxDateCtrlXmlHandler); | |
83 | #endif | |
84 | #if wxUSE_DIRDLG | |
85 | AddHandler(new wxGenericDirCtrlXmlHandler); | |
86 | #endif | |
87 | #if wxUSE_DIRPICKERCTRL | |
88 | AddHandler(new wxDirPickerCtrlXmlHandler); | |
89 | #endif | |
90 | #if wxUSE_FILEPICKERCTRL | |
91 | AddHandler(new wxFilePickerCtrlXmlHandler); | |
92 | #endif | |
93 | #if wxUSE_FONTPICKERCTRL | |
94 | AddHandler(new wxFontPickerCtrlXmlHandler); | |
78d14f80 VS |
95 | #endif |
96 | #if wxUSE_GAUGE | |
97 | AddHandler(new wxGaugeXmlHandler); | |
98 | #endif | |
ecf48edf VZ |
99 | #if wxUSE_GRID |
100 | AddHandler( new wxGridXmlHandler); | |
85f138db | 101 | #endif |
78d14f80 VS |
102 | #if wxUSE_HTML |
103 | AddHandler(new wxHtmlWindowXmlHandler); | |
9ebb7cad | 104 | AddHandler(new wxSimpleHtmlListBoxXmlHandler); |
f80ea77b | 105 | #endif |
ecf48edf VZ |
106 | #if wxUSE_HYPERLINKCTRL |
107 | AddHandler( new wxHyperlinkCtrlXmlHandler); | |
78d14f80 | 108 | #endif |
ecf48edf VZ |
109 | #if wxUSE_LISTBOOK |
110 | AddHandler(new wxListbookXmlHandler); | |
dd47af27 | 111 | #endif |
ecf48edf VZ |
112 | #if wxUSE_LISTBOX |
113 | AddHandler(new wxListBoxXmlHandler); | |
78d14f80 | 114 | #endif |
ecf48edf VZ |
115 | #if wxUSE_LISTCTRL |
116 | AddHandler(new wxListCtrlXmlHandler); | |
78d14f80 | 117 | #endif |
ecf48edf VZ |
118 | #if wxUSE_MDI |
119 | AddHandler(new wxMdiXmlHandler); | |
582f07c2 | 120 | #endif |
ecf48edf VZ |
121 | #if wxUSE_MENUS |
122 | AddHandler(new wxMenuXmlHandler); | |
123 | AddHandler(new wxMenuBarXmlHandler); | |
95a46303 | 124 | #endif |
78d14f80 VS |
125 | #if wxUSE_NOTEBOOK |
126 | AddHandler(new wxNotebookXmlHandler); | |
9aaf1192 | 127 | #endif |
ecf48edf VZ |
128 | #if wxUSE_ODCOMBOBOX |
129 | AddHandler(new wxOwnerDrawnComboBoxXmlHandler); | |
eca15c0d | 130 | #endif |
ecf48edf VZ |
131 | #if wxUSE_RADIOBOX |
132 | AddHandler(new wxRadioBoxXmlHandler); | |
78d14f80 | 133 | #endif |
ecf48edf VZ |
134 | #if wxUSE_RADIOBTN |
135 | AddHandler(new wxRadioButtonXmlHandler); | |
dd47af27 | 136 | #endif |
87c2432d | 137 | #if 0 && wxUSE_RICHTEXT |
fd4344d6 JS |
138 | AddHandler(new wxRichTextCtrlXmlHandler); |
139 | #endif | |
ecf48edf VZ |
140 | #if wxUSE_SCROLLBAR |
141 | AddHandler(new wxScrollBarXmlHandler); | |
78d14f80 | 142 | #endif |
c7db82dc VZ |
143 | #if wxUSE_SEARCHCTRL |
144 | AddHandler(new wxSearchCtrlXmlHandler); | |
145 | #endif | |
ecf48edf VZ |
146 | #if wxUSE_SLIDER |
147 | AddHandler(new wxSliderXmlHandler); | |
78d14f80 | 148 | #endif |
ecf48edf VZ |
149 | #if wxUSE_SPINBTN |
150 | AddHandler(new wxSpinButtonXmlHandler); | |
78d14f80 | 151 | #endif |
ecf48edf VZ |
152 | #if wxUSE_SPINCTRL |
153 | AddHandler(new wxSpinCtrlXmlHandler); | |
995c1788 | 154 | #endif |
dd47af27 | 155 | #if wxUSE_SPLITTER |
2f5b93fb | 156 | AddHandler(new wxSplitterWindowXmlHandler); |
dd47af27 | 157 | #endif |
ecf48edf VZ |
158 | #if wxUSE_STATBMP |
159 | AddHandler(new wxStaticBitmapXmlHandler); | |
e5db28fd | 160 | #endif |
ecf48edf VZ |
161 | #if wxUSE_STATBOX |
162 | AddHandler(new wxStaticBoxXmlHandler); | |
b0fb0f3c | 163 | #endif |
ecf48edf VZ |
164 | #if wxUSE_STATLINE |
165 | AddHandler(new wxStaticLineXmlHandler); | |
1ee3fb38 | 166 | #endif |
ecf48edf VZ |
167 | #if wxUSE_STATTEXT |
168 | AddHandler(new wxStaticTextXmlHandler); | |
ec376c8f | 169 | #endif |
ecf48edf VZ |
170 | #if wxUSE_STATUSBAR |
171 | AddHandler(new wxStatusBarXmlHandler); | |
ec376c8f | 172 | #endif |
ecf48edf VZ |
173 | #if wxUSE_TEXTCTRL |
174 | AddHandler(new wxTextCtrlXmlHandler); | |
ec376c8f | 175 | #endif |
ecf48edf VZ |
176 | #if wxUSE_TOGGLEBTN |
177 | AddHandler(new wxToggleButtonXmlHandler); | |
ec376c8f | 178 | #endif |
ecf48edf VZ |
179 | #if wxUSE_TOOLBAR |
180 | AddHandler(new wxToolBarXmlHandler); | |
5a0348c4 | 181 | #endif |
ecf48edf VZ |
182 | #if wxUSE_TREEBOOK |
183 | AddHandler(new wxTreebookXmlHandler); | |
0e3c83a7 | 184 | #endif |
ecf48edf VZ |
185 | #if wxUSE_TREECTRL |
186 | AddHandler(new wxTreeCtrlXmlHandler); | |
17e91437 | 187 | #endif |
ecf48edf VZ |
188 | #if wxUSE_WIZARDDLG |
189 | AddHandler(new wxWizardXmlHandler); | |
9e29cd0a | 190 | #endif |
78d14f80 | 191 | } |
a1e4ec87 VS |
192 | |
193 | #endif // wxUSE_XRC |