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

#include <IPageItemScrapUtils.h>

Inheritance diagram for IPageItemScrapUtils:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IPAGEITEMSCRAPUTILS }
 

Public Member Functions

virtual ICommandGetDuplicatePageItemsCmd (const UIDList *pageItems, const PMPoint &offset, UIDRef parent, bool16 preserveLayers) const =0
 
virtual ICommandGetDuplicatePathPointsCmd (const UIDList *pageItems, const PathSelectionList *pathItems, K2Vector< PointSelectorList > *newPathItems, const PMPoint &offset, UIDRef parent, bool16 preserveLayers) const =0
 
virtual UID FindLayer (IHierarchy *parentHier, const PMString &searchName, bool16 isGuideLayer) const =0
 
virtual UIDRef MakeLayer (const UIDRef &docRef, PMString *layerName, const IPageItemLayerData *layerData)=0
 
virtual UIDRef MakeLayer (const UIDRef &docRef, IDocumentLayer *sourceDocLayer)=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

Utilities related to page item scrap and duplicating page items.

Member Function Documentation

virtual UID IPageItemScrapUtils::FindLayer (IHierarchyparentHier,
const PMStringsearchName,
bool16 isGuideLayer 
) const
pure virtual

Find the uid of the spread layer to put a duplicated item on. Used when Paste Remembers Layers is on.

Parameters
parentHierthe hierarchy interface for the parent of the item being duplicated.
searchName,thename of the layer the item being duplicated is on.
isGuideLayerpass kTrue if duplicating guides (kGuideItemBoss), otherwise use kFalse.
Returns
UID the UID of the spread layer to duplicate the item on, kInvalidUID if a layer with that name is not present in the document.
See Also
ILayerList.h
ISpreadLayer.h
virtual UIDRef IPageItemScrapUtils::MakeLayer (const UIDRefdocRef,
PMStringlayerName,
const IPageItemLayerDatalayerData 
)
pure virtual

Create a layer with the given name in the document targetted by docRef, and using the data in layerData. Target layer will be created in same z-order position in target document as specified in layerData. Generally used internally by duplicate code to create matching destination layers as necessary. Only a layer is created, no content is copied.

Parameters
docRefa UIDRef to the target document
layerNamea pointer to the string to use for the name
layerDataan interface pointer containing information
Returns
a UIDRef to the created document layer.
See Also
IPageItemLayerData.h
IDocumentLayer.h
virtual UIDRef IPageItemScrapUtils::MakeLayer (const UIDRefdocRef,
IDocumentLayersourceDocLayer 
)
pure virtual

Create a layer in the target document with all the attributes of the source layer. Target layer will be created in same z-order position in target document as it is in source document. Generally internally by duplicate code to create matching destination layers as necessary. Only a layer is created, no content is copied.

Parameters
docRefa UIDRef to the target document
sourceDocLayeran interface pointer to the IDocumentLayer to copy attributes from.
Returns
a UIDRef to the created document layer.
See Also
IDocumentLayer.h