Commit | Line | Data |
---|---|---|
78d14f80 VS |
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 | //#ifdef __GNUG__ | |
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 | #include "wx/xrc/xmlres.h" | |
24 | #include "wx/xrc/xh_all.h" | |
25 | ||
26 | void wxXmlResource::InitAllHandlers() | |
27 | { | |
28 | AddHandler(new wxBitmapXmlHandler); | |
29 | AddHandler(new wxIconXmlHandler); | |
30 | AddHandler(new wxMenuXmlHandler); | |
31 | AddHandler(new wxMenuBarXmlHandler); | |
32 | ||
33 | AddHandler(new wxDialogXmlHandler); | |
34 | AddHandler(new wxPanelXmlHandler); | |
35 | ||
36 | AddHandler(new wxSizerXmlHandler); | |
37 | //Controls | |
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 | AddHandler(new wxCalendarCtrlXmlHandler); | |
45 | AddHandler(new wxListCtrlXmlHandler); | |
46 | #if CHECKLISTBOX | |
47 | AddHandler(new wxCheckListXmlHandler); | |
48 | #endif | |
49 | #if wxUSE_CHOICE | |
50 | AddHandler(new wxChoiceXmlHandler); | |
51 | #endif | |
52 | #if wxUSE_SLIDER | |
53 | AddHandler(new wxSliderXmlHandler); | |
54 | #endif | |
55 | #if wxUSE_GAUGE | |
56 | AddHandler(new wxGaugeXmlHandler); | |
57 | #endif | |
58 | #if wxUSE_CHECKBOX | |
59 | AddHandler(new wxCheckBoxXmlHandler); | |
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 | ||
74 | #if wxUSE_RADIOBOX | |
75 | AddHandler(new wxRadioBoxXmlHandler); | |
76 | AddHandler(new wxRadioButtonXmlHandler); | |
77 | #endif | |
78 | #if wxUSE_COMBOBOX | |
79 | AddHandler(new wxComboBoxXmlHandler); | |
80 | #endif | |
81 | #if wxUSE_NOTEBOOK | |
82 | AddHandler(new wxNotebookXmlHandler); | |
83 | #endif | |
84 | AddHandler(new wxTextCtrlXmlHandler); | |
85 | #if wxUSE_LISTBOX | |
86 | AddHandler(new wxListBoxXmlHandler); | |
87 | #endif | |
88 | #if wxUSE_TOOLBAR | |
89 | AddHandler(new wxToolBarXmlHandler); | |
90 | #endif | |
91 | #if wxUSE_STATLINE | |
92 | AddHandler(new wxStaticLineXmlHandler); | |
93 | #endif | |
94 | AddHandler(new wxUnknownWidgetXmlHandler); | |
95 | ||
96 | AddHandler(new wxFrameXmlHandler); | |
97 | } |