]> git.saurik.com Git - wxWidgets.git/blob - src/xrc/xh_stbox.cpp
applied patch 446836: removed qt headers
[wxWidgets.git] / src / xrc / xh_stbox.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: xh_stbox.cpp
3 // Purpose: XML resource for wxStaticBox
4 // Author: Brian Gavin
5 // Created: 2000/09/09
6 // RCS-ID: $Id$
7 // Copyright: (c) 2000 Brian Gavin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifdef __GNUG__
12 #pragma implementation "xh_stbox.h"
13 #endif
14
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
17
18 #ifdef __BORLANDC__
19 #pragma hdrstop
20 #endif
21
22 #include "wx/xrc/xh_stbox.h"
23 #include "wx/statbox.h"
24
25 wxStaticBoxXmlHandler::wxStaticBoxXmlHandler()
26 : wxXmlResourceHandler()
27 {
28 AddWindowStyles();
29 }
30
31 wxObject *wxStaticBoxXmlHandler::DoCreateResource()
32 {
33 wxStaticBox *box = new wxStaticBox(m_parentAsWindow,
34 GetID(),
35 GetText(wxT("label")),
36 GetPosition(), GetSize(),
37 GetStyle(),
38 GetName()
39 );
40 SetupWindow(box);
41
42 return box;
43 }
44
45
46
47 bool wxStaticBoxXmlHandler::CanHandle(wxXmlNode *node)
48 {
49 return IsOfClass(node, wxT("wxStaticBox"));
50 }
51
52