]> git.saurik.com Git - wxWidgets.git/blob - src/xrc/xmlrsall.cpp
fixed previous revision: call wxControl's, not wxButton's DoGetBestSize
[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 // -- 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 #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 wxButtonXmlHandler);
38 AddHandler(new wxBitmapButtonXmlHandler);
39 AddHandler(new wxStaticTextXmlHandler);
40 AddHandler(new wxStaticBoxXmlHandler);
41 AddHandler(new wxStaticBitmapXmlHandler);
42 AddHandler(new wxTreeCtrlXmlHandler);
43 #if wxUSE_CALENDARCTRL
44 AddHandler(new wxCalendarCtrlXmlHandler);
45 #endif
46 AddHandler(new wxListCtrlXmlHandler);
47 #if wxUSE_CHECKLISTBOX
48 AddHandler(new wxCheckListBoxXmlHandler);
49 #endif
50 #if wxUSE_CHOICE
51 AddHandler(new wxChoiceXmlHandler);
52 #endif
53 #if wxUSE_SLIDER
54 AddHandler(new wxSliderXmlHandler);
55 #endif
56 #if wxUSE_GAUGE
57 AddHandler(new wxGaugeXmlHandler);
58 #endif
59 #if wxUSE_CHECKBOX
60 AddHandler(new wxCheckBoxXmlHandler);
61 #endif
62 #if wxUSE_TOGGLEBTN
63 AddHandler(new wxToggleButtonXmlHandler);
64 #endif
65 #if wxUSE_HTML
66 AddHandler(new wxHtmlWindowXmlHandler);
67 #endif
68 #if wxUSE_SPINBTN
69 AddHandler(new wxSpinButtonXmlHandler);
70 #endif
71 #if wxUSE_SPINCTRL
72 AddHandler(new wxSpinCtrlXmlHandler);
73 #endif
74 #if wxUSE_SCROLLBAR
75 AddHandler(new wxScrollBarXmlHandler);
76 #endif
77 #if wxUSE_RADIOBOX
78 AddHandler(new wxRadioBoxXmlHandler);
79 AddHandler(new wxRadioButtonXmlHandler);
80 #endif
81 #if wxUSE_COMBOBOX
82 AddHandler(new wxComboBoxXmlHandler);
83 #endif
84 #if wxUSE_NOTEBOOK
85 AddHandler(new wxNotebookXmlHandler);
86 #endif
87 AddHandler(new wxTextCtrlXmlHandler);
88 #if wxUSE_LISTBOX
89 AddHandler(new wxListBoxXmlHandler);
90 #endif
91 #if wxUSE_TOOLBAR
92 AddHandler(new wxToolBarXmlHandler);
93 #endif
94 #if wxUSE_STATLINE
95 AddHandler(new wxStaticLineXmlHandler);
96 #endif
97 AddHandler(new wxUnknownWidgetXmlHandler);
98 #if wxUSE_DIRDLG
99 AddHandler(new wxGenericDirCtrlXmlHandler);
100 #endif
101 AddHandler(new wxFrameXmlHandler);
102 AddHandler(new wxScrolledWindowXmlHandler);
103 AddHandler(new wxSplitterWindowXmlHandler);
104 #if wxUSE_WIZARDDLG
105 AddHandler(new wxWizardXmlHandler);
106 #endif
107 #if wxUSE_STATUSBAR
108 AddHandler(new wxStatusBarXmlHandler);
109 #endif
110 }
111
112 #endif // wxUSE_XRC