guard grid XRC handler by #if wxUSE_GRID
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7ec81a8c2d
commit
f5e3d9463b
@ -1,5 +1,5 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: xh_grid.h
|
// Name: wx/xh_grid.h
|
||||||
// Purpose: XML resource handler for the grid control
|
// Purpose: XML resource handler for the grid control
|
||||||
// Author: Agron Selimaj
|
// Author: Agron Selimaj
|
||||||
// Created: 2005/08/11
|
// Created: 2005/08/11
|
||||||
@ -17,18 +17,20 @@
|
|||||||
|
|
||||||
#include "wx/xrc/xmlres.h"
|
#include "wx/xrc/xmlres.h"
|
||||||
|
|
||||||
#if wxUSE_XRC
|
#if wxUSE_XRC && wxUSE_GRID
|
||||||
|
|
||||||
class WXDLLIMPEXP_XRC wxGridXmlHandler : public wxXmlResourceHandler
|
class WXDLLIMPEXP_XRC wxGridXmlHandler : public wxXmlResourceHandler
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxGridXmlHandler)
|
|
||||||
public:
|
public:
|
||||||
wxGridXmlHandler();
|
wxGridXmlHandler();
|
||||||
|
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource();
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node);
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxGridXmlHandler)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC
|
#endif // wxUSE_XRC && wxUSE_GRID
|
||||||
|
|
||||||
|
|
||||||
#endif // _WX_XH_GRD_H_
|
#endif // _WX_XH_GRD_H_
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_XRC
|
#if wxUSE_XRC && wxUSE_GRID
|
||||||
|
|
||||||
#include "wx/xrc/xh_grid.h"
|
#include "wx/xrc/xh_grid.h"
|
||||||
#include "wx/grid.h"
|
#include "wx/grid.h"
|
||||||
@ -48,4 +48,4 @@ bool wxGridXmlHandler::CanHandle(wxXmlNode *node)
|
|||||||
return IsOfClass(node, wxT("wxGrid"));
|
return IsOfClass(node, wxT("wxGrid"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxUSE_XRC
|
#endif // wxUSE_XRC && wxUSE_GRID
|
||||||
|
Loading…
Reference in New Issue
Block a user