1/////////////////////////////////////////////////////////////////////////////
2// Name:        wx/xrc/xh_spin.h
3// Purpose:     XML resource handler for wxSpinButton and wxSpinCtrl
4// Author:      Bob Mitchell
5// Created:     2000/03/21
6// RCS-ID:      $Id: xh_spin.h 41590 2006-10-03 14:53:40Z VZ $
7// Copyright:   (c) 2000 Bob Mitchell and Verant Interactive
8// Licence:     wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_XH_SPIN_H_
12#define _WX_XH_SPIN_H_
13
14#include "wx/xrc/xmlres.h"
15
16#if wxUSE_XRC
17
18#if wxUSE_SPINBTN
19
20class WXDLLIMPEXP_XRC wxSpinButtonXmlHandler : public wxXmlResourceHandler
21{
22    DECLARE_DYNAMIC_CLASS(wxSpinButtonXmlHandler)
23    enum
24    {
25        wxSP_DEFAULT_VALUE = 0,
26        wxSP_DEFAULT_MIN = 0,
27        wxSP_DEFAULT_MAX = 100
28    };
29
30public:
31    wxSpinButtonXmlHandler();
32    virtual wxObject *DoCreateResource();
33    virtual bool CanHandle(wxXmlNode *node);
34};
35
36#endif // wxUSE_SPINBTN
37
38
39#if wxUSE_SPINCTRL
40
41class WXDLLIMPEXP_XRC wxSpinCtrlXmlHandler : public wxXmlResourceHandler
42{
43    DECLARE_DYNAMIC_CLASS(wxSpinCtrlXmlHandler)
44    enum
45    {
46        wxSP_DEFAULT_VALUE = 0,
47        wxSP_DEFAULT_MIN = 0,
48        wxSP_DEFAULT_MAX = 100
49    };
50
51public:
52    wxSpinCtrlXmlHandler();
53    virtual wxObject *DoCreateResource();
54    virtual bool CanHandle(wxXmlNode *node);
55};
56
57#endif // wxUSE_SPINCTRL
58
59#endif // wxUSE_XRC
60
61#endif // _WX_XH_SPIN_H_
62