]>
git.saurik.com Git - wxWidgets.git/blob - src/xrc/xh_grid.cpp
e3031ee27f14ca3c43f67f8260dc797be3658371
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: XML resource handler for the grid control
4 // Author: Agron Selimaj
7 // Copyright: (c) 2005 Agron Selimaj, Freepour Controls Inc.
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
18 #if wxUSE_XRC && wxUSE_GRID
20 #include "wx/xrc/xh_grid.h"
23 IMPLEMENT_DYNAMIC_CLASS(wxGridXmlHandler
, wxXmlResourceHandler
)
25 wxGridXmlHandler::wxGridXmlHandler()
26 : wxXmlResourceHandler()
31 wxObject
*wxGridXmlHandler::DoCreateResource()
33 XRC_MAKE_INSTANCE(grid
, wxGrid
)
35 grid
->Create(m_parentAsWindow
,
37 GetPosition(), GetSize(),
38 GetStyle(wxT("style")),
46 bool wxGridXmlHandler::CanHandle(wxXmlNode
*node
)
48 return IsOfClass(node
, wxT("wxGrid"));
51 #endif // wxUSE_XRC && wxUSE_GRID