]> git.saurik.com Git - wxWidgets.git/blob - include/wx/xrc/xh_ribbon.h
attempt to get the 'new focus' window parameter of a focus kill event set correctly
[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 // RCS-ID: $Id$
7 // Copyright: (c) 2010 Armel Asselin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_XRC_XH_RIBBON_H_
12 #define _WX_XRC_XH_RIBBON_H_
13
14 #include "wx/xrc/xmlres.h"
15
16 #if wxUSE_XRC && wxUSE_RIBBON
17
18 class WXDLLIMPEXP_FWD_RIBBON wxRibbonControl;
19
20 class WXDLLIMPEXP_RIBBON wxRibbonXmlHandler : public wxXmlResourceHandler
21 {
22 public:
23 wxRibbonXmlHandler();
24 virtual wxObject *DoCreateResource();
25 virtual bool CanHandle(wxXmlNode *node);
26
27 private:
28 const wxClassInfo *m_isInside;
29
30 bool IsRibbonControl (wxXmlNode *node);
31
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();
40
41 void Handle_RibbonArtProvider(wxRibbonControl *control);
42
43 wxDECLARE_DYNAMIC_CLASS(wxRibbonXmlHandler);
44 };
45
46 #endif // wxUSE_XRC && wxUSE_RIBBON
47
48 #endif // _WX_XRC_XH_RIBBON_H_