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

#include <IPasteboardUtils.h>

Inheritance diagram for IPasteboardUtils:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IPASTEBOARDUTILS }
 

Public Member Functions

virtual ISpreadQuerySpread (IHierarchy *item) const =0
 
virtual ISpreadQuerySpread (IHierarchy *item, const ScriptInfo::RequestContext &context, bool16 useLastFrameIfOverset=kFalse) const =0
 
virtual ISpreadQuerySpread (IControlView *layoutView, const PBPMPoint &location) const =0
 
virtual ISpreadQuerySpread (IControlView *layoutView, const PMReal &location, bool16 horizontal) const =0
 
virtual ISpreadQueryNearestSpread (IControlView *layoutView, const PBPMPoint &location) 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

This interface contains pasteboard related utility functions.

For example,

Utils<IPasteboardUtils>()->QuerySpread( ... );

Member Enumeration Documentation

anonymous enum

Define the default IID for IPasteboardUtils.

Member Function Documentation

virtual ISpread* IPasteboardUtils::QueryNearestSpread (IControlViewlayoutView,
const PBPMPointlocation 
) const
pure virtual

Query the closest spread to the indicated location in the view. It's biased towards vertical measurements, i.e. it finds the spread closest to the vertical component of the location. If there is at least one spread then it will be returned even if the point is in the floor area The caller should deference the return interface.

Parameters
layoutViewthe given layout view, one of the condition for querying spread.
locationthe given location, one of the condition for querying spread.
Returns
ISpread* spread that satisfies the given conditions.
virtual ISpread* IPasteboardUtils::QuerySpread (IHierarchyitem) const
pure virtual

Query the spread containing a particular item. The caller should deference the return interface.

Parameters
itemthe condition for querying spread.
Returns
ISpread* that contains the given item.
virtual ISpread* IPasteboardUtils::QuerySpread (IHierarchyitem,
const ScriptInfo::RequestContextcontext,
bool16 useLastFrameIfOverset = kFalse 
) const
pure virtual

For script provider implementations (

See Also
CScriptProvider): Query the spread on which a page item rests. Forces recompose first for inline page items.
Parameters
pageitem for which to get the spread
contextis the script request context
useLastFrameIfOversetif kTrue and item is an inline object in overset text, return the spread for the last frame in the text's story (instead of nil)
Returns
spread that contains the given item
virtual ISpread* IPasteboardUtils::QuerySpread (IControlViewlayoutView,
const PBPMPointlocation 
) const
pure virtual

Query the spread containing the particular location in the view. The caller should deference the return interface.

Parameters
layoutViewthe given layout view, one of the condition for querying spread.
locationthe given location, one of the condition for querying spread.
Returns
ISpread* spread that satisfies the given conditions. May return nil for points outside any spread (e.g. no man's land gray area)
virtual ISpread* IPasteboardUtils::QuerySpread (IControlViewlayoutView,
const PMReallocation,
bool16 horizontal 
) const
pure virtual

Query the spread with the particular coordinate in a horizontal or vertical direction in the view. The caller should deference the return interface.

Parameters
layoutViewthe given layout view, one of the condition for querying spread.
locationthe given location, one of the condition for querying spread.
horizontalthe given direction, one of the condition for querying spread.
Returns
ISpread* spread that satisfies the given conditions. May return nil for points outside any spread (e.g. no man's land gray area)