1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/xrc/xh_menu.h
3 // Purpose: XML resource handler for menus/menubars
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2000 Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_XH_MENU_H_
11 #define _WX_XH_MENU_H_
13 #include "wx/xrc/xmlres.h"
15 #if wxUSE_XRC && wxUSE_MENUS
17 class WXDLLIMPEXP_XRC wxMenuXmlHandler
: public wxXmlResourceHandler
19 DECLARE_DYNAMIC_CLASS(wxMenuXmlHandler
)
23 virtual wxObject
*DoCreateResource();
24 virtual bool CanHandle(wxXmlNode
*node
);
30 class WXDLLIMPEXP_XRC wxMenuBarXmlHandler
: public wxXmlResourceHandler
32 DECLARE_DYNAMIC_CLASS(wxMenuBarXmlHandler
)
35 wxMenuBarXmlHandler();
36 virtual wxObject
*DoCreateResource();
37 virtual bool CanHandle(wxXmlNode
*node
);
40 #endif // wxUSE_XRC && wxUSE_MENUS
42 #endif // _WX_XH_MENU_H_