#include <xpfcaps.h>
Inheritance diagram for XPFCLineTrans:
Public Member Functions | |
XPFCLineTrans (XPFConvertType ConvertType, XPFProp Type) | |
virtual | ~XPFCLineTrans () |
Protected Member Functions | |
virtual BOOL | DoAttributesMatch (RenderRegion *pRegion) |
Protected Attributes | |
XPFProp | m_Type |
Private Member Functions | |
CC_DECLARE_MEMDUMP (XPFCLineTrans) |
Definition at line 918 of file xpfcaps.h.
|
Definition at line 924 of file xpfcaps.h. 00925 : XPFCapability(ConvertType) 00926 { 00927 m_Type = Type; 00928 }
|
|
Definition at line 929 of file xpfcaps.h.
|
|
|
|
Reimplemented from XPFCapability. Definition at line 1019 of file xpfcaps.cpp. 01020 { 01021 // If this item specifies the type property 01022 if (m_Type != XPFB_UNKNOWN) 01023 { 01024 StrokeColourAttribute* pStrokeCol = (StrokeColourAttribute*)(pRegion->GetCurrentAttribute(ATTR_STROKECOLOUR)); 01025 BOOL bNoStroke = pStrokeCol->Colour.IsTransparent(); 01026 01027 // Get the transp attribute from the render region 01028 StrokeTranspAttribute* pTrans = (StrokeTranspAttribute*)(pRegion->GetCurrentAttribute(ATTR_STROKETRANSP)); 01029 // Get the type 01030 INT32 Type = pTrans->GetTranspType(); 01031 // If we have no stroke colour or are mix and 0% trans 01032 if (bNoStroke || (Type == TT_Mix && *(pTrans->GetStartTransp()) == 0)) 01033 { 01034 // We are actually type none 01035 Type = TT_NoTranspType; 01036 } 01037 if (m_Type != Type) 01038 return(FALSE); 01039 } 01040 01041 return(TRUE); 01042 }
|
|
|