X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9aaf11927c8f43dcf296563c6a62707d625c2356..4c49b6ff73650333b3665e6f47771dd9f4c95c92:/src/xrc/xmlrsall.cpp diff --git a/src/xrc/xmlrsall.cpp b/src/xrc/xmlrsall.cpp index f8465e58f7..ccee1ef255 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 @@ -8,11 +8,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -// -- Already done in xmlres.cpp -//#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -//#pragma implementation "xmlres.h" -//#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -27,43 +22,126 @@ 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 wxButtonXmlHandler); + AddHandler(new wxFrameXmlHandler); + AddHandler(new wxScrolledWindowXmlHandler); + + // these are configurable handlers + // + // please keep them in alphabetical order of wxUSE_XXX guards +#if wxUSE_ANIMATIONCTRL + AddHandler(new wxAnimationCtrlXmlHandler); +#endif +#if wxUSE_BITMAPCOMBOBOX + AddHandler(new wxBitmapComboBoxXmlHandler); +#endif +#if wxUSE_BMPBUTTON AddHandler(new wxBitmapButtonXmlHandler); - AddHandler(new wxStaticTextXmlHandler); - AddHandler(new wxStaticBoxXmlHandler); - AddHandler(new wxStaticBitmapXmlHandler); - AddHandler(new wxTreeCtrlXmlHandler); +#endif +#if wxUSE_BOOKCTRL + AddHandler(new wxPropertySheetDialogXmlHandler); +#endif +#if wxUSE_BUTTON + AddHandler(new wxStdDialogButtonSizerXmlHandler); + AddHandler(new wxButtonXmlHandler); +#endif #if wxUSE_CALENDARCTRL AddHandler(new wxCalendarCtrlXmlHandler); #endif - AddHandler(new wxListCtrlXmlHandler); +#if wxUSE_CHECKBOX + AddHandler(new wxCheckBoxXmlHandler); +#endif #if wxUSE_CHECKLISTBOX AddHandler(new wxCheckListBoxXmlHandler); #endif #if wxUSE_CHOICE AddHandler(new wxChoiceXmlHandler); #endif -#if wxUSE_SLIDER - AddHandler(new wxSliderXmlHandler); +#if wxUSE_CHOICEBOOK + AddHandler(new wxChoicebookXmlHandler); +#endif +#if wxUSE_COLLPANE + AddHandler(new wxCollapsiblePaneXmlHandler); +#endif +#if wxUSE_COLOURPICKERCTRL + AddHandler(new wxColourPickerCtrlXmlHandler); +#endif +#if wxUSE_COMBOBOX + AddHandler(new wxComboBoxXmlHandler); +#endif +#if wxUSE_DATEPICKCTRL + AddHandler(new wxDateCtrlXmlHandler); +#endif +#if wxUSE_DIRDLG + AddHandler(new wxGenericDirCtrlXmlHandler); +#endif +#if wxUSE_DIRPICKERCTRL + AddHandler(new wxDirPickerCtrlXmlHandler); +#endif +#if wxUSE_FILEPICKERCTRL + AddHandler(new wxFilePickerCtrlXmlHandler); +#endif +#if wxUSE_FONTPICKERCTRL + AddHandler(new wxFontPickerCtrlXmlHandler); #endif #if wxUSE_GAUGE AddHandler(new wxGaugeXmlHandler); #endif -#if wxUSE_CHECKBOX - AddHandler(new wxCheckBoxXmlHandler); -#endif -#if wxUSE_TOGGLEBTN - AddHandler(new wxToggleButtonXmlHandler); +#if wxUSE_GRID + AddHandler( new wxGridXmlHandler); #endif #if wxUSE_HTML AddHandler(new wxHtmlWindowXmlHandler); + AddHandler(new wxSimpleHtmlListBoxXmlHandler); +#endif +#if wxUSE_HYPERLINKCTRL + AddHandler( new wxHyperlinkCtrlXmlHandler); +#endif +#if wxUSE_LISTBOOK + AddHandler(new wxListbookXmlHandler); +#endif +#if wxUSE_LISTBOX + AddHandler(new wxListBoxXmlHandler); +#endif +#if wxUSE_LISTCTRL + AddHandler(new wxListCtrlXmlHandler); +#endif +#if wxUSE_MDI + AddHandler(new wxMdiXmlHandler); +#endif +#if wxUSE_MENUS + AddHandler(new wxMenuXmlHandler); + AddHandler(new wxMenuBarXmlHandler); +#endif +#if wxUSE_NOTEBOOK + AddHandler(new wxNotebookXmlHandler); +#endif +#if wxUSE_ODCOMBOBOX + AddHandler(new wxOwnerDrawnComboBoxXmlHandler); +#endif +#if wxUSE_RADIOBOX + AddHandler(new wxRadioBoxXmlHandler); +#endif +#if wxUSE_RADIOBTN + AddHandler(new wxRadioButtonXmlHandler); +#endif +#if 0 && wxUSE_RICHTEXT + AddHandler(new wxRichTextCtrlXmlHandler); +#endif +#if wxUSE_SCROLLBAR + AddHandler(new wxScrollBarXmlHandler); +#endif +#if wxUSE_SEARCHCTRL + AddHandler(new wxSearchCtrlXmlHandler); +#endif +#if wxUSE_SLIDER + AddHandler(new wxSliderXmlHandler); #endif #if wxUSE_SPINBTN AddHandler(new wxSpinButtonXmlHandler); @@ -71,51 +149,42 @@ void wxXmlResource::InitAllHandlers() #if wxUSE_SPINCTRL AddHandler(new wxSpinCtrlXmlHandler); #endif -#if wxUSE_SCROLLBAR - AddHandler(new wxScrollBarXmlHandler); +#if wxUSE_SPLITTER + AddHandler(new wxSplitterWindowXmlHandler); #endif -#if wxUSE_RADIOBOX - AddHandler(new wxRadioBoxXmlHandler); - AddHandler(new wxRadioButtonXmlHandler); +#if wxUSE_STATBMP + AddHandler(new wxStaticBitmapXmlHandler); #endif -#if wxUSE_COMBOBOX - AddHandler(new wxComboBoxXmlHandler); +#if wxUSE_STATBOX + AddHandler(new wxStaticBoxXmlHandler); #endif -#if wxUSE_NOTEBOOK - AddHandler(new wxNotebookXmlHandler); +#if wxUSE_STATLINE + AddHandler(new wxStaticLineXmlHandler); #endif -#if wxUSE_LISTBOOK - AddHandler(new wxListbookXmlHandler); +#if wxUSE_STATTEXT + AddHandler(new wxStaticTextXmlHandler); #endif -#if wxUSE_CHOICEBOOK - AddHandler(new wxChoicebookXmlHandler); +#if wxUSE_STATUSBAR + AddHandler(new wxStatusBarXmlHandler); #endif +#if wxUSE_TEXTCTRL AddHandler(new wxTextCtrlXmlHandler); -#if wxUSE_LISTBOX - AddHandler(new wxListBoxXmlHandler); +#endif +#if wxUSE_TOGGLEBTN + AddHandler(new wxToggleButtonXmlHandler); #endif #if wxUSE_TOOLBAR AddHandler(new wxToolBarXmlHandler); #endif -#if wxUSE_STATLINE - AddHandler(new wxStaticLineXmlHandler); +#if wxUSE_TREEBOOK + AddHandler(new wxTreebookXmlHandler); #endif - AddHandler(new wxUnknownWidgetXmlHandler); -#if wxUSE_DIRDLG - AddHandler(new wxGenericDirCtrlXmlHandler); +#if wxUSE_TREECTRL + AddHandler(new wxTreeCtrlXmlHandler); #endif - AddHandler(new wxFrameXmlHandler); - AddHandler(new wxScrolledWindowXmlHandler); - AddHandler(new wxSplitterWindowXmlHandler); #if wxUSE_WIZARDDLG AddHandler(new wxWizardXmlHandler); #endif -#if wxUSE_STATUSBAR - AddHandler(new wxStatusBarXmlHandler); -#endif -#if wxUSE_DATEPICKCTRL - AddHandler(new wxDateCtrlXmlHandler); -#endif } #endif // wxUSE_XRC