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

Public Types | |
| enum | { kDefaultIID = IID_ILIBRARYASSETCOLLECTION } |
Public Member Functions | |
| virtual ILibraryAsset * | AcquireNewAsset ()=0 |
| virtual ILibraryAsset * | AcquireAssetCopy (ILibraryAsset *sourceAsset)=0 |
| virtual ILibraryAsset * | AcquireAsset (const LibraryAssetID &id)=0 |
| virtual void | ReleaseAsset (ILibraryAsset *asset, bool16 assetWasChanged=kTrue, bool16 bForce=kFalse)=0 |
| virtual void | RemoveAsset (const LibraryAssetID &id)=0 |
| virtual bool16 | IsOpen () const =0 |
| virtual bool16 | IsLocked () const =0 |
| virtual ILibraryAssetIterator * | CreateIteratorWithFilter (ILibraryComplexFilterData *inFilter)=0 |
| virtual int32 | Length () const =0 |
| virtual bool16 | Open (const IDFile &libraryFile)=0 |
| virtual bool16 | Create (const IDFile &libraryFile)=0 |
| virtual void | Close ()=0 |
| virtual void | DisableLibraryLevelNotification ()=0 |
| virtual void | EnableLibraryLevelNotification ()=0 |
| virtual void | DisableAssetLevelNotification ()=0 |
| virtual void | EnableAssetLevelNotification ()=0 |
| virtual void | ClearHasChangedStatus ()=0 |
| virtual void | SetHasChangedStatus ()=0 |
| virtual bool16 | HasChanged ()=0 |
| virtual bool16 | NeedsSnippetConversion (const IDFile &libraryFile)=0 |
| virtual bool16 | ConvertToSnippets (const IDFile &oldLibraryFile, IDFile &tmpLibraryFile, IDFile &newLibraryFile, bool16 bUseOldName=kFalse)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
A secondary interface to the Library boss, this controls the "collection" of assets that make up the library. Use this to add and remove assets from the library.
| pure virtual |
Gets the asset with the given id and returns a pointer to it. You must later release the asset.
| id | IN the LibraryAssetID for the asset to get |
| pure virtual |
Adds a new asset to the collection by copying an existing asset and returns a pointer to the new copy. You must later release the copied asset.
| sourceAsset | IN the asset to copy |
| pure virtual |
Adds a new empty asset to the collection and returns a pointer to it. You must later release the asset.
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
Returns an iterator to traverse the assets in the collection.
| IN | inFilter information about how to filter; pass nil to see all assets |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
Get whether the collection is locked (no changes can be made).
| pure virtual |
Get whether the collection is open.
| pure virtual |
Get the total number of assets in collection.
| pure virtual |
| pure virtual |
| pure virtual |
Releases the asset. If the assetWasChanged flag is true, observers will be notified that the asset has changed.
| asset | IN an interface pointer to the asset to release |
| assetWasChanged | IN kTrue to notify observers, kFalse otherwise |
| bForce | IN * For Internal Use Only * |
| pure virtual |
Removes the asset with the given id from the collection.
| id | IN the asset's LibraryAssetID |
| pure virtual |