]> git.saurik.com Git - wxWidgets.git/blob - include/wx/xrc/xh_listc.h
5ca936f28bb1382ae8dfe35a4881647077aea254
[wxWidgets.git] / include / wx / xrc / xh_listc.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/xrc/xh_listc.h
3 // Purpose: XML resource handler for wxListCtrl
4 // Author: Brian Gavin
5 // Created: 2000/09/09
6 // RCS-ID: $Id$
7 // Copyright: (c) 2000 Brian Gavin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_XH_LISTC_H_
12 #define _WX_XH_LISTC_H_
13
14 #include "wx/xrc/xmlres.h"
15
16 #if wxUSE_XRC && wxUSE_LISTCTRL
17
18 class WXDLLIMPEXP_FWD_CORE wxListCtrl;
19
20 class WXDLLIMPEXP_XRC wxListCtrlXmlHandler : public wxXmlResourceHandler
21 {
22 public:
23 wxListCtrlXmlHandler();
24 virtual wxObject *DoCreateResource();
25 virtual bool CanHandle(wxXmlNode *node);
26
27 private:
28 long Handle_wxListItem();
29 wxObject* Handle_wxListCtrl();
30
31 // gets the items image index in the corresponding image list (normal if
32 // which is wxIMAGE_LIST_NORMAL or small if it is wxIMAGE_LIST_SMALL)
33 long GetImageIndex(wxListCtrl *listctrl, int which);
34
35 DECLARE_DYNAMIC_CLASS(wxListCtrlXmlHandler)
36 };
37
38 #endif // wxUSE_XRC && wxUSE_LISTCTRL
39
40 #endif // _WX_XH_LISTC_H_