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