]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/xrc/xh_ribbon.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / xrc / xh_ribbon.h
... / ...
CommitLineData
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
17class WXDLLIMPEXP_FWD_RIBBON wxRibbonControl;
18
19class WXDLLIMPEXP_RIBBON wxRibbonXmlHandler : public wxXmlResourceHandler
20{
21public:
22 wxRibbonXmlHandler();
23 virtual wxObject *DoCreateResource();
24 virtual bool CanHandle(wxXmlNode *node);
25
26private:
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_