xh_htmllbox.h 935 B

123456789101112131415161718192021222324252627282930313233
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/xrc/xh_htmllbox.h
  3. // Purpose: XML resource handler for wxSimpleHtmlListBox
  4. // Author: Francesco Montorsi
  5. // Created: 2006/10/21
  6. // Copyright: (c) 2006 Francesco Montorsi
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_XH_SIMPLEHTMLLISTBOX_H_
  10. #define _WX_XH_SIMPLEHTMLLISTBOX_H_
  11. #include "wx/xrc/xmlres.h"
  12. #if wxUSE_XRC && wxUSE_HTML
  13. class WXDLLIMPEXP_XRC wxSimpleHtmlListBoxXmlHandler : public wxXmlResourceHandler
  14. {
  15. public:
  16. wxSimpleHtmlListBoxXmlHandler();
  17. virtual wxObject *DoCreateResource();
  18. virtual bool CanHandle(wxXmlNode *node);
  19. private:
  20. bool m_insideBox;
  21. wxArrayString strList;
  22. DECLARE_DYNAMIC_CLASS(wxSimpleHtmlListBoxXmlHandler)
  23. };
  24. #endif // wxUSE_XRC && wxUSE_HTML
  25. #endif // _WX_XH_SIMPLEHTMLLISTBOX_H_