lineattr.h

Go to the documentation of this file.
00001 // $Id: lineattr.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 
00099 // Line Attribute definitions
00100 
00101 #ifndef INC_LINEATTR
00102 #define INC_LINEATTR
00103 
00104 //#include "nodeattr.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00105 //#include "doccolor.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00106 //#include "attr.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00107 //#include "fillattr.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00108 #include "fillattr2.h"
00109 //#include "rndrgn.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00110 
00111 class BlendAttrParam;
00112 class BaseCamelotFilter;
00113 
00114 /*Remember:: (Bodge)
00115 
00116 The NodeSize fns for those attributes which contain pointers will need changing 
00117 when we have decided what their format is to be. 
00118 
00119 Same for the operator== fns
00120 
00121 
00122 Simon
00123 */
00124 
00125 
00126 /***********************************************************************************************
00127 
00128 >   class AttrLineWidth : public NodeAttribute
00129 
00130     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00131     Created:    21/6/93
00132     Purpose:    Line Width Attribute class.
00133 
00134 ***********************************************************************************************/
00135 
00136 class AttrLineWidth : public NodeAttribute
00137 {
00138     CC_DECLARE_DYNCREATE(AttrLineWidth)
00139 
00140 public:
00141     AttrLineWidth(); 
00142     AttrLineWidth(Node* ContextNode,  
00143                       AttachNodeDirection Direction,    
00144                       BOOL Locked=FALSE, 
00145                       BOOL Mangled=FALSE,  
00146                       BOOL Marked=FALSE, 
00147                       BOOL Selected=FALSE); 
00148 
00149     void Render( RenderRegion* pRender );
00150 
00151     Node* SimpleCopy();                         // Copies a node
00152     virtual INT32 operator==(const NodeAttribute& NodeAttrib); 
00153     virtual UINT32 GetAttrNameID(void); 
00154 
00155     void ShowDebugTreeDetails() const;          // Debugging function
00156 
00157     void GetDebugDetails(StringBase* Str);
00158 
00159     virtual UINT32 GetNodeSize() const;             // Returns size of node in bytes
00160 
00161     virtual void Transform( TransformBase& );
00162     virtual BOOL EffectsParentBounds() { return TRUE; }
00163 
00164     virtual BOOL Blend(BlendAttrParam* pBlendParam);
00165 
00166     virtual AttributeValue* GetAttributeValue() { return &Value; }
00167     virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrLineWidth); }
00168     virtual AttrIndex GetAttributeIndex () { return ATTR_LINEWIDTH; }
00169 
00170     virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00171 
00172     // Version 2 file format functions
00173     virtual BOOL WritePreChildrenWeb(BaseCamelotFilter* pFilter);
00174     virtual BOOL WritePreChildrenNative(BaseCamelotFilter* pFilter);
00175 
00176     virtual NodeAttribute* GetOtherAttrToApply(BOOL* IsMutate);
00177     virtual BOOL OtherAttrIsAppliedSelectively() const { return TRUE; }
00178     virtual BOOL IsALineWidthAttr() const;
00179     virtual BOOL NeedsToRenderAtEachBrushStroke() const;
00180 
00181 private:
00182     void CopyNodeContents( AttrLineWidth* NodeCopy );
00183 
00184 public:
00185     LineWidthAttribute Value;
00186 };
00187 
00188 /********************************************************************************************
00189 
00190 >   class AttrStrokeColour : public AttrFillGeometry
00191 
00192     Author:     Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
00193     Created:    14/6/94
00194     Purpose:    Stroke Colour Attribute class.
00195 
00196 ********************************************************************************************/
00197 
00198 class AttrStrokeColour : public AttrFillGeometry
00199 {
00200     CC_DECLARE_DYNCREATE(AttrStrokeColour)
00201     
00202 public:
00203     AttrStrokeColour(); 
00204     AttrStrokeColour(Node* ContextNode,  
00205                       AttachNodeDirection Direction,    
00206                       BOOL Locked=FALSE, 
00207                       BOOL Mangled=FALSE,  
00208                       BOOL Marked=FALSE, 
00209                       BOOL Selected=FALSE); 
00210 
00211     void Render( RenderRegion* pRender );
00212 
00213     Node* SimpleCopy();                         // Copies a node
00214     virtual INT32 operator==(const NodeAttribute& NodeAttrib); 
00215     virtual UINT32 GetAttrNameID(void);
00216 
00217     virtual DocRect GetBlobBoundingRect() { return DocRect(0,0,0,0); }
00218     virtual BOOL EffectsParentBounds();
00219 
00220     virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrStrokeColour); }
00221     virtual AttributeValue* GetAttributeValue() { return &Value; }
00222     virtual AttrIndex GetAttributeIndex () { return ATTR_STROKECOLOUR; }
00223 
00224     virtual AttrFillGeometry* ChangeAttrValue(AttrValueChange*);
00225 
00226     virtual BOOL IsAStrokeColour() const { return TRUE; } 
00227 
00228     virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00229 
00230     // Version 2 file format functions
00231     virtual BOOL WritePreChildrenWeb(BaseCamelotFilter* pFilter);
00232     virtual BOOL WritePreChildrenNative(BaseCamelotFilter* pFilter);
00233     virtual BOOL WriteColourDefinitions (BaseCamelotFilter* pFilter);
00234 
00235 
00236 #ifdef _DEBUG
00237     void ShowDebugTreeDetails() const;          // Debugging function
00238 #endif
00239 
00240     void GetDebugDetails(StringBase* Str);
00241 
00242     virtual UINT32 GetNodeSize() const;             // Returns size of node in bytes
00243 
00244 private:
00245     void CopyNodeContents( AttrStrokeColour* NodeCopy );
00246 
00247 public:
00248     StrokeColourAttribute Value;
00249 };
00250 
00251 /********************************************************************************************
00252 
00253 >   class AttrStrokeTransp : public AttrFillGeometry
00254 
00255     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00256     Created:    30/11/94
00257     Purpose:    Stroke Transparency Attribute class.
00258 
00259 ********************************************************************************************/
00260 
00261 class AttrStrokeTransp : public AttrFillGeometry
00262 {
00263     CC_DECLARE_DYNCREATE(AttrStrokeTransp)
00264     
00265 public:
00266     AttrStrokeTransp(); 
00267     AttrStrokeTransp(Node* ContextNode,  
00268                       AttachNodeDirection Direction,    
00269                       BOOL Locked=FALSE, 
00270                       BOOL Mangled=FALSE,  
00271                       BOOL Marked=FALSE, 
00272                       BOOL Selected=FALSE); 
00273 
00274     void Render( RenderRegion* pRender );
00275 
00276     Node* SimpleCopy();                         // Copies a node
00277     virtual INT32 operator==(const NodeAttribute& NodeAttrib); 
00278     virtual UINT32 GetAttrNameID(void);
00279 
00280     virtual DocRect GetBlobBoundingRect() { return DocRect(0,0,0,0); }
00281 
00282     virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrStrokeTransp); }
00283     virtual AttributeValue* GetAttributeValue() { return &Value; }
00284     virtual AttrIndex GetAttributeIndex () { return ATTR_STROKETRANSP; }
00285 
00286     virtual AttrFillGeometry* ChangeAttrValue(AttrValueChange*);
00287 
00288     virtual BOOL IsAStrokeTransp() const { return TRUE; }
00289 
00290 #ifdef _DEBUG
00291     void ShowDebugTreeDetails() const;          // Debugging function
00292 #endif
00293 
00294     void GetDebugDetails(StringBase* Str);
00295 
00296     virtual UINT32 GetNodeSize() const;             // Returns size of node in bytes
00297 
00298     virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00299 
00300     // Version 2 file format functions
00301     virtual BOOL WritePreChildrenWeb(BaseCamelotFilter* pFilter);
00302     virtual BOOL WritePreChildrenNative(BaseCamelotFilter* pFilter);
00303 
00304     // Wasn't present before 19/11/97 Neville
00305     virtual BOOL NeedsTransparency() const;
00306 
00307 private:
00308     void CopyNodeContents( AttrStrokeTransp* NodeCopy );
00309 
00310 public:
00311     StrokeTranspAttribute Value;
00312 };
00313 
00314 /***********************************************************************************************
00315 
00316 >   class AttrStrokeColourChange : public AttrValueChange
00317 
00318     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00319     Created:    8/8/94
00320     Purpose:    Change Stroke colour Attribute class.
00321                 This Attribute never exists in the Tree.  It is used for changing the colours
00322                 of an existing Stroke.
00323     SeeAlso:    AttrFillGeometry
00324 
00325 ***********************************************************************************************/
00326 
00327 class AttrStrokeColourChange : public AttrValueChange
00328 {
00329     CC_DECLARE_DYNCREATE(AttrStrokeColourChange)
00330     
00331 public:
00332     //AttrStrokeColourChange() : AttrValueChange() {}
00333 
00334     AttrStrokeColourChange(BOOL bLineWidth=FALSE) : AttrValueChange() { m_bLineWidth = bLineWidth;}
00335 
00336     virtual AttributeValue* GetAttributeValue() { return &Value; }
00337     virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrStrokeColour); }
00338 
00339     virtual AttrFillGeometry* MutateFill(AttrFillGeometry* FillToMutate);
00340 
00341     // This routine returns any secondary attribute that needs to be changed,
00342     // when this attribute is changed.
00343     virtual NodeAttribute* GetOtherAttrToApply(BOOL* IsMutate);
00344 
00345     virtual UINT32 GetAttrNameID(void);
00346 
00347     virtual BOOL EffectsParentBounds();
00348 
00349 protected:
00350     StrokeColourAttribute Value;
00351 
00352 private:
00353     // Olivier 17/03/97
00354     // This boolean is used with the line width.
00355     // When "none" is selected in the line width combo-box, 
00356     // it will display "Undo line width change" rather than 
00357     // "Undo line colour change" in the undo list.
00358     BOOL m_bLineWidth;
00359 };
00360 
00361 /***********************************************************************************************
00362 
00363 >   class AttrStrokeTranspChange : public AttrValueChange
00364 
00365     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00366     Created:    8/8/94
00367     Purpose:    Change Stroke transparency Attribute class.
00368                 This Attribute never exists in the Tree.  It is used for changing the transp
00369                 of an existing Stroke.
00370     SeeAlso:    AttrFillGeometry
00371 
00372 ***********************************************************************************************/
00373 
00374 class AttrStrokeTranspChange : public AttrValueChange
00375 {
00376     CC_DECLARE_DYNCREATE(AttrStrokeTranspChange)
00377     
00378 public:
00379     AttrStrokeTranspChange() : AttrValueChange() {}
00380 
00381     virtual AttributeValue* GetAttributeValue() { return &Value; }
00382     virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrStrokeTransp); }
00383 
00384     virtual AttrFillGeometry* MutateFill(AttrFillGeometry* FillToMutate);
00385 
00386     virtual UINT32 GetAttrNameID(void);
00387 
00388 protected:
00389     StrokeTranspAttribute Value;
00390 };
00391 
00392 /***********************************************************************************************
00393 
00394 >   class AttrStrokeTranspTypeChange : public AttrValueChange
00395 
00396     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00397     Created:    8/8/94
00398     Purpose:    Change Stroke transparency Attribute class.
00399                 This Attribute never exists in the Tree.  It is used for changing the transp
00400                 of an existing Stroke.
00401     SeeAlso:    AttrFillGeometry
00402 
00403 ***********************************************************************************************/
00404 
00405 class AttrStrokeTranspTypeChange : public AttrValueChange
00406 {
00407     CC_DECLARE_DYNCREATE(AttrStrokeTranspTypeChange)
00408     
00409 public:
00410     AttrStrokeTranspTypeChange() : AttrValueChange() {}
00411 
00412     virtual AttributeValue* GetAttributeValue() { return &Value; }
00413     virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrStrokeTransp); }
00414 
00415     virtual AttrFillGeometry* MutateFill(AttrFillGeometry* FillToMutate);
00416 
00417     virtual UINT32 GetAttrNameID(void);
00418 
00419 protected:
00420     StrokeTranspAttribute Value;
00421 };
00422 
00423 /***********************************************************************************************
00424 
00425 >   class AttrStartArrow : public NodeAttribute
00426 
00427     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00428     Created:    09/7/93
00429     Purpose:    Start Arrow Attribute class.
00430     SeeAlso:    ArrowRec
00431 
00432 ***********************************************************************************************/
00433 
00434 class AttrStartArrow : public NodeAttribute
00435 {
00436     CC_DECLARE_DYNCREATE(AttrStartArrow)
00437     
00438 public:
00439     
00440     AttrStartArrow(); 
00441     AttrStartArrow(Node* ContextNode,  
00442                       AttachNodeDirection Direction,    
00443                       BOOL Locked=FALSE, 
00444                       BOOL Mangled=FALSE,  
00445                       BOOL Marked=FALSE, 
00446                       BOOL Selected=FALSE); 
00447 
00448     void Render( RenderRegion* pRender );
00449 
00450     virtual BOOL EffectsParentBounds();
00451     virtual DocRect GetAttrBoundingRect(NodeRenderableInk* pParent = NULL, CCAttrMap* pAttribMap = NULL);
00452 
00453     virtual AttributeValue* GetAttributeValue() { return &Value; }
00454     virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrStartArrow); }
00455     virtual AttrIndex GetAttributeIndex () { return ATTR_STARTARROW; }
00456 
00457     Node* SimpleCopy();                         // Copies a node
00458     virtual INT32 operator==(const NodeAttribute& NodeAttrib);
00459     virtual UINT32 GetAttrNameID(void); 
00460 
00461 
00462 #ifdef _DEBUG
00463     void ShowDebugTreeDetails() const;          // Debugging function
00464 #endif
00465     void GetDebugDetails(StringBase* Str);
00466 
00467     virtual UINT32 GetNodeSize() const;             // Returns size of node in bytes
00468 
00469     virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00470 
00471     // Version 2 file format functions
00472     virtual BOOL WritePreChildrenWeb(BaseCamelotFilter* pFilter);
00473     virtual BOOL WritePreChildrenNative(BaseCamelotFilter* pFilter);
00474 
00475 private:
00476     void CopyNodeContents( AttrStartArrow* NodeCopy );
00477 
00478 public:
00479     StartArrowAttribute Value;
00480 };
00481 
00482 /***********************************************************************************************
00483 
00484 >   class AttrEndArrow : public NodeAttribute
00485 
00486     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00487     Created:    09/7/93
00488     Purpose:    End Arrow Attribute class.
00489     SeeAlso:    ArrowRec
00490 
00491 ***********************************************************************************************/
00492 
00493 class AttrEndArrow : public NodeAttribute
00494 {
00495     CC_DECLARE_DYNCREATE(AttrEndArrow)
00496     
00497 public:
00498     AttrEndArrow(); 
00499     AttrEndArrow(Node* ContextNode,  
00500                       AttachNodeDirection Direction,    
00501                       BOOL Locked=FALSE, 
00502                       BOOL Mangled=FALSE,  
00503                       BOOL Marked=FALSE, 
00504                       BOOL Selected=FALSE); 
00505 
00506     void Render( RenderRegion* pRender );
00507 
00508     virtual BOOL EffectsParentBounds();
00509     virtual DocRect GetAttrBoundingRect(NodeRenderableInk* pParent = NULL, CCAttrMap* pAttribMap = NULL);
00510 
00511     virtual AttributeValue* GetAttributeValue() { return &Value; }
00512     virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrEndArrow); }
00513     virtual AttrIndex GetAttributeIndex () { return ATTR_ENDARROW; }
00514 
00515     Node* SimpleCopy();                         // Copies a node
00516     virtual INT32 operator==(const NodeAttribute& NodeAttrib);
00517     virtual UINT32 GetAttrNameID(void); 
00518 
00519 
00520 #ifdef _DEBUG
00521     void ShowDebugTreeDetails() const;          // Debugging function
00522 #endif
00523     void GetDebugDetails(StringBase* Str);
00524     virtual UINT32 GetNodeSize() const;             // Returns size of node in bytes
00525 
00526     virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00527 
00528     // Version 2 file format functions
00529     virtual BOOL WritePreChildrenWeb(BaseCamelotFilter* pFilter);
00530     virtual BOOL WritePreChildrenNative(BaseCamelotFilter* pFilter);
00531 
00532 private:
00533     void CopyNodeContents( AttrEndArrow* NodeCopy );
00534 
00535 public:
00536     EndArrowAttribute Value;
00537 };
00538 
00539 /***********************************************************************************************
00540 
00541 >   class AttrStartCap : public NodeAttribute
00542 
00543     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00544     Created:    09/7/93
00545     Purpose:    Start Cap Attribute class.
00546     SeeAlso:    LineCapType
00547 
00548 ***********************************************************************************************/
00549 
00550 class AttrStartCap : public NodeAttribute
00551 {
00552     CC_DECLARE_DYNCREATE(AttrStartCap)
00553     
00554 public:
00555     AttrStartCap(); 
00556     AttrStartCap(Node* ContextNode,  
00557                       AttachNodeDirection Direction,    
00558                       BOOL Locked=FALSE, 
00559                       BOOL Mangled=FALSE,  
00560                       BOOL Marked=FALSE, 
00561                       BOOL Selected=FALSE); 
00562 
00563     void Render( RenderRegion* pRender );
00564 
00565     Node* SimpleCopy();                         // Copies a node
00566     virtual INT32 operator==(const NodeAttribute& NodeAttrib);
00567     virtual UINT32 GetAttrNameID(void); 
00568 
00569     virtual AttributeValue* GetAttributeValue() { return &Value; }
00570     virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrStartCap); }
00571     virtual AttrIndex GetAttributeIndex () { return ATTR_STARTCAP; }
00572 
00573     virtual UINT32 GetNodeSize() const;             // Returns size of node in bytes
00574 
00575     virtual BOOL EffectsParentBounds() { return TRUE; }
00576 
00577 #ifdef _DEBUG
00578     void ShowDebugTreeDetails() const;          // Debugging function
00579 #endif
00580     void GetDebugDetails(StringBase* Str);
00581 
00582     virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00583 
00584     // Version 2 file format functions
00585     virtual BOOL WritePreChildrenWeb(BaseCamelotFilter* pFilter);
00586     virtual BOOL WritePreChildrenNative(BaseCamelotFilter* pFilter);
00587 
00588 private:
00589     void CopyNodeContents( AttrStartCap* NodeCopy );
00590 
00591 public:
00592     StartCapAttribute Value;
00593 };
00594 
00595 /***********************************************************************************************
00596 
00597 >   class AttrJoinType : public NodeAttribute
00598 
00599     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00600     Created:    09/7/93
00601     Purpose:    JoinType Attribute class.
00602     SeeAlso:    JointType
00603 
00604 ***********************************************************************************************/
00605 
00606 class AttrJoinType : public NodeAttribute
00607 {
00608     CC_DECLARE_DYNCREATE(AttrJoinType)
00609     
00610 public:
00611     AttrJoinType(); 
00612     AttrJoinType(Node* ContextNode,  
00613                       AttachNodeDirection Direction,    
00614                       BOOL Locked=FALSE, 
00615                       BOOL Mangled=FALSE,  
00616                       BOOL Marked=FALSE, 
00617                       BOOL Selected=FALSE); 
00618 
00619     void Render( RenderRegion* pRender );
00620 
00621     Node* SimpleCopy();                         // Copies a node
00622     virtual INT32 operator==(const NodeAttribute& NodeAttrib); 
00623     virtual UINT32 GetAttrNameID(void);
00624 
00625     virtual AttributeValue* GetAttributeValue() { return &Value; }
00626     virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrJoinType); }
00627     virtual AttrIndex GetAttributeIndex () { return ATTR_JOINTYPE; }
00628 
00629     virtual BOOL EffectsParentBounds() { return TRUE; }
00630 
00631 #ifdef _DEBUG
00632     void ShowDebugTreeDetails() const;          // Debugging function
00633 #endif
00634     void GetDebugDetails(StringBase* Str);
00635 
00636     virtual UINT32 GetNodeSize() const;             // Returns size of node in bytes
00637 
00638     virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00639 
00640     // Version 2 file format functions
00641     virtual BOOL WritePreChildrenWeb(BaseCamelotFilter* pFilter);
00642     virtual BOOL WritePreChildrenNative(BaseCamelotFilter* pFilter);
00643 
00644 private:
00645     void CopyNodeContents( AttrJoinType* NodeCopy );
00646 
00647 public:
00648     JoinTypeAttribute Value;
00649 };
00650 
00651 /***********************************************************************************************
00652 
00653 >   class AttrMitreLimit : public NodeAttribute
00654 
00655     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00656     Created:    09/7/93
00657     Purpose:    Mitre Limit Attribute class.
00658 
00659 ***********************************************************************************************/
00660 
00661 class AttrMitreLimit : public NodeAttribute
00662 {
00663     CC_DECLARE_DYNCREATE(AttrMitreLimit)
00664     
00665 public:
00666     AttrMitreLimit(); 
00667     AttrMitreLimit(Node* ContextNode,  
00668                       AttachNodeDirection Direction,    
00669                       BOOL Locked=FALSE, 
00670                       BOOL Mangled=FALSE,  
00671                       BOOL Marked=FALSE, 
00672                       BOOL Selected=FALSE); 
00673 
00674     void Render( RenderRegion* pRender );
00675 
00676     Node* SimpleCopy();                         // Copies a node
00677     virtual INT32 operator==(const NodeAttribute& NodeAttrib);
00678     virtual UINT32 GetAttrNameID(void); 
00679 
00680     virtual AttributeValue* GetAttributeValue() { return &Value; }
00681     virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrMitreLimit); }
00682     virtual AttrIndex GetAttributeIndex () { return ATTR_MITRELIMIT; }
00683 
00684     virtual BOOL EffectsParentBounds() { return TRUE; }
00685 
00686 #ifdef _DEBUG
00687     void ShowDebugTreeDetails() const;          // Debugging function
00688 #endif
00689     void GetDebugDetails(StringBase* Str);
00690 
00691     virtual UINT32 GetNodeSize() const;             // Returns size of node in bytes
00692 
00693     virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00694 
00695     // Version 2 file format functions
00696     virtual BOOL WritePreChildrenWeb(BaseCamelotFilter* pFilter);
00697     virtual BOOL WritePreChildrenNative(BaseCamelotFilter* pFilter);
00698 
00699 private:
00700     void CopyNodeContents( AttrMitreLimit* NodeCopy );
00701 
00702 public:
00703     MitreLimitAttribute Value;
00704 };
00705 
00706 /***********************************************************************************************
00707 
00708 >   class AttrWindingRule : public NodeAttribute
00709 
00710     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00711     Created:    09/7/93
00712     Purpose:    Winding Rule Attribute class.
00713     SeeAlso:    WindingType
00714 
00715 ***********************************************************************************************/
00716 
00717 class AttrWindingRule : public NodeAttribute
00718 {
00719     CC_DECLARE_DYNCREATE(AttrWindingRule)
00720     
00721 public:
00722     AttrWindingRule(); 
00723     AttrWindingRule(Node* ContextNode,  
00724                       AttachNodeDirection Direction,    
00725                       BOOL Locked=FALSE, 
00726                       BOOL Mangled=FALSE,  
00727                       BOOL Marked=FALSE, 
00728                       BOOL Selected=FALSE); 
00729 
00730     void Render( RenderRegion* pRender );
00731 
00732     Node* SimpleCopy();                         // Copies a node
00733     virtual INT32 operator==(const NodeAttribute& NodeAttrib); 
00734     virtual UINT32 GetAttrNameID(void);
00735 
00736     virtual AttributeValue* GetAttributeValue() { return &Value; }
00737     virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrWindingRule); }
00738     virtual AttrIndex GetAttributeIndex () { return ATTR_WINDINGRULE; }
00739 
00740 #ifdef _DEBUG
00741     void ShowDebugTreeDetails() const;          // Debugging function
00742 #endif
00743     void GetDebugDetails(StringBase* Str);
00744 
00745     virtual UINT32 GetNodeSize() const;             // Returns size of node in bytes
00746 
00747     virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00748 
00749     // Version 2 file format functions
00750     virtual BOOL WritePreChildrenWeb(BaseCamelotFilter* pFilter);
00751     virtual BOOL WritePreChildrenNative(BaseCamelotFilter* pFilter);
00752 
00753 private:
00754     void CopyNodeContents( AttrWindingRule* NodeCopy );
00755 
00756 public:
00757     WindingRuleAttribute Value;
00758 };
00759 
00760 /***********************************************************************************************
00761 
00762 >   class AttrDashPattern : public NodeAttribute
00763 
00764     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00765     Created:    09/7/93
00766     Purpose:    Dash Pattern Attribute class.
00767     SeeAlso:    DashRec
00768 
00769 ***********************************************************************************************/
00770 
00771 class AttrDashPattern : public NodeAttribute
00772 {
00773     CC_DECLARE_DYNCREATE(AttrDashPattern)
00774     
00775 public:
00776     AttrDashPattern(); 
00777     AttrDashPattern(Node* ContextNode,  
00778                       AttachNodeDirection Direction,    
00779                       BOOL Locked=FALSE, 
00780                       BOOL Mangled=FALSE,  
00781                       BOOL Marked=FALSE, 
00782                       BOOL Selected=FALSE); 
00783 
00784     void Render( RenderRegion* pRender );
00785 
00786     Node* SimpleCopy();                         // Copies a node
00787     virtual INT32 operator==(const NodeAttribute& NodeAttrib); 
00788     virtual UINT32 GetAttrNameID(void);
00789 
00790     virtual AttributeValue* GetAttributeValue() { return &Value; }
00791     virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrDashPattern); }
00792 
00793     virtual AttrIndex GetAttributeIndex () { return ATTR_DASHPATTERN; }
00794 
00795     virtual UINT32 GetNodeSize() const;             // Returns size of node in bytes
00796 
00797 #ifdef _DEBUG
00798     void ShowDebugTreeDetails() const;          // Debugging function
00799 #endif
00800     void GetDebugDetails(StringBase* Str);
00801 
00802     virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00803 
00804     // Version 2 file format functions
00805     virtual BOOL WritePreChildrenWeb(BaseCamelotFilter* pFilter);
00806     virtual BOOL WritePreChildrenNative(BaseCamelotFilter* pFilter);
00807 
00808 private:
00809     void CopyNodeContents( AttrDashPattern* NodeCopy );
00810 
00811 public:
00812     DashPatternAttribute Value;
00813 };
00814 
00815 #endif
00816 
00817 

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