#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC
class WXDLLIMPEXP_XRC wxBitmapXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxBitmapXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxBitmapXmlHandler)
+
public:
wxBitmapXmlHandler();
virtual wxObject *DoCreateResource();
class WXDLLIMPEXP_XRC wxIconXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxIconXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxIconXmlHandler)
+
public:
wxIconXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC
#endif // _WX_XH_BMP_H_
#ifndef _WX_XH_BMPBT_H_
#define _WX_XH_BMPBT_H_
-#include "wx/defs.h"
-
-#if wxUSE_XRC
-
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC && wxUSE_BMPBUTTON
+
class WXDLLIMPEXP_XRC wxBitmapButtonXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxBitmapButtonXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxBitmapButtonXmlHandler)
+
public:
wxBitmapButtonXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
-#endif // wxUSE_XRC
-
+#endif // wxUSE_XRC && wxUSE_BMPBUTTON
#endif // _WX_XH_BMPBT_H_
#include "wx/xrc/xmlres.h"
-#if wxUSE_BITMAPCOMBOBOX
+#if wxUSE_XRC && wxUSE_BITMAPCOMBOBOX
class WXDLLIMPEXP_ADV wxBitmapComboBox;
class WXDLLIMPEXP_XRC wxBitmapComboBoxXmlHandler : public wxXmlResourceHandler
{
DECLARE_DYNAMIC_CLASS(wxBitmapComboBoxXmlHandler)
+
public:
wxBitmapComboBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
+
private:
wxBitmapComboBox* m_combobox;
bool m_isInside;
};
-#endif
+#endif // wxUSE_XRC && wxUSE_BITMAPCOMBOBOX
#endif // _WX_XH_BMPCBOX_H_
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC && wxUSE_BUTTON
+
class WXDLLIMPEXP_XRC wxButtonXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxButtonXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxButtonXmlHandler)
+
public:
wxButtonXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC && wxUSE_BUTTON
#endif // _WX_XH_BTTN_H_
#ifndef _WX_XH_CALD_H_
#define _WX_XH_CALD_H_
-#include "wx/defs.h"
+#include "wx/xrc/xmlres.h"
#if wxUSE_XRC && wxUSE_CALENDARCTRL
-#include "wx/xrc/xmlres.h"
-
class WXDLLIMPEXP_XRC wxCalendarCtrlXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxCalendarCtrlXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxCalendarCtrlXmlHandler)
+
public:
wxCalendarCtrlXmlHandler();
virtual wxObject *DoCreateResource();
#ifndef _WX_XH_CHCKB_H_
#define _WX_XH_CHCKB_H_
-#include "wx/defs.h"
+#include "wx/xrc/xmlres.h"
#if wxUSE_XRC && wxUSE_CHECKBOX
-#include "wx/xrc/xmlres.h"
-
class WXDLLIMPEXP_XRC wxCheckBoxXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxCheckBoxXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxCheckBoxXmlHandler)
+
public:
wxCheckBoxXmlHandler();
virtual wxObject *DoCreateResource();
#ifndef _WX_XH_CHCKL_H_
#define _WX_XH_CHCKL_H_
-#include "wx/defs.h"
+#include "wx/xrc/xmlres.h"
#if wxUSE_XRC && wxUSE_CHECKLISTBOX
-#include "wx/xrc/xmlres.h"
-
class WXDLLIMPEXP_XRC wxCheckListBoxXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxCheckListBoxXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxCheckListBoxXmlHandler)
+
public:
wxCheckListBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
+
private:
bool m_insideBox;
wxArrayString strList;
#ifndef _WX_XH_CHOIC_H_
#define _WX_XH_CHOIC_H_
-#include "wx/defs.h"
+#include "wx/xrc/xmlres.h"
#if wxUSE_XRC && wxUSE_CHOICE
-#include "wx/xrc/xmlres.h"
-
class WXDLLIMPEXP_XRC wxChoiceXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxChoiceXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxChoiceXmlHandler)
+
public:
wxChoiceXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
+
private:
bool m_insideBox;
wxArrayString strList;
#ifndef _WX_XH_CHOICEBK_H_
#define _WX_XH_CHOICEBK_H_
-#include "wx/defs.h"
+#include "wx/xrc/xmlres.h"
#if wxUSE_XRC && wxUSE_CHOICEBOOK
-#include "wx/xrc/xmlres.h"
-
class WXDLLEXPORT wxChoicebook;
class WXDLLIMPEXP_XRC wxChoicebookXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxChoicebookXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxChoicebookXmlHandler)
+
public:
wxChoicebookXmlHandler();
virtual wxObject *DoCreateResource();
/////////////////////////////////////////////////////////////////////////////
-// Name: wx/xrc/xh_clrpicker.cpp
+// Name: wx/xrc/xh_clrpicker.h
// Purpose: XML resource handler for wxColourPickerCtrl
// Author: Francesco Montorsi
// Created: 2006-04-17
#include "wx/xrc/xmlres.h"
-#if wxUSE_COLOURPICKERCTRL
+#if wxUSE_XRC && wxUSE_COLOURPICKERCTRL
class WXDLLIMPEXP_XRC wxColourPickerCtrlXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxColourPickerCtrlXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxColourPickerCtrlXmlHandler)
+
public:
wxColourPickerCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
-#endif // wxUSE_COLOURPICKERCTRL
+#endif // wxUSE_XRC && wxUSE_COLOURPICKERCTRL
#endif // _WX_XH_CLRPICKERCTRL_H_
#include "wx/xrc/xmlres.h"
-#if wxUSE_COMBOBOX
+#if wxUSE_XRC && wxUSE_COMBOBOX
class WXDLLIMPEXP_XRC wxComboBoxXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxComboBoxXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxComboBoxXmlHandler)
+
public:
wxComboBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
+
private:
bool m_insideBox;
wxArrayString strList;
};
-#endif
+#endif // wxUSE_XRC && wxUSE_COMBOBOX
#endif // _WX_XH_COMBO_H_
#include "wx/xrc/xmlres.h"
-#if wxUSE_DATEPICKCTRL
+#if wxUSE_XRC && wxUSE_DATEPICKCTRL
class WXDLLIMPEXP_XRC wxDateCtrlXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxDateCtrlXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxDateCtrlXmlHandler)
+
public:
wxDateCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
-#endif // wxUSE_DATEPICKCTRL
+#endif // wxUSE_XRC && wxUSE_DATEPICKCTRL
#endif // _WX_XH_DATECTRL_H_
/////////////////////////////////////////////////////////////////////////////
-// Name: wx/xrc/xh_clrpicker.cpp
-// Purpose: XML resource handler for wxColourPickerCtrl
+// Name: wx/xrc/xh_dirpicker.h
+// Purpose: XML resource handler for wxDirPickerCtrl
// Author: Francesco Montorsi
// Created: 2006-04-17
// RCS-ID: $Id$
#include "wx/xrc/xmlres.h"
-#if wxUSE_DIRPICKERCTRL
+#if wxUSE_XRC && wxUSE_DIRPICKERCTRL
class WXDLLIMPEXP_XRC wxDirPickerCtrlXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxDirPickerCtrlXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxDirPickerCtrlXmlHandler)
+
public:
wxDirPickerCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
-#endif // wxUSE_DIRPICKERCTRL
+#endif // wxUSE_XRC && wxUSE_DIRPICKERCTRL
#endif // _WX_XH_DIRPICKERCTRL_H_
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC
+
class WXDLLIMPEXP_XRC wxDialogXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxDialogXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxDialogXmlHandler)
+
public:
wxDialogXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC
#endif // _WX_XH_DLG_H_
/////////////////////////////////////////////////////////////////////////////
-// Name: wx/xrc/xh_clrpicker.cpp
-// Purpose: XML resource handler for wxColourPickerCtrl
+// Name: wx/xrc/xh_filepicker.h
+// Purpose: XML resource handler for wxFilePickerCtrl
// Author: Francesco Montorsi
// Created: 2006-04-17
// RCS-ID: $Id$
#include "wx/xrc/xmlres.h"
-#if wxUSE_FILEPICKERCTRL
+#if wxUSE_XRC && wxUSE_FILEPICKERCTRL
class WXDLLIMPEXP_XRC wxFilePickerCtrlXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxFilePickerCtrlXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxFilePickerCtrlXmlHandler)
+
public:
wxFilePickerCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
-#endif // wxUSE_FILEPICKERCTRL
+#endif // wxUSE_XRC && wxUSE_FILEPICKERCTRL
#endif // _WX_XH_FILEPICKERCTRL_H_
/////////////////////////////////////////////////////////////////////////////
-// Name: wx/xrc/xh_clrpicker.cpp
-// Purpose: XML resource handler for wxColourPickerCtrl
+// Name: wx/xrc/xh_fontpicker.h
+// Purpose: XML resource handler for wxFontPickerCtrl
// Author: Francesco Montorsi
// Created: 2006-04-17
// RCS-ID: $Id$
#include "wx/xrc/xmlres.h"
-#if wxUSE_FONTPICKERCTRL
+#if wxUSE_XRC && wxUSE_FONTPICKERCTRL
class WXDLLIMPEXP_XRC wxFontPickerCtrlXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxFontPickerCtrlXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxFontPickerCtrlXmlHandler)
+
public:
wxFontPickerCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
-#endif // wxUSE_FONTPICKERCTRL
+#endif // wxUSE_XRC && wxUSE_FONTPICKERCTRL
#endif // _WX_XH_FONTPICKERCTRL_H_
/////////////////////////////////////////////////////////////////////////////
// Name: wx/xrc/xh_frame.h
-// Purpose: XML resource handler for dialogs
+// Purpose: XML resource handler for wxFrame
// Author: Vaclav Slavik & Aleks.
// Created: 2000/03/05
// RCS-ID: $Id$
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC
+
class WXDLLIMPEXP_XRC wxFrameXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxFrameXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxFrameXmlHandler)
+
public:
wxFrameXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC
#endif // _WX_XH_FRAME_H_
#ifndef _WX_XH_GAUGE_H_
#define _WX_XH_GAUGE_H_
-#include "wx/defs.h"
-
-#if wxUSE_GAUGE
-
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC && wxUSE_GAUGE
class WXDLLIMPEXP_XRC wxGaugeXmlHandler : public wxXmlResourceHandler
{
virtual bool CanHandle(wxXmlNode *node);
};
-#endif
+#endif // wxUSE_XRC && wxUSE_GAUGE
#endif // _WX_XH_GAUGE_H_
#include "wx/xrc/xmlres.h"
-#if wxUSE_DIRDLG
+#if wxUSE_XRC && wxUSE_DIRDLG
class WXDLLIMPEXP_XRC wxGenericDirCtrlXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxGenericDirCtrlXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxGenericDirCtrlXmlHandler)
+
public:
wxGenericDirCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
-#endif
+#endif // wxUSE_XRC && wxUSE_DIRDLG
#endif // _WX_XH_GDCTL_H_
/////////////////////////////////////////////////////////////////////////////
// Name: wx/xrc/xh_grid.h
-// Purpose: XML resource handler for the grid control
+// Purpose: XML resource handler for wxGrid
// Author: Agron Selimaj
// Created: 2005/08/11
// RCS-ID: $Id$
class WXDLLIMPEXP_XRC wxGridXmlHandler : public wxXmlResourceHandler
{
+ DECLARE_DYNAMIC_CLASS(wxGridXmlHandler)
+
public:
wxGridXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
-
-private:
- DECLARE_DYNAMIC_CLASS(wxGridXmlHandler)
};
#endif // wxUSE_XRC && wxUSE_GRID
#include "wx/xrc/xmlres.h"
-#include "wx/defs.h"
-
-#if wxUSE_HTML
+#if wxUSE_XRC && wxUSE_HTML
class WXDLLIMPEXP_XRC wxHtmlWindowXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxHtmlWindowXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxHtmlWindowXmlHandler)
+
public:
wxHtmlWindowXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
-#endif
+#endif // wxUSE_XRC && wxUSE_HTML
-#endif // _WX_XH_SLIDER_H_
+#endif // _WX_XH_HTML_H_
#ifndef _WX_XH_HYPERLINKH__
#define _WX_XH_HYPERLINKH__
-#include "wx/defs.h"
-
-#if wxUSE_HYPERLINKCTRL
-
-#include "wx/hyperlink.h"
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC && wxUSE_HYPERLINKCTRL
+
class WXDLLIMPEXP_XRC wxHyperlinkCtrlXmlHandler : public wxXmlResourceHandler
{
+ // Register with wxWindows' dynamic class subsystem.
+ DECLARE_DYNAMIC_CLASS(wxHyperlinkCtrlXmlHandler)
+
public:
// Constructor.
wxHyperlinkCtrlXmlHandler();
// Returns true if we know how to create a control for the given node.
virtual bool CanHandle(wxXmlNode *node);
-
- // Register with wxWindows' dynamic class subsystem.
- DECLARE_DYNAMIC_CLASS(wxHyperlinkCtrlXmlHandler)
};
-#endif // wxUSE_HYPERLINKCTRL
+#endif // wxUSE_XRC && wxUSE_HYPERLINKCTRL
+
#endif // _WX_XH_HYPERLINKH__
#include "wx/xrc/xmlres.h"
-#if wxUSE_LISTBOX
+#if wxUSE_XRC && wxUSE_LISTBOX
class WXDLLIMPEXP_XRC wxListBoxXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxListBoxXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxListBoxXmlHandler)
+
public:
wxListBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
+
private:
bool m_insideBox;
wxArrayString strList;
};
-#endif
+#endif // wxUSE_XRC && wxUSE_LISTBOX
#endif // _WX_XH_LISTB_H_
#include "wx/xrc/xmlres.h"
-#if wxUSE_LISTBOOK
+#if wxUSE_XRC && wxUSE_LISTBOOK
class WXDLLEXPORT wxListbook;
class WXDLLIMPEXP_XRC wxListbookXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxListbookXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxListbookXmlHandler)
+
public:
wxListbookXmlHandler();
virtual wxObject *DoCreateResource();
wxListbook *m_listbook;
};
-#endif
+#endif // wxUSE_XRC && wxUSE_LISTBOOK
#endif // _WX_XH_LISTBK_H_
/////////////////////////////////////////////////////////////////////////////
// Name: wx/xrc/xh_listc.h
-// Purpose: XML resource handler for wxCalendarCtrl
+// Purpose: XML resource handler for wxListCtrl
// Author: Brian Gavin
// Created: 2000/09/09
// RCS-ID: $Id$
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC && wxUSE_LISTCTRL
+
class WXDLLIMPEXP_XRC wxListCtrlXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxListCtrlXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxListCtrlXmlHandler)
+
public:
wxListCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC && wxUSE_LISTCTRL
#endif // _WX_XH_LISTC_H_
/////////////////////////////////////////////////////////////////////////////
// Name: wx/xrc/xh_mdi.h
-// Purpose: XML resource handler for dialogs
+// Purpose: XML resource handler for wxMDI
// Author: David M. Falkinder & Vaclav Slavik
// Created: 14/02/2005
// RCS-ID: $Id$
#include "wx/xrc/xmlres.h"
-#if wxUSE_MDI
+#if wxUSE_XRC && wxUSE_MDI
class WXDLLIMPEXP_CORE wxWindow;
class WXDLLIMPEXP_XRC wxMdiXmlHandler : public wxXmlResourceHandler
{
+ DECLARE_DYNAMIC_CLASS(wxMdiXmlHandler)
+
public:
wxMdiXmlHandler();
virtual wxObject *DoCreateResource();
private:
wxWindow *CreateFrame();
-
- DECLARE_DYNAMIC_CLASS(wxMdiXmlHandler)
};
-#endif // wxUSE_MDI
+#endif // wxUSE_XRC && wxUSE_MDI
#endif // _WX_XH_MDI_H_
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC && wxUSE_MENUS
+
class WXDLLIMPEXP_XRC wxMenuXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxMenuXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxMenuXmlHandler)
+
public:
wxMenuXmlHandler();
virtual wxObject *DoCreateResource();
class WXDLLIMPEXP_XRC wxMenuBarXmlHandler : public wxXmlResourceHandler
{
DECLARE_DYNAMIC_CLASS(wxMenuBarXmlHandler)
- public:
- wxMenuBarXmlHandler();
- virtual wxObject *DoCreateResource();
- virtual bool CanHandle(wxXmlNode *node);
+
+public:
+ wxMenuBarXmlHandler();
+ virtual wxObject *DoCreateResource();
+ virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC && wxUSE_MENUS
#endif // _WX_XH_MENU_H_
#include "wx/xrc/xmlres.h"
-#if wxUSE_NOTEBOOK
+#if wxUSE_XRC && wxUSE_NOTEBOOK
class WXDLLEXPORT wxNotebook;
class WXDLLIMPEXP_XRC wxNotebookXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxNotebookXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxNotebookXmlHandler)
+
public:
wxNotebookXmlHandler();
virtual wxObject *DoCreateResource();
wxNotebook *m_notebook;
};
-#endif
+#endif // wxUSE_XRC && wxUSE_NOTEBOOK
#endif // _WX_XH_NOTBK_H_
#include "wx/xrc/xmlres.h"
-#if wxUSE_ODCOMBOBOX
+#if wxUSE_XRC && wxUSE_ODCOMBOBOX
class WXDLLIMPEXP_XRC wxOwnerDrawnComboBoxXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxOwnerDrawnComboBoxXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxOwnerDrawnComboBoxXmlHandler)
+
public:
wxOwnerDrawnComboBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
+
private:
bool m_insideBox;
wxArrayString strList;
};
-#endif
+#endif // wxUSE_XRC && wxUSE_ODCOMBOBOX
#endif // _WX_XH_ODCOMBO_H_
+
/////////////////////////////////////////////////////////////////////////////
// Name: wx/xrc/xh_panel.h
-// Purpose: XML resource handler for panels
+// Purpose: XML resource handler for wxPanel
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC
+
class WXDLLIMPEXP_XRC wxPanelXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxPanelXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxPanelXmlHandler)
+
public:
wxPanelXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC
#endif // _WX_XH_PANEL_H_
/////////////////////////////////////////////////////////////////////////////
// Name: wx/xrc/xh_radbt.h
-// Purpose: XML resource handler for radio buttons
+// Purpose: XML resource handler for wxRadioButton
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
#define _WX_XH_RADBT_H_
#include "wx/xrc/xmlres.h"
-#include "wx/defs.h"
-#if wxUSE_RADIOBOX
+#if wxUSE_XRC && wxUSE_RADIOBTN
class WXDLLIMPEXP_XRC wxRadioButtonXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxRadioButtonXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxRadioButtonXmlHandler)
+
public:
wxRadioButtonXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
-#endif
+#endif // wxUSE_XRC && wxUSE_RADIOBOX
-#endif // _WX_XH_RADIOBUTTON_H_
+#endif // _WX_XH_RADBT_H_
/////////////////////////////////////////////////////////////////////////////
// Name: wx/xrc/xh_radbx.h
-// Purpose: XML resource handler for radio box
+// Purpose: XML resource handler for wxRadioBox
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
#include "wx/xrc/xmlres.h"
-#if wxUSE_RADIOBOX
+#if wxUSE_XRC && wxUSE_RADIOBOX
class WXDLLIMPEXP_XRC wxRadioBoxXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxRadioBoxXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxRadioBoxXmlHandler)
+
public:
wxRadioBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
+
private:
bool m_insideBox;
wxArrayInt helptextSpecified;
};
-#endif // wxUSE_RADIOBOX
+#endif // wxUSE_XRC && wxUSE_RADIOBOX
#endif // _WX_XH_RADBX_H_
#define _WX_XH_SCROL_H_
#include "wx/xrc/xmlres.h"
-#include "wx/defs.h"
-
+#if wxUSE_XRC && wxUSE_SCROLLBAR
class WXDLLIMPEXP_XRC wxScrollBarXmlHandler : public wxXmlResourceHandler
{
virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC && wxUSE_SCROLLBAR
#endif // _WX_XH_SCROL_H_
#define _WX_XH_SCWIN_H_
#include "wx/xrc/xmlres.h"
-#include "wx/defs.h"
-
+#if wxUSE_XRC
class WXDLLIMPEXP_XRC wxScrolledWindowXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxScrolledWindowXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxScrolledWindowXmlHandler)
+
public:
wxScrolledWindowXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC
#endif // _WX_XH_SCWIN_H_
#define _WX_XH_SIZER_H_
#include "wx/xrc/xmlres.h"
+
+#if wxUSE_XRC
+
#include "wx/sizer.h"
#include "wx/gbsizer.h"
-
class WXDLLEXPORT wxSizer;
class WXDLLIMPEXP_XRC wxSizerXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxSizerXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxSizerXmlHandler)
+
public:
wxSizerXmlHandler();
virtual wxObject *DoCreateResource();
void AddSizerItem(wxSizerItem* sitem);
};
+#if wxUSE_BUTTON
class WXDLLIMPEXP_XRC wxStdDialogButtonSizerXmlHandler
: public wxXmlResourceHandler
{
+ DECLARE_DYNAMIC_CLASS(wxStdDialogButtonSizerXmlHandler)
+
public:
wxStdDialogButtonSizerXmlHandler();
virtual wxObject *DoCreateResource();
private:
bool m_isInside;
wxStdDialogButtonSizer *m_parentSizer;
-
- DECLARE_DYNAMIC_CLASS(wxStdDialogButtonSizerXmlHandler)
};
+#endif // wxUSE_BUTTON
+
+#endif // wxUSE_XRC
#endif // _WX_XH_SIZER_H_
#define _WX_XH_SLIDR_H_
#include "wx/xrc/xmlres.h"
-#include "wx/defs.h"
-#if wxUSE_SLIDER
+#if wxUSE_XRC && wxUSE_SLIDER
class WXDLLIMPEXP_XRC wxSliderXmlHandler : public wxXmlResourceHandler
{
virtual bool CanHandle(wxXmlNode *node);
};
-#endif
+#endif // wxUSE_XRC && wxUSE_SLIDER
-#endif // _WX_XH_SLIDER_H_
+#endif // _WX_XH_SLIDR_H_
/////////////////////////////////////////////////////////////////////////////
// Name: wx/xrc/xh_spin.h
-// Purpose: XML resource handler for wxSpinButton
+// Purpose: XML resource handler for wxSpinButton and wxSpinCtrl
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
#define _WX_XH_SPIN_H_
#include "wx/xrc/xmlres.h"
-#include "wx/defs.h"
+
+#if wxUSE_XRC
#if wxUSE_SPINBTN
+
class WXDLLIMPEXP_XRC wxSpinButtonXmlHandler : public wxXmlResourceHandler
{
DECLARE_DYNAMIC_CLASS(wxSpinButtonXmlHandler)
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
-#endif
+
+#endif // wxUSE_SPINBTN
+
#if wxUSE_SPINCTRL
+
class WXDLLIMPEXP_XRC wxSpinCtrlXmlHandler : public wxXmlResourceHandler
{
DECLARE_DYNAMIC_CLASS(wxSpinCtrlXmlHandler)
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
-#endif
+
+#endif // wxUSE_SPINCTRL
+
+#endif // wxUSE_XRC
#endif // _WX_XH_SPIN_H_
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC && wxUSE_SPLITTER
+
class WXDLLIMPEXP_XRC wxSplitterWindowXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxSplitterWindowXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxSplitterWindowXmlHandler)
+
public:
wxSplitterWindowXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC && wxUSE_SPLITTER
+
#endif // _WX_XH_SPLIT_H_
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC && wxUSE_STATUSBAR
+
class WXDLLIMPEXP_XRC wxStatusBarXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxStatusBarXmlHandler)
- public:
- wxStatusBarXmlHandler();
- virtual wxObject *DoCreateResource();
- virtual bool CanHandle(wxXmlNode *node);
+ DECLARE_DYNAMIC_CLASS(wxStatusBarXmlHandler)
+
+public:
+ wxStatusBarXmlHandler();
+ virtual wxObject *DoCreateResource();
+ virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC && wxUSE_STATUSBAR
+
#endif // _WX_XH_STATBAR_H_
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC && wxUSE_STATBMP
class WXDLLIMPEXP_XRC wxStaticBitmapXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxStaticBitmapXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxStaticBitmapXmlHandler)
+
public:
wxStaticBitmapXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC && wxUSE_STATBMP
#endif // _WX_XH_STBMP_H_
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC && wxUSE_STATBOX
class WXDLLIMPEXP_XRC wxStaticBoxXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxStaticBoxXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxStaticBoxXmlHandler)
+
public:
wxStaticBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC && wxUSE_STATBOX
#endif // _WX_XH_STBOX_H_
#include "wx/xrc/xmlres.h"
-#if wxUSE_STATLINE
+#if wxUSE_XRC && wxUSE_STATLINE
class WXDLLIMPEXP_XRC wxStaticLineXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxStaticLineXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxStaticLineXmlHandler)
+
public:
wxStaticLineXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
-#endif
+#endif // wxUSE_XRC && wxUSE_STATLINE
#endif // _WX_XH_STLIN_H_
/////////////////////////////////////////////////////////////////////////////
// Name: wx/xrc/xh_sttxt.h
-// Purpose: XML resource handler for wxStaticBitmap
+// Purpose: XML resource handler for wxStaticText
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC && wxUSE_STATTEXT
class WXDLLIMPEXP_XRC wxStaticTextXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxStaticTextXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxStaticTextXmlHandler)
+
public:
wxStaticTextXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC && wxUSE_STATTEXT
-#endif // _WX_XH_STBMP_H_
+#endif // _WX_XH_STTXT_H_
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC && wxUSE_TEXTCTRL
class WXDLLIMPEXP_XRC wxTextCtrlXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxTextCtrlXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxTextCtrlXmlHandler)
+
public:
wxTextCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC && wxUSE_TEXTCTRL
#endif // _WX_XH_TEXT_H_
#define _WX_XH_TGLBTN_H_
#include "wx/xrc/xmlres.h"
-#include "wx/defs.h"
-#if wxUSE_TOGGLEBTN
+#if wxUSE_XRC && wxUSE_TOGGLEBTN
class WXDLLIMPEXP_XRC wxToggleButtonXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxToggleButtonXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxToggleButtonXmlHandler)
+
public:
wxToggleButtonXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
-#endif
-
+#endif // wxUSE_XRC && wxUSE_TOGGLEBTN
#endif // _WX_XH_TGLBTN_H_
/////////////////////////////////////////////////////////////////////////////
// Name: wx/xrc/xh_toolb.h
-// Purpose: XML resource handler for wxBoxSizer
+// Purpose: XML resource handler for wxToolBar
// Author: Vaclav Slavik
// Created: 2000/08/11
// RCS-ID: $Id$
#include "wx/xrc/xmlres.h"
-#if wxUSE_TOOLBAR
+#if wxUSE_XRC && wxUSE_TOOLBAR
class WXDLLEXPORT wxToolBar;
class WXDLLIMPEXP_XRC wxToolBarXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxToolBarXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxToolBarXmlHandler)
+
public:
wxToolBarXmlHandler();
virtual wxObject *DoCreateResource();
wxToolBar *m_toolbar;
};
-#endif
+#endif // wxUSE_XRC && wxUSE_TOOLBAR
-#endif // _WX_XH_TOOLBAR_H_
+#endif // _WX_XH_TOOLB_H_
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC && wxUSE_TREECTRL
+
class WXDLLIMPEXP_XRC wxTreeCtrlXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxTreeCtrlXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxTreeCtrlXmlHandler)
+
public:
wxTreeCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC && wxUSE_TREECTRL
#endif // _WX_XH_TREE_H_
#include "wx/xrc/xmlres.h"
-#if wxUSE_TREEBOOK
+#if wxUSE_XRC && wxUSE_TREEBOOK
-#include "wx/treebook.h"
+class WXDLLEXPORT wxTreebook;
#include "wx/dynarray.h"
WX_DEFINE_USER_EXPORTED_ARRAY_SIZE_T(size_t, wxArrayTbkPageIndexes,
// it cannot be greater than the previous page depth plus one
class WXDLLIMPEXP_XRC wxTreebookXmlHandler : public wxXmlResourceHandler
{
+ DECLARE_DYNAMIC_CLASS(wxTreebookXmlHandler)
+
public:
wxTreebookXmlHandler();
virtual wxObject *DoCreateResource();
wxTreebook *m_tbk;
wxArrayTbkPageIndexes m_treeContext;
bool m_isInside;
-
- DECLARE_DYNAMIC_CLASS(wxTreebookXmlHandler)
};
// ...
//</resource>
-#endif // wxUSE_TREEBOOK
+#endif // wxUSE_XRC && wxUSE_TREEBOOK
#endif // _WX_XH_TREEBK_H_
#include "wx/xrc/xmlres.h"
+#if wxUSE_XRC
class WXDLLIMPEXP_XRC wxUnknownWidgetXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxUnknownWidgetXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxUnknownWidgetXmlHandler)
+
public:
wxUnknownWidgetXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
+#endif // wxUSE_XRC
#endif // _WX_XH_UNKWN_H_
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_XH_WIZRD_H_
-#define _WX_XH_WIZRDL_H_
+#define _WX_XH_WIZRD_H_
#include "wx/xrc/xmlres.h"
-#if wxUSE_WIZARDDLG
+#if wxUSE_XRC && wxUSE_WIZARDDLG
-#include "wx/wizard.h"
+class WXDLLEXPORT wxWizard;
+class WXDLLEXPORT wxWizardPageSimple;
class WXDLLIMPEXP_XRC wxWizardXmlHandler : public wxXmlResourceHandler
{
-DECLARE_DYNAMIC_CLASS(wxWizardXmlHandler)
+ DECLARE_DYNAMIC_CLASS(wxWizardXmlHandler)
+
public:
wxWizardXmlHandler();
virtual wxObject *DoCreateResource();
wxWizardPageSimple *m_lastSimplePage;
};
-#endif
+#endif // wxUSE_XRC && wxUSE_WIZARDDLG
-#endif // _WX_XH_PANEL_H_
+#endif // _WX_XH_WIZRD_H_
#pragma hdrstop
#endif
-#if wxUSE_XRC
+#if wxUSE_XRC && wxUSE_BUTTON
#include "wx/xrc/xh_bttn.h"
return IsOfClass(node, wxT("wxButton"));
}
-#endif // wxUSE_XRC
+#endif // wxUSE_XRC && wxUSE_BUTTON
/////////////////////////////////////////////////////////////////////////////
// Name: src/xrc/xh_chckl.cpp
-// Purpose: XRC resource for wxCheckList
+// Purpose: XRC resource for wxCheckListBox
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
-// Name: src/xrc/hyperlink.cpp
+// Name: src/xrc/xh_hyperlink.cpp
// Purpose: Hyperlink control
// Author: David Norris <danorris@gmail.com>
// Modified by: Ryan Norton, Francesco Montorsi
/////////////////////////////////////////////////////////////////////////////
// Name: src/xrc/xh_mdi.cpp
-// Purpose: XRC resource for dialogs
+// Purpose: XRC resource for wxMDI
// Author: David M. Falkinder & Vaclav Slavik
// Created: 14/02/2005
// RCS-ID: $Id$
#pragma hdrstop
#endif
-#if wxUSE_XRC
+#if wxUSE_XRC && wxUSE_MENUS
#include "wx/xrc/xh_menu.h"
return IsOfClass(node, wxT("wxMenuBar"));
}
-#endif // wxUSE_XRC
+#endif // wxUSE_XRC && wxUSE_MENUS
//-----------------------------------------------------------------------------
// wxStdDialogButtonSizerXmlHandler
//-----------------------------------------------------------------------------
+#if wxUSE_BUTTON
IMPLEMENT_DYNAMIC_CLASS(wxStdDialogButtonSizerXmlHandler, wxXmlResourceHandler)
return (!m_isInside && IsOfClass(node, wxT("wxStdDialogButtonSizer"))) ||
(m_isInside && IsOfClass(node, wxT("button")));
}
+#endif // wxUSE_BUTTON
#endif // wxUSE_XRC
#pragma hdrstop
#endif
-#if wxUSE_XRC
+#if wxUSE_XRC
#include "wx/xrc/xh_spin.h"
#pragma hdrstop
#endif
-#if wxUSE_XRC
+#if wxUSE_XRC && wxUSE_SPLITTER
#include "wx/xrc/xh_split.h"
return IsOfClass(node, wxT("wxSplitterWindow"));
}
-#endif // wxUSE_XRC
+#endif // wxUSE_XRC && wxUSE_SPLITTER
/////////////////////////////////////////////////////////////////////////////
// Name: xh_tglbtn.cpp
-// Purpose: XRC resource for wxCheckBox
+// Purpose: XRC resource for wxToggleButton
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
/////////////////////////////////////////////////////////////////////////////
// Name: src/xrc/xh_toolb.cpp
-// Purpose: XRC resource for wxBoxSizer
+// Purpose: XRC resource for wxToolBar
// Author: Vaclav Slavik
// Created: 2000/08/11
// RCS-ID: $Id$
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
#endif
#if wxUSE_RADIOBOX
AddHandler(new wxRadioBoxXmlHandler);
+#endif
+#if wxUSE_RADIOBTN
AddHandler(new wxRadioButtonXmlHandler);
#endif
#if wxUSE_COMBOBOX
#if wxUSE_TREEBOOK
AddHandler(new wxTreebookXmlHandler);
#endif
+#if wxUSE_TEXTCTRL
AddHandler(new wxTextCtrlXmlHandler);
+#endif
#if wxUSE_LISTBOX
AddHandler(new wxListBoxXmlHandler);
#endif
#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