xh_bmp.h 997 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/xrc/xh_bmp.h
  3. // Purpose: XML resource handler for wxBitmap and wxIcon
  4. // Author: Vaclav Slavik
  5. // Created: 2000/09/00
  6. // Copyright: (c) 2000 Vaclav Slavik
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_XH_BMP_H_
  10. #define _WX_XH_BMP_H_
  11. #include "wx/xrc/xmlres.h"
  12. #if wxUSE_XRC
  13. class WXDLLIMPEXP_XRC wxBitmapXmlHandler : public wxXmlResourceHandler
  14. {
  15. DECLARE_DYNAMIC_CLASS(wxBitmapXmlHandler)
  16. public:
  17. wxBitmapXmlHandler();
  18. virtual wxObject *DoCreateResource();
  19. virtual bool CanHandle(wxXmlNode *node);
  20. };
  21. class WXDLLIMPEXP_XRC wxIconXmlHandler : public wxXmlResourceHandler
  22. {
  23. DECLARE_DYNAMIC_CLASS(wxIconXmlHandler)
  24. public:
  25. wxIconXmlHandler();
  26. virtual wxObject *DoCreateResource();
  27. virtual bool CanHandle(wxXmlNode *node);
  28. };
  29. #endif // wxUSE_XRC
  30. #endif // _WX_XH_BMP_H_