]> git.saurik.com Git - wxWidgets.git/blob - include/wx/xrc/xh_collpane.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / xrc / xh_collpane.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/xrc/xh_collpane.h
3 // Purpose: XML resource handler for wxCollapsiblePane
4 // Author: Francesco Montorsi
5 // Created: 2006-10-27
6 // Copyright: (c) 2006 Francesco Montorsi
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_XH_COLLPANE_H_
11 #define _WX_XH_COLLPANE_H_
12
13 #include "wx/xrc/xmlres.h"
14
15 #if wxUSE_XRC && wxUSE_COLLPANE
16
17 class WXDLLIMPEXP_FWD_CORE wxCollapsiblePane;
18
19 class WXDLLIMPEXP_XRC wxCollapsiblePaneXmlHandler : public wxXmlResourceHandler
20 {
21 public:
22 wxCollapsiblePaneXmlHandler();
23 virtual wxObject *DoCreateResource();
24 virtual bool CanHandle(wxXmlNode *node);
25
26 private:
27 bool m_isInside;
28 wxCollapsiblePane *m_collpane;
29
30 DECLARE_DYNAMIC_CLASS(wxCollapsiblePaneXmlHandler)
31 };
32
33 #endif // wxUSE_XRC && wxUSE_COLLPANE
34
35 #endif // _WX_XH_COLLPANE_H_