]>
git.saurik.com Git - wxWidgets.git/blob - src/xrc/xh_listc.cpp
4a0c1f252a0c076fe95c62b14abb4a5196b1732e
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: XRC resource for wxListCtrl
7 // Copyright: (c) 2000 Brian Gavin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
12 #pragma implementation "xh_listc.h"
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
24 #include "wx/textctrl.h"
25 #include "wx/xrc/xh_listc.h"
26 #include "wx/listctrl.h"
29 IMPLEMENT_DYNAMIC_CLASS(wxListCtrlXmlHandler
, wxXmlResourceHandler
)
31 wxListCtrlXmlHandler::wxListCtrlXmlHandler()
32 : wxXmlResourceHandler()
34 XRC_ADD_STYLE(wxLC_LIST
);
35 XRC_ADD_STYLE(wxLC_REPORT
);
36 XRC_ADD_STYLE(wxLC_ICON
);
37 XRC_ADD_STYLE(wxLC_SMALL_ICON
);
38 XRC_ADD_STYLE(wxLC_ALIGN_TOP
);
39 XRC_ADD_STYLE(wxLC_ALIGN_LEFT
);
40 XRC_ADD_STYLE(wxLC_AUTOARRANGE
);
41 XRC_ADD_STYLE(wxLC_USER_TEXT
);
42 XRC_ADD_STYLE(wxLC_EDIT_LABELS
);
43 XRC_ADD_STYLE(wxLC_NO_HEADER
);
44 XRC_ADD_STYLE(wxLC_SINGLE_SEL
);
45 XRC_ADD_STYLE(wxLC_SORT_ASCENDING
);
46 XRC_ADD_STYLE(wxLC_SORT_DESCENDING
);
47 XRC_ADD_STYLE(wxLC_VIRTUAL
);
48 XRC_ADD_STYLE(wxLC_HRULES
);
49 XRC_ADD_STYLE(wxLC_VRULES
);
50 XRC_ADD_STYLE(wxLC_NO_SORT_HEADER
);
54 wxObject
*wxListCtrlXmlHandler::DoCreateResource()
56 XRC_MAKE_INSTANCE(list
, wxListCtrl
)
58 list
->Create(m_parentAsWindow
,
60 GetPosition(), GetSize(),
65 // FIXME: add columns definition
72 bool wxListCtrlXmlHandler::CanHandle(wxXmlNode
*node
)
74 return IsOfClass(node
, wxT("wxListCtrl"));