![]() | InDesign SDK 20.5 |
#include <TranFxUtils.h>
Public Types | |
| enum | AttrState { eNoValue, eCommonValue, eMixedValue } |
Public Member Functions | |
| TranFxUtils () | |
| virtual | ~TranFxUtils () |
| AttrState | HasAdornment (const UIDList &itemList) |
| AttrState | HasXOffset (const UIDList &itemList, PMReal &value) |
| AttrState | HasYOffset (const UIDList &itemList, PMReal &value) |
| AttrState | HasUseBlackAsOpaque (const UIDList &itemList, bool16 &value) |
| AttrState | HasUseAlpha (const UIDList &itemList, bool16 &value) |
| AttrState | HasUseBlur (const UIDList &itemList, bool16 &value) |
| bool16 | CanApplyAdornment (const UIDList &itemList) const |
| bool16 | CanApplyXOffset (const UIDList &itemList) const |
| bool16 | CanApplyYOffset (const UIDList &itemList) const |
| bool16 | CanApplyUseBlackAsOpaque (const UIDList &itemList) const |
| bool16 | CanApplyUseAlpha (const UIDList &itemList) const |
| bool16 | CanApplyUseBlur (const UIDList &itemList) const |
| ErrorCode | ApplyAdornment (const UIDList &itemList, const bool16 isAdd) |
| ErrorCode | ApplyXOffset (const UIDList &itemList, const PMReal &value, bool16 doPrePost=kFalse, bool16 enableDoNotify=kFalse) |
| ErrorCode | ApplyYOffset (const UIDList &itemList, const PMReal &value, bool16 doPrePost=kFalse, bool16 enableDoNotify=kFalse) |
| ErrorCode | ApplyUseBlackAsOpaque (const UIDList &itemList, const bool16 value, bool16 doPrePost=kFalse, bool16 enableDoNotify=kFalse) |
| ErrorCode | ApplyUseAlpha (const UIDList &itemList, const bool16 value, bool16 doPrePost=kFalse, bool16 enableDoNotify=kFalse) |
| ErrorCode | ApplyUseBlur (const UIDList &itemList, const bool16 value, bool16 doPrePost=kFalse, bool16 enableDoNotify=kFalse) |
Facade that wraps the commands needed to manage this plug-in's adornment and the custom graphic attributes that control it.
The implementation techniques shown in this class allow client suites to be called from a previewable dialog. See the TransparencyEffectUI plug-in.
Since all access to the custom graphic attributes that control this plug-in's transparency effect funnel through this class, their default value get applied here. This plug-in's graphic attributes are only added to a page item when the user overrides their value using the UI i.e. the custom graphic attributes are not applied to all new page items, they are only applied as required to plug-in's that have the effect.
Enumeration indicating whether all the selected objects have no value, a common value or a mixed number of different values for a given attribute.
| inline |
Constructor.
| inlinevirtual |
Destructor.
| ErrorCode TranFxUtils::ApplyAdornment | ( | const UIDList & | itemList, |
| const bool16 | isAdd | ||
| ) |
Add or remove kTranFxAdornmentBoss.
| itemList | IN references the objects to be affected. |
| isAdd | IN kTrue to add adornment, kFalse to remove. |
| ErrorCode TranFxUtils::ApplyUseAlpha | ( | const UIDList & | itemList, |
| const bool16 | value, | ||
| bool16 | doPrePost = kFalse, | ||
| bool16 | enableDoNotify = kFalse | ||
| ) |
Change the value of kTranFxUseAlphaAttrBoss.
| itemList | IN references the objects to be affected. |
| value | IN the value to be applied. |
| doPrePost | IN see IGraphicStateUtils::CreateAttributeCommand. |
| enableDoNotify | IN see IGraphicStateUtils::CreateAttributeCommand. |
| ErrorCode TranFxUtils::ApplyUseBlackAsOpaque | ( | const UIDList & | itemList, |
| const bool16 | value, | ||
| bool16 | doPrePost = kFalse, | ||
| bool16 | enableDoNotify = kFalse | ||
| ) |
Change the value of kTranFxUseBlackAsOpaqueAttrBoss.
| itemList | IN references the objects to be affected. |
| value | IN the value to be applied. |
| doPrePost | IN see IGraphicStateUtils::CreateAttributeCommand. |
| enableDoNotify | IN see IGraphicStateUtils::CreateAttributeCommand. |
| ErrorCode TranFxUtils::ApplyUseBlur | ( | const UIDList & | itemList, |
| const bool16 | value, | ||
| bool16 | doPrePost = kFalse, | ||
| bool16 | enableDoNotify = kFalse | ||
| ) |
Change the value of kTranFxUseBlurAttrBoss.
| itemList | IN references the objects to be affected. |
| value | IN the value to be applied. |
| doPrePost | IN see IGraphicStateUtils::CreateAttributeCommand. |
| enableDoNotify | IN see IGraphicStateUtils::CreateAttributeCommand. |
| ErrorCode TranFxUtils::ApplyXOffset | ( | const UIDList & | itemList, |
| const PMReal & | value, | ||
| bool16 | doPrePost = kFalse, | ||
| bool16 | enableDoNotify = kFalse | ||
| ) |
Change the value of kTranFxOffsetXAttrBoss.
| itemList | IN references the objects to be affected. |
| value | IN the value to be applied. |
| doPrePost | IN see IGraphicStateUtils::CreateAttributeCommand. |
| enableDoNotify | IN see IGraphicStateUtils::CreateAttributeCommand. |
| ErrorCode TranFxUtils::ApplyYOffset | ( | const UIDList & | itemList, |
| const PMReal & | value, | ||
| bool16 | doPrePost = kFalse, | ||
| bool16 | enableDoNotify = kFalse | ||
| ) |
Change the value of kTranFxOffsetYAttrBoss.
| itemList | IN references the objects to be affected. |
| value | IN the value to be applied. |
| doPrePost | IN see IGraphicStateUtils::CreateAttributeCommand. |
| enableDoNotify | IN see IGraphicStateUtils::CreateAttributeCommand. |
| bool16 TranFxUtils::CanApplyAdornment | ( | const UIDList & | itemList | ) | const |
Return kTrue if adornment can be applied, kFalse otherwise.
| itemList | list of objects to be checked. |
| bool16 TranFxUtils::CanApplyUseAlpha | ( | const UIDList & | itemList | ) | const |
Return kTrue if attribute can be applied, kFalse otherwise.
| itemList | list of objects to be checked. |
| bool16 TranFxUtils::CanApplyUseBlackAsOpaque | ( | const UIDList & | itemList | ) | const |
Return kTrue if attribute can be applied, kFalse otherwise.
| itemList | list of objects to be checked. |
| bool16 TranFxUtils::CanApplyUseBlur | ( | const UIDList & | itemList | ) | const |
Return kTrue if attribute can be applied, kFalse otherwise.
| itemList | list of objects to be checked. |
| bool16 TranFxUtils::CanApplyXOffset | ( | const UIDList & | itemList | ) | const |
Return kTrue if attribute can be applied, kFalse otherwise.
| itemList | list of objects to be checked. |
| bool16 TranFxUtils::CanApplyYOffset | ( | const UIDList & | itemList | ) | const |
Return kTrue if attribute can be applied, kFalse otherwise.
| itemList | list of objects to be checked. |
| TranFxUtils::AttrState TranFxUtils::HasAdornment | ( | const UIDList & | itemList | ) |
Indicate whether the given objects have kTranFxAdornmentBoss applied.
| itemList | IN list of objects to be checked. |
| TranFxUtils::AttrState TranFxUtils::HasUseAlpha | ( | const UIDList & | itemList, |
| bool16 & | value | ||
| ) |
Indicate state of kTranFxUseAlphaAttrBoss value across the given objects.
| itemList | IN list of objects to be checked. |
| value | OUT kTrue if alpha channel should be used, kFalse if not (default value kTrue). |
| TranFxUtils::AttrState TranFxUtils::HasUseBlackAsOpaque | ( | const UIDList & | itemList, |
| bool16 & | value | ||
| ) |
Indicate state of kTranFxUseBlackAsOpaqueAttrBoss value across the given objects.
| itemList | IN list of objects to be checked. |
| value | OUT kTrue if black pixels in the page item should be opaque in the effect, kFalse if transparent (default value kTrue). |
| TranFxUtils::AttrState TranFxUtils::HasUseBlur | ( | const UIDList & | itemList, |
| bool16 & | value | ||
| ) |
Indicate state of kTranFxUseBlurAttrBoss value across the given objects.
| itemList | IN list of objects to be checked. |
| value | OUT kTrue if blur should be applied and intensity reduced, kFalse if not (default value kTrue). |
| TranFxUtils::AttrState TranFxUtils::HasXOffset | ( | const UIDList & | itemList, |
| PMReal & | value | ||
| ) |
Indicate state of kTranFxOffsetXAttrBoss value across the given objects.
| itemList | IN list of objects to be checked. |
| value | OUT x offset (default value 7.0 points). |
| TranFxUtils::AttrState TranFxUtils::HasYOffset | ( | const UIDList & | itemList, |
| PMReal & | value | ||
| ) |
Indicate state of kTranFxOffsetYAttrBoss value across the given objects.
| itemList | IN list of objects to be checked. |
| value | OUT y offset (default value 7.0 points). |