#include <attrval.h>
Inheritance diagram for AttributeValue:
Public Member Functions | |
AttributeValue () | |
virtual | ~AttributeValue () |
virtual void | Render (RenderRegion *, BOOL Temp=FALSE)=0 |
virtual void | Restore (RenderRegion *, BOOL Temp)=0 |
virtual void | GoingOutOfScope (RenderRegion *pRender) |
virtual void | SimpleCopy (AttributeValue *)=0 |
virtual NodeAttribute * | MakeNode () |
Used when restoring attributes from the render region's context stack.Used when a render region needs to change a particular rendering attribute.This function provides a way of copying the contents of an AttributeValue derived class to another. It is assumed that the source object is the same class as the destination object. The data from the object pointed to by pAttr is copied into this object. This is primarily used when cloning render regions - the context stack must be copied, and if it points to any temporary objects, then they must be copied too, to avoid multiple deletion errors. Given an AttributeValue object, construct the appropriate NodeAttribute object which can be put into a document tree. This should be over-ridden for all derived AttributeValue classes, except those that cannot be put into the document tree (e.g. DrawingModeAttribute). The base class version (i.e. this one) will always ENSURE because it should not be called. | |
virtual NodeAttribute * | MakeNode (Node *pContextNode, AttachNodeDirection Direction) |
Convert an attribute value into an attribute node and attatch to the context node. | |
virtual BOOL | IsDifferent (AttributeValue *) |
Compare two AttributeValue objects. The base class version always returns TRUE - derived classes should override this function to provide functionality. | |
virtual BOOL | Blend (BlendAttrParam *pBlendParam) |
Blends this attr val with the attr val associated with the other NodeAttribute ptr held in pBlendParam This base version just returns FALSE, and sets the blended attr val ptr to NULL. | |
virtual INT32 | operator= (AttributeValue &Attrib) |
virtual AttributeValue * | MouldIntoStroke (PathStrokerVector *pMoulder, double TransScale=1.0) |
Helper function for the PathStrokerVector class, which "moulds" clipart subtrees to lie along an arbitrary path. | |
virtual BOOL | CanBeRenderedDirectly () |
Definition at line 134 of file attrval.h.
|
Definition at line 138 of file attrval.h.
|
|
Definition at line 139 of file attrval.h.
|
|
Blends this attr val with the attr val associated with the other NodeAttribute ptr held in pBlendParam This base version just returns FALSE, and sets the blended attr val ptr to NULL.
Reimplemented in LineWidthAttribute, BrushAttrValue, FillGeometryAttribute, FlatFillAttribute, GradFillAttribute, FlatTranspFillAttribute, GradTranspFillAttribute, StrokeTranspAttribute, FeatherAttrValue, UserAttribute, and WebAddressAttribute. Definition at line 308 of file attr.cpp. 00309 { 00310 ERROR3("AttributeValue::Blend() called"); 00311 pBlendParam->SetBlendedAttrVal(NULL); 00312 return FALSE; 00313 }
|
|
Reimplemented in FeatherAttrValue, and GeometryLinkedAttrValue. Definition at line 376 of file attr.cpp. 00377 { 00378 return TRUE; 00379 }
|
|
Reimplemented in BevelAttributeValueType, BrushAttrValue, ClipRegionAttribute, and StrokeTypeAttrValue. Definition at line 147 of file attrval.h.
|
|
|
Convert an attribute value into an attribute node and attatch to the context node.
Reimplemented in BevelAttributeValueType. Definition at line 258 of file attr.cpp. 00259 { 00260 NodeAttribute* pAttrNode=MakeNode(); 00261 if (pAttrNode!=NULL) 00262 pAttrNode->AttachNode(pContextNode, Direction, FALSE); 00263 return pAttrNode; 00264 }
|
|
Used when restoring attributes from the render region's context stack.Used when a render region needs to change a particular rendering attribute.This function provides a way of copying the contents of an AttributeValue derived class to another. It is assumed that the source object is the same class as the destination object. The data from the object pointed to by pAttr is copied into this object. This is primarily used when cloning render regions - the context stack must be copied, and if it points to any temporary objects, then they must be copied too, to avoid multiple deletion errors. Given an AttributeValue object, construct the appropriate NodeAttribute object which can be put into a document tree. This should be over-ridden for all derived AttributeValue classes, except those that cannot be put into the document tree (e.g. DrawingModeAttribute). The base class version (i.e. this one) will always ENSURE because it should not be called.
Reimplemented in BevelAttributeValueIndent, BevelAttributeValueLightAngle, BevelAttributeValueContrast, BevelAttributeValueType, BevelAttributeValueLightTilt, LineWidthAttribute, StartArrowAttribute, EndArrowAttribute, StartCapAttribute, JoinTypeAttribute, MitreLimitAttribute, WindingRuleAttribute, DashPatternAttribute, DrawingModeAttribute, BrushAttrValue, ClipRegionAttribute, FlatFillAttribute, LinearFillAttribute, RadialFillAttribute, ConicalFillAttribute, SquareFillAttribute, ThreeColFillAttribute, FourColFillAttribute, BitmapFillAttribute, NoiseFillAttribute, FractalFillAttribute, FlatTranspFillAttribute, LinearTranspFillAttribute, RadialTranspFillAttribute, ConicalTranspFillAttribute, SquareTranspFillAttribute, BitmapTranspFillAttribute, NoiseTranspFillAttribute, FractalTranspFillAttribute, ThreeColTranspFillAttribute, FourColTranspFillAttribute, FillMappingLinearAttribute, FillMappingSinAttribute, FillEffectFadeAttribute, FillEffectRainbowAttribute, FillEffectAltRainbowAttribute, TranspFillMappingLinearAttribute, TranspFillMappingSinAttribute, StrokeColourAttribute, StrokeTranspAttribute, MouldAttribute, FeatherAttrValue, OverprintLineAttrValue, OverprintFillAttrValue, PrintOnAllPlatesAttrValue, QualityAttribute, StrokeTypeAttrValue, VariableWidthAttrValue, TxtFontTypefaceAttribute, TxtFontSizeAttribute, TxtBoldAttribute, TxtItalicAttribute, TxtUnderlineAttribute, TxtJustificationAttribute, TxtTrackingAttribute, TxtAspectRatioAttribute, TxtScriptAttribute, TxtBaseLineAttribute, TxtLineSpaceAttribute, TxtRulerAttribute, TxtLeftMarginAttribute, TxtRightMarginAttribute, TxtFirstIndentAttribute, UserAttribute, and WebAddressAttribute. Definition at line 238 of file attr.cpp. 00239 { 00240 TRACE( wxT("Error - Base class MakeNode() function called for a %s\n"), 00241 GetRuntimeClass()->GetClassName() ); 00242 return NULL; 00243 }
|
|
Helper function for the PathStrokerVector class, which "moulds" clipart subtrees to lie along an arbitrary path.
Notes: The base class does nothing (it returns NULL - by default, attrs assume that they will work OK when moulded without being changed) Reimplemented in LineWidthAttribute, FillGeometryAttribute, FlatFillAttribute, LinearFillAttribute, RadialFillAttribute, LinearTranspFillAttribute, and RadialTranspFillAttribute. Definition at line 351 of file attr.cpp. 00352 { 00353 return(NULL); 00354 }
|
|
Reimplemented in BevelAttributeValueType. Definition at line 160 of file attrval.h. 00160 { return TRUE; }
|
|
Implemented in BevelAttributeValueIndent, BevelAttributeValueLightAngle, BevelAttributeValueContrast, BevelAttributeValueType, BevelAttributeValueLightTilt, LineWidthAttribute, StartArrowAttribute, EndArrowAttribute, StartCapAttribute, JoinTypeAttribute, MitreLimitAttribute, WindingRuleAttribute, DashPatternAttribute, DrawingModeAttribute, BrushAttrValue, ClipRegionAttribute, FillGeometryAttribute, ColourFillAttribute, BitmapFillAttribute, TranspFillAttribute, BitmapTranspFillAttribute, FillMappingAttribute, FillEffectAttribute, TranspFillMappingAttribute, StrokeColourAttribute, StrokeTranspAttribute, MouldAttribute, FeatherAttrValue, OverprintLineAttrValue, OverprintFillAttrValue, PrintOnAllPlatesAttrValue, OffscreenAttrValue, QualityAttribute, StrokeTypeAttrValue, VariableWidthAttrValue, TxtFontTypefaceAttribute, TxtFontSizeAttribute, TxtBoldAttribute, TxtItalicAttribute, TxtUnderlineAttribute, TxtJustificationAttribute, TxtTrackingAttribute, TxtAspectRatioAttribute, TxtScriptAttribute, TxtBaseLineAttribute, TxtLineSpaceAttribute, TxtRulerAttribute, TxtLeftMarginAttribute, TxtRightMarginAttribute, TxtFirstIndentAttribute, UserAttribute, and WebAddressAttribute. |
|
Implemented in BevelAttributeValueIndent, BevelAttributeValueLightAngle, BevelAttributeValueContrast, BevelAttributeValueType, BevelAttributeValueLightTilt, LineWidthAttribute, StartArrowAttribute, EndArrowAttribute, StartCapAttribute, JoinTypeAttribute, MitreLimitAttribute, WindingRuleAttribute, DashPatternAttribute, DrawingModeAttribute, BrushAttrValue, ClipRegionAttribute, FillGeometryAttribute, ColourFillAttribute, BitmapFillAttribute, TranspFillAttribute, BitmapTranspFillAttribute, FillMappingAttribute, FillEffectAttribute, TranspFillMappingAttribute, StrokeColourAttribute, StrokeTranspAttribute, MouldAttribute, FeatherAttrValue, ImagesettingAttrValue, OverprintLineAttrValue, OverprintFillAttrValue, PrintOnAllPlatesAttrValue, OffscreenAttrValue, QualityAttribute, StrokeTypeAttrValue, VariableWidthAttrValue, TxtBaseClassAttribute, TxtFontTypefaceAttribute, TxtFontSizeAttribute, TxtBoldAttribute, TxtItalicAttribute, TxtUnderlineAttribute, TxtJustificationAttribute, TxtTrackingAttribute, TxtAspectRatioAttribute, TxtScriptAttribute, TxtBaseLineAttribute, TxtLineSpaceAttribute, TxtRulerAttribute, TxtLeftMarginAttribute, TxtRightMarginAttribute, TxtFirstIndentAttribute, UserAttribute, and WebAddressAttribute. |
|
Implemented in BevelAttributeValueIndent, BevelAttributeValueLightAngle, BevelAttributeValueContrast, BevelAttributeValueType, BevelAttributeValueLightTilt, LineWidthAttribute, StartArrowAttribute, EndArrowAttribute, StartCapAttribute, JoinTypeAttribute, MitreLimitAttribute, WindingRuleAttribute, DashPatternAttribute, DrawingModeAttribute, BrushAttrValue, ClipRegionAttribute, FillGeometryAttribute, GradFillAttribute, RadialFillAttribute, BitmapFillAttribute, NoiseFillAttribute, FractalFillAttribute, GradTranspFillAttribute, RadialTranspFillAttribute, BitmapTranspFillAttribute, NoiseTranspFillAttribute, FractalTranspFillAttribute, FillMappingAttribute, FillEffectAttribute, TranspFillMappingAttribute, StrokeColourAttribute, StrokeTranspAttribute, MouldAttribute, FeatherAttrValue, GeometryLinkedAttrValue, OverprintLineAttrValue, OverprintFillAttrValue, PrintOnAllPlatesAttrValue, OffscreenAttrValue, QualityAttribute, StrokeTypeAttrValue, VariableWidthAttrValue, TxtFontTypefaceAttribute, TxtFontSizeAttribute, TxtBoldAttribute, TxtItalicAttribute, TxtUnderlineAttribute, TxtJustificationAttribute, TxtTrackingAttribute, TxtAspectRatioAttribute, TxtScriptAttribute, TxtBaseLineAttribute, TxtLineSpaceAttribute, TxtRulerAttribute, TxtLeftMarginAttribute, TxtRightMarginAttribute, TxtFirstIndentAttribute, UserAttribute, and WebAddressAttribute. |