]>
git.saurik.com Git - wxWidgets.git/blob - src/xrc/xh_stlin.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/xrc/xh_stlin.cpp
3 // Purpose: XRC resource for wxStaticLine
6 // Copyright: (c) 2000 Brian Gavin
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
17 #if wxUSE_XRC && wxUSE_STATLINE
19 #include "wx/xrc/xh_stlin.h"
20 #include "wx/statline.h"
22 IMPLEMENT_DYNAMIC_CLASS(wxStaticLineXmlHandler
, wxXmlResourceHandler
)
24 wxStaticLineXmlHandler::wxStaticLineXmlHandler()
25 : wxXmlResourceHandler()
27 XRC_ADD_STYLE(wxLI_HORIZONTAL
);
28 XRC_ADD_STYLE(wxLI_VERTICAL
);
32 wxObject
*wxStaticLineXmlHandler::DoCreateResource()
34 XRC_MAKE_INSTANCE(line
, wxStaticLine
)
36 line
->Create(m_parentAsWindow
,
38 GetPosition(), GetSize(),
39 GetStyle(wxT("style"), wxLI_HORIZONTAL
),
47 bool wxStaticLineXmlHandler::CanHandle(wxXmlNode
*node
)
49 return IsOfClass(node
, wxT("wxStaticLine"));
52 #endif // wxUSE_XRC && wxUSE_STATLINE