]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/xrc/xmlres.h
Added generic MDI files
[wxWidgets.git] / include / wx / xrc / xmlres.h
index 77bc74433e783f9d2101927fa758068ff91af2db..7719fe4afb3b22bb5a591236d3190b2725585f5e 100644 (file)
@@ -24,6 +24,7 @@
 #include "wx/filesys.h"
 #include "wx/bitmap.h"
 #include "wx/icon.h"
+#include "wx/artprov.h"
 
 #include "wx/xrc/xml.h"
 
@@ -344,13 +345,19 @@ protected:
 
     // Gets text from param and does some conversions:
     // - replaces \n, \r, \t by respective chars (according to C syntax)
-    // - replaces $ by & and $$ by $ (needed for $File => &File because of XML)
+    // - replaces _ by & and __ by _ (needed for _File => &File because of XML)
     // - calls wxGetTranslations (unless disabled in wxXmlResource)
-    wxString GetText(const wxString& param);
+    wxString GetText(const wxString& param, bool translate = TRUE);
 
     // Returns the XRCID.
     int GetID();
 
+    // Returns the wxArtID for a wxArtProvider-managed bitmap.
+    wxArtID GetStockID(const wxString& param);
+    
+    // Returns the wxArtClient for a wxArtProvider-managed bitmap.
+    wxArtClient GetStockClient(const wxString& param);
+
     // Returns the resource name.
     wxString GetName();
 
@@ -428,6 +435,7 @@ void wxXmlInitResourceModule();
 #define wxTheXmlResource  wxXmlResource::Get()
 #define XMLID             XRCID
 #define XMLCTRL           XRCCTRL
+#define GetXMLID          GetXRCID
 
 
 #endif // _WX_XMLRES_H_