xh_choic.h 867 B

123456789101112131415161718192021222324252627282930313233
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/xrc/xh_choic.h
  3. // Purpose: XML resource handler for wxChoice
  4. // Author: Bob Mitchell
  5. // Created: 2000/03/21
  6. // Copyright: (c) 2000 Bob Mitchell and Verant Interactive
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_XH_CHOIC_H_
  10. #define _WX_XH_CHOIC_H_
  11. #include "wx/xrc/xmlres.h"
  12. #if wxUSE_XRC && wxUSE_CHOICE
  13. class WXDLLIMPEXP_XRC wxChoiceXmlHandler : public wxXmlResourceHandler
  14. {
  15. DECLARE_DYNAMIC_CLASS(wxChoiceXmlHandler)
  16. public:
  17. wxChoiceXmlHandler();
  18. virtual wxObject *DoCreateResource();
  19. virtual bool CanHandle(wxXmlNode *node);
  20. private:
  21. bool m_insideBox;
  22. wxArrayString strList;
  23. };
  24. #endif // wxUSE_XRC && wxUSE_CHOICE
  25. #endif // _WX_XH_CHOIC_H_