]> git.saurik.com Git - wxWidgets.git/blame - src/xrc/xmlrsall.cpp
corrected date in header; removed extra wx/wxprec.h inclusion
[wxWidgets.git] / src / xrc / xmlrsall.cpp
CommitLineData
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
23void 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
36#if wxUSE_MENUS
37 AddHandler(new wxMenuXmlHandler);
38 AddHandler(new wxMenuBarXmlHandler);
39#endif
40#if wxUSE_BUTTON
172541f6 41 AddHandler(new wxStdDialogButtonSizerXmlHandler);
78d14f80 42 AddHandler(new wxButtonXmlHandler);
dd47af27
VZ
43#endif
44#if wxUSE_BMPBUTTON
78d14f80 45 AddHandler(new wxBitmapButtonXmlHandler);
dd47af27
VZ
46#endif
47#if wxUSE_STATTEXT
78d14f80 48 AddHandler(new wxStaticTextXmlHandler);
dd47af27
VZ
49#endif
50#if wxUSE_STATBOX
78d14f80 51 AddHandler(new wxStaticBoxXmlHandler);
dd47af27
VZ
52#endif
53#if wxUSE_STATBMP
78d14f80 54 AddHandler(new wxStaticBitmapXmlHandler);
dd47af27
VZ
55#endif
56#if wxUSE_TREECTRL
78d14f80 57 AddHandler(new wxTreeCtrlXmlHandler);
dd47af27 58#endif
f03b9d45 59#if wxUSE_CALENDARCTRL
78d14f80 60 AddHandler(new wxCalendarCtrlXmlHandler);
f03b9d45 61#endif
dd47af27 62#if wxUSE_LISTCTRL
78d14f80 63 AddHandler(new wxListCtrlXmlHandler);
dd47af27 64#endif
636e7e5d 65#if wxUSE_CHECKLISTBOX
56572188 66 AddHandler(new wxCheckListBoxXmlHandler);
78d14f80
VS
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);
f80ea77b 79#endif
85f138db
JS
80#if wxUSE_TOGGLEBTN
81 AddHandler(new wxToggleButtonXmlHandler);
82#endif
78d14f80
VS
83#if wxUSE_HTML
84 AddHandler(new wxHtmlWindowXmlHandler);
f80ea77b 85#endif
78d14f80
VS
86#if wxUSE_SPINBTN
87 AddHandler(new wxSpinButtonXmlHandler);
f80ea77b 88#endif
78d14f80
VS
89#if wxUSE_SPINCTRL
90 AddHandler(new wxSpinCtrlXmlHandler);
f80ea77b 91#endif
78d14f80
VS
92#if wxUSE_SCROLLBAR
93 AddHandler(new wxScrollBarXmlHandler);
94#endif
78d14f80
VS
95#if wxUSE_RADIOBOX
96 AddHandler(new wxRadioBoxXmlHandler);
dd47af27
VZ
97#endif
98#if wxUSE_RADIOBTN
78d14f80
VS
99 AddHandler(new wxRadioButtonXmlHandler);
100#endif
101#if wxUSE_COMBOBOX
102 AddHandler(new wxComboBoxXmlHandler);
103#endif
582f07c2
WS
104#if wxUSE_ODCOMBOBOX
105 AddHandler(new wxOwnerDrawnComboBoxXmlHandler);
106#endif
95a46303
RR
107#if wxUSE_BITMAPCOMBOBOX
108 AddHandler(new wxBitmapComboBoxXmlHandler);
109#endif
78d14f80
VS
110#if wxUSE_NOTEBOOK
111 AddHandler(new wxNotebookXmlHandler);
9aaf1192
WS
112#endif
113#if wxUSE_LISTBOOK
114 AddHandler(new wxListbookXmlHandler);
115#endif
116#if wxUSE_CHOICEBOOK
117 AddHandler(new wxChoicebookXmlHandler);
eca15c0d
VZ
118#endif
119#if wxUSE_TREEBOOK
120 AddHandler(new wxTreebookXmlHandler);
78d14f80 121#endif
dd47af27 122#if wxUSE_TEXTCTRL
78d14f80 123 AddHandler(new wxTextCtrlXmlHandler);
dd47af27 124#endif
78d14f80
VS
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
995c1788
VS
134#if wxUSE_DIRDLG
135 AddHandler(new wxGenericDirCtrlXmlHandler);
136#endif
dd47af27 137#if wxUSE_SPLITTER
2f5b93fb 138 AddHandler(new wxSplitterWindowXmlHandler);
dd47af27 139#endif
e5db28fd
VS
140#if wxUSE_WIZARDDLG
141 AddHandler(new wxWizardXmlHandler);
142#endif
b0fb0f3c
JS
143#if wxUSE_STATUSBAR
144 AddHandler(new wxStatusBarXmlHandler);
145#endif
1ee3fb38 146#if wxUSE_DATEPICKCTRL
310e47b3 147 AddHandler(new wxDateCtrlXmlHandler);
1ee3fb38 148#endif
ec376c8f
VZ
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
5a0348c4
VS
161#if wxUSE_MDI
162 AddHandler(new wxMdiXmlHandler);
163#endif
0e3c83a7
JS
164#if wxUSE_GRID
165 AddHandler( new wxGridXmlHandler);
166#endif
17e91437
VZ
167#if wxUSE_HYPERLINKCTRL
168 AddHandler( new wxHyperlinkCtrlXmlHandler);
169#endif
78d14f80 170}
a1e4ec87
VS
171
172#endif // wxUSE_XRC