]> git.saurik.com Git - wxWidgets.git/blame - include/wx/xrc/xh_menu.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / xrc / xh_menu.h
CommitLineData
56d2f750 1/////////////////////////////////////////////////////////////////////////////
e8a793f0 2// Name: wx/xrc/xh_menu.h
56d2f750
VS
3// Purpose: XML resource handler for menus/menubars
4// Author: Vaclav Slavik
5// Created: 2000/03/05
56d2f750
VS
6// Copyright: (c) 2000 Vaclav Slavik
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_XH_MENU_H_
11#define _WX_XH_MENU_H_
12
999d9a9f 13#include "wx/xrc/xmlres.h"
56d2f750 14
dd47af27
VZ
15#if wxUSE_XRC && wxUSE_MENUS
16
30dc3455 17class WXDLLIMPEXP_XRC wxMenuXmlHandler : public wxXmlResourceHandler
56d2f750 18{
dd47af27
VZ
19 DECLARE_DYNAMIC_CLASS(wxMenuXmlHandler)
20
eb8671f2
VS
21public:
22 wxMenuXmlHandler();
23 virtual wxObject *DoCreateResource();
24 virtual bool CanHandle(wxXmlNode *node);
25
26private:
27 bool m_insideMenu;
56d2f750
VS
28};
29
30dc3455 30class WXDLLIMPEXP_XRC wxMenuBarXmlHandler : public wxXmlResourceHandler
56d2f750 31{
f80ea77b 32 DECLARE_DYNAMIC_CLASS(wxMenuBarXmlHandler)
dd47af27
VZ
33
34public:
35 wxMenuBarXmlHandler();
36 virtual wxObject *DoCreateResource();
37 virtual bool CanHandle(wxXmlNode *node);
56d2f750
VS
38};
39
dd47af27 40#endif // wxUSE_XRC && wxUSE_MENUS
56d2f750
VS
41
42#endif // _WX_XH_MENU_H_