00001 // $Id: camtypes.h 1688 2006-08-10 12:05:20Z gerry $ 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 #ifndef INC_CAMTYPES 00100 #define INC_CAMTYPES 00101 00102 #if defined(EXCLUDE_FROM_XARLIB) && !defined(EXCLUDE_FROM_XARALX) 00103 #define EXCLUDE_FROM_XARALX 00104 #endif 00105 00106 #define XAR_TREE_DIALOG 1 00107 00108 //This removes the UNWIND_SEMATICS warnings during a build 00109 #pragma warning(disable:4530) 00110 00111 // this file includes the types which everyone generally needs but which are NOT 00112 // machine-dependent. Any machine-dependent types should go in winoil\oiltypes.h 00113 // NOTE: ENSURE #include lines are less than 25 lines apart (if you don't, 00114 // nmake depend will not work) - markn & neville 4-8-97 00115 00116 // Include machine-specific types 00117 #include "stdwx.h" 00118 00119 // This has been placed here to ensure that min and max are available 00120 // if ccfile.h is not included (via document.h below) 00121 using namespace std; 00122 00123 // This must be the first file included of ours as it defines _R() 00124 // note it does include other stuff, but only after it has defined _R() 00125 #include "camresource.h" 00126 00127 // ADDR is a general pointer type. Using void* would mean casts of every use so it is a 00128 // pointer to BYTE, to make address calculation marginally easier. 00129 typedef BYTE* ADDR; 00130 00131 // This is the correct definition of MILLIPOINT 00132 typedef INT32 MILLIPOINT; 00133 00134 // Type for Tags (unique IDs) 00135 typedef UINT32 TAG; 00136 00137 00138 // This must come after MILLIPOINT as it includes strings.h, which uses millipoints. 00139 #include "ccmaths.h" // as XMILLIPOINT needs XLONG 00140 00141 // Try to speed up compilation times 00142 #include "ccobject.h" 00143 #include "errors.h" 00144 #include "camstring.h" 00145 00146 #include "ccfile.h" 00147 #include "list.h" 00148 #include "listitem.h" 00149 #include "fixmem.h" 00150 #include "memblk.h" 00151 00152 #if !defined(EXCLUDE_FROM_XARLIB) 00153 00154 #include "paldefs.h" 00155 #include "app.h" 00156 #include "document.h" 00157 #include "docview.h" 00158 #include "range.h" 00159 #include "rndrgn.h" 00160 #include "tool.h" 00161 #include "epsfiltr.h" 00162 #include "ink.h" 00163 #include "nodeattr.h" 00164 #include "attrval.h" 00165 #include "undoop.h" 00166 #include "bars.h" 00167 #include "sgallery.h" 00168 00169 #endif 00170 00171 #include "paths.h" 00172 #include "cxfdefs.h" 00173 #include "cxfrech.h" 00174 #include "cxfrec.h" 00175 00176 #if !defined(EXCLUDE_FROM_XARLIB) 00177 // Alex added these which are included by more than 100 files 00178 #include "camfiltr.h" 00179 #include "npaper.h" 00180 #include "iprofile.h" 00181 #include "biasgain.h" 00182 #include "fillattr.h" 00183 #include "animparams.h" 00184 #include "spread.h" 00185 #include "nodecomp.h" 00186 #include "rrcaps.h" 00187 #include "fillval.h" 00188 #include "becomea.h" 00189 #include "group.h" 00190 00191 #endif 00192 00193 00194 00195 //-----------------------------------------------------------------------------------------// 00196 // Some globally useful coordinate values... 00197 00198 // The following two values define the boundaries within which all physical coords must exist. 00199 // No data structure should EVER hold these values - they just represent the limits. 00200 // They are measured in millipoints. 00201 00202 const MILLIPOINT MinDocCoord = -0x40000000; // Smallest allowable physical coordinate 00203 const MILLIPOINT MaxDocCoord = 0x40000000; // Largest allowable physical coordinate 00204 const MILLIPOINT MaxPasteboard = MILLIPOINT(500 * 72000 / 25.4); // Maximum pasteboard width/height 00205 00206 //-----------------------------------------------------------------------------------------// 00207 // LogicalCoord 00208 // 00209 // Structure holding a 64-bit cartesian coordinate. 00210 // Its main use is to hold the physical coordinates of objects in chapter space. 00211 // 00212 // IMPORTANT: do not add any virtual functions or other members to this structure as it is 00213 // crucial that it stays in this form, else the union below in Rect will stop working. 00214 00215 struct LogicalCoord 00216 { 00217 XMILLIPOINT x; 00218 XMILLIPOINT y; 00219 }; 00220 00221 // The following are included automatically by the above (for reference) 00222 //#include "arrows.h" 00223 //#include "attr.h" 00224 //#include "attrmgr.h" 00225 //#include "barmsg.h" 00226 //#include "basedoc.h" 00227 //#include "basestr.h" 00228 //#include "binds.h" 00229 //#include "binreloc.h" 00230 //#include "bitmap.h" 00231 //#include "bitmapcache.h" 00232 //#include "bitmapcachekey.h" 00233 //#include "bmplist.h" 00234 //#include "camtypes.h" 00235 //#include "capturemanager.h" 00236 //#include "ccfile.h" 00237 //#include "clikmods.h" 00238 //#include "colcarry.h" 00239 //#include "colmodel.h" 00240 //#include "compatdef.h" 00241 //#include "convert.h" 00242 //#include "coord.h" 00243 //#include "cursor.h" 00244 //#include "defalloc.h" 00245 //#include "dialogop.h" 00246 //#include "dibconv.h" 00247 //#include "dibutil.h" 00248 //#include "dlgtypes.h" 00249 //#include "doccolor.h" 00250 //#include "doccomp.h" 00251 //#include "doccoord.h" 00252 //#include "dockbar.h" 00253 //#include "docmsgs.h" 00254 //#include "docrect.h" 00255 //#include "docvmsg.h" 00256 //#include "dragtrgt.h" 00257 //#include "ensure.h" 00258 //#include "epsclist.h" 00259 //#include "epsstack.h" 00260 //#include "exception.h" 00261 //#include "filters.h" 00262 //#include "fix24.h" 00263 //#include "fixed.h" 00264 //#include "fixed16.h" 00265 //#include "fixed24.h" 00266 //#include "fixmem.h" 00267 //#include "fixst128.h" 00268 //#include "fixst256.h" 00269 //#include "fixstr16.h" 00270 //#include "fixstr32.h" 00271 //#include "fixstr64.h" 00272 //#include "fixstr8.h" 00273 //#include "flags.h" 00274 //#include "fontclass.h" 00275 //#include "fraclist.h" 00276 //#include "gconsts.h" 00277 //#include "genlist.h" 00278 //#include "genstack.h" 00279 //#include "gradtype.h" 00280 //#include "handles.h" 00281 //#include "iterator.h" 00282 //#include "list.h" 00283 //#include "listitem.h" 00284 //#include "matrix.h" 00285 //#include "memblk.h" 00286 //#include "memdebug.h" 00287 //#include "cammemory.h" 00288 //#include "mfccontainer.h" 00289 //#include "monotime.h" 00290 //#include "msg.h" 00291 //#include "node.h" 00292 //#include "oilcoord.h" 00293 //#include "oilfltrs.h" 00294 //#include "oilrect.h" 00295 //#include "opdesc.h" 00296 //#include "ops.h" 00297 //#include "outptdib.h" 00298 //#include "outptgif.h" 00299 //#include "pathname.h" 00300 //#include "pathshap.h" 00301 //#include "pathtype.h" 00302 //#include "prefs.h" 00303 //#include "pump.h" 00304 //#include "quality.h" 00305 //#include "ralphint.h" 00306 //#include "rect.h" 00307 //#include "release.h" 00308 //#include "rendtype.h" 00309 //#include "rgnlist.h" 00310 //#include "rndstack.h" 00311 //#include "selmsg.h" 00312 //#include "selop.h" 00313 //#include "selstate.h" 00314 //#include "sgscan.h" 00315 //#include "sgtree.h" 00316 //#include "slowjob.h" 00317 //#include "stockcol.h" 00318 //#include "thumb.h" 00319 //#include "tranform.h" 00320 //#include "trans2d.h" 00321 //#include "txtattr.h" 00322 //#include "units.h" 00323 //#include "unittype.h" 00324 //#include "varstr.h" 00325 //#include "view.h" 00326 //#include "wincoord.h" 00327 //#include "winrect.h" 00328 //#include "wrkcoord.h" 00329 //#include "xlong.h" 00330 //#include "xmatrix.h" 00331 00332 00333 #endif // !INC_CAMTYPES