]>
git.saurik.com Git - wxWidgets.git/blob - src/xrc/xh_grid.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/xrc/xh_grid.cpp
3 // Purpose: XML resource handler for the grid control
4 // Author: Agron Selimaj
6 // Copyright: (c) 2005 Agron Selimaj, Freepour Controls Inc.
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
17 #if wxUSE_XRC && wxUSE_GRID
19 #include "wx/xrc/xh_grid.h"
22 IMPLEMENT_DYNAMIC_CLASS(wxGridXmlHandler
, wxXmlResourceHandler
)
24 wxGridXmlHandler::wxGridXmlHandler()
25 : wxXmlResourceHandler()
30 wxObject
*wxGridXmlHandler::DoCreateResource()
32 XRC_MAKE_INSTANCE(grid
, wxGrid
)
34 grid
->Create(m_parentAsWindow
,
36 GetPosition(), GetSize(),
37 GetStyle(wxT("style")),
45 bool wxGridXmlHandler::CanHandle(wxXmlNode
*node
)
47 return IsOfClass(node
, wxT("wxGrid"));
50 #endif // wxUSE_XRC && wxUSE_GRID