]> git.saurik.com Git - wxWidgets.git/blame - src/xrc/xh_stlin.cpp
Work around missing mode_t definition with ICC.
[wxWidgets.git] / src / xrc / xh_stlin.cpp
CommitLineData
78d14f80 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: src/xrc/xh_stlin.cpp
b5d6954b 3// Purpose: XRC resource for wxStaticLine
78d14f80
VS
4// Author: Brian Gavin
5// Created: 2000/09/09
78d14f80
VS
6// Copyright: (c) 2000 Brian Gavin
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
f80ea77b 9
78d14f80
VS
10// For compilers that support precompilation, includes "wx.h".
11#include "wx/wxprec.h"
12
13#ifdef __BORLANDC__
14 #pragma hdrstop
15#endif
16
621be1ec 17#if wxUSE_XRC && wxUSE_STATLINE
a1e4ec87 18
78d14f80
VS
19#include "wx/xrc/xh_stlin.h"
20#include "wx/statline.h"
21
854e189f
VS
22IMPLEMENT_DYNAMIC_CLASS(wxStaticLineXmlHandler, wxXmlResourceHandler)
23
f80ea77b
WS
24wxStaticLineXmlHandler::wxStaticLineXmlHandler()
25: wxXmlResourceHandler()
78d14f80 26{
544fee32
VS
27 XRC_ADD_STYLE(wxLI_HORIZONTAL);
28 XRC_ADD_STYLE(wxLI_VERTICAL);
78d14f80
VS
29 AddWindowStyles();
30}
31
32wxObject *wxStaticLineXmlHandler::DoCreateResource()
f80ea77b 33{
544fee32 34 XRC_MAKE_INSTANCE(line, wxStaticLine)
f2588180
VS
35
36 line->Create(m_parentAsWindow,
37 GetID(),
38 GetPosition(), GetSize(),
39 GetStyle(wxT("style"), wxLI_HORIZONTAL),
40 GetName());
41
78d14f80 42 SetupWindow(line);
f80ea77b 43
78d14f80
VS
44 return line;
45}
46
78d14f80
VS
47bool wxStaticLineXmlHandler::CanHandle(wxXmlNode *node)
48{
49 return IsOfClass(node, wxT("wxStaticLine"));
50}
51
621be1ec 52#endif // wxUSE_XRC && wxUSE_STATLINE