1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/xrc/xh_ribbon.h
3 // Purpose: XML resource handler for wxRibbon related classes
4 // Author: Armel Asselin
6 // Copyright: (c) 2010 Armel Asselin
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_XRC_XH_RIBBON_H_
11 #define _WX_XRC_XH_RIBBON_H_
13 #include "wx/xrc/xmlres.h"
15 #if wxUSE_XRC && wxUSE_RIBBON
17 class WXDLLIMPEXP_FWD_RIBBON wxRibbonControl
;
19 class WXDLLIMPEXP_RIBBON wxRibbonXmlHandler
: public wxXmlResourceHandler
23 virtual wxObject
*DoCreateResource();
24 virtual bool CanHandle(wxXmlNode
*node
);
27 const wxClassInfo
*m_isInside
;
29 bool IsRibbonControl (wxXmlNode
*node
);
31 wxObject
* Handle_buttonbar();
32 wxObject
* Handle_button();
33 wxObject
* Handle_control();
34 wxObject
* Handle_page();
35 wxObject
* Handle_gallery();
36 wxObject
* Handle_galleryitem();
37 wxObject
* Handle_panel();
38 wxObject
* Handle_bar();
40 void Handle_RibbonArtProvider(wxRibbonControl
*control
);
42 wxDECLARE_DYNAMIC_CLASS(wxRibbonXmlHandler
);
45 #endif // wxUSE_XRC && wxUSE_RIBBON
47 #endif // _WX_XRC_XH_RIBBON_H_