]> git.saurik.com Git - wxWidgets.git/blame - include/wx/xrc/xh_listc.h
Added wxCriticalSection::TryEnter() method.
[wxWidgets.git] / include / wx / xrc / xh_listc.h
CommitLineData
b008b592 1/////////////////////////////////////////////////////////////////////////////
e8a793f0 2// Name: wx/xrc/xh_listc.h
dd47af27 3// Purpose: XML resource handler for wxListCtrl
b008b592
VS
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
999d9a9f 14#include "wx/xrc/xmlres.h"
b008b592 15
dd47af27
VZ
16#if wxUSE_XRC && wxUSE_LISTCTRL
17
326462ae 18class WXDLLIMPEXP_FWD_CORE wxListCtrl;
ef18e792 19class WXDLLIMPEXP_FWD_CORE wxListItem;
326462ae 20
30dc3455 21class WXDLLIMPEXP_XRC wxListCtrlXmlHandler : public wxXmlResourceHandler
b008b592 22{
eb8671f2
VS
23public:
24 wxListCtrlXmlHandler();
25 virtual wxObject *DoCreateResource();
26 virtual bool CanHandle(wxXmlNode *node);
326462ae
VZ
27
28private:
ef18e792
VZ
29 // handlers for wxListCtrl itself and its listcol and listitem children
30 wxListCtrl *HandleListCtrl();
31 void HandleListCol();
32 void HandleListItem();
33
34 // common part to HandleList{Col,Item}()
35 void HandleCommonItemAttrs(wxListItem& item);
326462ae
VZ
36
37 // gets the items image index in the corresponding image list (normal if
38 // which is wxIMAGE_LIST_NORMAL or small if it is wxIMAGE_LIST_SMALL)
39 long GetImageIndex(wxListCtrl *listctrl, int which);
40
41 DECLARE_DYNAMIC_CLASS(wxListCtrlXmlHandler)
b008b592
VS
42};
43
dd47af27 44#endif // wxUSE_XRC && wxUSE_LISTCTRL
b008b592
VS
45
46#endif // _WX_XH_LISTC_H_