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: xh_statpict.h 35650 2005-09-23 12:56:45Z MR $ 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#include "wx/xrc/xmlres.h" 15#include "wx/gizmos/gizmos.h" 16 17// 18// XML resource handler for the wxStaticPicture class in wxContrib. 19// 20 21class WXDLLIMPEXP_GIZMOS_XRC wxStaticPictureXmlHandler 22 : public wxXmlResourceHandler 23{ 24public: 25 26 // Constructor. 27 wxStaticPictureXmlHandler(); 28 29 // Creates the control and returns a pointer to it. 30 virtual wxObject *DoCreateResource(); 31 32 // Returns true if we know how to create a control for the given node. 33 virtual bool CanHandle(wxXmlNode *node); 34 35 // Register with wxWindows' dynamic class subsystem. 36 DECLARE_DYNAMIC_CLASS(wxStaticPictureXmlHandler) 37}; 38 39#endif 40