xh_simplebook.h 915 B

123456789101112131415161718192021222324252627282930313233343536
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/xrc/xh_simplebook.h
  3. // Purpose: XML resource handler for wxSimplebook
  4. // Author: Vadim Zeitlin
  5. // Created: 2014-08-05
  6. // Copyright: (c) 2014 Vadim Zeitlin
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_XH_SIMPLEBOOK_H_
  10. #define _WX_XH_SIMPLEBOOK_H_
  11. #include "wx/xrc/xmlres.h"
  12. #if wxUSE_XRC && wxUSE_BOOKCTRL
  13. class wxSimplebook;
  14. class WXDLLIMPEXP_XRC wxSimplebookXmlHandler : public wxXmlResourceHandler
  15. {
  16. public:
  17. wxSimplebookXmlHandler();
  18. virtual wxObject *DoCreateResource();
  19. virtual bool CanHandle(wxXmlNode *node);
  20. private:
  21. bool m_isInside;
  22. wxSimplebook *m_simplebook;
  23. wxDECLARE_DYNAMIC_CLASS(wxSimplebookXmlHandler);
  24. };
  25. #endif // wxUSE_XRC && wxUSE_BOOKCTRL
  26. #endif // _WX_XH_SIMPLEBOOK_H_