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_XRC wxSizerXmlHandler
: public wxXmlResourceHandler
23 DECLARE_DYNAMIC_CLASS(wxSizerXmlHandler
)
27 virtual wxObject
*DoCreateResource();
28 virtual bool CanHandle(wxXmlNode
*node
);
34 wxSizer
*m_parentSizer
;
36 bool IsSizerNode(wxXmlNode
*node
);
38 wxObject
* Handle_sizeritem();
39 wxObject
* Handle_spacer();
40 wxObject
* Handle_sizer();
41 wxSizer
* Handle_wxBoxSizer();
43 wxSizer
* Handle_wxStaticBoxSizer();
45 wxSizer
* Handle_wxGridSizer();
46 wxFlexGridSizer
* Handle_wxFlexGridSizer();
47 wxGridBagSizer
* Handle_wxGridBagSizer();
48 wxSizer
* Handle_wxWrapSizer();
50 void SetGrowables(wxFlexGridSizer
* fsizer
, const wxChar
* param
, bool rows
);
51 wxGBPosition
GetGBPos(const wxString
& param
);
52 wxGBSpan
GetGBSpan(const wxString
& param
);
53 wxSizerItem
* MakeSizerItem();
54 void SetSizerItemAttributes(wxSizerItem
* sitem
);
55 void AddSizerItem(wxSizerItem
* sitem
);
60 class WXDLLIMPEXP_XRC wxStdDialogButtonSizerXmlHandler
61 : public wxXmlResourceHandler
63 DECLARE_DYNAMIC_CLASS(wxStdDialogButtonSizerXmlHandler
)
66 wxStdDialogButtonSizerXmlHandler();
67 virtual wxObject
*DoCreateResource();
68 virtual bool CanHandle(wxXmlNode
*node
);
72 wxStdDialogButtonSizer
*m_parentSizer
;
75 #endif // wxUSE_BUTTON
79 #endif // _WX_XH_SIZER_H_