![]() | InDesign SDK 20.5 |
#include <IPSDLayerCompInfo.h>

Public Types | |
| enum | { kDefaultIID = IID_IPSDLAYERCOMPINFO } |
| enum | { kCustomLayerCompID = -2, kLastDocStateCompID = -1 } |
Public Member Functions | |
| virtual void | Clear ()=0 |
| virtual void | Copy (const IPSDLayerCompInfo *srcCompInfo)=0 |
| virtual void | Preallocate (int32 numberComps)=0 |
| virtual void | InsertLayerComp (const PMString &layerCompName, const PMString &layerCompComment, int32 layerCompID, LayerVisibilityList &layerVisibilityList)=0 |
| virtual void | AppendLayerComp (const PMString &layerCompName, const PMString &layerCompComment, int32 layerCompID, LayerVisibilityList &layerVisibilityList)=0 |
| virtual void | RemoveLayerComp (int32 layerCompID)=0 |
| virtual bool16 | ValidateLayerComp (const IPSDLayerCompInfo *srcCompInfo)=0 |
| virtual bool16 | LayerCompChanged () const =0 |
| virtual void | SetOriginalLastAppliedCompID (int32 layerCompID)=0 |
| virtual void | SetCurrentLastAppliedCompID (int32 layerCompID)=0 |
| virtual int32 | GetNumberLayerComps () const =0 |
| virtual PMString | GetLayerCompName (int32 layerCompID) const =0 |
| virtual PMString | GetNthLayerCompName (int32 index) const =0 |
| virtual PMString | GetLayerCompComment (int32 layerCompID) const =0 |
| virtual PMString | GetNthLayerCompComment (int32 index) const =0 |
| virtual LayerVisibilityList | GetLayerCompVisibilityList (int32 layerCompID) const =0 |
| virtual LayerVisibilityList | GetNthLayerCompVisibilityList (int32 index) const =0 |
| virtual int32 | GetLayerCompIndex (int32 layerCompID) const =0 |
| virtual int32 | GetNthLayerCompID (int32 index) const =0 |
| virtual int32 | GetOriginalLastAppliedCompID () const =0 |
| virtual int32 | GetCurrentLastAppliedCompID () const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
An interface for holding a native Photoshop file's (PSD) layer comp information which has been read out and parsed from the 0x0429 image resource.
| anonymous enum |
| pure virtual |
Append a layer comp onto the interface. The layer comp will be appended onto the end of the list. It is assumed that all layer comps are uniquely IDed.
| layerCompName | IN a PMString containing a layer comp name. |
| layerCompComment | IN a PMString containing a layer comp comment. |
| layerCompID | IN a unique ID that can represent the layer comp |
| layerVisibilityList | IN a LayerVisibilityList containing the key/value pairs denoting the layer visibility for each layer, as defined by the layer comp. |
| pure virtual |
Clear all layer comps out of the interface.
| pure virtual |
Copy all information from the given interface into this interface. This will perform a Clear() on the existing information prior to the copy.
| srcCompInfo | IN the source IPSDLayerCompInfo to copy from. |
| pure virtual |
Get the ID of the currently applied layer comp.
| pure virtual |
Get the comment for the layer comp with the given unique ID.
| layerCompID | IN the unique ID of the layer comp to retrieve. |
| pure virtual |
Get the index of the layer comp with the given unique ID.
| layerCompID | IN the unique ID of the layer comp to retrieve. |
| pure virtual |
Get the name of the layer comp with the given unique ID.
| layerCompID | IN the unique ID of the layer comp to retrieve. |
| pure virtual |
Get the LayerVisibilityList for the layer comp with the given unique ID.
| layerCompID | IN the unique ID of the layer comp to retrieve. |
| pure virtual |
Get the comment for the layer comp of the given layer comp index.
| index | IN the index of the layer comp to retrieve. |
| pure virtual |
Get the unique ID of the layer comp of the given layer comp index.
| index | IN the index of the layer comp ID to retrieve. |
| pure virtual |
Get the name of the layer comp of the given layer comp index.
| index | IN the index of the layer comp to retrieve. |
| pure virtual |
Get the LayerVisibilityList for the layer comp of the given layer comp index.
| index | IN the index of the layer comp to retrieve. |
| pure virtual |
Get the number of layers comps currently stored in the interface. For use when iterating through the layer comps, setting or getting specific information.
| pure virtual |
Get the ID of the originally applied layer comp.
| pure virtual |
Insert a layer comp into the interface. The layer comp will be inserted into the front of the list. It is assumed that all layer comps are uniquely IDed.
| layerCompName | IN a PMString containing a layer comp name. |
| layerCompComment | IN a PMString containing a layer comp comment. |
| layerCompID | IN a unique ID that can represent the layer comp |
| layerVisibilityList | IN a LayerVisibilityList containing the key/value pairs denoting the layer visibility for each layer, as defined by the layer comp. |
| pure virtual |
See if the layer comp has changed.
| pure virtual |
Preallocate the layer comp list to this size. If it is known before hand how many layer comps will be added to the interface, use this to preallocate the number of entries.
| numberComps | IN the number of entries that will be added to the list. |
| pure virtual |
Remove a layer from the interface.
| layerCompID | IN the ID of the layer comp to remove. |
| pure virtual |
Set the current applied layer comp ID.
| layerCompID | IN the ID of the currently applied layer comp. |
| pure virtual |
Set the original applied layer comp ID.
| layerCompID | IN the ID of the originally applied layer comp. |
| pure virtual |
Check if the currently applied layer comp in the given IPSDLayerCompInfo exists in the given IPSDLayerCompInfo interface.
| srcCompInfo | IN the source IPSDLayerCompInfo to use. |