opimgset.h

Go to the documentation of this file.
00001 // $Id: opimgset.h 1282 2006-06-09 09:46:49Z 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 // OpImgSet - Imagesetting related Ops
00099 
00100 #ifndef INC_OPIMGSET
00101 #define INC_OPIMGSET
00102 
00103 #include "colplate.h"
00104 //#include "selop.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00105 
00106 // The following Ops are defined in this file:
00107 #define OPTOKEN_COMPOSITEPREVIEW    _T("CompositePreview")
00108 #define OPTOKEN_IMAGESETTING        _T("ImagesettingSubmenu")
00109 #define OPTOKEN_OVERPRINTFILL       _T("OverprintFill")
00110 #define OPTOKEN_OVERPRINTLINE       _T("OverprintLine")
00111 #define OPTOKEN_PRINTONALLPLATES    _T("PrintOnAllPlates")
00112 
00113 #define OPTOKEN_CYANPREVIEW         _T("CyanPreview")
00114 #define OPTOKEN_MAGENTAPREVIEW      _T("MagentaPreview")
00115 #define OPTOKEN_YELLOWPREVIEW       _T("YellowPreview")
00116 #define OPTOKEN_KEYPREVIEW          _T("KeyPreview")
00117 #define OPTOKEN_MONOPLATEPREVIEW    _T("MonoPlatePreview")
00118 #define OPTOKEN_SHOWPRINTERCOLOURS  _T("ShowPrinterColours")
00119 #define OPTOKEN_CANCELPREVIEW       _T("CancelPreview")
00120 
00121 #define OPTOKEN_SPOTPREVIEWBASE     _T("SpotPreview")
00122 #define OPTOKEN_SPOTPREVIEW1        _T("SpotPreview1")
00123 #define OPTOKEN_SPOTPREVIEW2        _T("SpotPreview2")
00124 #define OPTOKEN_SPOTPREVIEW3        _T("SpotPreview3")
00125 #define OPTOKEN_SPOTPREVIEW4        _T("SpotPreview4")
00126 #define OPTOKEN_SPOTPREVIEW5        _T("SpotPreview5")
00127 #define OPTOKEN_SPOTPREVIEW6        _T("SpotPreview6")
00128 #define OPTOKEN_SPOTPREVIEW7        _T("SpotPreview7")
00129 #define OPTOKEN_SPOTPREVIEW8        _T("SpotPreview8")
00130 #define OPTOKEN_SPOTPREVIEWMORE     _T("SpotPreviewMore")
00131 
00132 // Centralised function which inits all of the other Ops in this file
00133 extern BOOL InitImagesettingOps(void);
00134 void SetNewColourPlate(ColourPlateType NewType, INT32 WhichToggle, INT32 WhichSpot);
00135 IndexedColour* FindWhichSpot(INT32 WhichSpot);
00136 
00137 
00138 /**************************************************************************************
00139 
00140 >   class OpToggleCompositePreview : public Operation
00141 
00142     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00143     Created:    6/6/96
00144 
00145     Purpose:    An Op for toggling composite print preview on and off
00146 
00147     Notes:      This Op is available from the main "Window" menu
00148 
00149 **************************************************************************************/
00150 
00151 class OpShowPrinterColours : public Operation
00152 {
00153     CC_DECLARE_DYNCREATE(OpShowPrinterColours)
00154 
00155 public:
00156     OpShowPrinterColours() : Operation() {};
00157 
00158     void Do(OpDescriptor* OpDesc);
00159 
00160     static BOOL Init(void);
00161     static OpState GetState(String_256 *ShadeReason, OpDescriptor *OpDesc);
00162 };
00163 
00164 
00165 /**************************************************************************************
00166 
00167 >   class OpToggleCompositePreview : public Operation
00168 
00169     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00170     Created:    6/6/96
00171 
00172     Purpose:    An Op for toggling composite print preview on and off
00173 
00174     Notes:      This Op is available from the main "Window" menu
00175 
00176 **************************************************************************************/
00177 
00178 class OpToggleCompositePreview : public Operation
00179 {
00180     CC_DECLARE_DYNCREATE(OpToggleCompositePreview)
00181 
00182 public:
00183     OpToggleCompositePreview();
00184 
00185     void Do(OpDescriptor*);
00186 
00187     static BOOL Init(void);
00188     static OpState GetState(String_256 *ShadeReason, OpDescriptor *OpDesc);
00189 
00190 protected:
00191     static BOOL CanToggleState(void);
00192     static BOOL IsInCompositeMode(void);
00193 };
00194 
00195 
00196 /**************************************************************************************
00197 
00198 >   class OpToggleCyanPreview : public Operation
00199 
00200     Author:     Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
00201     Created:    8/12/2003
00202 
00203     Purpose:    An Op for toggling cyan plate print preview on and off
00204 
00205     Notes:      This Op is available from the "Window/Show Printer Colours" submenu
00206 
00207 **************************************************************************************/
00208 
00209 class OpToggleCyanPreview : public Operation
00210 {
00211     CC_DECLARE_DYNCREATE(OpToggleCyanPreview)
00212 
00213 public:
00214     OpToggleCyanPreview() {};
00215 
00216     void Do(OpDescriptor*);
00217 
00218     static BOOL Init(void);
00219     static OpState GetState(String_256 *ShadeReason, OpDescriptor *OpDesc);
00220 
00221 protected:
00222     static BOOL CanToggleState(void);
00223     static BOOL IsInCyanMode(void);
00224 };
00225 
00226 
00227 /**************************************************************************************
00228 
00229 >   class OpToggleMagentaPreview : public Operation
00230 
00231     Author:     Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
00232     Created:    8/12/2003
00233 
00234     Purpose:    An Op for toggling Magenta plate print preview on and off
00235 
00236     Notes:      This Op is available from the "Window/Show Printer Colours" submenu
00237 
00238 **************************************************************************************/
00239 
00240 class OpToggleMagentaPreview : public Operation
00241 {
00242     CC_DECLARE_DYNCREATE(OpToggleMagentaPreview)
00243 
00244 public:
00245     OpToggleMagentaPreview() {};
00246 
00247     void Do(OpDescriptor*);
00248 
00249     static BOOL Init(void);
00250     static OpState GetState(String_256 *ShadeReason, OpDescriptor *OpDesc);
00251 
00252 protected:
00253     static BOOL CanToggleState(void);
00254     static BOOL IsInMagentaMode(void);
00255 };
00256 
00257 
00258 /**************************************************************************************
00259 
00260 >   class OpToggleYellowPreview : public Operation
00261 
00262     Author:     Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
00263     Created:    8/12/2003
00264 
00265     Purpose:    An Op for toggling Yellow plate print preview on and off
00266 
00267     Notes:      This Op is available from the "Window/Show Printer Colours" submenu
00268 
00269 **************************************************************************************/
00270 
00271 class OpToggleYellowPreview : public Operation
00272 {
00273     CC_DECLARE_DYNCREATE(OpToggleYellowPreview)
00274 
00275 public:
00276     OpToggleYellowPreview() {};
00277 
00278     void Do(OpDescriptor*);
00279 
00280     static BOOL Init(void);
00281     static OpState GetState(String_256 *ShadeReason, OpDescriptor *OpDesc);
00282 
00283 protected:
00284     static BOOL CanToggleState(void);
00285     static BOOL IsInYellowMode(void);
00286 };
00287 
00288 
00289 /**************************************************************************************
00290 
00291 >   class OpToggleKeyPreview : public Operation
00292 
00293     Author:     Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
00294     Created:    8/12/2003
00295 
00296     Purpose:    An Op for toggling Key plate print preview on and off
00297 
00298     Notes:      This Op is available from the "Window/Show Printer Colours" submenu
00299 
00300 **************************************************************************************/
00301 
00302 class OpToggleKeyPreview : public Operation
00303 {
00304     CC_DECLARE_DYNCREATE(OpToggleKeyPreview)
00305 
00306 public:
00307     OpToggleKeyPreview() {};
00308 
00309     void Do(OpDescriptor*);
00310 
00311     static BOOL Init(void);
00312     static OpState GetState(String_256 *ShadeReason, OpDescriptor *OpDesc);
00313 
00314 protected:
00315     static BOOL CanToggleState(void);
00316     static BOOL IsInKeyMode(void);
00317 };
00318 
00319 
00320 /**************************************************************************************
00321 
00322 >   class OpToggleSpotPreview : public Operation
00323 
00324     Author:     Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
00325     Created:    8/12/2003
00326 
00327     Purpose:    An Op for toggling Spot plate print preview on and off
00328 
00329     Notes:      This Op is available from the "Window/Show Printer Colours" submenu
00330 
00331 **************************************************************************************/
00332 
00333 class OpToggleSpotPreview : public Operation
00334 {
00335     CC_DECLARE_DYNCREATE(OpToggleSpotPreview)
00336 
00337 public:
00338     OpToggleSpotPreview() {};
00339 
00340     void Do(OpDescriptor*);
00341 
00342     static BOOL Init(void);
00343     static OpState GetState(String_256 *ShadeReason, OpDescriptor *OpDesc);
00344 
00345 protected:
00346     static BOOL CanToggleState(void);
00347     static BOOL IsInSpotMode(void);
00348 };
00349 
00350 
00351 /**************************************************************************************
00352 
00353 >   class OpToggleMonoPlatePreview : public Operation
00354 
00355     Author:     Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
00356     Created:    8/12/2003
00357 
00358     Purpose:    An Op for toggling mono plate print preview on and off
00359 
00360     Notes:      This Op is available from the "Window/Show Printer Colours" submenu
00361 
00362 **************************************************************************************/
00363 
00364 class OpToggleMonoPlatePreview : public Operation
00365 {
00366     CC_DECLARE_DYNCREATE(OpToggleMonoPlatePreview)
00367 
00368 public:
00369     OpToggleMonoPlatePreview() {};
00370 
00371     void Do(OpDescriptor*);
00372 
00373     static BOOL Init(void);
00374     static OpState GetState(String_256 *ShadeReason, OpDescriptor *OpDesc);
00375 
00376 protected:
00377     static BOOL CanToggleState(void);
00378     static BOOL IsInMonoMode(void);
00379 };
00380 
00381 
00382 
00383 /**************************************************************************************
00384 
00385 >   class OpOverprintLine : public SelOperation
00386 
00387     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00388     Created:    24/7/96
00389 
00390     Purpose:    An Op for toggling the AttrOverprintLine attribute
00391 
00392     Notes:      This Op is available from the context menu, when popped up
00393                 over a selection. It resides in the "Imagesetting" submenu.
00394                 See viewmenu.cpp for details.
00395 
00396 **************************************************************************************/
00397 
00398 class OpOverprintLine : public SelOperation
00399 {
00400     CC_DECLARE_DYNCREATE(OpOverprintLine)
00401 
00402 public:
00403     OpOverprintLine();
00404 
00405     void Do(OpDescriptor *OpDesc);
00406 
00407     static BOOL Init(void);
00408     static OpState GetState(String_256 *ShadeReason, OpDescriptor *OpDesc);
00409 
00410     // Karim 21/01/2000 - see UndoableOperation base implementation.
00411     virtual BOOL MayChangeNodeBounds() const { return FALSE; }
00412 };
00413 
00414 
00415 
00416 /**************************************************************************************
00417 
00418 >   class OpOverprintFill : public SelOperation
00419 
00420     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00421     Created:    24/7/96
00422 
00423     Purpose:    An Op for toggling the AttrOverprintFill attribute
00424 
00425     Notes:      This Op is available from the context menu, when popped up
00426                 over a selection. It resides in the "Imagesetting" submenu.
00427                 See viewmenu.cpp for details.
00428 
00429 **************************************************************************************/
00430 
00431 class OpOverprintFill : public SelOperation
00432 {
00433     CC_DECLARE_DYNCREATE(OpOverprintFill)
00434 
00435 public:
00436     OpOverprintFill();
00437 
00438     void Do(OpDescriptor *OpDesc);
00439 
00440     static BOOL Init(void);
00441     static OpState GetState(String_256 *ShadeReason, OpDescriptor *OpDesc);
00442 
00443     // Karim 21/01/2000 - see UndoableOperation base implementation.
00444     virtual BOOL MayChangeNodeBounds() const { return FALSE; }
00445 };
00446 
00447 
00448 
00449 /**************************************************************************************
00450 
00451 >   class OpPrintOnAllPlates : public SelOperation
00452 
00453     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00454     Created:    24/7/96
00455 
00456     Purpose:    An Op for toggling the AttrPrintOnAllPlates attribute
00457 
00458     Notes:      This Op is available from the context menu, when popped up
00459                 over a selection. It resides in the "Imagesetting" submenu.
00460                 See viewmenu.cpp for details.
00461 
00462 **************************************************************************************/
00463 
00464 class OpPrintOnAllPlates : public SelOperation
00465 {
00466     CC_DECLARE_DYNCREATE(OpPrintOnAllPlates)
00467 
00468 public:
00469     OpPrintOnAllPlates();
00470 
00471     void Do(OpDescriptor *OpDesc);
00472 
00473     static BOOL Init(void);
00474     static OpState GetState(String_256 *ShadeReason, OpDescriptor *OpDesc);
00475 
00476     // Karim 21/01/2000 - see UndoableOperation base implementation.
00477     virtual BOOL MayChangeNodeBounds() const { return FALSE; }
00478 };
00479 
00480 #endif
00481 

Generated on Sat Nov 10 03:46:16 2007 for Camelot by  doxygen 1.4.4