InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISetFittingOptionsCmdData Class Referenceabstract

#include <ISetFittingOptionsCmdData.h>

Inheritance diagram for ISetFittingOptionsCmdData:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_ISETFITTINGOPTIONSCMDDATA }
 
enum  PersistentFitOptions {
  kMixedFitting = -1, kNoFitting, kFitContents, kFitProportionally,
  kFillProportionally
}
 

Public Member Functions

virtual void SetFittingOptionsData (IReferencePointData::ReferencePointPosition refPoint, const PMRect &cropAmounts, PersistentFitOptions fitting, bool16 autoFit)=0
 
virtual
IReferencePointData::ReferencePointPosition 
GetReferencePoint (void) const =0
 
virtual void GetCropAmounts (PMRect *cropAmounts) const =0
 
virtual PersistentFitOptions GetFitting (void) const =0
 
virtual bool16 GetAutoFit (void) const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Command Data interface for the kSetFittingOptionsCmdBoss. Use this interface to pass the fitting options to the command.

Member Enumeration Documentation

anonymous enum

Define the default interface IID as IID_ITRANSFORM.

Member Function Documentation

virtual bool16 ISetFittingOptionsCmdData::GetAutoFit (void ) const
pure virtual

Get the autofit option set via the Set method

virtual void ISetFittingOptionsCmdData::GetCropAmounts (PMRectcropAmounts) const
pure virtual

Get the crop amounts set via the Set method.

virtual PersistentFitOptions ISetFittingOptionsCmdData::GetFitting (void ) const
pure virtual

Get the fitting option set via the Set method

virtual IReferencePointData::ReferencePointPosition ISetFittingOptionsCmdData::GetReferencePoint (void ) const
pure virtual

Get the reference point set via the Set method

virtual void ISetFittingOptionsCmdData::SetFittingOptionsData (IReferencePointData::ReferencePointPosition refPoint,
const PMRectcropAmounts,
PersistentFitOptions fitting,
bool16 autoFit 
)
pure virtual

Set the options

Parameters
refPoint(IN): one of the 9 reference point positions.
cropAmounts(IN): pass kZeroRect if you do not want the graphic cropped. Otherwise, the coordinates of the rect will be treated as crop amounts as opposed to an actual crop rect.
fitting(IN): pass kNoFitting if you do not want to scale the graphic contents to fit the frame in any way.
autoFit(IN): if kTrue, fitting options are applied when frame changes size or shape