2000-07-25 18:47:21 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-07-04 18:08:09 +00:00
|
|
|
// Name: wx/xrc/xh_menu.h
|
2000-07-25 18:47:21 +00:00
|
|
|
// Purpose: XML resource handler for menus/menubars
|
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Created: 2000/03/05
|
|
|
|
// Copyright: (c) 2000 Vaclav Slavik
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_XH_MENU_H_
|
|
|
|
#define _WX_XH_MENU_H_
|
|
|
|
|
2001-06-09 22:18:45 +00:00
|
|
|
#include "wx/xrc/xmlres.h"
|
2000-07-25 18:47:21 +00:00
|
|
|
|
2006-10-03 14:53:40 +00:00
|
|
|
#if wxUSE_XRC && wxUSE_MENUS
|
|
|
|
|
2003-07-04 13:33:42 +00:00
|
|
|
class WXDLLIMPEXP_XRC wxMenuXmlHandler : public wxXmlResourceHandler
|
2000-07-25 18:47:21 +00:00
|
|
|
{
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxMenuXmlHandler);
|
2006-10-03 14:53:40 +00:00
|
|
|
|
2001-05-02 23:01:00 +00:00
|
|
|
public:
|
|
|
|
wxMenuXmlHandler();
|
2015-09-07 00:20:42 +00:00
|
|
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
|
|
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
2001-05-02 23:01:00 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool m_insideMenu;
|
2000-07-25 18:47:21 +00:00
|
|
|
};
|
|
|
|
|
2003-07-04 13:33:42 +00:00
|
|
|
class WXDLLIMPEXP_XRC wxMenuBarXmlHandler : public wxXmlResourceHandler
|
2000-07-25 18:47:21 +00:00
|
|
|
{
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxMenuBarXmlHandler);
|
2006-10-03 14:53:40 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
wxMenuBarXmlHandler();
|
2015-09-07 00:20:42 +00:00
|
|
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
|
|
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
2000-07-25 18:47:21 +00:00
|
|
|
};
|
|
|
|
|
2006-10-03 14:53:40 +00:00
|
|
|
#endif // wxUSE_XRC && wxUSE_MENUS
|
2000-07-25 18:47:21 +00:00
|
|
|
|
|
|
|
#endif // _WX_XH_MENU_H_
|