00001 // $Id: rechattr.h 1688 2006-08-10 12:05:20Z gerry $ 00002 // Header for the attribute record handling classes for the v2 file format 00003 /* @@tag:xara-cn@@ DO NOT MODIFY THIS LINE 00004 ================================XARAHEADERSTART=========================== 00005 00006 Xara LX, a vector drawing and manipulation program. 00007 Copyright (C) 1993-2006 Xara Group Ltd. 00008 Copyright on certain contributions may be held in joint with their 00009 respective authors. See AUTHORS file for details. 00010 00011 LICENSE TO USE AND MODIFY SOFTWARE 00012 ---------------------------------- 00013 00014 This file is part of Xara LX. 00015 00016 Xara LX is free software; you can redistribute it and/or modify it 00017 under the terms of the GNU General Public License version 2 as published 00018 by the Free Software Foundation. 00019 00020 Xara LX and its component source files are distributed in the hope 00021 that it will be useful, but WITHOUT ANY WARRANTY; without even the 00022 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00023 See the GNU General Public License for more details. 00024 00025 You should have received a copy of the GNU General Public License along 00026 with Xara LX (see the file GPL in the root directory of the 00027 distribution); if not, write to the Free Software Foundation, Inc., 51 00028 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00029 00030 00031 ADDITIONAL RIGHTS 00032 ----------------- 00033 00034 Conditional upon your continuing compliance with the GNU General Public 00035 License described above, Xara Group Ltd grants to you certain additional 00036 rights. 00037 00038 The additional rights are to use, modify, and distribute the software 00039 together with the wxWidgets library, the wxXtra library, and the "CDraw" 00040 library and any other such library that any version of Xara LX relased 00041 by Xara Group Ltd requires in order to compile and execute, including 00042 the static linking of that library to XaraLX. In the case of the 00043 "CDraw" library, you may satisfy obligation under the GNU General Public 00044 License to provide source code by providing a binary copy of the library 00045 concerned and a copy of the license accompanying it. 00046 00047 Nothing in this section restricts any of the rights you have under 00048 the GNU General Public License. 00049 00050 00051 SCOPE OF LICENSE 00052 ---------------- 00053 00054 This license applies to this program (XaraLX) and its constituent source 00055 files only, and does not necessarily apply to other Xara products which may 00056 in part share the same code base, and are subject to their own licensing 00057 terms. 00058 00059 This license does not apply to files in the wxXtra directory, which 00060 are built into a separate library, and are subject to the wxWindows 00061 license contained within that directory in the file "WXXTRA-LICENSE". 00062 00063 This license does not apply to the binary libraries (if any) within 00064 the "libs" directory, which are subject to a separate license contained 00065 within that directory in the file "LIBS-LICENSE". 00066 00067 00068 ARRANGEMENTS FOR CONTRIBUTION OF MODIFICATIONS 00069 ---------------------------------------------- 00070 00071 Subject to the terms of the GNU Public License (see above), you are 00072 free to do whatever you like with your modifications. However, you may 00073 (at your option) wish contribute them to Xara's source tree. You can 00074 find details of how to do this at: 00075 http://www.xaraxtreme.org/developers/ 00076 00077 Prior to contributing your modifications, you will need to complete our 00078 contributor agreement. This can be found at: 00079 http://www.xaraxtreme.org/developers/contribute/ 00080 00081 Please note that Xara will not accept modifications which modify any of 00082 the text between the start and end of this header (marked 00083 XARAHEADERSTART and XARAHEADEREND). 00084 00085 00086 MARKS 00087 ----- 00088 00089 Xara, Xara LX, Xara X, Xara X/Xtreme, Xara Xtreme, the Xtreme and Xara 00090 designs are registered or unregistered trademarks, design-marks, and/or 00091 service marks of Xara Group Ltd. All rights in these marks are reserved. 00092 00093 00094 Xara Group Ltd, Gaddesden Place, Hemel Hempstead, HP2 6EX, UK. 00095 http://www.xara.com/ 00096 00097 =================================XARAHEADEREND============================ 00098 */ 00099 00100 #ifndef INC_RECHATTR 00101 #define INC_RECHATTR 00102 00103 //#include "cxfrech.h" - in camtypes.h [AUTOMATICALLY REMOVED] 00104 00105 class CXaraFileRecord; 00106 00107 /*********************************************************************************************** 00108 00109 > class LineAttrRecordHandler : public CamelotRecordHandler 00110 00111 Author: Mark_Neves (Xara Group Ltd) <camelotdev@xara.com> 00112 Created: 30/5/96 00113 Purpose: Handles the reading of all line attribute records in the v2 file format 00114 SeeAlso: - 00115 00116 ***********************************************************************************************/ 00117 00118 class LineAttrRecordHandler : public CamelotRecordHandler 00119 { 00120 // Give my name in memory dumps 00121 CC_DECLARE_DYNAMIC(LineAttrRecordHandler); 00122 00123 public: 00124 LineAttrRecordHandler() : CamelotRecordHandler() {} 00125 ~LineAttrRecordHandler() {} 00126 00127 // functions that must be implemented. 00128 virtual UINT32* GetTagList(); 00129 virtual BOOL HandleRecord(CXaraFileRecord* pCXaraFileRecord); 00130 00131 #ifdef XAR_TREE_DIALOG 00132 virtual void GetRecordDescriptionText(CXaraFileRecord* pCXaraFileRecord,StringBase* Str); 00133 #endif 00134 00135 private: 00136 BOOL HandleLineColourRecord(CXaraFileRecord* pCXaraFileRecord); 00137 BOOL HandleLineWidthRecord(CXaraFileRecord* pCXaraFileRecord); 00138 BOOL HandleLineTransparencyRecord(CXaraFileRecord* pCXaraFileRecord); 00139 BOOL HandleCapRecord(CXaraFileRecord* pCXaraFileRecord); 00140 BOOL HandleJoinStyleRecord(CXaraFileRecord* pCXaraFileRecord); 00141 BOOL HandleMitreLimitRecord(CXaraFileRecord* pCXaraFileRecord); 00142 BOOL HandleWindingRuleRecord(CXaraFileRecord* pCXaraFileRecord); 00143 BOOL HandleDashStyleRecord(CXaraFileRecord* pCXaraFileRecord); 00144 BOOL HandleDefineDashRecord(CXaraFileRecord* pCXaraFileRecord); 00145 BOOL HandleArrowHeadRecord(CXaraFileRecord* pCXaraFileRecord); 00146 BOOL HandleArrowTailRecord(CXaraFileRecord* pCXaraFileRecord); 00147 }; 00148 00149 /*********************************************************************************************** 00150 00151 > class FillAttrRecordHandler : public CamelotRecordHandler 00152 00153 Author: Mark_Neves (Xara Group Ltd) <camelotdev@xara.com> 00154 Created: 30/5/96 00155 Purpose: Handles the reading of all fill attribute records in the v2 file format 00156 SeeAlso: FlatFillAttribute 00157 00158 ***********************************************************************************************/ 00159 00160 class FillAttrRecordHandler : public CamelotRecordHandler 00161 { 00162 // Give my name in memory dumps 00163 CC_DECLARE_DYNAMIC(FillAttrRecordHandler); 00164 00165 public: 00166 FillAttrRecordHandler() : CamelotRecordHandler() {} 00167 ~FillAttrRecordHandler() {} 00168 00169 // functions that must be implemented. 00170 virtual UINT32* GetTagList(); 00171 virtual BOOL HandleRecord(CXaraFileRecord* pCXaraFileRecord); 00172 00173 #ifdef XAR_TREE_DIALOG 00174 virtual void GetRecordDescriptionText(CXaraFileRecord* pCXaraFileRecord,StringBase* Str); 00175 #endif 00176 00177 private: 00178 BOOL HandleFlatFillRecord(CXaraFileRecord* pCXaraFileRecord); 00179 BOOL HandleLinearFillRecord(CXaraFileRecord* pCXaraFileRecord); 00180 BOOL HandleMultiStageLinearFillRecord(CXaraFileRecord* pCXaraFileRecord); 00181 BOOL HandleEllipticalFillRecord(CXaraFileRecord* pCXaraFileRecord); 00182 BOOL HandleMultiStageCircularFillRecord(CXaraFileRecord * pCXaraFileRecord); 00183 BOOL HandleConicalFillRecord(CXaraFileRecord* pCXaraFileRecord); 00184 BOOL HandleMultiStageConicalFillRecord(CXaraFileRecord * pCXaraFileRecord); 00185 BOOL HandleSquareFillRecord(CXaraFileRecord* pCXaraFileRecord); 00186 BOOL HandleMultiStageSquareFillRecord(CXaraFileRecord* pCXaraFileRecord); 00187 BOOL HandleThreeColFillRecord(CXaraFileRecord* pCXaraFileRecord); 00188 BOOL HandleFourColFillRecord(CXaraFileRecord* pCXaraFileRecord); 00189 BOOL HandleBitmapFillRecord(CXaraFileRecord* pCXaraFileRecord); 00190 BOOL HandleFractalFillRecord(CXaraFileRecord* pCXaraFileRecord); 00191 BOOL HandleNoiseFillRecord(CXaraFileRecord* pCXaraFileRecord); 00192 00193 BOOL HandleFlatTransparentFillRecord(CXaraFileRecord* pCXaraFileRecord); 00194 BOOL HandleLinearTransparentFillRecord(CXaraFileRecord* pCXaraFileRecord); 00195 BOOL HandleEllipticalTransparentFillRecord(CXaraFileRecord* pCXaraFileRecord); 00196 BOOL HandleConicalTransparentFillRecord(CXaraFileRecord* pCXaraFileRecord); 00197 BOOL HandleSquareTransparentFillRecord(CXaraFileRecord* pCXaraFileRecord); 00198 BOOL HandleThreeColTransparentFillRecord(CXaraFileRecord* pCXaraFileRecord); 00199 BOOL HandleFourColTransparentFillRecord(CXaraFileRecord* pCXaraFileRecord); 00200 BOOL HandleBitmapTransparentFillRecord(CXaraFileRecord* pCXaraFileRecord); 00201 BOOL HandleFractalTransparentFillRecord(CXaraFileRecord* pCXaraFileRecord); 00202 BOOL HandleNoiseTransparentFillRecord(CXaraFileRecord* pCXaraFileRecord); 00203 00204 BOOL HandleFillRepeatRecord(CXaraFileRecord* pCXaraFileRecord); 00205 BOOL HandleTransparentFillRepeatRecord(CXaraFileRecord* pCXaraFileRecord); 00206 00207 BOOL HandleFillEffectRecord(CXaraFileRecord* pCXaraFileRecord); 00208 }; 00209 00210 /*********************************************************************************************** 00211 00212 > class GeneralAttrRecordHandler : public CamelotRecordHandler 00213 00214 Author: Mark_Neves (Xara Group Ltd) <camelotdev@xara.com> 00215 Created: 25/7/96 00216 Purpose: Handles the reading of all attribute records in the v2 file format 00217 that are not line or fill attributes 00218 SeeAlso: - 00219 00220 ***********************************************************************************************/ 00221 00222 class GeneralAttrRecordHandler : public CamelotRecordHandler 00223 { 00224 // Give my name in memory dumps 00225 CC_DECLARE_DYNAMIC(GeneralAttrRecordHandler); 00226 00227 public: 00228 GeneralAttrRecordHandler() : CamelotRecordHandler() {} 00229 ~GeneralAttrRecordHandler() {} 00230 00231 // functions that must be implemented. 00232 virtual UINT32* GetTagList(); 00233 virtual BOOL HandleRecord(CXaraFileRecord* pCXaraFileRecord); 00234 00235 #ifdef XAR_TREE_DIALOG 00236 virtual void GetRecordDescriptionText(CXaraFileRecord* pCXaraFileRecord,StringBase* Str); 00237 #endif 00238 00239 private: 00240 BOOL HandleQualityRecord(CXaraFileRecord* pCXaraFileRecord); 00241 BOOL HandleUserValueRecord(CXaraFileRecord* pCXaraFileRecord); 00242 BOOL HandleWebAddressRecord(CXaraFileRecord* pCXaraFileRecord); 00243 BOOL HandleWebAddressBoundingBoxRecord(CXaraFileRecord* pCXaraFileRecord); 00244 }; 00245 00246 #endif //INC_RECHATTR