]> git.saurik.com Git - wxWidgets.git/blob - include/wx/xrc/xh_menu.h
added wxTo/FromString() overloads for wxFont (1st part of patch 1760073)
[wxWidgets.git] / include / wx / xrc / xh_menu.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/xrc/xh_menu.h
3 // Purpose: XML resource handler for menus/menubars
4 // Author: Vaclav Slavik
5 // Created: 2000/03/05
6 // RCS-ID: $Id$
7 // Copyright: (c) 2000 Vaclav Slavik
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_XH_MENU_H_
12 #define _WX_XH_MENU_H_
13
14 #include "wx/xrc/xmlres.h"
15
16 #if wxUSE_XRC && wxUSE_MENUS
17
18 class WXDLLIMPEXP_XRC wxMenuXmlHandler : public wxXmlResourceHandler
19 {
20 DECLARE_DYNAMIC_CLASS(wxMenuXmlHandler)
21
22 public:
23 wxMenuXmlHandler();
24 virtual wxObject *DoCreateResource();
25 virtual bool CanHandle(wxXmlNode *node);
26
27 private:
28 bool m_insideMenu;
29 };
30
31 class WXDLLIMPEXP_XRC wxMenuBarXmlHandler : public wxXmlResourceHandler
32 {
33 DECLARE_DYNAMIC_CLASS(wxMenuBarXmlHandler)
34
35 public:
36 wxMenuBarXmlHandler();
37 virtual wxObject *DoCreateResource();
38 virtual bool CanHandle(wxXmlNode *node);
39 };
40
41 #endif // wxUSE_XRC && wxUSE_MENUS
42
43 #endif // _WX_XH_MENU_H_