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