]> git.saurik.com Git - wxWidgets.git/blame - contrib/src/xrc/xh_bmp.cpp
remove temportay fix to Makefile.in, now configure .in is fixed
[wxWidgets.git] / contrib / src / xrc / xh_bmp.cpp
CommitLineData
78d14f80
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: xh_bmp.cpp
b5d6954b 3// Purpose: XRC resource for wxBitmap and wxIcon
78d14f80
VS
4// Author: Vaclav Slavik
5// Created: 2000/09/09
6// RCS-ID: $Id$
7// Copyright: (c) 2000 Vaclav Slavik
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifdef __GNUG__
12#pragma implementation "xh_bmp.h"
13#endif
14
15// For compilers that support precompilation, includes "wx.h".
16#include "wx/wxprec.h"
17
18#ifdef __BORLANDC__
19 #pragma hdrstop
20#endif
21
22#include "wx/xrc/xh_bmp.h"
23#include "wx/bitmap.h"
24
25
26wxBitmapXmlHandler::wxBitmapXmlHandler()
27: wxXmlResourceHandler()
28{
29}
30
31wxObject *wxBitmapXmlHandler::DoCreateResource()
32{
33 return new wxBitmap(GetBitmap(wxT("")));
34}
35
78d14f80
VS
36bool wxBitmapXmlHandler::CanHandle(wxXmlNode *node)
37{
38 return IsOfClass(node, wxT("wxBitmap"));
39}
40
78d14f80
VS
41wxIconXmlHandler::wxIconXmlHandler()
42: wxXmlResourceHandler()
43{
44}
45
46wxObject *wxIconXmlHandler::DoCreateResource()
47{
48 return new wxIcon(GetIcon(wxT("")));
49}
50
78d14f80
VS
51bool wxIconXmlHandler::CanHandle(wxXmlNode *node)
52{
53 return IsOfClass(node, wxT("wxIcon"));
54}