xh_toolbk.h 922 B

123456789101112131415161718192021222324252627282930313233343536
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/xrc/xh_toolbk.h
  3. // Purpose: XML resource handler for wxToolbook
  4. // Author: Andrea Zanellato
  5. // Created: 2009/12/12
  6. // Copyright: (c) 2010 wxWidgets development team
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_XH_TOOLBK_H_
  10. #define _WX_XH_TOOLBK_H_
  11. #include "wx/xrc/xmlres.h"
  12. #if wxUSE_XRC && wxUSE_TOOLBOOK
  13. class WXDLLIMPEXP_FWD_CORE wxToolbook;
  14. class WXDLLIMPEXP_XRC wxToolbookXmlHandler : public wxXmlResourceHandler
  15. {
  16. public:
  17. wxToolbookXmlHandler();
  18. virtual wxObject *DoCreateResource();
  19. virtual bool CanHandle(wxXmlNode *node);
  20. private:
  21. bool m_isInside;
  22. wxToolbook *m_toolbook;
  23. wxDECLARE_DYNAMIC_CLASS(wxToolbookXmlHandler);
  24. };
  25. #endif // wxUSE_XRC && wxUSE_TOOLBOOK
  26. #endif // _WX_XH_TOOLBK_H_