00001 // $Id: ftfilter.cpp 1680 2006-08-08 10:14:11Z gerry $ 00002 // $$ 00003 // 00004 // The Flare Template format 00005 /* @@tag:xara-cn@@ DO NOT MODIFY THIS LINE 00006 ================================XARAHEADERSTART=========================== 00007 00008 Xara LX, a vector drawing and manipulation program. 00009 Copyright (C) 1993-2006 Xara Group Ltd. 00010 Copyright on certain contributions may be held in joint with their 00011 respective authors. See AUTHORS file for details. 00012 00013 LICENSE TO USE AND MODIFY SOFTWARE 00014 ---------------------------------- 00015 00016 This file is part of Xara LX. 00017 00018 Xara LX is free software; you can redistribute it and/or modify it 00019 under the terms of the GNU General Public License version 2 as published 00020 by the Free Software Foundation. 00021 00022 Xara LX and its component source files are distributed in the hope 00023 that it will be useful, but WITHOUT ANY WARRANTY; without even the 00024 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00025 See the GNU General Public License for more details. 00026 00027 You should have received a copy of the GNU General Public License along 00028 with Xara LX (see the file GPL in the root directory of the 00029 distribution); if not, write to the Free Software Foundation, Inc., 51 00030 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00031 00032 00033 ADDITIONAL RIGHTS 00034 ----------------- 00035 00036 Conditional upon your continuing compliance with the GNU General Public 00037 License described above, Xara Group Ltd grants to you certain additional 00038 rights. 00039 00040 The additional rights are to use, modify, and distribute the software 00041 together with the wxWidgets library, the wxXtra library, and the "CDraw" 00042 library and any other such library that any version of Xara LX relased 00043 by Xara Group Ltd requires in order to compile and execute, including 00044 the static linking of that library to XaraLX. In the case of the 00045 "CDraw" library, you may satisfy obligation under the GNU General Public 00046 License to provide source code by providing a binary copy of the library 00047 concerned and a copy of the license accompanying it. 00048 00049 Nothing in this section restricts any of the rights you have under 00050 the GNU General Public License. 00051 00052 00053 SCOPE OF LICENSE 00054 ---------------- 00055 00056 This license applies to this program (XaraLX) and its constituent source 00057 files only, and does not necessarily apply to other Xara products which may 00058 in part share the same code base, and are subject to their own licensing 00059 terms. 00060 00061 This license does not apply to files in the wxXtra directory, which 00062 are built into a separate library, and are subject to the wxWindows 00063 license contained within that directory in the file "WXXTRA-LICENSE". 00064 00065 This license does not apply to the binary libraries (if any) within 00066 the "libs" directory, which are subject to a separate license contained 00067 within that directory in the file "LIBS-LICENSE". 00068 00069 00070 ARRANGEMENTS FOR CONTRIBUTION OF MODIFICATIONS 00071 ---------------------------------------------- 00072 00073 Subject to the terms of the GNU Public License (see above), you are 00074 free to do whatever you like with your modifications. However, you may 00075 (at your option) wish contribute them to Xara's source tree. You can 00076 find details of how to do this at: 00077 http://www.xaraxtreme.org/developers/ 00078 00079 Prior to contributing your modifications, you will need to complete our 00080 contributor agreement. This can be found at: 00081 http://www.xaraxtreme.org/developers/contribute/ 00082 00083 Please note that Xara will not accept modifications which modify any of 00084 the text between the start and end of this header (marked 00085 XARAHEADERSTART and XARAHEADEREND). 00086 00087 00088 MARKS 00089 ----- 00090 00091 Xara, Xara LX, Xara X, Xara X/Xtreme, Xara Xtreme, the Xtreme and Xara 00092 designs are registered or unregistered trademarks, design-marks, and/or 00093 service marks of Xara Group Ltd. All rights in these marks are reserved. 00094 00095 00096 Xara Group Ltd, Gaddesden Place, Hemel Hempstead, HP2 6EX, UK. 00097 http://www.xara.com/ 00098 00099 =================================XARAHEADEREND============================ 00100 */ 00101 00102 /* 00103 */ 00104 00105 #include "camtypes.h" 00106 //#include "app.h" - in camtypes.h [AUTOMATICALLY REMOVED] 00107 #include "chapter.h" 00108 #include "nodepath.h" 00109 00110 #include "ftfilter.h" 00111 //#include "oilfltrs.h" // Web oil filter i.e. Windows UI specific details e.g. extension - in camtypes.h [AUTOMATICALLY REMOVED] 00112 //#include "filtrres.h" // IDs 00113 #include "webparam.h" 00114 #include "xarprefs.h" 00115 #include "webprefs.h" // Web options dialog handler, WebPrefsDlgParam class 00116 #include "cxfile.h" // CXaraFile classes 00117 #include "cxftags.h" // The tags dude! 00118 00119 #include "cxftfile.h" 00120 00121 // An implement to match the Declare in the .h file. 00122 // This used to be derived from CamelotWebFilter 00123 CC_IMPLEMENT_DYNAMIC(FlareTemplateFilter, CamelotNativeFilter); 00124 00125 // This will get Camelot to display the filename and linenumber of any memory allocations 00126 // that are not released at program exit 00127 #define new CAM_DEBUG_NEW 00128 00129 00130 00131 INT32 FlareTemplateFilter::FTBitmapCompression = 75; 00132 BOOL FlareTemplateFilter::FTPreviewBitmapExport = FALSE; 00133 BOOL FlareTemplateFilter::FTConvertTextToOutlines = FALSE; 00134 BOOL FlareTemplateFilter::FTHTMLToClipboard = FALSE; 00135 BOOL FlareTemplateFilter::FTConvertBlendsToOutlines = FALSE; 00136 00137 00138 00139 00140 /******************************************************************************************** 00141 00142 > FlareTemplateFilter::FlareTemplateFilter() 00143 00144 Author: Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com> 00145 Created: 29/5/96 00146 Purpose: Constructor for the Native save/load filter. 00147 00148 ********************************************************************************************/ 00149 00150 FlareTemplateFilter::FlareTemplateFilter() 00151 { 00152 // Set up filter descriptions. 00153 FilterNameID = _R(IDS_FILTERNAME_FLARETEMPLATE); 00154 FilterInfoID = _R(IDS_FLARETEMPLATE_FILTERINFO); 00155 ImportMsgID = _R(IDS_IMPORTMSG_FLARETEMPLATE); 00156 ExportMsgID = _R(IDS_EXPORTMSG_FLARETEMPLATE); 00157 00158 FilterID = FILTERID_FLARETEMPLATE; 00159 00160 Flags.CanImport = FALSE; // Import needs TemplMan COM object 00161 Flags.CanExport = TRUE; 00162 00163 // Message to show when a problem file is encountered 00164 BadFileMsgID = _R(IDS_NOT_A_FLARETEMPLATE_FILE); 00165 } 00166 00167 00168 /******************************************************************************************** 00169 00170 > FlareTemplateFilter::~FlareTemplateFilter() 00171 00172 Author: Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com> 00173 Created: 29/5/96 00174 Purpose: Tidies up when the filter is destroyed. 00175 00176 ********************************************************************************************/ 00177 00178 FlareTemplateFilter::~FlareTemplateFilter() 00179 { 00180 00181 } 00182 00183 /******************************************************************************************** 00184 00185 > BOOL FlareTemplateFilter::Init() 00186 00187 Author: Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com> 00188 Created: 29/5/96 00189 Returns: TRUE if it worked, FALSE if it failed 00190 Purpose: Initalises the Filter ready for use. Will fail if it can not get enough 00191 memory to work with. 00192 00193 ********************************************************************************************/ 00194 00195 BOOL FlareTemplateFilter::Init() 00196 { 00197 // Get the OILFilter object 00198 pOILFilter = new FlareTemplateOILFilter(this); 00199 if (pOILFilter == NULL) 00200 return FALSE; 00201 00202 // Load the description strings 00203 FilterName.Load(FilterNameID); 00204 FilterInfo.Load(FilterInfoID); 00205 00206 BOOL ok = TRUE; 00207 00208 if (ok) ok = CreateRecordHandlers(); 00209 00210 if (Camelot.DeclareSection(_T("Filters"), 10)) 00211 { 00212 // Preferences for the Flare Template options dialog box 00213 00214 // These override the baseclass versions 00215 00216 // Preference for bitmap compression requested by the user 00217 // 101 -201 means use PNG but remember old JPEG setting 00218 // 0-100 use JPEG with this quality setting 00219 Camelot.DeclarePref( NULL, _T("FTBitmapCompression"), &FlareTemplateFilter::FTBitmapCompression, 0, 201 ); 00220 // Preference for whether we export a preview bitmap in web files 00221 Camelot.DeclarePref( NULL, _T("FTExportPreviewBitmap"), &FlareTemplateFilter::FTPreviewBitmapExport, 0, 1 ); 00222 // Preference for whether we convert all text to outlines in web files (baring some assumed fonts) 00223 Camelot.DeclarePref( NULL, _T("FTConvertTextToOutlines"), &FlareTemplateFilter::FTConvertTextToOutlines, 0, 1 ); 00224 // Preference for whether we export an HTML tag to the clipboard 00225 Camelot.DeclarePref( NULL, _T("FTHTMLToClipboard"), &FlareTemplateFilter::FTHTMLToClipboard, 0, 1 ); 00226 // Preference for whether we convert all blends to outlines in web files 00227 Camelot.DeclarePref( NULL, _T("FTConvertBlendsToOutlines"), &FlareTemplateFilter::FTConvertBlendsToOutlines, 0, 1 ); 00228 } 00229 00230 // All ok? 00231 return ok; 00232 } 00233 00234 /******************************************************************************************** 00235 00236 > virtual BOOL FlareTemplateFilter::SetTotalProgressBarCount(UINT32 n) 00237 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00238 Created: 21/07/97 00239 Inputs: n - max number for progress bar 00240 00241 ********************************************************************************************/ 00242 00243 BOOL FlareTemplateFilter::SetTotalProgressBarCount(UINT32 n) 00244 { 00245 TotalProgressBarCount = n; 00246 00247 if (TotalProgressBarCount == 0 && GetCCFile() != NULL) 00248 TotalProgressBarCount = GetCCFile()->Size(); 00249 00250 return(IncProgressBarCount(0)); 00251 } 00252 00253 00254 00255 /******************************************************************************************** 00256 00257 > virtual INT32 FlareTemplateFilter::HowCompatible(PathName& Filename, 00258 ADDR HeaderStart, 00259 UINT32 HeaderSize, 00260 UINT32 FileSize) 00261 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00262 Created: 16/07/97 00263 Inputs: FileName The name of the file being imported 00264 HeaderStart The address of the start of the data from the file which needs checking 00265 HeaderSize The size of this data that we should check 00266 FileSize The total size of the file 00267 Returns: 10 if the file is fully recognised or 0 otherwise 00268 Purpose: returns value in range 0 to 10 which indicates how much we like this file: 00269 0 => "Definitely Not" 00270 10 => "Yes Sir, that's my file format" 00271 00272 ********************************************************************************************/ 00273 00274 INT32 FlareTemplateFilter::HowCompatible(PathName& Filename, ADDR HeaderStart, 00275 UINT32 HeaderSize, UINT32 FileSize) 00276 { 00277 PORTNOTE("byteorder", "TODO: Check byte ordering") 00278 // How compatible we think the file is 00279 INT32 HowCompatible = 0; 00280 00281 // Check that we've got enough data to do our check 00282 if (HeaderSize > 9) 00283 { 00284 // Check that the first eight bytes are our magic identifier 00285 BYTE* pByte = (BYTE*)HeaderStart; 00286 // If the first 9 bytes are FLARETEXT and the next is a CR or LF then 00287 // it is most likely our format 00288 00289 if ((memcmp(pByte, "FLARETEXT", 9) == 0) && 00290 ((pByte[9] == 13) || (pByte[9] == 10))) 00291 { 00292 // We like this file 00293 HowCompatible = 9; 00294 } 00295 } 00296 00297 // TRACEUSER( "Gerry", _T("FTFilter::HowCompatible returning = %d\n"), HowCompatible); 00298 00299 // Return the found value to the caller. 00300 return(HowCompatible); 00301 } 00302 00303 00304 00305 00306 /******************************************************************************************** 00307 00308 > virtual CXaraFile* FlareTemplateFilter::CreateCXaraFile() 00309 00310 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00311 Created: 14/7/97 00312 Inputs: - 00313 Returns: ptr to a CXaraFile derived object that can be used for import or export 00314 NULL if there's an error 00315 Purpose: This overrides the BaseCamelotFilter version to return a CXaraTempateFile 00316 00317 ********************************************************************************************/ 00318 00319 CXaraFile* FlareTemplateFilter::CreateCXaraFile() 00320 { 00321 CXaraFile* pCXaraFile = new CXaraTemplateFile; 00322 00323 if (pCXaraFile != NULL) 00324 pCXaraFile->SetFilter(this); 00325 00326 return(pCXaraFile); 00327 } 00328 00329 00330 00331 /******************************************************************************************** 00332 / Start of Preference setting and getting code 00333 ********************************************************************************************/ 00334 00335 /******************************************************************************************** 00336 00337 > virtual INT32 FlareTemplateFilter::GetBitmapCompression() 00338 00339 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00340 Created: 22/07/97 00341 Inputs: - 00342 Returns: The current state of the bitmap compression. 00343 Purpose: Public access to the current bitmap compression which the user has requested 00344 to use when saving bitmaps in the web format. 00345 0 means maximum compression e.g. use JPEG filter at 0% lossy compression 00346 100 means minimum compression e.g. use JPEG filter at 100% lossy compression 00347 101 - 200 means lossless compression e.g. us PNG filter. 00348 Could use the no bitmap compression at all e.g. use BMP filter. Unused at present. 00349 (Very much like the JPEG compression percentage). 00350 Note: Virtual so that can be overriden in native filter to save in the proper native 00351 state 00352 00353 ********************************************************************************************/ 00354 00355 INT32 FlareTemplateFilter::GetBitmapCompression() 00356 { 00357 return FlareTemplateFilter::FTBitmapCompression; 00358 } 00359 00360 /******************************************************************************************** 00361 00362 > virtual INT32 FlareTemplateFilter::SetBitmapCompression(INT32 NewBmpComp) 00363 00364 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00365 Created: 22/07/97 00366 Inputs: New bitmap compression value 00367 Returns: The old current state of the bitmap compression. 00368 Purpose: Set up a new state for the the current bitmap compression. 00369 200 = no compression, 0 = full compression. 00370 (Very much like the JPEG compression percentage). 00371 00372 ********************************************************************************************/ 00373 00374 INT32 FlareTemplateFilter::SetBitmapCompression(INT32 NewBmpComp) 00375 { 00376 INT32 Old = FlareTemplateFilter::FTBitmapCompression; 00377 FlareTemplateFilter::FTBitmapCompression = NewBmpComp; 00378 return Old; 00379 } 00380 00381 /******************************************************************************************** 00382 00383 > virtual BOOL BaseCamelotFilter::GetPreviewBitmapExport() 00384 00385 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00386 Created: 22/07/97 00387 Inputs: - 00388 Returns: The current state of the export preview bitmap. 00389 Purpose: Public access to the current export preview bitmap which the user has requested 00390 to use when saving bitmaps in the web format. 00391 True means export a preview bitmap, False means do not. 00392 Note: Virtual so that can be overriden in native filter to save in the proper native 00393 state 00394 00395 ********************************************************************************************/ 00396 00397 BOOL FlareTemplateFilter::GetPreviewBitmapExport() 00398 { 00399 return FlareTemplateFilter::FTPreviewBitmapExport; 00400 } 00401 00402 /******************************************************************************************** 00403 00404 > virtual BOOL FlareTemplateFilter::SetPreviewBitmapExport(BOOL NewExportPreviewBmp) 00405 00406 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00407 Created: 22/07/97 00408 Inputs: New export preview bitmap state 00409 Returns: The old current state of the export preview bitmap. 00410 Purpose: Set up a new state for the the current export preview bitmap. 00411 True means export a preview bitmap, False means do not. 00412 00413 ********************************************************************************************/ 00414 00415 BOOL FlareTemplateFilter::SetPreviewBitmapExport(BOOL NewExportPreviewBmp) 00416 { 00417 BOOL Old = FlareTemplateFilter::FTPreviewBitmapExport; 00418 FlareTemplateFilter::FTPreviewBitmapExport = NewExportPreviewBmp; 00419 return Old; 00420 } 00421 00422 /******************************************************************************************** 00423 00424 > virtual BOOL FlareTemplateFilter::GetConvertTextToOutlines() 00425 00426 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00427 Created: 22/07/97 00428 Inputs: - 00429 Returns: The current state of the convert text to outlines. 00430 Purpose: Public access to the current convert text to outlines which the user has requested 00431 to use when saving in the web format. 00432 True means convert text to outlines, False means do not. 00433 Note: Virtual so that can be overriden in native filter to save in the proper native 00434 state 00435 00436 ********************************************************************************************/ 00437 00438 BOOL FlareTemplateFilter::GetConvertTextToOutlines() 00439 { 00440 return FlareTemplateFilter::FTConvertTextToOutlines; 00441 } 00442 00443 /******************************************************************************************** 00444 00445 > virtual BOOL FlareTemplateFilter::SetConvertTextToOutlines(BOOL NewConvertTextToOutlines) 00446 00447 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00448 Created: 22/07/97 00449 Inputs: New convert text to outlines state 00450 Returns: The old current state of the convert text to outlines. 00451 Purpose: Set up a new state for the the convert text to outlines. 00452 True means convert text to outlines, False means do not. 00453 00454 ********************************************************************************************/ 00455 00456 BOOL FlareTemplateFilter::SetConvertTextToOutlines(BOOL NewConvertTextToOutlines) 00457 { 00458 BOOL Old = FlareTemplateFilter::FTConvertTextToOutlines; 00459 FlareTemplateFilter::FTConvertTextToOutlines = NewConvertTextToOutlines; 00460 return Old; 00461 } 00462 00463 /******************************************************************************************** 00464 00465 > virtual BOOL FlareTemplateFilter::GetConvertBlendsToOutlines() 00466 00467 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00468 Created: 22/07/97 00469 Returns: The current state of the convert blends to outlines. 00470 Purpose: Public access to the current convert text to outlines which the user has requested 00471 to use when saving in the web format. 00472 True means convert blends to outlines, False means do not. 00473 00474 Added for WEBSTER 00475 00476 Note: Virtual so that can be overriden in native filter to save in the proper native 00477 state 00478 00479 ********************************************************************************************/ 00480 00481 BOOL FlareTemplateFilter::GetConvertBlendsToOutlines() 00482 { 00483 return FlareTemplateFilter::FTConvertBlendsToOutlines; 00484 } 00485 00486 /******************************************************************************************** 00487 00488 > virtual BOOL FlareTemplateFilter::SetConvertBlendsToOutlines(BOOL NewConvertBlendsToOutlines) 00489 00490 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00491 Created: 22/07/97 00492 Inputs: New convert blends to outlines state 00493 Returns: The old current state of the convert blends to outlines. 00494 Purpose: Set up a new state for the the convert blends to outlines. 00495 True means convert blends to outlines, False means do not. 00496 00497 Added for WEBSTER 00498 00499 ********************************************************************************************/ 00500 00501 BOOL FlareTemplateFilter::SetConvertBlendsToOutlines(BOOL NewConvertBlendsToOutlines) 00502 { 00503 BOOL Old = FlareTemplateFilter::FTConvertBlendsToOutlines; 00504 FlareTemplateFilter::FTConvertBlendsToOutlines = NewConvertBlendsToOutlines; 00505 return Old; 00506 } 00507 00508 /******************************************************************************************** 00509 00510 > virtual BOOL FlareTemplateFilter::GetRemoveInvisibleLayers() 00511 00512 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00513 Created: 22/07/97 00514 Inputs: - 00515 Returns: The current state of the remove invisible layers. 00516 Purpose: Public access to the current remove invisible layers which the user has requested 00517 to use when saving in the web format. 00518 True means remove invisible layers, False means do not. 00519 Note: Virtual so that can be overriden in native filter to save in the proper native 00520 state 00521 00522 ********************************************************************************************/ 00523 00524 BOOL FlareTemplateFilter::GetRemoveInvisibleLayers() 00525 { 00526 return(FALSE); 00527 } 00528 00529 /******************************************************************************************** 00530 00531 > virtual BOOL FlareTemplateFilter::SetRemoveInvisibleLayers(BOOL NewRemoveInvisibleLayers); 00532 00533 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00534 Created: 22/07/97 00535 Inputs: New remove invisible layers state 00536 Returns: The old current state of the remove invisible layers. 00537 Purpose: Set up a new state for the the remove invisible layers. 00538 True means remove invisible layers, False means do not. 00539 00540 ********************************************************************************************/ 00541 00542 BOOL FlareTemplateFilter::SetRemoveInvisibleLayers(BOOL NewRemoveInvisibleLayers) 00543 { 00544 return(FALSE); 00545 } 00546 00547 /******************************************************************************************** 00548 00549 > virtual BOOL FlareTemplateFilter::GetRemoveUnusedColours() 00550 00551 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00552 Created: 22/07/97 00553 Inputs: - 00554 Returns: The current state of the remove unused colours. 00555 Purpose: Public access to the current remove unused colours which the user has requested 00556 to use when saving in the web format. 00557 True means remove unused colours, False means do not. 00558 Note: Virtual so that can be overriden in native filter to save in the proper native 00559 state 00560 00561 ********************************************************************************************/ 00562 00563 BOOL FlareTemplateFilter::GetRemoveUnusedColours() 00564 { 00565 return FALSE; 00566 } 00567 00568 /******************************************************************************************** 00569 00570 > virtual BOOL FlareTemplateFilter::SetRemoveUnusedColours(BOOL NewRemoveUnusedColours) 00571 00572 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00573 Created: 22/07/97 00574 Inputs: New remove unused colours state 00575 Returns: The old current state of the remove unused colours. 00576 Purpose: Set up a new state for the the remove unused colours. 00577 True means remove unused colours, False means do not. 00578 00579 ********************************************************************************************/ 00580 00581 BOOL FlareTemplateFilter::SetRemoveUnusedColours(BOOL NewRemoveUnusedColours) 00582 { 00583 return(FALSE); 00584 } 00585 00586 00587 /******************************************************************************************** 00588 00589 > virtual BOOL FlareTemplateFilter::GetMinimalWebFormat() 00590 00591 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00592 Created: 22/07/97 00593 Inputs: - 00594 Returns: The current state of the min web format flag 00595 Purpose: Public access function 00596 00597 ********************************************************************************************/ 00598 00599 BOOL FlareTemplateFilter::GetMinimalWebFormat() 00600 { 00601 return(FALSE); 00602 } 00603 00604 /******************************************************************************************** 00605 00606 > virtual BOOL FlareTemplateFilter::SetMinimalWebFormat(BOOL NewMinimalWebFormat) 00607 00608 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00609 Created: 22/07/97 00610 Inputs: New min web format state 00611 Returns: The old current state. 00612 Purpose: Set up a new state for the min web format flag 00613 This is always disabled in this filter 00614 00615 ********************************************************************************************/ 00616 00617 BOOL FlareTemplateFilter::SetMinimalWebFormat(BOOL NewMinimalWebFormat) 00618 { 00619 return(FALSE); 00620 } 00621 00622 /******************************************************************************************** 00623 00624 > virtual BOOL FlareTemplateFilter::SetHTMLToClipboard(BOOL fNewValue) 00625 00626 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00627 Created: 22/07/97 00628 Inputs: New HTMLToClipboard state 00629 Returns: The old HTMLToClipboard state 00630 Purpose: Set a new state for HTMLToClipboard 00631 00632 ********************************************************************************************/ 00633 00634 BOOL FlareTemplateFilter::SetHTMLToClipboard(BOOL fNewValue) 00635 { 00636 BOOL Old = FlareTemplateFilter::FTHTMLToClipboard; 00637 FlareTemplateFilter::FTHTMLToClipboard = fNewValue; 00638 return Old; 00639 } 00640 00641 /******************************************************************************************** 00642 00643 > virtual BOOL FlareTemplateFilter::GetHTMLToClipboard() 00644 00645 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00646 Created: 22/07/97 00647 Inputs: - 00648 Returns: The current state of the HTMLToClipboard 00649 Purpose: Public access to the HTML to clipboard 00650 00651 ********************************************************************************************/ 00652 00653 BOOL FlareTemplateFilter::GetHTMLToClipboard() 00654 { 00655 return(FlareTemplateFilter::FTHTMLToClipboard); 00656 } 00657 00658 /******************************************************************************************** 00659 00660 > virtual BOOL FlareTemplateFilter::ShouldExportHTMLTag() 00661 00662 Author: Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com> 00663 Created: 22/07/97 00664 Inputs: - 00665 Returns: The current state of the HTMLToClipboard 00666 Purpose: Public access to the HTML to clipboard 00667 00668 ********************************************************************************************/ 00669 00670 BOOL FlareTemplateFilter::ShouldExportHTMLTag() 00671 { 00672 return(FlareTemplateFilter::FTHTMLToClipboard); 00673 } 00674 00675 00676 00677 /******************************************************************************************** 00678 / End of Preference setting and getting code 00679 ********************************************************************************************/