]> git.saurik.com Git - wxWidgets.git/blame - src/xrc/xmlrsall.cpp
Further refine of #15226: wxRichTextCtrl: Implement setting properties with undo...
[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
78d14f80
VS
6// Copyright: (c) 2000 Vaclav Slavik
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
f80ea77b 9
78d14f80
VS
10// For compilers that support precompilation, includes "wx.h".
11#include "wx/wxprec.h"
12
13#ifdef __BORLANDC__
14 #pragma hdrstop
15#endif
16
621be1ec 17#if wxUSE_XRC
a1e4ec87 18
78d14f80
VS
19#include "wx/xrc/xmlres.h"
20#include "wx/xrc/xh_all.h"
21
22void wxXmlResource::InitAllHandlers()
23{
dd47af27
VZ
24 // these are the handlers, which we always have
25 AddHandler(new wxUnknownWidgetXmlHandler);
78d14f80
VS
26 AddHandler(new wxBitmapXmlHandler);
27 AddHandler(new wxIconXmlHandler);
78d14f80
VS
28 AddHandler(new wxDialogXmlHandler);
29 AddHandler(new wxPanelXmlHandler);
78d14f80 30 AddHandler(new wxSizerXmlHandler);
dd47af27
VZ
31 AddHandler(new wxFrameXmlHandler);
32 AddHandler(new wxScrolledWindowXmlHandler);
33
34 // these are configurable handlers
ecf48edf
VZ
35 //
36 // please keep them in alphabetical order of wxUSE_XXX guards
37#if wxUSE_ANIMATIONCTRL
38 AddHandler(new wxAnimationCtrlXmlHandler);
dd47af27 39#endif
ae2047c3
VZ
40#if wxUSE_BANNERWINDOW
41 AddHandler(new wxBannerWindowXmlHandler);
42#endif
ecf48edf
VZ
43#if wxUSE_BITMAPCOMBOBOX
44 AddHandler(new wxBitmapComboBoxXmlHandler);
dd47af27
VZ
45#endif
46#if wxUSE_BMPBUTTON
78d14f80 47 AddHandler(new wxBitmapButtonXmlHandler);
dd47af27 48#endif
aa1b2573
JS
49#if wxUSE_BOOKCTRL
50 AddHandler(new wxPropertySheetDialogXmlHandler);
51#endif
ecf48edf
VZ
52#if wxUSE_BUTTON
53 AddHandler(new wxStdDialogButtonSizerXmlHandler);
54 AddHandler(new wxButtonXmlHandler);
dd47af27 55#endif
f03b9d45 56#if wxUSE_CALENDARCTRL
78d14f80 57 AddHandler(new wxCalendarCtrlXmlHandler);
f03b9d45 58#endif
ecf48edf
VZ
59#if wxUSE_CHECKBOX
60 AddHandler(new wxCheckBoxXmlHandler);
dd47af27 61#endif
636e7e5d 62#if wxUSE_CHECKLISTBOX
56572188 63 AddHandler(new wxCheckListBoxXmlHandler);
78d14f80
VS
64#endif
65#if wxUSE_CHOICE
66 AddHandler(new wxChoiceXmlHandler);
67#endif
ecf48edf
VZ
68#if wxUSE_CHOICEBOOK
69 AddHandler(new wxChoicebookXmlHandler);
70#endif
912c3932
VZ
71#if wxUSE_COLLPANE
72 AddHandler(new wxCollapsiblePaneXmlHandler);
73#endif
ecf48edf
VZ
74#if wxUSE_COLOURPICKERCTRL
75 AddHandler(new wxColourPickerCtrlXmlHandler);
76#endif
77#if wxUSE_COMBOBOX
78 AddHandler(new wxComboBoxXmlHandler);
79#endif
fef4b46d
JS
80#if wxUSE_COMBOCTRL
81 AddHandler(new wxComboCtrlXmlHandler);
82#endif
53cdd2c1
VZ
83#if wxUSE_COMMANDLINKBUTTON
84 AddHandler(new wxCommandLinkButtonXmlHandler);
85#endif
ecf48edf
VZ
86#if wxUSE_DATEPICKCTRL
87 AddHandler(new wxDateCtrlXmlHandler);
88#endif
89#if wxUSE_DIRDLG
90 AddHandler(new wxGenericDirCtrlXmlHandler);
91#endif
92#if wxUSE_DIRPICKERCTRL
93 AddHandler(new wxDirPickerCtrlXmlHandler);
94#endif
adcda299
VZ
95#if wxUSE_EDITABLELISTBOX
96 AddHandler(new wxEditableListBoxXmlHandler);
97#endif
0d14e4f2
VZ
98#if wxUSE_FILECTRL
99 AddHandler(new wxFileCtrlXmlHandler);
100#endif
ecf48edf
VZ
101#if wxUSE_FILEPICKERCTRL
102 AddHandler(new wxFilePickerCtrlXmlHandler);
103#endif
104#if wxUSE_FONTPICKERCTRL
105 AddHandler(new wxFontPickerCtrlXmlHandler);
78d14f80
VS
106#endif
107#if wxUSE_GAUGE
108 AddHandler(new wxGaugeXmlHandler);
109#endif
ecf48edf
VZ
110#if wxUSE_GRID
111 AddHandler( new wxGridXmlHandler);
85f138db 112#endif
78d14f80
VS
113#if wxUSE_HTML
114 AddHandler(new wxHtmlWindowXmlHandler);
9ebb7cad 115 AddHandler(new wxSimpleHtmlListBoxXmlHandler);
f80ea77b 116#endif
ecf48edf
VZ
117#if wxUSE_HYPERLINKCTRL
118 AddHandler( new wxHyperlinkCtrlXmlHandler);
78d14f80 119#endif
ecf48edf
VZ
120#if wxUSE_LISTBOOK
121 AddHandler(new wxListbookXmlHandler);
dd47af27 122#endif
ecf48edf
VZ
123#if wxUSE_LISTBOX
124 AddHandler(new wxListBoxXmlHandler);
78d14f80 125#endif
ecf48edf
VZ
126#if wxUSE_LISTCTRL
127 AddHandler(new wxListCtrlXmlHandler);
78d14f80 128#endif
ecf48edf
VZ
129#if wxUSE_MDI
130 AddHandler(new wxMdiXmlHandler);
582f07c2 131#endif
ecf48edf
VZ
132#if wxUSE_MENUS
133 AddHandler(new wxMenuXmlHandler);
134 AddHandler(new wxMenuBarXmlHandler);
95a46303 135#endif
78d14f80
VS
136#if wxUSE_NOTEBOOK
137 AddHandler(new wxNotebookXmlHandler);
9aaf1192 138#endif
ecf48edf
VZ
139#if wxUSE_ODCOMBOBOX
140 AddHandler(new wxOwnerDrawnComboBoxXmlHandler);
eca15c0d 141#endif
ecf48edf
VZ
142#if wxUSE_RADIOBOX
143 AddHandler(new wxRadioBoxXmlHandler);
78d14f80 144#endif
ecf48edf
VZ
145#if wxUSE_RADIOBTN
146 AddHandler(new wxRadioButtonXmlHandler);
dd47af27 147#endif
ecf48edf
VZ
148#if wxUSE_SCROLLBAR
149 AddHandler(new wxScrollBarXmlHandler);
78d14f80 150#endif
c7db82dc
VZ
151#if wxUSE_SEARCHCTRL
152 AddHandler(new wxSearchCtrlXmlHandler);
153#endif
ecf48edf
VZ
154#if wxUSE_SLIDER
155 AddHandler(new wxSliderXmlHandler);
78d14f80 156#endif
ecf48edf
VZ
157#if wxUSE_SPINBTN
158 AddHandler(new wxSpinButtonXmlHandler);
78d14f80 159#endif
ecf48edf
VZ
160#if wxUSE_SPINCTRL
161 AddHandler(new wxSpinCtrlXmlHandler);
995c1788 162#endif
dd47af27 163#if wxUSE_SPLITTER
2f5b93fb 164 AddHandler(new wxSplitterWindowXmlHandler);
dd47af27 165#endif
ecf48edf
VZ
166#if wxUSE_STATBMP
167 AddHandler(new wxStaticBitmapXmlHandler);
e5db28fd 168#endif
ecf48edf
VZ
169#if wxUSE_STATBOX
170 AddHandler(new wxStaticBoxXmlHandler);
b0fb0f3c 171#endif
ecf48edf
VZ
172#if wxUSE_STATLINE
173 AddHandler(new wxStaticLineXmlHandler);
1ee3fb38 174#endif
ecf48edf
VZ
175#if wxUSE_STATTEXT
176 AddHandler(new wxStaticTextXmlHandler);
ec376c8f 177#endif
ecf48edf
VZ
178#if wxUSE_STATUSBAR
179 AddHandler(new wxStatusBarXmlHandler);
ec376c8f 180#endif
ecf48edf
VZ
181#if wxUSE_TEXTCTRL
182 AddHandler(new wxTextCtrlXmlHandler);
ec376c8f 183#endif
ecf48edf
VZ
184#if wxUSE_TOGGLEBTN
185 AddHandler(new wxToggleButtonXmlHandler);
ec376c8f 186#endif
6b9103c6
VZ
187#if wxUSE_TIMEPICKCTRL
188 AddHandler(new wxTimeCtrlXmlHandler);
189#endif
ecf48edf
VZ
190#if wxUSE_TOOLBAR
191 AddHandler(new wxToolBarXmlHandler);
5a0348c4 192#endif
4689441b
VZ
193#if wxUSE_TOOLBOOK
194 AddHandler(new wxToolbookXmlHandler);
195#endif
ecf48edf
VZ
196#if wxUSE_TREEBOOK
197 AddHandler(new wxTreebookXmlHandler);
0e3c83a7 198#endif
ecf48edf
VZ
199#if wxUSE_TREECTRL
200 AddHandler(new wxTreeCtrlXmlHandler);
17e91437 201#endif
ecf48edf
VZ
202#if wxUSE_WIZARDDLG
203 AddHandler(new wxWizardXmlHandler);
9e29cd0a 204#endif
78d14f80 205}
a1e4ec87
VS
206
207#endif // wxUSE_XRC