1 /////////////////////////////////////////////////////////////////////////////
 
   3 // Purpose:     Wrappers for the XML based Resource system
 
   7 // Created:     4-June-2001
 
   9 // Copyright:   (c) 2001 by Total Control Software
 
  10 // Licence:     wxWindows license
 
  11 /////////////////////////////////////////////////////////////////////////////
 
  17 #include "wx/wxPython/wxPython.h"
 
  18 #include "wx/wxPython/pyclasses.h"
 
  19 #include "wx/wxPython/pyistream.h"
 
  21 #include <wx/xml/xml.h>
 
  22 #include <wx/xrc/xmlres.h>
 
  26 //---------------------------------------------------------------------------
 
  29 %pythoncode { wx = core }
 
  32 MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
 
  33 MAKE_CONST_WXSTRING2(UTF8String,   wxT("UTF-8"));
 
  34 MAKE_CONST_WXSTRING2(StyleString,  wxT("style"));
 
  35 MAKE_CONST_WXSTRING2(SizeString,   wxT("size"));
 
  36 MAKE_CONST_WXSTRING2(PosString,    wxT("pos"));
 
  37 MAKE_CONST_WXSTRING2(BitmapString, wxT("bitmap"));
 
  38 MAKE_CONST_WXSTRING2(IconString,   wxT("icon"));
 
  39 MAKE_CONST_WXSTRING2(FontString,   wxT("font"));
 
  42 %include _xrc_rename.i
 
  45 // Include all the files that make up this module
 
  49 %include _xmlhandler.i
 
  53 //---------------------------------------------------------------------------
 
  57     wxXmlInitResourceModule();
 
  58     wxXmlResource::Get()->InitAllHandlers();
 
  63 %pythoncode "_xrc_ex.py";
 
  66 //---------------------------------------------------------------------------