1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/xrc/xh_sizer.h
3 // Purpose: XML resource handler for wxBoxSizer
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2000 Vaclav Slavik
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_XH_SIZER_H_
12 #define _WX_XH_SIZER_H_
14 #include "wx/xrc/xmlres.h"
19 #include "wx/gbsizer.h"
21 class WXDLLIMPEXP_FWD_CORE wxSizer
;
23 class WXDLLIMPEXP_XRC wxSizerXmlHandler
: public wxXmlResourceHandler
25 DECLARE_DYNAMIC_CLASS(wxSizerXmlHandler
)
29 virtual wxObject
*DoCreateResource();
30 virtual bool CanHandle(wxXmlNode
*node
);
36 wxSizer
*m_parentSizer
;
38 bool IsSizerNode(wxXmlNode
*node
);
40 wxObject
* Handle_sizeritem();
41 wxObject
* Handle_spacer();
42 wxObject
* Handle_sizer();
43 wxSizer
* Handle_wxBoxSizer();
45 wxSizer
* Handle_wxStaticBoxSizer();
47 wxSizer
* Handle_wxGridSizer();
48 wxSizer
* Handle_wxFlexGridSizer();
49 wxSizer
* Handle_wxGridBagSizer();
50 wxSizer
* Handle_wxWrapSizer();
52 void SetGrowables(wxFlexGridSizer
* fsizer
, const wxChar
* param
, bool rows
);
53 wxGBPosition
GetGBPos(const wxString
& param
);
54 wxGBSpan
GetGBSpan(const wxString
& param
);
55 wxSizerItem
* MakeSizerItem();
56 void SetSizerItemAttributes(wxSizerItem
* sitem
);
57 void AddSizerItem(wxSizerItem
* sitem
);
62 class WXDLLIMPEXP_XRC wxStdDialogButtonSizerXmlHandler
63 : public wxXmlResourceHandler
65 DECLARE_DYNAMIC_CLASS(wxStdDialogButtonSizerXmlHandler
)
68 wxStdDialogButtonSizerXmlHandler();
69 virtual wxObject
*DoCreateResource();
70 virtual bool CanHandle(wxXmlNode
*node
);
74 wxStdDialogButtonSizer
*m_parentSizer
;
77 #endif // wxUSE_BUTTON
81 #endif // _WX_XH_SIZER_H_