]>
git.saurik.com Git - wxWidgets.git/blob - contrib/src/xrc/xh_bmp.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: XRC resource for wxBitmap and wxIcon
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2000 Vaclav Slavik
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "xh_bmp.h"
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
22 #include "wx/xrc/xh_bmp.h"
23 #include "wx/bitmap.h"
26 wxBitmapXmlHandler::wxBitmapXmlHandler()
27 : wxXmlResourceHandler()
31 wxObject
*wxBitmapXmlHandler::DoCreateResource()
33 return new wxBitmap(GetBitmap(wxT("")));
38 bool wxBitmapXmlHandler::CanHandle(wxXmlNode
*node
)
40 return IsOfClass(node
, wxT("wxBitmap"));
44 wxIconXmlHandler::wxIconXmlHandler()
45 : wxXmlResourceHandler()
49 wxObject
*wxIconXmlHandler::DoCreateResource()
51 return new wxIcon(GetIcon(wxT("")));
56 bool wxIconXmlHandler::CanHandle(wxXmlNode
*node
)
58 return IsOfClass(node
, wxT("wxIcon"));