]>
git.saurik.com Git - wxWidgets.git/blob - src/xrc/xh_listc.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: XRC resource for wxListCtrl
7 // Copyright: (c) 2000 Brian Gavin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "xh_listc.h"
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
22 #include "wx/textctrl.h"
23 #include "wx/xrc/xh_listc.h"
24 #include "wx/listctrl.h"
27 wxListCtrlXmlHandler::wxListCtrlXmlHandler()
28 : wxXmlResourceHandler()
31 ADD_STYLE(wxLC_REPORT
);
33 ADD_STYLE(wxLC_SMALL_ICON
);
34 ADD_STYLE(wxLC_ALIGN_TOP
);
35 ADD_STYLE(wxLC_ALIGN_LEFT
);
36 ADD_STYLE(wxLC_AUTOARRANGE
);
37 ADD_STYLE(wxLC_USER_TEXT
);
38 ADD_STYLE(wxLC_EDIT_LABELS
);
39 ADD_STYLE(wxLC_NO_HEADER
);
40 ADD_STYLE(wxLC_SINGLE_SEL
);
41 ADD_STYLE(wxLC_SORT_ASCENDING
);
42 ADD_STYLE(wxLC_SORT_DESCENDING
);
47 wxObject
*wxListCtrlXmlHandler::DoCreateResource()
49 wxListCtrl
*list
= new wxListCtrl(m_parentAsWindow
,
51 GetPosition(), GetSize(),
55 /* TODO: columns definition */
64 bool wxListCtrlXmlHandler::CanHandle(wxXmlNode
*node
)
66 return IsOfClass(node
, wxT("wxListCtrl"));