]> git.saurik.com Git - wxWidgets.git/blame - src/xrc/xh_stbmp.cpp
Added wxRichTextTableBlock class to help with table UI operations
[wxWidgets.git] / src / xrc / xh_stbmp.cpp
CommitLineData
78d14f80 1/////////////////////////////////////////////////////////////////////////////
e267406e 2// Name: src/xrc/xh_stbmp.cpp
b5d6954b 3// Purpose: XRC resource for wxStaticBitmap
78d14f80
VS
4// Author: Vaclav Slavik
5// Created: 2000/04/22
78d14f80
VS
6// Copyright: (c) 2000 Vaclav Slavik
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
e267406e 17#if wxUSE_XRC && wxUSE_STATBMP
a1e4ec87 18
78d14f80 19#include "wx/xrc/xh_stbmp.h"
e267406e
WS
20
21#ifndef WX_PRECOMP
22 #include "wx/statbmp.h"
23#endif
78d14f80 24
854e189f
VS
25IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmapXmlHandler, wxXmlResourceHandler)
26
f80ea77b 27wxStaticBitmapXmlHandler::wxStaticBitmapXmlHandler()
e267406e 28 :wxXmlResourceHandler()
78d14f80
VS
29{
30 AddWindowStyles();
31}
32
33wxObject *wxStaticBitmapXmlHandler::DoCreateResource()
f80ea77b 34{
544fee32 35 XRC_MAKE_INSTANCE(bmp, wxStaticBitmap)
f2588180
VS
36
37 bmp->Create(m_parentAsWindow,
38 GetID(),
db59a97c 39 GetBitmap(wxT("bitmap"), wxART_OTHER, GetSize()),
f2588180
VS
40 GetPosition(), GetSize(),
41 GetStyle(),
42 GetName());
43
78d14f80 44 SetupWindow(bmp);
f80ea77b 45
78d14f80
VS
46 return bmp;
47}
48
78d14f80
VS
49bool wxStaticBitmapXmlHandler::CanHandle(wxXmlNode *node)
50{
51 return IsOfClass(node, wxT("wxStaticBitmap"));
52}
a1e4ec87 53
e267406e 54#endif // wxUSE_XRC && wxUSE_STATBMP