1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/xrc/xh_spin.h
3 // Purpose: XML resource handler for wxSpinButton and wxSpinCtrl
4 // Author: Bob Mitchell
7 // Copyright: (c) 2000 Bob Mitchell and Verant Interactive
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_XH_SPIN_H_
12 #define _WX_XH_SPIN_H_
14 #include "wx/xrc/xmlres.h"
20 class WXDLLIMPEXP_XRC wxSpinButtonXmlHandler
: public wxXmlResourceHandler
22 DECLARE_DYNAMIC_CLASS(wxSpinButtonXmlHandler
)
25 wxSP_DEFAULT_VALUE
= 0,
27 wxSP_DEFAULT_MAX
= 100
31 wxSpinButtonXmlHandler();
32 virtual wxObject
*DoCreateResource();
33 virtual bool CanHandle(wxXmlNode
*node
);
36 #endif // wxUSE_SPINBTN
41 class WXDLLIMPEXP_XRC wxSpinCtrlXmlHandler
: public wxXmlResourceHandler
43 DECLARE_DYNAMIC_CLASS(wxSpinCtrlXmlHandler
)
46 wxSP_DEFAULT_VALUE
= 0,
48 wxSP_DEFAULT_MAX
= 100
52 wxSpinCtrlXmlHandler();
53 virtual wxObject
*DoCreateResource();
54 virtual bool CanHandle(wxXmlNode
*node
);
57 #endif // wxUSE_SPINCTRL
61 #endif // _WX_XH_SPIN_H_