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

Public Types | |
| enum | { kDefaultIID = IID_ILIBRARYSCRAPUTILS } |
Public Member Functions | |
| virtual LibraryAssetID | ConvertToLibraryAsset (const UIDList *originalPageItems, const UIDList *libraryScrapPageItems, ILibrary *library, bool16 fromCompletePage=false)=0 |
| virtual LibraryAssetID | ConvertToAssetUsingSnippets (ILibrary *library, UIDList *itemList, IDataExchangeHandler *handler, ExternalPMFlavor gotFlavor)=0 |
| virtual ErrorCode | UpdateItemAsset (ILibrary *library, ILibraryAsset *asset, UIDList *itemList, IDataExchangeHandler *handler, ExternalPMFlavor gotFlavor)=0 |
| virtual ErrorCode | UpdateStructureAsset (ILibrary *library, ILibraryAsset *asset, XMLReference &fromThis, IDataExchangeHandler *handler, ExternalPMFlavor gotFlavor)=0 |
| virtual LibraryAssetID | ConvertStructureToAssetUsingSnippets (ILibrary *library, XMLReference &addThis, IDataExchangeHandler *handler, ExternalPMFlavor gotFlavor)=0 |
| virtual bool16 | IsScrapDB (IDataBase *db)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This interface is responsible for assisting the Library Panel's Scrap Controller. It also contains methods for CS2-based asset handling (which doesn't directly use the scrap).
| pure virtual |
Convert structure into a Library Asset using Snippets
| library | IN interface pointer to the library |
| addThis | IN the structure item, or nil if using handler |
| handler | IN data exchange handler for data, if not using fromThis |
| gotFlavor | IN flavor if using handler |
| pure virtual |
Convert pageitems into a Library Asset using Snippets
| library | IN interface pointer to the library |
| itemList | IN pointer to list of pageitems to convert, or nil if using handler |
| handler | IN data exchange handler for data, if itemList is nil |
| gotFlavor | IN flavor if using handler |
| pure virtual |
DEPRECATED – Convert the Library Scrap into a Library Asset.
| originalPageItems | IN the original pageitems to convert |
| libraryScrapPageItems | IN items as stored in the library scrap |
| library | IN interface pointer to the library |
| fromCompletePage | IN if kTrue, we are adding all items from the page |
| pure virtual |
Check to see if a given database is the library scrap database.
| db | IN IDatabase to test. |
| pure virtual |
Update an asset using pageitems
| library | IN interface pointer to the library |
| asset | IN the asset to update |
| itemList | IN pointer to list of pageitems to use, or nil if using handler |
| handler | IN data exchange handler for data, if itemList is nil |
| gotFlavor | IN flavor if using handler |
| pure virtual |
Update a structure asset using XMLReference
| library | IN interface pointer to the library |
| asset | IN the asset to update |
| fromThis | IN the structure item, or nil if using handler |
| handler | IN data exchange handler for data, if not using fromThis |
| gotFlavor | IN flavor if using handler |