#include <xpfcaps.h>
Definition at line 1021 of file xpfcaps.h.
|
Definition at line 1027 of file xpfcaps.h. 01028 { 01029 // Set some sensible defaults (these will result in no conversions at all) 01030 m_BoundsLevel = BWL_NONE; 01031 m_bSelection = FALSE; 01032 m_bPreviewBitmap = FALSE; 01033 m_RasteriseDPI = 96.0; 01034 m_bRasteriseAlpha = TRUE; 01035 m_BitmapCompression = 200; 01036 m_bResample = FALSE; 01037 m_SpreadType = XPFCONVTYPE_NATIVE; 01038 m_pObjects = NULL; 01039 m_ObjectsType = XPFCONVTYPE_NATIVE; 01040 m_pAttributes = NULL; 01041 m_AttributesType = XPFCONVTYPE_NATIVE; 01042 m_pColours = NULL; 01043 m_ColoursType = XPFCONVTYPE_NATIVE; 01044 }
|
|
Definition at line 1045 of file xpfcaps.h. 01046 { 01047 // Clean up the capability trees 01048 XPFCapability* pNext = NULL; 01049 XPFCapability* pCap = m_pObjects; 01050 while (pCap) 01051 { 01052 pNext = pCap->GetNext(); 01053 delete pCap; 01054 pCap = pNext; 01055 } 01056 01057 pCap = m_pAttributes; 01058 while (pCap) 01059 { 01060 pNext = pCap->GetNext(); 01061 delete pCap; 01062 pCap = pNext; 01063 } 01064 01065 pCap = m_pColours; 01066 while (pCap) 01067 { 01068 pNext = pCap->GetNext(); 01069 delete pCap; 01070 pCap = pNext; 01071 } 01072 }
|
|
|
|
Definition at line 1129 of file xpfcaps.h. 01129 { return(m_pAttributes); }
|
|
Definition at line 1133 of file xpfcaps.h. 01133 { return(m_AttributesType); }
|
|
Definition at line 1122 of file xpfcaps.h. 01122 { return(m_BitmapCompression); }
|
|
Definition at line 1126 of file xpfcaps.h. 01126 { return(m_bResample); }
|
|
Definition at line 1117 of file xpfcaps.h. 01117 { return(m_BoundsLevel); }
|
|
Definition at line 1130 of file xpfcaps.h. 01130 { return(m_pColours); }
|
|
Definition at line 1134 of file xpfcaps.h. 01134 { return(m_ColoursType); }
|
|
Definition at line 1103 of file xpfcaps.cpp. 01104 { 01105 if (pNode->IsAnAttribute()) 01106 { 01107 return(XPFCONVTYPE_NATIVE); 01108 } 01109 01110 // First we need to check for spreads and layers, returning the appropriate type 01111 if (pNode->IsSpread()) 01112 return(m_SpreadType); 01113 01114 XPFCapability* pItem = GetObjects(); 01115 XPFConvertType Type = GetObjectsType(); 01116 01117 while (pItem) 01118 { 01119 XPFConvertType ItemType = pItem->GetConvertTypeForNode(pNode); 01120 if (ItemType != XPFCONVTYPE_UNKNOWN) 01121 Type = ItemType; 01122 01123 pItem = pItem->GetNext(); 01124 } 01125 01126 if (Type != XPFCONVTYPE_NATIVE && 01127 Type != XPFCONVTYPE_REMOVE && 01128 Type != XPFCONVTYPE_SIMPLE && 01129 Type != XPFCONVTYPE_BITMAP && 01130 Type != XPFCONVTYPE_REFORMAT) 01131 Type = XPFCONVTYPE_NATIVE; 01132 01133 return(Type); 01134 }
|
|
Definition at line 1142 of file xpfcaps.cpp. 01143 { 01144 XPFConvertType Type = GetAttributesType(); 01145 XPFCapability* pItem = GetAttributes(); 01146 while (pItem) 01147 { 01148 XPFConvertType ItemType = pItem->GetConvertTypeForAttrs(pRegion); 01149 if (ItemType == XPFCONVTYPE_STROKED) 01150 Type = ItemType; 01151 01152 pItem = pItem->GetNext(); 01153 } 01154 01155 if (Type != XPFCONVTYPE_NATIVE && Type != XPFCONVTYPE_STROKED) 01156 Type = XPFCONVTYPE_NATIVE; 01157 01158 return(Type); 01159 }
|
|
Definition at line 1166 of file xpfcaps.cpp. 01167 { 01168 XPFConvertType FillType = GetAttributesType(); 01169 XPFConvertType TransType = FillType; 01170 XPFConvertType BothType = FillType; 01171 XPFCapability* pItem = GetAttributes(); 01172 while (pItem) 01173 { 01174 XPFConvertType ItemType = pItem->GetConvertTypeForAttrs(pRegion); 01175 if (ItemType == XPFCONVTYPE_BITMAPFILL) 01176 FillType = ItemType; 01177 if (ItemType == XPFCONVTYPE_BITMAPTRANS) 01178 TransType = ItemType; 01179 if (ItemType == XPFCONVTYPE_BITMAPFILLTRANS) 01180 BothType = ItemType; 01181 01182 pItem = pItem->GetNext(); 01183 } 01184 01185 *pbFill = (FillType == XPFCONVTYPE_BITMAPFILL); 01186 *pbTrans = (TransType == XPFCONVTYPE_BITMAPTRANS); 01187 *pbFillTrans = (BothType == XPFCONVTYPE_BITMAPFILLTRANS); 01188 }
|
|
Definition at line 1194 of file xpfcaps.cpp. 01195 { 01196 // This pass must NOT convert any spreads or layers to bitmap as that will 01197 // have been done during the first pass but the spread/layer node will still 01198 // be present in the tree 01199 if (pNode->IsSpread() || pNode->IsLayer()) 01200 return(XPFCONVTYPE_NATIVE); 01201 01202 XPFConvertType Type = GetObjectsType(); 01203 XPFCapability* pItem = GetObjects(); 01204 while (pItem) 01205 { 01206 XPFConvertType ItemType = pItem->GetConvertTypeForNode(pNode); 01207 if (ItemType == XPFCONVTYPE_BITMAP) 01208 Type = ItemType; 01209 01210 pItem = pItem->GetNext(); 01211 } 01212 01213 if (Type != XPFCONVTYPE_NATIVE && Type != XPFCONVTYPE_BITMAP) 01214 Type = XPFCONVTYPE_NATIVE; 01215 01216 return(Type); 01217 }
|
|
Definition at line 1225 of file xpfcaps.cpp. 01226 { 01227 XPFConvertType Type = GetAttributesType(); 01228 XPFCapability* pItem = GetAttributes(); 01229 while (pItem) 01230 { 01231 XPFConvertType ItemType = pItem->GetConvertTypeForAttrs(pRegion); 01232 if (ItemType == XPFCONVTYPE_BITMAPSPAN) 01233 Type = ItemType; 01234 01235 pItem = pItem->GetNext(); 01236 } 01237 01238 if (Type != XPFCONVTYPE_NATIVE && Type != XPFCONVTYPE_BITMAPSPAN) 01239 Type = XPFCONVTYPE_NATIVE; 01240 01241 return(Type); 01242 }
|
|
Definition at line 1128 of file xpfcaps.h. 01128 { return(m_pObjects); }
|
|
Definition at line 1132 of file xpfcaps.h. 01132 { return(m_ObjectsType); }
|
|
Definition at line 1118 of file xpfcaps.h. 01118 { return(m_bPreviewBitmap); }
|
|
Definition at line 1121 of file xpfcaps.h. 01121 { return(m_bRasteriseAlpha); }
|
|
Definition at line 1120 of file xpfcaps.h. 01120 { return(m_RasteriseDPI); }
|
|
Definition at line 1116 of file xpfcaps.h. 01116 { return(m_bSelection); }
|
|
Definition at line 1123 of file xpfcaps.h. 01123 { return(!m_CommonTrans.IsEmpty()); }
|
|
Definition at line 1070 of file xpfcaps.cpp. 01071 { 01072 String_16 TransStr; 01073 01074 if (Type == TT_StainGlass) 01075 TransStr = _T("stained"); 01076 else if (Type == TT_Bleach) 01077 TransStr = _T("bleach"); 01078 else if (Type == TT_CONTRAST) 01079 TransStr = _T("contrast"); 01080 else if (Type == TT_SATURATION) 01081 TransStr = _T("saturation"); 01082 else if (Type == TT_LUMINOSITY) 01083 TransStr = _T("luminosity"); 01084 else if (Type == TT_HUE) 01085 TransStr = _T("hue"); 01086 else 01087 return(FALSE); 01088 01089 if (camStrstr(m_CommonTrans, TransStr) != NULL) 01090 return(TRUE); 01091 01092 return(FALSE); 01093 }
|
|
Definition at line 1102 of file xpfcaps.h. 01103 { 01104 ERROR3IF(m_pAttributes, "Already have an Attributes tree"); 01105 m_pAttributes = pAttributes; 01106 m_AttributesType = AttributesType; 01107 }
|
|
Definition at line 1081 of file xpfcaps.h. 01081 { m_BoundsLevel = Level; }
|
|
Definition at line 1109 of file xpfcaps.h. 01110 { 01111 ERROR3IF(m_pColours, "Already have a Colours tree"); 01112 m_pColours = pColours; 01113 m_ColoursType = ColoursType; 01114 }
|
|
Definition at line 1095 of file xpfcaps.h. 01096 { 01097 ERROR3IF(m_pObjects, "Already have an Objects tree"); 01098 m_pObjects = pObjects; 01099 m_ObjectsType = ObjectsType; 01100 }
|
|
Definition at line 1082 of file xpfcaps.h. 01082 { m_bPreviewBitmap = bPreviewBitmap; }
|
|
Definition at line 1086 of file xpfcaps.h. 01087 { 01088 m_RasteriseDPI = DPI; 01089 m_bRasteriseAlpha = bAlpha; 01090 m_BitmapCompression = Compression; 01091 m_CommonTrans = CommonTrans; 01092 m_bResample = bResample; 01093 }
|
|
Definition at line 1080 of file xpfcaps.h. 01080 { m_bSelection = bSelection; }
|
|
Definition at line 1084 of file xpfcaps.h. 01084 { m_SpreadType = Type; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|