]> git.saurik.com Git - wxWidgets.git/blob - src/xrc/xmlrsall.cpp
compilation fix for wxUSE_UNICODE_MSLU && !WXWIN_COMPATIBILITY_2_6 (bug 1587408)
[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 AddHandler(new wxSimpleHtmlListBoxXmlHandler);
96 #endif
97 #if wxUSE_HYPERLINKCTRL
98 AddHandler( new wxHyperlinkCtrlXmlHandler);
99 #endif
100 #if wxUSE_LISTBOOK
101 AddHandler(new wxListbookXmlHandler);
102 #endif
103 #if wxUSE_LISTBOX
104 AddHandler(new wxListBoxXmlHandler);
105 #endif
106 #if wxUSE_LISTCTRL
107 AddHandler(new wxListCtrlXmlHandler);
108 #endif
109 #if wxUSE_MDI
110 AddHandler(new wxMdiXmlHandler);
111 #endif
112 #if wxUSE_MENUS
113 AddHandler(new wxMenuXmlHandler);
114 AddHandler(new wxMenuBarXmlHandler);
115 #endif
116 #if wxUSE_NOTEBOOK
117 AddHandler(new wxNotebookXmlHandler);
118 #endif
119 #if wxUSE_ODCOMBOBOX
120 AddHandler(new wxOwnerDrawnComboBoxXmlHandler);
121 #endif
122 #if wxUSE_RADIOBOX
123 AddHandler(new wxRadioBoxXmlHandler);
124 #endif
125 #if wxUSE_RADIOBTN
126 AddHandler(new wxRadioButtonXmlHandler);
127 #endif
128 #if wxUSE_SCROLLBAR
129 AddHandler(new wxScrollBarXmlHandler);
130 #endif
131 #if wxUSE_SLIDER
132 AddHandler(new wxSliderXmlHandler);
133 #endif
134 #if wxUSE_SPINBTN
135 AddHandler(new wxSpinButtonXmlHandler);
136 #endif
137 #if wxUSE_SPINCTRL
138 AddHandler(new wxSpinCtrlXmlHandler);
139 #endif
140 #if wxUSE_SPLITTER
141 AddHandler(new wxSplitterWindowXmlHandler);
142 #endif
143 #if wxUSE_STATBMP
144 AddHandler(new wxStaticBitmapXmlHandler);
145 #endif
146 #if wxUSE_STATBOX
147 AddHandler(new wxStaticBoxXmlHandler);
148 #endif
149 #if wxUSE_STATLINE
150 AddHandler(new wxStaticLineXmlHandler);
151 #endif
152 #if wxUSE_STATTEXT
153 AddHandler(new wxStaticTextXmlHandler);
154 #endif
155 #if wxUSE_STATUSBAR
156 AddHandler(new wxStatusBarXmlHandler);
157 #endif
158 #if wxUSE_TEXTCTRL
159 AddHandler(new wxTextCtrlXmlHandler);
160 #endif
161 #if wxUSE_TOGGLEBTN
162 AddHandler(new wxToggleButtonXmlHandler);
163 #endif
164 #if wxUSE_TOOLBAR
165 AddHandler(new wxToolBarXmlHandler);
166 #endif
167 #if wxUSE_TREEBOOK
168 AddHandler(new wxTreebookXmlHandler);
169 #endif
170 #if wxUSE_TREECTRL
171 AddHandler(new wxTreeCtrlXmlHandler);
172 #endif
173 #if wxUSE_WIZARDDLG
174 AddHandler(new wxWizardXmlHandler);
175 #endif
176 }
177
178 #endif // wxUSE_XRC