]>
Commit | Line | Data |
---|---|---|
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 | // -- Already done in xmlres.cpp | |
12 | //#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) | |
13 | //#pragma implementation "xmlres.h" | |
14 | //#endif | |
15 | ||
16 | // For compilers that support precompilation, includes "wx.h". | |
17 | #include "wx/wxprec.h" | |
18 | ||
19 | #ifdef __BORLANDC__ | |
20 | #pragma hdrstop | |
21 | #endif | |
22 | ||
23 | #if wxUSE_XRC | |
24 | ||
25 | #include "wx/xrc/xmlres.h" | |
26 | #include "wx/xrc/xh_all.h" | |
27 | ||
28 | void wxXmlResource::InitAllHandlers() | |
29 | { | |
30 | AddHandler(new wxBitmapXmlHandler); | |
31 | AddHandler(new wxIconXmlHandler); | |
32 | AddHandler(new wxMenuXmlHandler); | |
33 | AddHandler(new wxMenuBarXmlHandler); | |
34 | AddHandler(new wxDialogXmlHandler); | |
35 | AddHandler(new wxPanelXmlHandler); | |
36 | AddHandler(new wxSizerXmlHandler); | |
37 | AddHandler(new wxStdDialogButtonSizerXmlHandler); | |
38 | AddHandler(new wxButtonXmlHandler); | |
39 | AddHandler(new wxBitmapButtonXmlHandler); | |
40 | AddHandler(new wxStaticTextXmlHandler); | |
41 | AddHandler(new wxStaticBoxXmlHandler); | |
42 | AddHandler(new wxStaticBitmapXmlHandler); | |
43 | AddHandler(new wxTreeCtrlXmlHandler); | |
44 | #if wxUSE_CALENDARCTRL | |
45 | AddHandler(new wxCalendarCtrlXmlHandler); | |
46 | #endif | |
47 | AddHandler(new wxListCtrlXmlHandler); | |
48 | #if wxUSE_CHECKLISTBOX | |
49 | AddHandler(new wxCheckListBoxXmlHandler); | |
50 | #endif | |
51 | #if wxUSE_CHOICE | |
52 | AddHandler(new wxChoiceXmlHandler); | |
53 | #endif | |
54 | #if wxUSE_SLIDER | |
55 | AddHandler(new wxSliderXmlHandler); | |
56 | #endif | |
57 | #if wxUSE_GAUGE | |
58 | AddHandler(new wxGaugeXmlHandler); | |
59 | #endif | |
60 | #if wxUSE_CHECKBOX | |
61 | AddHandler(new wxCheckBoxXmlHandler); | |
62 | #endif | |
63 | #if wxUSE_TOGGLEBTN | |
64 | AddHandler(new wxToggleButtonXmlHandler); | |
65 | #endif | |
66 | #if wxUSE_HTML | |
67 | AddHandler(new wxHtmlWindowXmlHandler); | |
68 | #endif | |
69 | #if wxUSE_SPINBTN | |
70 | AddHandler(new wxSpinButtonXmlHandler); | |
71 | #endif | |
72 | #if wxUSE_SPINCTRL | |
73 | AddHandler(new wxSpinCtrlXmlHandler); | |
74 | #endif | |
75 | #if wxUSE_SCROLLBAR | |
76 | AddHandler(new wxScrollBarXmlHandler); | |
77 | #endif | |
78 | #if wxUSE_RADIOBOX | |
79 | AddHandler(new wxRadioBoxXmlHandler); | |
80 | AddHandler(new wxRadioButtonXmlHandler); | |
81 | #endif | |
82 | #if wxUSE_COMBOBOX | |
83 | AddHandler(new wxComboBoxXmlHandler); | |
84 | #endif | |
85 | #if wxUSE_NOTEBOOK | |
86 | AddHandler(new wxNotebookXmlHandler); | |
87 | #endif | |
88 | #if wxUSE_LISTBOOK | |
89 | AddHandler(new wxListbookXmlHandler); | |
90 | #endif | |
91 | #if wxUSE_CHOICEBOOK | |
92 | AddHandler(new wxChoicebookXmlHandler); | |
93 | #endif | |
94 | AddHandler(new wxTextCtrlXmlHandler); | |
95 | #if wxUSE_LISTBOX | |
96 | AddHandler(new wxListBoxXmlHandler); | |
97 | #endif | |
98 | #if wxUSE_TOOLBAR | |
99 | AddHandler(new wxToolBarXmlHandler); | |
100 | #endif | |
101 | #if wxUSE_STATLINE | |
102 | AddHandler(new wxStaticLineXmlHandler); | |
103 | #endif | |
104 | AddHandler(new wxUnknownWidgetXmlHandler); | |
105 | #if wxUSE_DIRDLG | |
106 | AddHandler(new wxGenericDirCtrlXmlHandler); | |
107 | #endif | |
108 | AddHandler(new wxFrameXmlHandler); | |
109 | AddHandler(new wxScrolledWindowXmlHandler); | |
110 | AddHandler(new wxSplitterWindowXmlHandler); | |
111 | #if wxUSE_WIZARDDLG | |
112 | AddHandler(new wxWizardXmlHandler); | |
113 | #endif | |
114 | #if wxUSE_STATUSBAR | |
115 | AddHandler(new wxStatusBarXmlHandler); | |
116 | #endif | |
117 | #if wxUSE_DATEPICKCTRL | |
118 | AddHandler(new wxDateCtrlXmlHandler); | |
119 | #endif | |
120 | #if wxUSE_MDI | |
121 | AddHandler(new wxMdiXmlHandler); | |
122 | #endif | |
123 | } | |
124 | ||
125 | #endif // wxUSE_XRC |