InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IScaleObject Class Referenceabstract
Inheritance diagram for IScaleObject:
IPMUnknown

Classes

class  ScaleContext
 

Public Types

enum  { kDefaultIID = IID_ISCALEOBJECT }
 

Public Member Functions

virtual ErrorCode Scale (const PMReal &passdownXscale, const PMReal &passdownYscale, ScaleContext &context)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Member Function Documentation

virtual ErrorCode IScaleObject::Scale (const PMRealpassdownXscale,
const PMRealpassdownYscale,
ScaleContextcontext 
)
pure virtual

Scale is called by the RedefineScalingCmd in order to move scaling off of an item's transform onto its content.

Parameters
passdownXscale- the horizontal scale factor that is being removed from the transform and must be realized in the content.
passdownYscale- the vertical scale factor that is being removed from the transform and must be realized in the content.
context- Most objects should ignore the context. It's purpose is to allow multiple objects that represent portions of a single model (such as the table model) to store state information and scale the underlying model once. The context is reset on each scale operation.