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

Public Types | |
| enum | { kDefaultIID = IID_ICATALOG } |
| enum | LibVersion { CURRENT = 0, ANNABETA = 1, ANNARELEASE = 2 } |
Public Member Functions | |
| virtual void | Init ()=0 |
| virtual UID | NewLibAsset ()=0 |
| virtual ILibraryAsset * | Acquire (const LibraryAssetID &id)=0 |
| virtual bool16 | Remove (const UID id)=0 |
| virtual UID | GetNthAssetUID (int32 pos)=0 |
| virtual int32 | GetAssetCount ()=0 |
| virtual bool16 | IsWritable ()=0 |
| virtual void | SetReadOnly (bool16 flag)=0 |
| virtual void | Close ()=0 |
| virtual IDataBase::DBResultCode | Save ()=0 |
| virtual void | SetPreferences (const PMString &propKey, const PMString &propValue)=0 |
| virtual void | GetPreferences (const PMString &propKey, PMString &propValue) const =0 |
| virtual K2Vector< UID > & | GetSearchResults ()=0 |
| virtual void | SetUseSubsetSearch (bool16 useSubsetSearch=kTrue)=0 |
| virtual bool16 | GetUseSubsetSearch ()=0 |
| virtual void | InitializeSearchResults (int16 booleanOp, PropUIDList *fromList=nil)=0 |
| virtual int16 | Search (IProperty *property, int32 whichComparator, IPMUnknown *value, int16 booleanOp, PropUIDList *fromList=nil) |
| virtual LibVersion | GetLibraryVersion ()=0 |
| virtual void | SetLibraryVersion (LibVersion libV)=0 |
| virtual bool16 | IsValid (const LibraryAssetID &id) 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 |
Provides access to assets in an InDesign library.
| pure virtual |
Acquire access to an asset.
| id | IN LibraryAssetID of the asset desired |
| pure virtual |
Close the catalog.
| pure virtual |
Get the number of assets.
| pure virtual |
For internal use only. Used for identifying older-version libraries.
| pure virtual |
Get the UID of an asset.
| pos | IN the index of the asset |
| pure virtual |
Get a catalog preference key/value pair.
| propKey | IN the key |
| propValue | IN the value |
Return the results from the most recent property search.
| pure virtual |
Get whether a subset property search is being used.
| pure virtual |
Initializes the catalog. Call this after creating a new catalog.
| pure virtual |
Initialize a property search.
| booleanOp | IN the boolean operation to use in the search – either ILibraryComplexFilterData::Conjunction_And or ILibraryComplexFilterData::Conjunction_Or |
| fromList | IN property list for search if other than all items; use nil for all items |
| pure virtual |
Tell whether an asset with the given LibraryAssetID exists.
| id | IN the LibraryAssetID of the asset |
| pure virtual |
Get whether the catalog is writable.
| pure virtual |
Create a new asset in the catalog file.
| pure virtual |
Remove an asset from the catalog.
| id | IN the UID of the asset to remove |
| pure virtual |
Save the catalog.
| inlinevirtual |
Perform a property search.
| property | IN property a pointer to the property |
| whichComparator | IN the comparator index for the property |
| value | IN interface pointer to the value to compare |
| booleanOp | IN the boolean operation to use in the search – either ILibraryComplexFilterData::Conjunction_And or ILibraryComplexFilterData::Conjunction_Or |
| fromList | IN property list for search; may be nil if searching all property items |
| pure virtual |
For internal use only. Used for identifying older-version libraries.
| pure virtual |
Set a catalog preference key/value pair.
| propKey | IN the key |
| propValue | IN the value |
| pure virtual |
Set the read-only status of the catalog.
| flag | IN kTrue for set to read-only, kFalse for writable |
| pure virtual |
Set whether to use a subset property search.
| useSubsetSearch | IN kTrue for subset search; kFalse otherwise |