]> git.saurik.com Git - wxWidgets.git/blob - contrib/src/xml/xmlrsall.cpp
fixed creation of toolbars under MSW
[wxWidgets.git] / contrib / src / xml / 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 #include "wx/xml/xmlres.h"
24 #include "wx/xml/xh_all.h"
25
26 void wxXmlResource::InitAllHandlers()
27 {
28 AddHandler(new wxMenuXmlHandler);
29 AddHandler(new wxMenuBarXmlHandler);
30
31 AddHandler(new wxDialogXmlHandler);
32 AddHandler(new wxPanelXmlHandler);
33 AddHandler(new wxButtonXmlHandler);
34 #if wxUSE_GAUGE
35 AddHandler(new wxGaugeXmlHandler);
36 #endif
37 #if wxUSE_CHECKBOX
38 AddHandler(new wxCheckBoxXmlHandler);
39 #endif
40 #if wxUSE_HTML
41 AddHandler(new wxHtmlWindowXmlHandler);
42 #endif
43 #if wxUSE_SPINBTN
44 AddHandler(new wxSpinButtonXmlHandler);
45 #endif
46 #if wxUSE_SPINCTRL
47 AddHandler(new wxSpinCtrlXmlHandler);
48 #endif
49 AddHandler(new wxStaticTextXmlHandler);
50 AddHandler(new wxStaticBitmapXmlHandler);
51 AddHandler(new wxSliderXmlHandler);
52 #if wxUSE_RADIOBOX
53 AddHandler(new wxRadioBoxXmlHandler);
54 AddHandler(new wxRadioButtonXmlHandler);
55 #endif
56 #if wxUSE_COMBOBOX
57 AddHandler(new wxComboBoxXmlHandler);
58 #endif
59 AddHandler(new wxChoiceXmlHandler);
60 AddHandler(new wxCheckListXmlHandler);
61 AddHandler(new wxSizerXmlHandler);
62 #if wxUSE_NOTEBOOK
63 AddHandler(new wxNotebookXmlHandler);
64 #endif
65 AddHandler(new wxTextCtrlXmlHandler);
66 #if wxUSE_LISTBOX
67 AddHandler(new wxListBoxXmlHandler);
68 #endif
69 #if wxUSE_TOOLBAR
70 AddHandler(new wxToolBarXmlHandler);
71 #endif
72 }