]> git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/gizmos/xh_statpict.h
Applied patch [ 1164975 ] xml handler for wxStaticPicture
[wxWidgets.git] / contrib / include / wx / gizmos / xh_statpict.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: xh_statpict.h
3 // Purpose: XRC resource handler for wxStaticPicture
4 // Author: David A. Norris
5 // Created: 2005/03/13
6 // RCS-ID: $Id$
7 // Copyright: David A. Norris
8 // Licence: wxWindows Licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_XH_STATPICT_H
12 #define _WX_XH_STATPICT_H
13
14 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
15 #pragma interface "xh_statpict.h"
16 #endif
17
18 #include "wx/xrc/xmlres.h"
19
20 //
21 // XML resource handler for the wxStaticPicture class in wxContrib.
22 //
23
24 class WXDLLIMPEXP_XRC wxStaticPictureXmlHandler : public wxXmlResourceHandler
25 {
26 public:
27
28 // Constructor.
29 wxStaticPictureXmlHandler();
30
31 // Creates the control and returns a pointer to it.
32 virtual wxObject *DoCreateResource();
33
34 // Returns true if we know how to create a control for the given node.
35 virtual bool CanHandle(wxXmlNode *node);
36
37 // Register with wxWindows' dynamic class subsystem.
38 DECLARE_DYNAMIC_CLASS(wxStaticPictureXmlHandler)
39 };
40
41 #endif