X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e3c83a73630c16f161c96ca3f8206b611676b59..89fad939ec0d423961d8e93b2a0927f5b77bf256:/src/xrc/xmlrsall.cpp diff --git a/src/xrc/xmlrsall.cpp b/src/xrc/xmlrsall.cpp index df66f1d675..c87da9a592 100644 --- a/src/xrc/xmlrsall.cpp +++ b/src/xrc/xmlrsall.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: xmlrsall.cpp +// Name: src/xrc/xmlrsall.cpp // Purpose: wxXmlResource::InitAllHandlers // Author: Vaclav Slavik // Created: 2000/03/05 @@ -22,24 +22,46 @@ void wxXmlResource::InitAllHandlers() { + // these are the handlers, which we always have + AddHandler(new wxUnknownWidgetXmlHandler); AddHandler(new wxBitmapXmlHandler); AddHandler(new wxIconXmlHandler); - AddHandler(new wxMenuXmlHandler); - AddHandler(new wxMenuBarXmlHandler); AddHandler(new wxDialogXmlHandler); AddHandler(new wxPanelXmlHandler); AddHandler(new wxSizerXmlHandler); + AddHandler(new wxFrameXmlHandler); + AddHandler(new wxScrolledWindowXmlHandler); + + // these are configurable handlers +#if wxUSE_MENUS + AddHandler(new wxMenuXmlHandler); + AddHandler(new wxMenuBarXmlHandler); +#endif +#if wxUSE_BUTTON AddHandler(new wxStdDialogButtonSizerXmlHandler); AddHandler(new wxButtonXmlHandler); +#endif +#if wxUSE_BMPBUTTON AddHandler(new wxBitmapButtonXmlHandler); +#endif +#if wxUSE_STATTEXT AddHandler(new wxStaticTextXmlHandler); +#endif +#if wxUSE_STATBOX AddHandler(new wxStaticBoxXmlHandler); +#endif +#if wxUSE_STATBMP AddHandler(new wxStaticBitmapXmlHandler); +#endif +#if wxUSE_TREECTRL AddHandler(new wxTreeCtrlXmlHandler); +#endif #if wxUSE_CALENDARCTRL AddHandler(new wxCalendarCtrlXmlHandler); #endif +#if wxUSE_LISTCTRL AddHandler(new wxListCtrlXmlHandler); +#endif #if wxUSE_CHECKLISTBOX AddHandler(new wxCheckListBoxXmlHandler); #endif @@ -72,11 +94,19 @@ void wxXmlResource::InitAllHandlers() #endif #if wxUSE_RADIOBOX AddHandler(new wxRadioBoxXmlHandler); +#endif +#if wxUSE_RADIOBTN AddHandler(new wxRadioButtonXmlHandler); #endif #if wxUSE_COMBOBOX AddHandler(new wxComboBoxXmlHandler); #endif +#if wxUSE_ODCOMBOBOX + AddHandler(new wxOwnerDrawnComboBoxXmlHandler); +#endif +#if wxUSE_BITMAPCOMBOBOX + AddHandler(new wxBitmapComboBoxXmlHandler); +#endif #if wxUSE_NOTEBOOK AddHandler(new wxNotebookXmlHandler); #endif @@ -89,7 +119,9 @@ void wxXmlResource::InitAllHandlers() #if wxUSE_TREEBOOK AddHandler(new wxTreebookXmlHandler); #endif +#if wxUSE_TEXTCTRL AddHandler(new wxTextCtrlXmlHandler); +#endif #if wxUSE_LISTBOX AddHandler(new wxListBoxXmlHandler); #endif @@ -99,13 +131,12 @@ void wxXmlResource::InitAllHandlers() #if wxUSE_STATLINE AddHandler(new wxStaticLineXmlHandler); #endif - AddHandler(new wxUnknownWidgetXmlHandler); #if wxUSE_DIRDLG AddHandler(new wxGenericDirCtrlXmlHandler); #endif - AddHandler(new wxFrameXmlHandler); - AddHandler(new wxScrolledWindowXmlHandler); +#if wxUSE_SPLITTER AddHandler(new wxSplitterWindowXmlHandler); +#endif #if wxUSE_WIZARDDLG AddHandler(new wxWizardXmlHandler); #endif @@ -115,12 +146,27 @@ void wxXmlResource::InitAllHandlers() #if wxUSE_DATEPICKCTRL AddHandler(new wxDateCtrlXmlHandler); #endif +#if wxUSE_COLOURPICKERCTRL + AddHandler(new wxColourPickerCtrlXmlHandler); +#endif +#if wxUSE_FILEPICKERCTRL + AddHandler(new wxFilePickerCtrlXmlHandler); +#endif +#if wxUSE_DIRPICKERCTRL + AddHandler(new wxDirPickerCtrlXmlHandler); +#endif +#if wxUSE_FONTPICKERCTRL + AddHandler(new wxFontPickerCtrlXmlHandler); +#endif #if wxUSE_MDI AddHandler(new wxMdiXmlHandler); #endif #if wxUSE_GRID AddHandler( new wxGridXmlHandler); #endif +#if wxUSE_HYPERLINKCTRL + AddHandler( new wxHyperlinkCtrlXmlHandler); +#endif } #endif // wxUSE_XRC