InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IXPAttributeUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Matt Phillips
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __IXPAttributeUtils__
25 #define __IXPAttributeUtils__
26 
27 #include "XPID.h"
28 #include "IPMUnknown.h"
29 #include "IXPAttributeSuite.h"
30 #include "Utils.h"
31 
32 #include "GraphicTypes.h"
33 #include "ScriptData.h"
34 #include <vector>
35 
39 class IGraphicAttrBoolean ;
40 class IGraphicAttrInt32 ;
41 class IGraphicAttrPoint;
42 class ICommand;
43 class UIDList;
44 class IPersistUIDData;
45 class IScriptRequestData;
46 
52 {
53 public:
54  enum { kDefaultIID = IID_IXPATTRIBUTEUTILS };
55 
56  //________________________________________________________________________________________
57  // [ Common Helpers]
58  //________________________________________________________________________________________
59 
64  virtual bool16 IsBasicTransparencyAttribute (ClassID attrClass) = 0;
69  virtual bool16 IsDropShadowAttribute (ClassID attrClass) = 0;
74  virtual bool16 IsVignetteAttribute (ClassID attrClass) = 0;
79  virtual K2Vector<ClassID>* GetTransparencyAttributesFromList (const K2Vector<ClassID>* pAttrClassList) = 0;
80 
91  virtual ErrorCode ApplyBasicTransparencyToPageItems (IGraphicStyleAttributeBossList* iAttrList, const UIDList& pageItemList, bool16 bSkipDefaults = kFalse ) = 0;
94  virtual ErrorCode ApplyDropShadowToPageItems (IGraphicStyleAttributeBossList* iAttrList, const UIDList& pageItemList, bool16 bSkipDefaults = kFalse ) = 0;
97  virtual ErrorCode ApplyVignetteToPageItems (IGraphicStyleAttributeBossList* iAttrList, const UIDList& pageItemList, bool16 bSkipDefaults = kFalse ) = 0;
98 
107  virtual ErrorCode ApplyAttributesToPageItems
108  (
109  IGraphicStyleAttributeBossList* iAttrList,
110  const UIDList& pageItemList,
111  const IXPAttributeSuite::PartialADXYVector* partialADXYs = nil,
112  bool32 autoInitializeGradientFeatherGeometry = kFalse
113  ) = 0;
114 
123  virtual ErrorCode ApplyAttributesToPageItems
124  (
125  const IXPAttributeSuite::AttributeList& attrList,
126  const UIDList& pageItemList,
127  const IXPAttributeSuite::PartialADXYVector* partialADXYs = nil,
128  bool32 autoInitializeGradientFeatherGeometry = kFalse
129  ) = 0;
130 
131  //________________________________________________________________________________________________
132 
147  virtual IXPAttributeSuite::AttributeType TranslateToTarget
148  (
149  IXPAttributeSuite::AttributeType attrType,
150  IXPAttributeSuite::AttributeTarget attrTarget = IXPAttributeSuite::kTargetPageItem
151  ) = 0;
152 
158  (
159  IXPAttributeSuite::AttributeType attributeType
160  ) = 0;
161 
166  virtual IXPAttributeSuite::AttributeType GetAttributeFromClassID
167  (
168  ClassID attrClass
169  ) = 0;
170 
175  virtual bool16 IsAttributeTransparencyAttribute
176  (
177  ClassID attributeClass
178  ) = 0;
179 
184  virtual int32 GetAttributeDefaultValue
185  (
186  IXPAttributeSuite::AttributeType attributeType
187  ) = 0;
188 
197  virtual ErrorCode GetAttributeDefaultValue
198  (
199  IXPAttributeSuite::AttributeType attrType,
201  ) = 0;
202 
208  (
209  IXPAttributeSuite::AttributeType attributeType
210  ) = 0;
211 
217  (
218  IXPAttributeSuite::AttributeType attrType
219  ) = 0;
220 
226  (
227  IXPAttributeSuite::AttributeType attributeType
228  ) = 0;
229 
235  (
236  IXPAttributeSuite::AttributeType attributeType
237  ) = 0;
238 
245  (
246  const IXPAttributeSuite::AttributeGroup& attributeGroup,
247  const IXPAttributeSuite::AttributeTarget& attributeTarget,
248  std::vector<IXPAttributeSuite::AttributeType>& groupAttrList
249  ) = 0;
250 
258  (
259  IXPAttributeSuite::AttributeType type,
260  IDataBase* db
261  ) = 0;
262 
267  virtual bool16 GetAttributeName
268  (
269  IXPAttributeSuite::AttributeType type,
270  PMString& name
271  ) = 0;
272 
277  virtual ErrorCode GetAttributeMinMax
278  (
279  IXPAttributeSuite::AttributeType type,
282  ) = 0;
283 
291  virtual bool16 IsValidAttributeValue
292  (
293  IXPAttributeSuite::AttributeType type,
295  ) = 0;
296 
305  (
306  IXPAttributeSuite::AttributeType type
307  ) = 0;
308 
317  (
318  IXPAttributeSuite::AttributeType type
319  ) = 0;
320 
327  (
328  const IXPAttributeSuite::AttributeList& attrList
329  ) = 0;
330 
336  virtual bool16 GetAttrListFromAttrBossList
337  (
338  const IGraphicStyleAttributeBossList* iBossList,
340  ) = 0;
341 
347  virtual bool16 GetValueAsString
348  (
349  IXPAttributeSuite::AttributeType type,
351  IDataBase* db,
352  PMString& s
353  ) = 0;
354 
355  //________________________________________________________________________________
356  // Enumeration utilities
357  //________________________________________________________________________________
358 
365  virtual int32 GetNumAttributeTargets() = 0;
366 
373  (
374  int32 n
375  ) = 0;
376 
382  virtual int32 GetAttributeTargetIndex
383  (
385  ) = 0;
386 
393  virtual int32 GetNumAttributeGroups() = 0;
394 
401  (
402  int32 n
403  ) = 0;
404 
410  virtual int32 GetAttributeGroupIndex
411  (
413  ) = 0;
414 
415  //________________________________________________________________________________
416  // Scripting utilities
417  //________________________________________________________________________________
418 
436  virtual bool16 GetAttributeScriptInfo
437  (
438  IXPAttributeSuite::AttributeType attrType,
439  const IXPAttributeSuite::AttributeValue& attrValue,
440  IDataBase* iDataBase,
441  IScript* iScript,
442  IScriptRequestData* data,
443  ScriptData* pScriptData,
444  ScriptElementID* pElementID,
445  ScriptID* pScriptID
446  ) = 0;
447 
460  virtual IXPAttributeSuite::AttributeType GetAttributeFromScriptID
461  (
464  ScriptID propID
465  ) = 0;
466 
483  virtual void LookupScriptInfo
484  (
485  IScriptRequestData* data,
486  ScriptID propID,
487  IScript* iScript,
490  IXPAttributeSuite::AttributeType &type
491  ) = 0;
492 
501  virtual ErrorCode GetAttributeDataFromScriptData
502  (
503  IScript* iScript,
504  const ScriptID& propID,
505  IScriptRequestData* data,
507  ) = 0;
508 
517  virtual ErrorCode GetAttributeDataFromScriptData
518  (
519  const ScriptData& scriptData,
520  IScriptRequestData* data,
521  const IXPAttributeSuite::AttributeType& attrType,
523  ) = 0;
524 
533 
542 
543  //________________________________________________________________________________
544 
545  //________________________________________________________________________________________
546  // [ Generic Attribute Utilites (not attribute-specific) ]
547  //________________________________________________________________________________________
548 
556  virtual ErrorCode GetAttributeValue
557  (
558  IXPAttributeSuite::AttributeType attrType,
560  const IGraphicStyleDescriptor* styleDescriptor
561  ) = 0;
562 
569  virtual ErrorCode GetAttributeValue
570  (
571  IXPAttributeSuite::AttributeType attrType,
573  const IPMUnknown* iAttr
574  ) = 0;
575 
582  virtual IPMUnknown* CreateAttribute
583  (
584  IXPAttributeSuite::AttributeType attrType,
585  const IXPAttributeSuite::AttributeValue& attrValue
586  ) = 0;
587 
593  virtual IPMUnknown* CreateAttribute
594  (
596  ) = 0;
597 
609  (
610  IXPAttributeSuite::AttributeType attrType,
611  const IXPAttributeSuite::AttributeValue& attrValue
612  ) = 0;
613 
625  (
626  IXPAttributeSuite::AttributeType attrType,
627  const IXPAttributeSuite::AttributeValue& attrValue
628  ) = 0;
629 
641  (
642  IXPAttributeSuite::AttributeType attrType,
643  const IXPAttributeSuite::AttributeValue& attrValue
644  ) = 0;
645 
657  (
658  IXPAttributeSuite::AttributeType attrType,
659  const IXPAttributeSuite::AttributeValue& attrValue
660  ) = 0;
661 
673  (
674  IXPAttributeSuite::AttributeType attrType,
675  const IXPAttributeSuite::AttributeValue& attrValue
676  ) = 0;
677 
689  (
690  IXPAttributeSuite::AttributeType attrType,
691  const IXPAttributeSuite::AttributeValue& attrValue
692  ) = 0;
693 
700  virtual ErrorCode AddAttribute
701  (
702  IXPAttributeSuite::AttributeType attrType,
703  const IXPAttributeSuite::AttributeValue& attrValue,
704  IGraphicStyleAttributeBossList* attributeList
705  ) = 0;
706 
715  (
716  IXPAttributeSuite::AttributeType attrType,
718  const UIDList* targetItemList,
719  bool16 doPrePost,
720  bool16 enableDoNotify
721  ) = 0;
722 
723  //________________________________________________________________________________________
724  // Opacity Gradient Utilities
725  //________________________________________________________________________________________
726 
736 
737  //________________________________________________________________________________________
738  // Attribute-Specific Utilities
739  // These are largely deprecated because maintaining per-attribute methods is untenable
740  // given the number of different transparency attributes. For new code use the above
741  // methods.
742  //________________________________________________________________________________________
743 
744  //________________________________________________________________________________________
745  // [ Basic Blend Mode]
746  //________________________________________________________________________________________
747 
755  virtual ErrorCode GetBasicBlendMode
756  (
757  PMBlendingMode& blendMode,
758  IGraphicStyleDescriptor* styleDescriptor
759  ) = 0;
760 
767  (
768  PMBlendingMode blendMode
769  ) = 0;
770 
777  virtual ErrorCode AddBasicBlendModeAttribute
778  (
779  PMBlendingMode blendMode,
780  IGraphicStyleAttributeBossList* attributeList
781  ) = 0;
782 
792  (
793  PMBlendingMode blendMode,
794  const UIDList* targetItemList,
795  bool16 doPrePost,
796  bool16 enableDoNotify
797  ) = 0;
798 
799  //________________________________________________________________________________________
800  // [ Basic Opacity ]
801  //________________________________________________________________________________________
802 
809  virtual ErrorCode GetBasicOpacity
810  (
811  PMReal& opacity,
812  IGraphicStyleDescriptor* styleDescriptor
813  ) = 0;
814 
820  (
821  PMReal opacity
822  ) = 0;
823 
829  virtual ErrorCode AddBasicOpacityAttribute
830  (
831  PMReal opacity,
832  IGraphicStyleAttributeBossList* attributeList
833  ) = 0;
834 
843  (
844  PMReal opacity,
845  const UIDList* targetItemList,
846  bool16 doPrePost,
847  bool16 enableDoNotify
848  ) = 0;
849 
850  //________________________________________________________________________________________
851  // [ Basic Knockout Group ]
852  //________________________________________________________________________________________
853 
860  virtual ErrorCode GetBasicKnockoutGroup
861  (
862  bool16& basicKnockoutGrouop,
863  IGraphicStyleDescriptor* styleDescriptor
864  ) = 0;
865 
871  (
872  bool16 basicKnockoutGrouop
873  ) = 0;
874 
880  virtual ErrorCode AddBasicKnockoutGroupAttribute
881  (
882  bool16 basicKnockoutGrouop,
883  IGraphicStyleAttributeBossList* attributeList
884  ) = 0;
885 
894  (
895  bool16 opacity,
896  const UIDList* targetItemList,
897  bool16 doPrePost,
898  bool16 enableDoNotify
899  ) = 0;
900 
901  //________________________________________________________________________________________
902  // [ Basic Isolation Group ]
903  //________________________________________________________________________________________
904 
911  virtual ErrorCode GetBasicIsolationGroup
912  (
913  bool16& basicIsolationGrouop,
914  IGraphicStyleDescriptor* styleDescriptor
915  ) = 0;
916 
922  (
923  bool16 basicIsolationGrouop
924  ) = 0;
925 
931  virtual ErrorCode AddBasicIsolationGroupAttribute
932  (
933  bool16 basicIsolationGroup,
934  IGraphicStyleAttributeBossList* attributeList
935  ) = 0;
936 
945  (
946  bool16 basicIsolationGroup,
947  const UIDList* targetItemList,
948  bool16 doPrePost,
949  bool16 enableDoNotify
950  ) = 0;
951 
952  //________________________________________________________________________________________
953  // [ DropShadow Mode ]
954  //________________________________________________________________________________________
955 
963  virtual ErrorCode GetDropShadowMode
964  (
965  PMDropShadowMode& dropShadowMode,
966  IGraphicStyleDescriptor* styleDescriptor
967  ) = 0;
968 
975  (
976  PMDropShadowMode dropShadowMode
977  ) = 0;
978 
985  virtual ErrorCode AddDropShadowModeAttribute
986  (
987  PMDropShadowMode dropShadowMode,
988  IGraphicStyleAttributeBossList* attributeList
989  ) = 0;
990 
1000  (
1001  PMDropShadowMode dropShadowMode,
1002  const UIDList* targetItemList,
1003  bool16 doPrePost,
1004  bool16 enableDoNotify
1005  ) = 0;
1006 
1007  //________________________________________________________________________________________
1008  // [ DropShadow Blend Mode ]
1009  //________________________________________________________________________________________
1010 
1018  virtual ErrorCode GetDropShadowBlendMode
1019  (
1020  PMBlendingMode& blendMode,
1021  IGraphicStyleDescriptor* styleDescriptor
1022  ) = 0;
1023 
1030  (
1031  PMBlendingMode blendMode
1032  ) = 0;
1033 
1040  virtual ErrorCode AddDropShadowBlendModeAttribute
1041  (
1042  PMBlendingMode blendMode,
1043  IGraphicStyleAttributeBossList* attributeList
1044  ) = 0;
1045 
1055  (
1056  PMBlendingMode blendMode,
1057  const UIDList* targetItemList,
1058  bool16 doPrePost,
1059  bool16 enableDoNotify
1060  ) = 0;
1061 
1062  //________________________________________________________________________________________
1063  // [ DropShadow Opacity ]
1064  //________________________________________________________________________________________
1065 
1072  virtual ErrorCode GetDropShadowOpacity
1073  (
1074  PMReal& opacity,
1075  IGraphicStyleDescriptor* styleDescriptor
1076  ) = 0;
1077 
1083  (
1084  PMReal opacity
1085  ) = 0;
1086 
1092  virtual ErrorCode AddDropShadowOpacityAttribute
1093  (
1094  PMReal opacity,
1095  IGraphicStyleAttributeBossList* attributeList
1096  ) = 0;
1097 
1106  (
1107  PMReal opacity,
1108  const UIDList* targetItemList,
1109  bool16 doPrePost,
1110  bool16 enableDoNotify
1111  ) = 0;
1112 
1113  //________________________________________________________________________________________
1114  // [ DropShadow X Offset ]
1115  //________________________________________________________________________________________
1116 
1123  virtual ErrorCode GetDropShadowOffsetX
1124  (
1125  PMReal& dropShadowOffsetX,
1126  IGraphicStyleDescriptor* styleDescriptor
1127  ) = 0;
1128 
1134  (
1135  PMReal dropShadowOffsetX
1136  ) = 0;
1137 
1143  virtual ErrorCode AddDropShadowOffsetXAttribute
1144  (
1145  PMReal dropShadowOffsetX,
1146  IGraphicStyleAttributeBossList* attributeList
1147  ) = 0;
1148 
1157  (
1158  PMReal dropShadowOffsetX,
1159  const UIDList* targetItemList,
1160  bool16 doPrePost,
1161  bool16 enableDoNotify
1162  ) = 0;
1163 
1164  //________________________________________________________________________________________
1165  // [ Drop Shadow Y Offset ]
1166  //________________________________________________________________________________________
1167 
1174  virtual ErrorCode GetDropShadowOffsetY
1175  (
1176  PMReal& dropShadowOffsetY,
1177  IGraphicStyleDescriptor* styleDescriptor
1178  ) = 0;
1179 
1185  (
1186  PMReal dropShadowOffsetY
1187  ) = 0;
1188 
1194  virtual ErrorCode AddDropShadowOffsetYAttribute
1195  (
1196  PMReal dropShadowOffsetY,
1197  IGraphicStyleAttributeBossList* attributeList
1198  ) = 0;
1199 
1208  (
1209  PMReal dropShadowOffsetY,
1210  const UIDList* targetItemList,
1211  bool16 doPrePost,
1212  bool16 enableDoNotify
1213  ) = 0;
1214 
1215  //________________________________________________________________________________________
1216  // [ Drop Shadow Blur Radius ]
1217  //________________________________________________________________________________________
1218 
1225  virtual ErrorCode GetDropShadowBlurRadius
1226  (
1227  PMReal& blurRadius,
1228  IGraphicStyleDescriptor* styleDescriptor
1229  ) = 0;
1230 
1236  (
1237  PMReal blurRadius
1238  ) = 0;
1239 
1245  virtual ErrorCode AddDropShadowBlurRadiusAttribute
1246  (
1247  PMReal blurRadius,
1248  IGraphicStyleAttributeBossList* attributeList
1249  ) = 0;
1250 
1259  (
1260  PMReal blurRadius,
1261  const UIDList* targetItemList,
1262  bool16 doPrePost,
1263  bool16 enableDoNotify
1264  ) = 0;
1265 
1266 
1267  //________________________________________________________________________________________
1268  // [ Drop Shadow Color]
1269  //________________________________________________________________________________________
1270 
1277  virtual ErrorCode GetDropShadowColorUID
1278  (
1279  UID& colorUID,
1280  IGraphicStyleDescriptor* styleDescriptor
1281  ) = 0;
1282 
1288  (
1289  IDataBase* iDataBase,
1290  UID colorUID
1291  ) = 0;
1292 
1298  virtual ErrorCode AddDropShadowColorAttribute
1299  (
1300  IDataBase* iDataBase,
1301  UID colorUID,
1302  IGraphicStyleAttributeBossList* attributeList
1303  ) = 0;
1304 
1313  (
1314  const UIDRef& colorRef,
1315  const UIDList* targetItemList,
1316  bool16 doPrePost,
1317  bool16 enableDoNotify
1318  ) = 0;
1319 
1320  //________________________________________________________________________________________
1321  // [ Drop Shadow Spread ]
1322  //________________________________________________________________________________________
1323 
1330  virtual ErrorCode GetDropShadowSpread
1331  (
1332  PMReal& spread,
1333  IGraphicStyleDescriptor* styleDescriptor
1334  ) = 0;
1335 
1341  (
1342  PMReal spread
1343  ) = 0;
1344 
1350  virtual ErrorCode AddDropShadowSpreadAttribute
1351  (
1352  PMReal spread,
1353  IGraphicStyleAttributeBossList* attributeList
1354  ) = 0;
1355 
1364  (
1365  PMReal spread,
1366  const UIDList* targetItemList,
1367  bool16 doPrePost,
1368  bool16 enableDoNotify
1369  ) = 0;
1370 
1371 
1372  //________________________________________________________________________________________
1373  // [ Drop Shadow Noise ]
1374  //________________________________________________________________________________________
1375 
1382  virtual ErrorCode GetDropShadowNoise
1383  (
1384  PMReal& noise,
1385  IGraphicStyleDescriptor* styleDescriptor
1386  ) = 0;
1387 
1393  (
1394  PMReal noise
1395  ) = 0;
1396 
1402  virtual ErrorCode AddDropShadowNoiseAttribute
1403  (
1404  PMReal noise,
1405  IGraphicStyleAttributeBossList* attributeList
1406  ) = 0;
1407 
1416  (
1417  PMReal noise,
1418  const UIDList* targetItemList,
1419  bool16 doPrePost,
1420  bool16 enableDoNotify
1421  ) = 0;
1422 
1423 
1424  //________________________________________________________________________________________
1425  // [ Vignette Mode ]
1426  //________________________________________________________________________________________
1427 
1435  virtual ErrorCode GetVignetteMode
1436  (
1437  PMVignetteMode& vignetteMode,
1438  IGraphicStyleDescriptor* styleDescriptor
1439  ) = 0;
1440 
1447  (
1448  PMVignetteMode vignetteMode
1449  ) = 0;
1450 
1457  virtual ErrorCode AddVignetteModeAttribute
1458  (
1459  PMVignetteMode vignetteMode,
1460  IGraphicStyleAttributeBossList* attributeList
1461  ) = 0;
1462 
1472  (
1473  PMVignetteMode vignetteMode,
1474  const UIDList* targetItemList,
1475  bool16 doPrePost,
1476  bool16 enableDoNotify
1477  ) = 0;
1478 
1479 
1480  //________________________________________________________________________________________
1481  // [ Vignette Width ]
1482  //________________________________________________________________________________________
1483 
1490  virtual ErrorCode GetVignetteWidth
1491  (
1492  PMReal& width,
1493  IGraphicStyleDescriptor* styleDescriptor
1494  ) = 0;
1495 
1501  (
1502  PMReal width
1503  ) = 0;
1504 
1510  virtual ErrorCode AddVignetteWidthAttribute
1511  (
1512  PMReal width,
1513  IGraphicStyleAttributeBossList* attributeList
1514  ) = 0;
1515 
1524  (
1525  PMReal width,
1526  const UIDList* targetItemList,
1527  bool16 doPrePost,
1528  bool16 enableDoNotify
1529  ) = 0;
1530 
1531  //________________________________________________________________________________________
1532  // [ Vignette Outer Opacity ]
1533  //________________________________________________________________________________________
1534 
1541  virtual ErrorCode GetVignetteOuterOpacity
1542  (
1543  PMReal& outerOpacity,
1544  IGraphicStyleDescriptor* styleDescriptor
1545  ) = 0;
1546 
1552  (
1553  PMReal outerOpacity
1554  ) = 0;
1555 
1561  virtual ErrorCode AddVignetteOuterOpacityAttribute
1562  (
1563  PMReal outerOpacity,
1564  IGraphicStyleAttributeBossList* attributeList
1565  ) = 0;
1566 
1575  (
1576  PMReal outerOpacity,
1577  const UIDList* targetItemList,
1578  bool16 doPrePost,
1579  bool16 enableDoNotify
1580  ) = 0;
1581 
1582  //________________________________________________________________________________________
1583  // [ Vignette Inner Opacity ]
1584  //________________________________________________________________________________________
1585 
1592  virtual ErrorCode GetVignetteInnerOpacity
1593  (
1594  PMReal& innerOpacity,
1595  IGraphicStyleDescriptor* styleDescriptor
1596  ) = 0;
1597 
1603  (
1604  PMReal innerOpacity
1605  ) = 0;
1606 
1612  virtual ErrorCode AddVignetteInnerOpacityAttribute
1613  (
1614  PMReal innerOpacity,
1615  IGraphicStyleAttributeBossList* attributeList
1616  ) = 0;
1617 
1626  (
1627  PMReal innerOpacity,
1628  const UIDList* targetItemList,
1629  bool16 doPrePost,
1630  bool16 enableDoNotify
1631  ) = 0;
1632 
1633  //________________________________________________________________________________________
1634  // [ Vignette Corners ]
1635  //________________________________________________________________________________________
1636 
1644  virtual ErrorCode GetVignetteCorners
1645  (
1646  PMVignetteCorners& corners,
1647  IGraphicStyleDescriptor* styleDescriptor
1648  ) = 0;
1649 
1656  (
1657  PMVignetteCorners corners
1658  ) = 0;
1659 
1666  virtual ErrorCode AddVignetteCornersAttribute
1667  (
1668  PMVignetteCorners corners,
1669  IGraphicStyleAttributeBossList* attributeList
1670  ) = 0;
1671 
1681  (
1682  PMVignetteCorners corners,
1683  const UIDList* targetItemList,
1684  bool16 doPrePost,
1685  bool16 enableDoNotify
1686  ) = 0;
1687 
1688  //________________________________________________________________________________________
1689  // [ Vignette Noise ]
1690  //________________________________________________________________________________________
1691 
1698  virtual ErrorCode GetVignetteNoise
1699  (
1700  PMReal& noise,
1701  IGraphicStyleDescriptor* styleDescriptor
1702  ) = 0;
1703 
1709  (
1710  PMReal noise
1711  ) = 0;
1712 
1718  virtual ErrorCode AddVignetteNoiseAttribute
1719  (
1720  PMReal noise,
1721  IGraphicStyleAttributeBossList* attributeList
1722  ) = 0;
1723 
1732  (
1733  PMReal noise,
1734  const UIDList* targetItemList,
1735  bool16 doPrePost,
1736  bool16 enableDoNotify
1737  ) = 0;
1738 
1739 
1740 
1741  //________________________________________________________________________________________
1742 
1746  virtual ScriptID GetScriptEnumFromBlendMode (PMBlendingMode mode) = 0;
1750  virtual PMBlendingMode GetBlendModeFromScriptEnum (ScriptID asEnum) = 0;
1754  virtual ScriptID GetScriptEnumFromDSMode (PMDropShadowMode mode) = 0;
1758  virtual PMDropShadowMode GetDSModeFromScriptEnum (ScriptID asEnum) = 0;
1762  virtual ScriptID GetScriptEnumFromVignetteMode (PMVignetteMode mode) = 0;
1766  virtual PMVignetteMode GetVignetteModeFromScriptEnum (ScriptID asEnum) = 0;
1770  virtual ScriptID GetScriptEnumFromCornerType (PMVignetteCorners mode) = 0;
1774  virtual PMVignetteCorners GetCornerTypeFromScriptEnum (ScriptID asEnum) = 0;
1778  virtual ScriptID GetScriptEnumFromGlowTechnique (PMGlowTechnique glowTechnique) = 0;
1782  virtual PMGlowTechnique GetGlowTechniqueFromScriptEnum (ScriptID asEnum) = 0;
1786  virtual ScriptID GetScriptEnumFromInnerGlowSource (PMInnerGlowSource innerGlowSource) = 0;
1790  virtual PMInnerGlowSource GetInnerGlowSourceFromScriptEnum (ScriptID asEnum) = 0;
1794  virtual ScriptID GetScriptEnumFromBevelEmbossStyle (PMBevelEmbossStyle bevelEmbossStyle) = 0;
1798  virtual PMBevelEmbossStyle GetBevelEmbossStyleFromScriptEnum (ScriptID asEnum) = 0;
1802  virtual ScriptID GetScriptEnumFromBevelEmbossTechnique (PMBevelEmbossTechnique bevelEmbossTechnique) = 0;
1806  virtual PMBevelEmbossTechnique GetBevelEmbossTechniqueFromScriptEnum (ScriptID asEnum) = 0;
1810  virtual ScriptID GetScriptEnumFromBevelEmbossDirection (PMBevelEmbossDirection bevelEmbossDirection) = 0;
1814  virtual PMBevelEmbossDirection GetBevelEmbossDirectionFromScriptEnum (ScriptID asEnum) = 0;
1818  virtual ScriptID GetScriptEnumFromFollowShapeMode (PMFollowShapeMode followShapeMode) = 0;
1822  virtual PMFollowShapeMode GetFollowShapeModeFromScriptEnum (ScriptID asEnum) = 0;
1826  virtual ScriptID GetScriptEnumFromGradientType (GradientType gradientType) = 0;
1830  virtual GradientType GetGradientTypeFromScriptEnum (ScriptID asEnum) = 0;
1831 };
1832 
1833 #endif // __IXPAttributeUtils__