1 ///////////////////////////////////////////////////////////////////////////// 2 // Name: src/xrc/xmlrsall.cpp 3 // Purpose: wxXmlResource::InitAllHandlers 4 // Author: Vaclav Slavik 5 // Created: 2000/03/05 6 // Copyright: (c) 2000 Vaclav Slavik 7 // Licence: wxWindows licence 8 ///////////////////////////////////////////////////////////////////////////// 9 10 // For compilers that support precompilation, includes "wx.h". 11 #include "wx/wxprec.h" 12 13 14 #if wxUSE_XRC 15 16 #include "wx/xrc/xmlres.h" 17 #include "wx/xrc/xh_all.h" 18 InitAllHandlers()19void wxXmlResource::InitAllHandlers() 20 { 21 // these are the handlers, which we always have 22 AddHandler(new wxUnknownWidgetXmlHandler); 23 AddHandler(new wxBitmapXmlHandler); 24 AddHandler(new wxIconXmlHandler); 25 AddHandler(new wxDialogXmlHandler); 26 AddHandler(new wxPanelXmlHandler); 27 AddHandler(new wxSizerXmlHandler); 28 AddHandler(new wxFrameXmlHandler); 29 AddHandler(new wxScrolledWindowXmlHandler); 30 31 // these are configurable handlers 32 // 33 // please keep them in alphabetical order of wxUSE_XXX guards 34 #if wxUSE_ACTIVITYINDICATOR 35 AddHandler(new wxActivityIndicatorXmlHandler); 36 #endif 37 #if wxUSE_ANIMATIONCTRL 38 AddHandler(new wxAnimationCtrlXmlHandler); 39 #endif 40 #if wxUSE_BANNERWINDOW 41 AddHandler(new wxBannerWindowXmlHandler); 42 #endif 43 #if wxUSE_BITMAPCOMBOBOX 44 AddHandler(new wxBitmapComboBoxXmlHandler); 45 #endif 46 #if wxUSE_BMPBUTTON 47 AddHandler(new wxBitmapButtonXmlHandler); 48 #endif 49 #if wxUSE_BOOKCTRL 50 AddHandler(new wxPropertySheetDialogXmlHandler); 51 #endif 52 #if wxUSE_BUTTON 53 AddHandler(new wxStdDialogButtonSizerXmlHandler); 54 AddHandler(new wxButtonXmlHandler); 55 #endif 56 #if wxUSE_CALENDARCTRL 57 AddHandler(new wxCalendarCtrlXmlHandler); 58 #endif 59 #if wxUSE_CHECKBOX 60 AddHandler(new wxCheckBoxXmlHandler); 61 #endif 62 #if wxUSE_CHECKLISTBOX 63 AddHandler(new wxCheckListBoxXmlHandler); 64 #endif 65 #if wxUSE_CHOICE 66 AddHandler(new wxChoiceXmlHandler); 67 #endif 68 #if wxUSE_CHOICEBOOK 69 AddHandler(new wxChoicebookXmlHandler); 70 #endif 71 #if wxUSE_COLLPANE 72 AddHandler(new wxCollapsiblePaneXmlHandler); 73 #endif 74 #if wxUSE_COLOURPICKERCTRL 75 AddHandler(new wxColourPickerCtrlXmlHandler); 76 #endif 77 #if wxUSE_COMBOBOX 78 AddHandler(new wxComboBoxXmlHandler); 79 #endif 80 #if wxUSE_COMBOCTRL 81 AddHandler(new wxComboCtrlXmlHandler); 82 #endif 83 #if wxUSE_COMMANDLINKBUTTON 84 AddHandler(new wxCommandLinkButtonXmlHandler); 85 #endif 86 #if wxUSE_DATAVIEWCTRL 87 AddHandler(new wxDataViewXmlHandler); 88 #endif 89 #if wxUSE_DATEPICKCTRL 90 AddHandler(new wxDateCtrlXmlHandler); 91 #endif 92 #if wxUSE_DIRDLG 93 AddHandler(new wxGenericDirCtrlXmlHandler); 94 #endif 95 #if wxUSE_DIRPICKERCTRL 96 AddHandler(new wxDirPickerCtrlXmlHandler); 97 #endif 98 #if wxUSE_EDITABLELISTBOX 99 AddHandler(new wxEditableListBoxXmlHandler); 100 #endif 101 #if wxUSE_FILECTRL 102 AddHandler(new wxFileCtrlXmlHandler); 103 #endif 104 #if wxUSE_FILEPICKERCTRL 105 AddHandler(new wxFilePickerCtrlXmlHandler); 106 #endif 107 #if wxUSE_FONTPICKERCTRL 108 AddHandler(new wxFontPickerCtrlXmlHandler); 109 #endif 110 #if wxUSE_GAUGE 111 AddHandler(new wxGaugeXmlHandler); 112 #endif 113 #if wxUSE_GRID 114 AddHandler( new wxGridXmlHandler); 115 #endif 116 #if wxUSE_HTML 117 AddHandler(new wxHtmlWindowXmlHandler); 118 AddHandler(new wxSimpleHtmlListBoxXmlHandler); 119 #endif 120 #if wxUSE_HYPERLINKCTRL 121 AddHandler( new wxHyperlinkCtrlXmlHandler); 122 #endif 123 #if wxUSE_INFOBAR 124 AddHandler(new wxInfoBarXmlHandler); 125 #endif 126 #if wxUSE_LISTBOOK 127 AddHandler(new wxListbookXmlHandler); 128 #endif 129 #if wxUSE_LISTBOX 130 AddHandler(new wxListBoxXmlHandler); 131 #endif 132 #if wxUSE_LISTCTRL 133 AddHandler(new wxListCtrlXmlHandler); 134 #endif 135 #if wxUSE_MDI 136 AddHandler(new wxMdiXmlHandler); 137 #endif 138 #if wxUSE_MENUS 139 AddHandler(new wxMenuXmlHandler); 140 #if wxUSE_MENUBAR 141 AddHandler(new wxMenuBarXmlHandler); 142 #endif 143 #endif 144 #if wxUSE_NOTEBOOK 145 AddHandler(new wxNotebookXmlHandler); 146 #endif 147 #if wxUSE_ODCOMBOBOX 148 AddHandler(new wxOwnerDrawnComboBoxXmlHandler); 149 #endif 150 #if wxUSE_RADIOBOX 151 AddHandler(new wxRadioBoxXmlHandler); 152 #endif 153 #if wxUSE_RADIOBTN 154 AddHandler(new wxRadioButtonXmlHandler); 155 #endif 156 #if wxUSE_SCROLLBAR 157 AddHandler(new wxScrollBarXmlHandler); 158 #endif 159 #if wxUSE_SEARCHCTRL 160 AddHandler(new wxSearchCtrlXmlHandler); 161 #endif 162 #if wxUSE_BOOKCTRL 163 AddHandler(new wxSimplebookXmlHandler); 164 #endif 165 #if wxUSE_SLIDER 166 AddHandler(new wxSliderXmlHandler); 167 #endif 168 #if wxUSE_SPINBTN 169 AddHandler(new wxSpinButtonXmlHandler); 170 #endif 171 #if wxUSE_SPINCTRL 172 AddHandler(new wxSpinCtrlXmlHandler); 173 AddHandler(new wxSpinCtrlDoubleXmlHandler); 174 #endif 175 #if wxUSE_SPLITTER 176 AddHandler(new wxSplitterWindowXmlHandler); 177 #endif 178 #if wxUSE_STATBMP 179 AddHandler(new wxStaticBitmapXmlHandler); 180 #endif 181 #if wxUSE_STATBOX 182 AddHandler(new wxStaticBoxXmlHandler); 183 #endif 184 #if wxUSE_STATLINE 185 AddHandler(new wxStaticLineXmlHandler); 186 #endif 187 #if wxUSE_STATTEXT 188 AddHandler(new wxStaticTextXmlHandler); 189 #endif 190 #if wxUSE_STATUSBAR 191 AddHandler(new wxStatusBarXmlHandler); 192 #endif 193 #if wxUSE_TEXTCTRL 194 AddHandler(new wxTextCtrlXmlHandler); 195 #endif 196 #if wxUSE_TOGGLEBTN 197 AddHandler(new wxToggleButtonXmlHandler); 198 #endif 199 #if wxUSE_TIMEPICKCTRL 200 AddHandler(new wxTimeCtrlXmlHandler); 201 #endif 202 #if wxUSE_TOOLBAR 203 AddHandler(new wxToolBarXmlHandler); 204 #endif 205 #if wxUSE_TOOLBOOK 206 AddHandler(new wxToolbookXmlHandler); 207 #endif 208 #if wxUSE_TREEBOOK 209 AddHandler(new wxTreebookXmlHandler); 210 #endif 211 #if wxUSE_TREECTRL 212 AddHandler(new wxTreeCtrlXmlHandler); 213 #endif 214 #if wxUSE_WIZARDDLG 215 AddHandler(new wxWizardXmlHandler); 216 #endif 217 } 218 219 #endif // wxUSE_XRC 220