]> git.saurik.com Git - wxWidgets.git/blob - src/xrc/xmlrsall.cpp
Do not allow events to fire after socket is closed (fixes crash on GTK with GDK_Input...
[wxWidgets.git] / src / xrc / xmlrsall.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: 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 AddHandler(new wxBitmapXmlHandler);
26 AddHandler(new wxIconXmlHandler);
27 AddHandler(new wxMenuXmlHandler);
28 AddHandler(new wxMenuBarXmlHandler);
29 AddHandler(new wxDialogXmlHandler);
30 AddHandler(new wxPanelXmlHandler);
31 AddHandler(new wxSizerXmlHandler);
32 AddHandler(new wxStdDialogButtonSizerXmlHandler);
33 AddHandler(new wxButtonXmlHandler);
34 AddHandler(new wxBitmapButtonXmlHandler);
35 AddHandler(new wxStaticTextXmlHandler);
36 AddHandler(new wxStaticBoxXmlHandler);
37 AddHandler(new wxStaticBitmapXmlHandler);
38 AddHandler(new wxTreeCtrlXmlHandler);
39 #if wxUSE_CALENDARCTRL
40 AddHandler(new wxCalendarCtrlXmlHandler);
41 #endif
42 AddHandler(new wxListCtrlXmlHandler);
43 #if wxUSE_CHECKLISTBOX
44 AddHandler(new wxCheckListBoxXmlHandler);
45 #endif
46 #if wxUSE_CHOICE
47 AddHandler(new wxChoiceXmlHandler);
48 #endif
49 #if wxUSE_SLIDER
50 AddHandler(new wxSliderXmlHandler);
51 #endif
52 #if wxUSE_GAUGE
53 AddHandler(new wxGaugeXmlHandler);
54 #endif
55 #if wxUSE_CHECKBOX
56 AddHandler(new wxCheckBoxXmlHandler);
57 #endif
58 #if wxUSE_TOGGLEBTN
59 AddHandler(new wxToggleButtonXmlHandler);
60 #endif
61 #if wxUSE_HTML
62 AddHandler(new wxHtmlWindowXmlHandler);
63 #endif
64 #if wxUSE_SPINBTN
65 AddHandler(new wxSpinButtonXmlHandler);
66 #endif
67 #if wxUSE_SPINCTRL
68 AddHandler(new wxSpinCtrlXmlHandler);
69 #endif
70 #if wxUSE_SCROLLBAR
71 AddHandler(new wxScrollBarXmlHandler);
72 #endif
73 #if wxUSE_RADIOBOX
74 AddHandler(new wxRadioBoxXmlHandler);
75 AddHandler(new wxRadioButtonXmlHandler);
76 #endif
77 #if wxUSE_COMBOBOX
78 AddHandler(new wxComboBoxXmlHandler);
79 #endif
80 #if wxUSE_NOTEBOOK
81 AddHandler(new wxNotebookXmlHandler);
82 #endif
83 #if wxUSE_LISTBOOK
84 AddHandler(new wxListbookXmlHandler);
85 #endif
86 #if wxUSE_CHOICEBOOK
87 AddHandler(new wxChoicebookXmlHandler);
88 #endif
89 AddHandler(new wxTextCtrlXmlHandler);
90 #if wxUSE_LISTBOX
91 AddHandler(new wxListBoxXmlHandler);
92 #endif
93 #if wxUSE_TOOLBAR
94 AddHandler(new wxToolBarXmlHandler);
95 #endif
96 #if wxUSE_STATLINE
97 AddHandler(new wxStaticLineXmlHandler);
98 #endif
99 AddHandler(new wxUnknownWidgetXmlHandler);
100 #if wxUSE_DIRDLG
101 AddHandler(new wxGenericDirCtrlXmlHandler);
102 #endif
103 AddHandler(new wxFrameXmlHandler);
104 AddHandler(new wxScrolledWindowXmlHandler);
105 AddHandler(new wxSplitterWindowXmlHandler);
106 #if wxUSE_WIZARDDLG
107 AddHandler(new wxWizardXmlHandler);
108 #endif
109 #if wxUSE_STATUSBAR
110 AddHandler(new wxStatusBarXmlHandler);
111 #endif
112 #if wxUSE_DATEPICKCTRL
113 AddHandler(new wxDateCtrlXmlHandler);
114 #endif
115 #if wxUSE_MDI
116 AddHandler(new wxMdiXmlHandler);
117 #endif
118 }
119
120 #endif // wxUSE_XRC