]> git.saurik.com Git - wxWidgets.git/blame - include/wx/xrc/xh_listc.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[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
b008b592
VS
6// Copyright: (c) 2000 Brian Gavin
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_XH_LISTC_H_
11#define _WX_XH_LISTC_H_
12
999d9a9f 13#include "wx/xrc/xmlres.h"
b008b592 14
dd47af27
VZ
15#if wxUSE_XRC && wxUSE_LISTCTRL
16
326462ae 17class WXDLLIMPEXP_FWD_CORE wxListCtrl;
ef18e792 18class WXDLLIMPEXP_FWD_CORE wxListItem;
326462ae 19
30dc3455 20class WXDLLIMPEXP_XRC wxListCtrlXmlHandler : public wxXmlResourceHandler
b008b592 21{
eb8671f2
VS
22public:
23 wxListCtrlXmlHandler();
24 virtual wxObject *DoCreateResource();
25 virtual bool CanHandle(wxXmlNode *node);
326462ae
VZ
26
27private:
ef18e792
VZ
28 // handlers for wxListCtrl itself and its listcol and listitem children
29 wxListCtrl *HandleListCtrl();
30 void HandleListCol();
31 void HandleListItem();
32
33 // common part to HandleList{Col,Item}()
34 void HandleCommonItemAttrs(wxListItem& item);
326462ae
VZ
35
36 // gets the items image index in the corresponding image list (normal if
37 // which is wxIMAGE_LIST_NORMAL or small if it is wxIMAGE_LIST_SMALL)
38 long GetImageIndex(wxListCtrl *listctrl, int which);
39
40 DECLARE_DYNAMIC_CLASS(wxListCtrlXmlHandler)
b008b592
VS
41};
42
dd47af27 43#endif // wxUSE_XRC && wxUSE_LISTCTRL
b008b592
VS
44
45#endif // _WX_XH_LISTC_H_