Debian Codegraph @

wxcrafter/xrc_handlers/myxh_listc.h

raw
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_MYXH_LISTC_H_
12 #define _WX_MYXH_LISTC_H_
13
14 #include "wx/xrc/xmlres.h"
15
16 class WXDLLIMPEXP_FWD_CORE wxListCtrl;
17 class WXDLLIMPEXP_FWD_CORE wxListItem;
18
19 class MYwxListCtrlXmlHandler : public wxXmlResourceHandler
20 {
21 public:
22 MYwxListCtrlXmlHandler();
23 virtual wxObject* DoCreateResource();
24 virtual bool CanHandle(wxXmlNode* node);
25
26 private:
27 // handlers for wxListCtrl itself and its listcol and listitem children
28 wxListCtrl* HandleListCtrl();
29 void HandleListCol();
30 void HandleListItem();
31
32 // common part to HandleList{Col,Item}()
33 void HandleCommonItemAttrs(wxListItem& item);
34
35 // gets the items image index in the corresponding image list (normal if
36 // which is wxIMAGE_LIST_NORMAL or small if it is wxIMAGE_LIST_SMALL)
37 long GetImageIndex(wxListCtrl* listctrl, int which);
38 };
39
40 #endif // _WX_XH_LISTC_H_