]> git.saurik.com Git - wxWidgets.git/blob - include/wx/xrc/xh_ribbon.h
b9737c821221fd461762436252083c4f19ed7929
[wxWidgets.git] / include / wx / xrc / xh_ribbon.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/xrc/xh_ribbon.h
3 // Purpose: XML resource handler for wxRibbon related classes
4 // Author: Armel Asselin
5 // Created: 2010-04-23
6 // Copyright: (c) 2010 Armel Asselin
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_XRC_XH_RIBBON_H_
11 #define _WX_XRC_XH_RIBBON_H_
12
13 #include "wx/xrc/xmlres.h"
14
15 #if wxUSE_XRC && wxUSE_RIBBON
16
17 class WXDLLIMPEXP_FWD_RIBBON wxRibbonControl;
18
19 class WXDLLIMPEXP_RIBBON wxRibbonXmlHandler : public wxXmlResourceHandler
20 {
21 public:
22 wxRibbonXmlHandler();
23 virtual wxObject *DoCreateResource();
24 virtual bool CanHandle(wxXmlNode *node);
25
26 private:
27 const wxClassInfo *m_isInside;
28
29 bool IsRibbonControl (wxXmlNode *node);
30
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();
39
40 void Handle_RibbonArtProvider(wxRibbonControl *control);
41
42 wxDECLARE_DYNAMIC_CLASS(wxRibbonXmlHandler);
43 };
44
45 #endif // wxUSE_XRC && wxUSE_RIBBON
46
47 #endif // _WX_XRC_XH_RIBBON_H_