isetattr.h

Go to the documentation of this file.
00001 // $Id: isetattr.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 // isetattr.h - Imagesetting attributes (Overprint line/fill, Print on all plates)
00099 
00100 #ifndef INC_ISETATTR
00101 #define INC_ISETATTR
00102 
00103 //#include "attrval.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00104 //#include "cxfrech.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00105 //#include "nodeattr.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00106 
00107 
00108 
00109 /********************************************************************************************
00110 
00111 >   class ImagesettingAttrValue : public AttributeValue
00112 
00113     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00114     Created:    23/7/96
00115 
00116     Purpose:    Base class from which all binary imagesetting attribute values are derived
00117 
00118     SeeAlso:    OverprintLineAttrValue; OverprintFillAttrValue; PrintOnAllPlatesAttrValue
00119 
00120 ********************************************************************************************/
00121 
00122 class ImagesettingAttrValue : public AttributeValue
00123 {
00124     CC_DECLARE_DYNAMIC(ImagesettingAttrValue)
00125 
00126 public:
00127     ImagesettingAttrValue() {};
00128 
00129     virtual void Restore(RenderRegion *, BOOL) = 0;
00130     virtual INT32 operator==(const ImagesettingAttrValue &Attrib) = 0;
00131 };
00132 
00133 
00134 
00135 /***********************************************************************************************
00136 
00137 >   class AttrImagesetting : public NodeAttribute
00138 
00139     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00140     Created:    23/7/96
00141 
00142     Purpose:    Base class from which all imagesetting attributes are derived
00143 
00144     SeeAlso:    AttrOverprintLine; AttrOverprintFill; AttrPrintOnAllPlates
00145 
00146 ***********************************************************************************************/
00147 
00148 class AttrImagesetting : public NodeAttribute
00149 {
00150     CC_DECLARE_DYNCREATE(AttrImagesetting)
00151 
00152 public:     // Constructors
00153     AttrImagesetting();
00154     AttrImagesetting(Node *ContextNode,
00155                      AttachNodeDirection Direction,
00156                      BOOL Locked    = FALSE,
00157                      BOOL Mangled   = FALSE,
00158                      BOOL Marked    = FALSE,
00159                      BOOL Selected  = FALSE);
00160 
00161 public:
00162     virtual void Render(RenderRegion *pRender);
00163     virtual void CopyNodeContents(AttrImagesetting *NodeCopy);
00164     virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00165 };
00166 
00167 
00168 
00169 
00170 
00171 
00172 
00173 /********************************************************************************************
00174 
00175 >   class OverprintLineAttrValue : public ImagesettingAttrValue
00176 
00177     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00178     Created:    23/7/96
00179     Purpose:    Attribute value indicating if overprint-line is enabled or disabled
00180 
00181 ********************************************************************************************/
00182 
00183 class OverprintLineAttrValue : public ImagesettingAttrValue
00184 {
00185     CC_DECLARE_DYNCREATE(OverprintLineAttrValue)
00186 
00187 public:         // Construction/Initialisation
00188     OverprintLineAttrValue();
00189     OverprintLineAttrValue(BOOL OverprintIsOn);
00190 
00191     static BOOL Init(void);
00192 
00193 
00194 public:         // Overridden access methods
00195     virtual void Render(RenderRegion *pRegion, BOOL Temp = FALSE);
00196     virtual void Restore(RenderRegion *pRegion, BOOL Temp);
00197 
00198     virtual void SimpleCopy(AttributeValue *pValue);
00199     virtual NodeAttribute *MakeNode();
00200 
00201     virtual BOOL IsDifferent(AttributeValue *pAttr);
00202 
00203     virtual OverprintLineAttrValue &operator=(OverprintLineAttrValue &Attrib);
00204     virtual INT32 operator==(const ImagesettingAttrValue &Attrib);
00205 
00206 
00207 public:         // Specialised interface
00208     BOOL IsOverprintOn(void) const      { return(OverprintOn); };
00209     void SetOverprint(BOOL NewValue)    { OverprintOn = NewValue; };
00210 
00211 
00212 protected:      // Member variables - and no, you may not poke at them directly
00213     BOOL OverprintOn;
00214 };
00215 
00216 
00217 
00218 /***********************************************************************************************
00219 
00220 >   class AttrOverprintLine : public AttrImagesetting
00221 
00222     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00223     Created:    23/7/96
00224     Purpose:    Attribute indicating if overprint-line is enabled or disabled
00225 
00226 ***********************************************************************************************/
00227 
00228 class AttrOverprintLine : public AttrImagesetting
00229 {
00230     CC_DECLARE_DYNCREATE(AttrOverprintLine)
00231 
00232 public:     // Construction/Initialisation
00233     AttrOverprintLine(); 
00234     AttrOverprintLine(Node* ContextNode,  
00235                         AttachNodeDirection Direction,    
00236                         BOOL Locked     = FALSE,
00237                         BOOL Mangled    = FALSE,
00238                         BOOL Marked     = FALSE,
00239                         BOOL Selected   = FALSE);
00240 
00241 public:     // Overridden access functions
00242     virtual UINT32 GetAttrNameID(void);
00243     virtual AttrIndex GetAttributeIndex () { return ATTR_OVERPRINTLINE; }
00244     virtual void GetDebugDetails(StringBase *Str);
00245     virtual UINT32 GetNodeSize() const;
00246 
00247     virtual Node *SimpleCopy();
00248     virtual INT32 operator==(const NodeAttribute &NodeAttrib);
00249 
00250     virtual AttributeValue *GetAttributeValue()  { return(&Value); };
00251 
00252 //  virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00253 
00254 public:     // Save/load functions
00255     virtual BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter);
00256     virtual BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter);
00257 
00258 
00259 private:
00260 //  virtual void CopyNodeContents(AttrOverprintLine *NodeCopy);
00261 
00262 
00263 public:
00264     OverprintLineAttrValue Value;
00265 };
00266 
00267 
00268 
00269 
00270 
00271 /********************************************************************************************
00272 
00273 >   class OverprintFillAttrValue : public ImagesettingAttrValue
00274 
00275     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00276     Created:    23/7/96
00277     Purpose:    Attribute value indicating if overprint-Fill is enabled or disabled
00278 
00279 ********************************************************************************************/
00280 
00281 class OverprintFillAttrValue : public ImagesettingAttrValue
00282 {
00283     CC_DECLARE_DYNCREATE(OverprintFillAttrValue)
00284 
00285 public:         // Construction/Initialisation
00286     OverprintFillAttrValue();
00287     OverprintFillAttrValue(BOOL OverprintIsOn);
00288 
00289     static BOOL Init(void);
00290 
00291 
00292 public:         // Overridden access methods
00293     virtual void Render(RenderRegion *pRegion, BOOL Temp = FALSE);
00294     virtual void Restore(RenderRegion *pRegion, BOOL Temp);
00295 
00296     virtual void SimpleCopy(AttributeValue *pValue);
00297     virtual NodeAttribute *MakeNode();
00298 
00299     virtual BOOL IsDifferent(AttributeValue *pAttr);
00300 
00301     virtual OverprintFillAttrValue &operator=(OverprintFillAttrValue &Attrib);
00302     virtual INT32 operator==(const ImagesettingAttrValue &Attrib);
00303 
00304 
00305 public:         // Specialised interface
00306     BOOL IsOverprintOn(void) const      { return(OverprintOn); };
00307     void SetOverprint(BOOL NewValue)    { OverprintOn = NewValue; };
00308 
00309 
00310 protected:      // Member variables - and no, you may not poke at them directly
00311     BOOL OverprintOn;
00312 };
00313 
00314 
00315 
00316 
00317 
00318 /***********************************************************************************************
00319 
00320 >   class AttrOverprintFill : public AttrImagesetting
00321 
00322     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00323     Created:    23/7/96
00324     Purpose:    Attribute indicating if overprint-Fill is enabled or disabled
00325 
00326 ***********************************************************************************************/
00327 
00328 class AttrOverprintFill : public AttrImagesetting
00329 {
00330     CC_DECLARE_DYNCREATE(AttrOverprintFill)
00331 
00332 public:     // Construction/Initialisation
00333     AttrOverprintFill(); 
00334     AttrOverprintFill(Node* ContextNode,  
00335                         AttachNodeDirection Direction,    
00336                         BOOL Locked     = FALSE,
00337                         BOOL Mangled    = FALSE,
00338                         BOOL Marked     = FALSE,
00339                         BOOL Selected   = FALSE);
00340 
00341 public:     // Overridden access functions
00342     virtual UINT32 GetAttrNameID(void);
00343     virtual AttrIndex GetAttributeIndex () { return ATTR_OVERPRINTFILL; }
00344     virtual void GetDebugDetails(StringBase *Str);
00345     virtual UINT32 GetNodeSize() const;
00346 
00347     virtual Node *SimpleCopy();
00348     virtual INT32 operator==(const NodeAttribute &NodeAttrib);
00349 
00350     virtual AttributeValue *GetAttributeValue()  { return(&Value); };
00351 
00352 //  virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00353 
00354 public:     // Save/load functions
00355     virtual BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter);
00356     virtual BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter);
00357 
00358 
00359 private:
00360 //  void CopyNodeContents(AttrOverprintFill *NodeCopy);
00361 
00362 
00363 public:
00364     OverprintFillAttrValue Value;
00365 };
00366 
00367 
00368 
00369 
00370 
00371 /********************************************************************************************
00372 
00373 >   class PrintOnAllPlatesAttrValue : public ImagesettingAttrValue
00374 
00375     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00376     Created:    23/7/96
00377     Purpose:    Attribute value indicating if "print on all plates" is enabled or disabled
00378 
00379 ********************************************************************************************/
00380 
00381 class PrintOnAllPlatesAttrValue : public ImagesettingAttrValue
00382 {
00383     CC_DECLARE_DYNCREATE(PrintOnAllPlatesAttrValue)
00384 
00385 public:         // Construction/Initialisation
00386     PrintOnAllPlatesAttrValue();
00387     PrintOnAllPlatesAttrValue(BOOL PrintOnAllPlatesIsOn);
00388 
00389     static BOOL Init(void);
00390 
00391 
00392 public:         // Overridden access methods
00393     virtual void Render(RenderRegion *pRegion, BOOL Temp = FALSE);
00394     virtual void Restore(RenderRegion *pRegion, BOOL Temp);
00395 
00396     virtual void SimpleCopy(AttributeValue *pValue);
00397     virtual NodeAttribute *MakeNode();
00398 
00399     virtual BOOL IsDifferent(AttributeValue *pAttr);
00400 
00401     virtual PrintOnAllPlatesAttrValue &operator=(PrintOnAllPlatesAttrValue &Attrib);
00402     virtual INT32 operator==(const ImagesettingAttrValue &Attrib);
00403 
00404 
00405 public:         // Specialised interface
00406     BOOL IsPrintOnAllPlatesOn(void) const       { return(PrintOnAllPlates); };
00407     void SetPrintOnAllPlates(BOOL NewValue)     { PrintOnAllPlates = NewValue; };
00408 
00409 
00410 protected:      // Member variables - and no, you may not poke at them directly
00411     BOOL PrintOnAllPlates;
00412 };
00413 
00414 
00415 
00416 /***********************************************************************************************
00417 
00418 >   class AttrPrintOnAllPlates : public AttrImagesetting
00419 
00420     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00421     Created:    23/7/96
00422     Purpose:    Attribute indicating if "print on all plates" is enabled or disabled
00423 
00424 ***********************************************************************************************/
00425 
00426 class AttrPrintOnAllPlates : public AttrImagesetting
00427 {
00428     CC_DECLARE_DYNCREATE(AttrPrintOnAllPlates)
00429 
00430 public:     // Construction/Initialisation
00431     AttrPrintOnAllPlates(); 
00432     AttrPrintOnAllPlates(Node* ContextNode,  
00433                         AttachNodeDirection Direction,    
00434                         BOOL Locked     = FALSE,
00435                         BOOL Mangled    = FALSE,
00436                         BOOL Marked     = FALSE,
00437                         BOOL Selected   = FALSE);
00438 
00439 public:     // Overridden access functions
00440     virtual UINT32 GetAttrNameID(void);
00441     virtual AttrIndex GetAttributeIndex () { return ATTR_PRINTONALLPLATES; }
00442     virtual void GetDebugDetails(StringBase *Str);
00443     virtual UINT32 GetNodeSize() const;
00444 
00445     virtual Node *SimpleCopy();
00446     virtual INT32 operator==(const NodeAttribute &NodeAttrib);
00447 
00448     virtual AttributeValue *GetAttributeValue()  { return(&Value); };
00449 
00450 //  virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00451 
00452 public:     // Save/load functions
00453     virtual BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter);
00454     virtual BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter);
00455 
00456 
00457 private:
00458 //  void CopyNodeContents(AttrPrintOnAllPlates *NodeCopy);
00459 
00460 
00461 public:
00462     PrintOnAllPlatesAttrValue Value;
00463 };
00464 
00465 
00466 
00467 
00468 
00469 
00470 
00471 /***********************************************************************************************
00472 
00473 >   class ImagesettingAttrRecordHandler : public CamelotRecordHandler
00474 
00475     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00476     Created:    26/7/96
00477     Purpose:    Handles the reading of all imagesetting attribute records in the v2 file format
00478 
00479 ***********************************************************************************************/
00480 
00481 class CXaraFileRecord;
00482 
00483 class ImagesettingAttrRecordHandler : public CamelotRecordHandler
00484 {
00485     CC_DECLARE_DYNAMIC(ImagesettingAttrRecordHandler);
00486 
00487 public:
00488     ImagesettingAttrRecordHandler() : CamelotRecordHandler() {}
00489     ~ImagesettingAttrRecordHandler() {}
00490 
00491     // functions that must be implemented.
00492     virtual UINT32 *GetTagList();
00493     virtual BOOL HandleRecord(CXaraFileRecord *pCXaraFileRecord);
00494 };
00495 
00496 
00497 #endif
00498 

Generated on Sat Nov 10 03:45:34 2007 for Camelot by  doxygen 1.4.4