]>
git.saurik.com Git - wxWidgets.git/blob - src/xrc/xh_stlin.cpp
3fdb95f8eabe7b14cc70e3a7f38f0a30e2a5318a
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/xrc/xh_stlin.cpp
3 // Purpose: XRC resource for wxStaticLine
7 // Copyright: (c) 2000 Brian Gavin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
18 #if wxUSE_XRC && wxUSE_STATLINE
20 #include "wx/xrc/xh_stlin.h"
21 #include "wx/statline.h"
23 IMPLEMENT_DYNAMIC_CLASS(wxStaticLineXmlHandler
, wxXmlResourceHandler
)
25 wxStaticLineXmlHandler::wxStaticLineXmlHandler()
26 : wxXmlResourceHandler()
28 XRC_ADD_STYLE(wxLI_HORIZONTAL
);
29 XRC_ADD_STYLE(wxLI_VERTICAL
);
33 wxObject
*wxStaticLineXmlHandler::DoCreateResource()
35 XRC_MAKE_INSTANCE(line
, wxStaticLine
)
37 line
->Create(m_parentAsWindow
,
39 GetPosition(), GetSize(),
40 GetStyle(wxT("style"), wxLI_HORIZONTAL
),
48 bool wxStaticLineXmlHandler::CanHandle(wxXmlNode
*node
)
50 return IsOfClass(node
, wxT("wxStaticLine"));
53 #endif // wxUSE_XRC && wxUSE_STATLINE