1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/xrc/xh_ribbon.h
3 // Purpose: XML resource handler for wxRibbon related classes
4 // Author: Armel Asselin
7 // Copyright: (c) 2010 Armel Asselin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_XRC_XH_RIBBON_H_
12 #define _WX_XRC_XH_RIBBON_H_
14 #include "wx/xrc/xmlres.h"
16 #if wxUSE_XRC && wxUSE_RIBBON
18 class WXDLLIMPEXP_FWD_RIBBON wxRibbonControl
;
20 class WXDLLIMPEXP_RIBBON wxRibbonXmlHandler
: public wxXmlResourceHandler
24 virtual wxObject
*DoCreateResource();
25 virtual bool CanHandle(wxXmlNode
*node
);
28 const wxClassInfo
*m_isInside
;
30 bool IsRibbonControl (wxXmlNode
*node
);
32 wxObject
* Handle_buttonbar();
33 wxObject
* Handle_button();
34 wxObject
* Handle_control();
35 wxObject
* Handle_page();
36 wxObject
* Handle_gallery();
37 wxObject
* Handle_galleryitem();
38 wxObject
* Handle_panel();
39 wxObject
* Handle_bar();
41 void Handle_RibbonArtProvider(wxRibbonControl
*control
);
43 wxDECLARE_DYNAMIC_CLASS(wxRibbonXmlHandler
);
46 #endif // wxUSE_XRC && wxUSE_RIBBON
48 #endif // _WX_XRC_XH_RIBBON_H_