xh_tglbtn.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/xrc/xh_tglbtn.h
  3. // Purpose: XML resource handler for wxToggleButton
  4. // Author: Julian Smart
  5. // Created: 2004-08-30
  6. // Copyright: (c) 2004 Julian Smart
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_XH_TGLBTN_H_
  10. #define _WX_XH_TGLBTN_H_
  11. #include "wx/xrc/xmlres.h"
  12. #if wxUSE_XRC && wxUSE_TOGGLEBTN
  13. class WXDLLIMPEXP_XRC wxToggleButtonXmlHandler : public wxXmlResourceHandler
  14. {
  15. DECLARE_DYNAMIC_CLASS(wxToggleButtonXmlHandler)
  16. public:
  17. wxToggleButtonXmlHandler();
  18. virtual wxObject *DoCreateResource();
  19. virtual bool CanHandle(wxXmlNode *node);
  20. protected:
  21. virtual void DoCreateToggleButton(wxObject *control);
  22. #if !defined(__WXUNIVERSAL__) && !defined(__WXMOTIF__) && !defined(__WXPM__) && !(defined(__WXGTK__) && !defined(__WXGTK20__))
  23. virtual void DoCreateBitmapToggleButton(wxObject *control);
  24. #endif
  25. };
  26. #endif // wxUSE_XRC && wxUSE_TOGGLEBTN
  27. #endif // _WX_XH_TGLBTN_H_