]>
git.saurik.com Git - wxWidgets.git/blob - src/xrc/xh_stlin.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: XRC resource for wxStaticLine
7 // Copyright: (c) 2000 Brian Gavin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "xh_stlin.h"
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
22 #include "wx/xrc/xh_stlin.h"
23 #include "wx/statline.h"
27 IMPLEMENT_DYNAMIC_CLASS(wxStaticLineXmlHandler
, wxXmlResourceHandler
)
29 wxStaticLineXmlHandler::wxStaticLineXmlHandler()
30 : wxXmlResourceHandler()
32 XRC_ADD_STYLE(wxLI_HORIZONTAL
);
33 XRC_ADD_STYLE(wxLI_VERTICAL
);
37 wxObject
*wxStaticLineXmlHandler::DoCreateResource()
39 XRC_MAKE_INSTANCE(line
, wxStaticLine
)
41 line
->Create(m_parentAsWindow
,
43 GetPosition(), GetSize(),
44 GetStyle(wxT("style"), wxLI_HORIZONTAL
),
52 bool wxStaticLineXmlHandler::CanHandle(wxXmlNode
*node
)
54 return IsOfClass(node
, wxT("wxStaticLine"));