]>
git.saurik.com Git - wxWidgets.git/blob - src/xrc/xh_stlin.cpp
9418de0f3aca7571243e06a217144cd47c314b91
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: XML 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 wxStaticLineXmlHandler::wxStaticLineXmlHandler()
28 : wxXmlResourceHandler()
30 ADD_STYLE(wxLI_HORIZONTAL
);
31 ADD_STYLE(wxLI_VERTICAL
);
35 wxObject
*wxStaticLineXmlHandler::DoCreateResource()
37 wxStaticLine
*line
= new wxStaticLine(m_parentAsWindow
,
39 GetPosition(), GetSize(),
40 GetStyle(wxT("style"), wxLI_HORIZONTAL
),
50 bool wxStaticLineXmlHandler::CanHandle(wxXmlNode
*node
)
52 return IsOfClass(node
, wxT("wxStaticLine"));