![]() | InDesign SDK 20.5 |

Public Member Functions | |
| TranFxAdornment (IPMUnknown *boss) | |
| virtual | ~TranFxAdornment () |
| virtual AdornmentDrawOrder | GetDrawOrderBits () |
| virtual void | DrawAdornment (IShape *iShape, AdornmentDrawOrder drawOrder, GraphicsData *gd, int32 flags) |
| virtual PMRect | GetPaintedAdornmentBounds (IShape *iShape, AdornmentDrawOrder drawOrder, const PMRect &itemBounds, const PMMatrix &innertoview) |
| virtual PMRect | GetPrintedAdornmentBounds (IShape *iShape, AdornmentDrawOrder drawOrder, const PMRect &itemBounds, const PMMatrix &innertoview) |
| virtual void | AddToContentInkBounds (IShape *iShape, PMRect *inOutBounds) |
| virtual PMReal | GetPriority () |
| virtual void | Inval (IShape *iShape, AdornmentDrawOrder drawOrder, GraphicsData *gd, ClassID reasonForInval, int32 flags) |
| virtual bool16 | WillPrint () |
| virtual bool16 | WillDraw (IShape *iShape, AdornmentDrawOrder drawOrder, GraphicsData *gd, int32 flags) |
| virtual bool16 | HitTest (IShape *iShape, AdornmentDrawOrder adornmentDrawOrder, IControlView *layoutView, const PMRect &r) |
Public Member Functions inherited from CPMUnknown< IAdornmentShape > | |
| IPMUnknown * | QueryInterface (PMIID interfaceID) const |
| void | AddRef () const |
| void | Release () const |
| void | PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| void | PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| CPMUnknown (const CPMUnknown &)=delete | |
| CPMUnknown & | operator= (const CPMUnknown &)=delete |
Additional Inherited Members | |
Public Types inherited from IAdornmentShape | |
| enum | { kDefaultIID = IID_IADORNMENTSHAPE } |
| enum | AdornmentDrawOrder { kNone = 0, kBeforeShape = 1, kAfterFill = 2, kBeforeTextBackground = 4, kBeforeText = 8, kBeforeTextForeground = 16, kAfterTextForeground = 32, kBeforeStroke = 64, kAfterStroke = 128, kAfterShape = 256, kBeforeFill = 512, kBeforeContent = 1024, kAfterContent = 2048, kAfterEndShape = 4096, kAfterSpread = 8192, kAllAdornmentFlags = 16383 } |
| enum | AdornmentDrawNumber { kNumberOfAdornments = 14 } |
Protected Member Functions inherited from CPMUnknown< IAdornmentShape > | |
| CPMUnknown (IPMUnknown *boss) | |
Protected Attributes inherited from CPMUnknown< IAdornmentShape > | |
| HelperInterface | fHelperInterface |
Draws a transparent matte effect behind the page item at the x and y offset given by the graphic attributes below:
The adornment takes a snapshot of the page item offscreen as a gray level image, then manipulates it as indicated by the custom graphic attributes below:
To draw the effect, the adornment uses the resultant grey level image as an alpha paint server. Once the image is thus applied as an alpha mask, the adornment fills the image area with black. The alpha mask controls the opacity of each resultant pixel. If the alpha mask has a value of 255 it will be drawn as an opaque black pixel, if it has a value of 0 it will be transparent, and if it has a value of 1..254 it will be a grey pixel of increasing darkness and opacity.
| TranFxAdornment::TranFxAdornment | ( | IPMUnknown * | boss | ) |
Constructor.
| boss |
| virtual |
Destructor.
Not yet implemented.
| iShape | IN the page item that owns the adornment. |
| inOutBounds |
Implements IAdornmentShape.
| virtual |
Draws the adornment. The method creates a mask image of the page item that owns the adornment, applies it as an alpha paint server then fills the area with black. The result is a greyscale image of the page item of varying transparency.
| iShape | IN the page item that owns the adornment. |
| drawOrder | IN significant for adornments that registered for more than one order. |
| gd | the graphics context to draw into. |
| flags | the draw flags (see IShape). |
Implements IAdornmentShape.
| virtual |
Registers for kBeforeShape since the adornment draws behind the item that owns it. Note: You are only called for at the draw order(s) you request so you must override this, else you won't be called at all.
Implements IAdornmentShape.
| virtual |
Return the bounds of the adornment in view co-ordinates adjusting as necessary for any x and y offsets that are applied.
| iShape | IN the page item that owns the adornment. |
| drawOrder | IN significant for adornments that registered for more than one order. |
| itemBounds | IN stroke bounds of page item that owns the adornment in view co-ordinates. |
| innerToView | IN matrix to be used to transform bounds into view co-ordinates. |
Implements IAdornmentShape.
| virtual |
Return the bounds of the adornment in view co-ordinates adjusting as necessary for any x and y offsets that are applied. If this adornment were not included during printing, then we'd simply return the itemBounds. However, for this adornment, the printed bounds is the same as the painted bounds.
| iShape | IN the page item that owns the adornment. |
| drawOrder | IN significant for adornments that registered for more than one order. |
| itemBounds | IN stroke bounds of page item that owns the adornment in view co-ordinates. |
| innerToView | IN matrix to be used to transform bounds into view co-ordinates. |
Implements IAdornmentShape.
| virtual |
Return the draw priority of thius adornment relative to other adornments in the draw order.
Implements IAdornmentShape.
| inlinevirtual |
Implements IAdornmentShape.
| virtual |
Purges any effect image for the page item that has been saved in the image cache.
Note: Previously a scheme that used a document observer was used to purge the cache as objects were transformed or invalidated. This was moved to here because this method always gets called when these events occur. The benefit is we only get called for objects that have the effect applied. The document observer was watching for changes on all object and then detecting those that have the effect. Putting the cache purge here seems more efficient.
| iShape | IN the page item that owns the adornment. |
| drawOrder | IN significant for adornments that registered for more than one order. |
| gd | IN the graphics context to draw into. |
| reasonForInval | IN |
| flags | IN the draw flags (see IShape). |
Implements IAdornmentShape.
| virtual |
Checks the state that controls whether or not this adornment will draw.
| iShape | IN the page item that owns the adornment. |
| drawOrder | IN significant for adornments that registered for more than one order |
| gd | IN the graphics context to draw into. |
| flags | IN the draw flags (see IShape). |
Implements IAdornmentShape.
| virtual |
Implements IAdornmentShape.