stdwx.h

Go to the documentation of this file.
00001 // $Id: stdwx.h 1589 2006-07-28 20:53:48Z alex $
00002 /* @@tag:xara-cn@@ DO NOT MODIFY THIS LINE
00003 ================================XARAHEADERSTART===========================
00004  
00005                Xara LX, a vector drawing and manipulation program.
00006                     Copyright (C) 1993-2006 Xara Group Ltd.
00007        Copyright on certain contributions may be held in joint with their
00008               respective authors. See AUTHORS file for details.
00009 
00010 LICENSE TO USE AND MODIFY SOFTWARE
00011 ----------------------------------
00012 
00013 This file is part of Xara LX.
00014 
00015 Xara LX is free software; you can redistribute it and/or modify it
00016 under the terms of the GNU General Public License version 2 as published
00017 by the Free Software Foundation.
00018 
00019 Xara LX and its component source files are distributed in the hope
00020 that it will be useful, but WITHOUT ANY WARRANTY; without even the
00021 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00022 See the GNU General Public License for more details.
00023 
00024 You should have received a copy of the GNU General Public License along
00025 with Xara LX (see the file GPL in the root directory of the
00026 distribution); if not, write to the Free Software Foundation, Inc., 51
00027 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00028 
00029 
00030 ADDITIONAL RIGHTS
00031 -----------------
00032 
00033 Conditional upon your continuing compliance with the GNU General Public
00034 License described above, Xara Group Ltd grants to you certain additional
00035 rights. 
00036 
00037 The additional rights are to use, modify, and distribute the software
00038 together with the wxWidgets library, the wxXtra library, and the "CDraw"
00039 library and any other such library that any version of Xara LX relased
00040 by Xara Group Ltd requires in order to compile and execute, including
00041 the static linking of that library to XaraLX. In the case of the
00042 "CDraw" library, you may satisfy obligation under the GNU General Public
00043 License to provide source code by providing a binary copy of the library
00044 concerned and a copy of the license accompanying it.
00045 
00046 Nothing in this section restricts any of the rights you have under
00047 the GNU General Public License.
00048 
00049 
00050 SCOPE OF LICENSE
00051 ----------------
00052 
00053 This license applies to this program (XaraLX) and its constituent source
00054 files only, and does not necessarily apply to other Xara products which may
00055 in part share the same code base, and are subject to their own licensing
00056 terms.
00057 
00058 This license does not apply to files in the wxXtra directory, which
00059 are built into a separate library, and are subject to the wxWindows
00060 license contained within that directory in the file "WXXTRA-LICENSE".
00061 
00062 This license does not apply to the binary libraries (if any) within
00063 the "libs" directory, which are subject to a separate license contained
00064 within that directory in the file "LIBS-LICENSE".
00065 
00066 
00067 ARRANGEMENTS FOR CONTRIBUTION OF MODIFICATIONS
00068 ----------------------------------------------
00069 
00070 Subject to the terms of the GNU Public License (see above), you are
00071 free to do whatever you like with your modifications. However, you may
00072 (at your option) wish contribute them to Xara's source tree. You can
00073 find details of how to do this at:
00074   http://www.xaraxtreme.org/developers/
00075 
00076 Prior to contributing your modifications, you will need to complete our
00077 contributor agreement. This can be found at:
00078   http://www.xaraxtreme.org/developers/contribute/
00079 
00080 Please note that Xara will not accept modifications which modify any of
00081 the text between the start and end of this header (marked
00082 XARAHEADERSTART and XARAHEADEREND).
00083 
00084 
00085 MARKS
00086 -----
00087 
00088 Xara, Xara LX, Xara X, Xara X/Xtreme, Xara Xtreme, the Xtreme and Xara
00089 designs are registered or unregistered trademarks, design-marks, and/or
00090 service marks of Xara Group Ltd. All rights in these marks are reserved.
00091 
00092 
00093       Xara Group Ltd, Gaddesden Place, Hemel Hempstead, HP2 6EX, UK.
00094                         http://www.xara.com/
00095 
00096 =================================XARAHEADEREND============================
00097  */
00098 
00099 // First the main include file
00100 #include <wx/wx.h>
00101 
00102 // Now specialized bits we might not have got through the above
00103 #include <wx/bitmap.h>
00104 #include <wx/cmdline.h>
00105 #include <wx/cmdproc.h>
00106 #include <wx/config.h>
00107 #include <wx/cshelp.h>
00108 #include <wx/dcbuffer.h>
00109 #include <wx/debugrpt.h>
00110 #include <wx/dcps.h>
00111 #include <wx/display.h>
00112 #include <wx/dir.h>
00113 #include <wx/docmdi.h>
00114 #include <wx/docview.h>
00115 #include <wx/event.h>
00116 #include <wx/except.h>
00117 #include <wx/fileconf.h>
00118 #include <wx/file.h>
00119 #include <wx/filedlg.h>
00120 #include <wx/filesys.h>
00121 #include <wx/fontenum.h>
00122 #include <wx/fs_mem.h>
00123 #include <wx/fs_zip.h>
00124 #include <wx/hashmap.h>
00125 #include <wx/image.h>
00126 #include <wx/imagpng.h>
00127 #include <wx/ipc.h>
00128 #include <wx/log.h>
00129 #include <wx/rawbmp.h>
00130 #include <wx/snglinst.h>
00131 #include <wx/splash.h>
00132 #include <wx/stdpaths.h>
00133 #include <wx/sysopt.h>
00134 #include <wx/tokenzr.h>
00135 #include <wx/tooltip.h>
00136 #include <wx/treectrl.h>
00137 #include <wx/wxchar.h>
00138 #include <wx/wxprec.h>
00139 #include <wx/propdlg.h>
00140 #include <wx/process.h>
00141 #include <wx/xrc/xh_all.h>
00142 #include <wx/xrc/xmlres.h>
00143 #if wxUSE_LISTBOOK
00144 #include <wx/listbook.h>
00145 #endif
00146 #if wxUSE_CHOICEBOOK
00147 #include <wx/choicebk.h>
00148 #endif
00149 #if wxUSE_TREEBOOK
00150 #include <wx/treebook.h>
00151 #endif
00152 #if wxUSE_TOOLBOOK
00153 #include <wx/toolbook.h>
00154 #endif
00155 #if wxUSE_LIBGNOMEPRINT
00156 #include <wx/gtk/gnome/gprint.h>
00157 #endif
00158 
00159 // Now platform dependent stuff
00160 // FreeBSD does not provide backtrace()
00161 #if !defined(__WXMAC__) && !defined(__FreeBSD__)
00162 #include <wx/stackwalk.h>
00163 #endif
00164 
00165 #if defined(__WXMSW__)
00166 #include <wx/msw/regconf.h>
00167 #endif
00168 
00169 #if !defined(EXCLUDE_FROM_XARLIB)
00170 #include "wxXtra.h"
00171 #endif
00172 
00173 #include <memory>
00174 #include <map>
00175 #include <list>
00176 #include <vector>
00177 #include <set>
00178 #include <iostream>
00179 #include <sstream>
00180 #include <new>
00181 #if !defined(__WXMAC__)
00182 #include <malloc.h>
00183 #else
00184 #include <malloc/malloc.h>
00185 #endif
00186 
00187 #if !defined(EXCLUDE_FROM_XARLIB)
00188 #include <libxml/tree.h>
00189 #include <libxml/parser.h>
00190 #endif
00191 
00192 #if wxUSE_DEBUGREPORT && wxUSE_XML
00193 #define HAVE_DEBUGREPORT
00194 #else
00195 #undef HAVE_DEBUGREPORT
00196 #endif
00197 
00198 template< typename T >
00199 T Abs( T val )
00200 {
00201     return val < 0 ? -val : val;
00202 }
00203 
00204 #ifndef ABS
00205 #define ABS(a) ( ((a) < 0) ? -(a) : (a) )
00206 #endif
00207 
00208 #if defined(__WXMSW__)
00209 // min and max macros - only MSW because they blow up some of the headers
00210 #define max(a,b)  (((a) > (b)) ? (a) : (b))
00211 #define min(a,b)  (((a) < (b)) ? (a) : (b))
00212 #endif
00213 
00214 #define camMax(a,b)  (((a) > (b)) ? (a) : (b))
00215 #define camMin(a,b)  (((a) < (b)) ? (a) : (b))
00216 
00217 // Defines and types moved from awindows.h
00218 
00219 #define nobreak
00220 
00221 // Defines and types moved from oiltypes.h
00222 
00223 #define CAMAPI
00224 #define CCAPI
00225 
00226 #define DECLARE_SOURCE(String)
00227 #define BASED_CODE
00228 
00229 #include "compatdef.h"
00230 #include "ensure.h"
00231 #include "errors.h"
00232 #include "memdebug.h"
00233 #include "exception.h"
00234 #include "mfccontainer.h"
00235 
00236 #if !defined(EXCLUDE_FROM_XARLIB)
00237 #include "binreloc.h"
00238 #endif

Generated on Sat Nov 10 03:48:56 2007 for Camelot by  doxygen 1.4.4