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"
16 #include "wx/gbsizer.h"
19 class WXDLLEXPORT wxSizer
;
21 class WXDLLIMPEXP_XRC wxSizerXmlHandler
: public wxXmlResourceHandler
23 DECLARE_DYNAMIC_CLASS(wxSizerXmlHandler
)
26 virtual wxObject
*DoCreateResource();
27 virtual bool CanHandle(wxXmlNode
*node
);
33 wxSizer
*m_parentSizer
;
35 bool IsSizerNode(wxXmlNode
*node
);
37 wxObject
* Handle_sizeritem();
38 wxObject
* Handle_spacer();
39 wxObject
* Handle_sizer();
40 wxSizer
* Handle_wxBoxSizer();
41 wxSizer
* Handle_wxStaticBoxSizer();
42 wxSizer
* Handle_wxGridSizer();
43 wxSizer
* Handle_wxFlexGridSizer();
44 wxSizer
* Handle_wxGridBagSizer();
46 void SetGrowables(wxFlexGridSizer
* fsizer
, const wxChar
* param
, bool rows
);
47 wxGBPosition
GetGBPos(const wxString
& param
);
48 wxGBSpan
GetGBSpan(const wxString
& param
);
49 wxSizerItem
* MakeSizerItem();
50 void SetSizerItemAttributes(wxSizerItem
* sitem
);
51 void AddSizerItem(wxSizerItem
* sitem
);
55 class WXDLLIMPEXP_XRC wxStdDialogButtonSizerXmlHandler
56 : public wxXmlResourceHandler
59 wxStdDialogButtonSizerXmlHandler();
60 virtual wxObject
*DoCreateResource();
61 virtual bool CanHandle(wxXmlNode
*node
);
65 wxStdDialogButtonSizer
*m_parentSizer
;
67 DECLARE_DYNAMIC_CLASS(wxStdDialogButtonSizerXmlHandler
)
71 #endif // _WX_XH_SIZER_H_