#include "wx/fontmap.h"
#include "wx/artprov.h"
-#include "wx/xrc/xml.h"
+#include "wx/xml/xml.h"
#include "wx/xrc/xmlres.h"
#include "wx/arrimpl.cpp"
// filename and not URL:
if (wxFileName::FileExists(fnd))
{
- // Make the name absolute filename, because the app may
+ // Make the name absolute filename, because the app may
// change working directory later:
wxFileName fn(fnd);
if (fn.IsRelative())
fn.MakeAbsolute();
fnd = fn.GetFullPath();
}
+#if wxUSE_FILESYSTEM
+ fnd = wxFileSystem::FileNameToURL(fnd);
+#endif
}
-
+
#if wxUSE_FILESYSTEM
if (fnd.Lower().Matches(wxT("*.zip")) ||
fnd.Lower().Matches(wxT("*.xrs")))
while (tkn.HasMoreTokens())
{
s = tkn.GetNextToken();
-#ifdef __WXMSW__
+#ifdef __WINDOWS__
if (s == wxT("win")) isok = true;
#endif
-#ifdef __UNIX__
- if (s == wxT("unix")) isok = true;
-#endif
-#ifdef __MAC__
+#if defined(__MAC__) || defined(__APPLE__)
if (s == wxT("mac")) isok = true;
+#elif defined(__UNIX__)
+ if (s == wxT("unix")) isok = true;
#endif
#ifdef __OS2__
if (s == wxT("os2")) isok = true;
#if !wxUSE_UNICODE && wxUSE_INTL
if ( (GetFlags() & wxXRC_USE_LOCALE) == 0 )
{
- // In case we are not using wxLocale to translate strings, convert the strings
- // GUI's charset. This must not be done when wxXRC_USE_LOCALE is on, because
- // it could break wxGetTranslation lookup.
+ // In case we are not using wxLocale to translate strings, convert the
+ // strings GUI's charset. This must not be done when wxXRC_USE_LOCALE
+ // is on, because it could break wxGetTranslation lookup.
encoding = wxLocale::GetSystemEncodingName();
}
#endif
wxXmlResourceHandler *handler;
if (handlerToUse)
- {
+ {
if (handlerToUse->CanHandle(node))
{
return handlerToUse->CreateResource(node, parent, instance);
}
}
else if (node->GetName() == wxT("object"))
- {
+ {
wxNode *ND = m_handlers.GetFirst();
while (ND)
{