// Purpose: XML resources
// Author: Vaclav Slavik
// Created: 2000/03/05
-// RCS-ID: $Id$
// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/icon.h"
#include "wx/artprov.h"
#include "wx/colour.h"
-#include "wx/animate.h"
#include "wx/vector.h"
-// We want to prevent the handlers defined outside of the XRC library from ever
-// using wxXmlNode directly as this would result in linking errors as the other
-// libraries don't link with the xml one (only xrc does). So do not include
-// this header unless building xrc itself (where a lot of code does use
-// wxXmlNode directly).
-#ifdef WXMAKINGDLL_XRC
- #include "wx/xml/xml.h"
-#else
- class WXDLLIMPEXP_FWD_XML wxXmlDocument;
- class WXDLLIMPEXP_FWD_XML wxXmlNode;
-#endif
-
#include "wx/xrc/xmlreshandler.h"
class WXDLLIMPEXP_FWD_BASE wxFileName;
class WXDLLIMPEXP_FWD_CORE wxFrame;
class WXDLLIMPEXP_FWD_CORE wxToolBar;
+class WXDLLIMPEXP_FWD_XML wxXmlDocument;
+class WXDLLIMPEXP_FWD_XML wxXmlNode;
class WXDLLIMPEXP_FWD_XRC wxXmlSubclassFactory;
class wxXmlSubclassFactories;
class wxXmlResourceModule;
// Compares resources version to argument. Returns -1 if resources version
// is less than the argument, +1 if greater and 0 if they equal.
int CompareVersion(int major, int minor, int release, int revision) const
- { return GetVersion() -
- (major*256*256*256 + minor*256*256 + release*256 + revision); }
+ {
+ long diff = GetVersion() -
+ (major*256*256*256 + minor*256*256 + release*256 + revision);
+ if ( diff < 0 )
+ return -1;
+ else if ( diff > 0 )
+ return +1;
+ else
+ return 0;
+ }
//// Singleton accessors.
#if wxUSE_ANIMATIONCTRL
// Gets an animation.
- wxAnimation GetAnimation(const wxString& param = wxT("animation"));
+ wxAnimation* GetAnimation(const wxString& param = wxT("animation"));
#endif
// Gets a font.