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

#include <ILibraryCmdUtils.h>

Inheritance diagram for ILibraryCmdUtils:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_ILIBRARYCMDUTILS }
 

Public Member Functions

virtual ICommandCreateLibraryAddItemCmd (UIDList *selection, ILibrary *library, bool16 fromCompletePage=false)=0
 
virtual ICommandCreateLibraryUpdateItemCmd (UIDList *selection, ILibrary *library, const AssetIDList &assetList)=0
 
virtual ICommandCreateLibraryCopyItemsCmd (const AssetIDList &sourceAssetList, ILibrary *sourceLibrary, ILibrary *destLibrary)=0
 
virtual ICommandCreateLibraryDeleteItemsCmd (const AssetIDList &assetList, ILibrary *library)=0
 
virtual ICommandCreateLibraryNewLibCmd (const IDFile &libraryFile)=0
 
virtual ICommandCreateLibraryOpenLibCmd (const IDFile &libraryFile)=0
 
virtual ICommandCreateLibraryCloseLibCmd (ILibrary *library)=0
 
virtual ErrorCode ProcessLibraryAddItemCmd (UIDList *selection, ILibrary *library, bool16 fromCompletePage=false, AssetIDList *newAssetList=nil, IDataExchangeHandler *handler=nil, ExternalPMFlavor gotFlavor=kNoFlavor)=0
 
virtual ErrorCode ProcessLibraryAddStructureCmd (XMLReference &addThis, ILibrary *library, AssetIDList *newAssetList=nil, IDataExchangeHandler *handler=nil, ExternalPMFlavor gotFlavor=kNoFlavor)=0
 
virtual ErrorCode ProcessLibraryUpdateItemCmd (UIDList *selection, ILibrary *library, AssetIDList *newAssetList=nil, IDataExchangeHandler *handler=nil, ExternalPMFlavor gotFlavor=kNoFlavor)=0
 
virtual ErrorCode ProcessLibraryUpdateStructureCmd (XMLReference &addThis, ILibrary *library, AssetIDList *assetList=nil, IDataExchangeHandler *handler=nil, ExternalPMFlavor gotFlavor=kNoFlavor)=0
 
virtual ErrorCode ProcessLibraryCopyItemsCmd (const AssetIDList &sourceAssetList, ILibrary *sourceLibrary, ILibrary *destLibrary)=0
 
virtual ErrorCode ProcessLibraryDeleteItemsCmd (const AssetIDList &assetList, ILibrary *library)=0
 
virtual ErrorCode ProcessLibraryNewLibCmd (const IDFile &libraryFile)=0
 
virtual ErrorCode ProcessLibraryOpenLibCmd (const IDFile &libraryFile, UIDRef *openedLib=nil)=0
 
virtual ErrorCode ScheduleLibraryCloseLibCmd (ILibrary *library)=0
 
virtual ErrorCode OpenLibraryWithUI (const IDFile &sysFile, UIDRef *openedLib=nil)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Static Public Member Functions

static ILibraryCmdUtilsQueryLibraryCmdUtils ()
 

Detailed Description

Used to create and process the various commands of the Library.

Member Function Documentation

virtual ICommand* ILibraryCmdUtils::CreateLibraryAddItemCmd (UIDListselection,
ILibrarylibrary,
bool16 fromCompletePage = false 
)
pure virtual

Create a command to add a library asset from pageitems.

Parameters
selectionIN the items to add
libraryIN the library to contain the items
fromCompletePageIN if kTrue, we are adding all items from the page
Returns
interface pointer to ICommand
virtual ICommand* ILibraryCmdUtils::CreateLibraryCloseLibCmd (ILibrarylibrary)
pure virtual

Create a command to close a library.

Parameters
libraryIN file specification for the library file
Returns
interface pointer to ICommand
virtual ICommand* ILibraryCmdUtils::CreateLibraryCopyItemsCmd (const AssetIDListsourceAssetList,
ILibrarysourceLibrary,
ILibrarydestLibrary 
)
pure virtual

Create a command to copy assets from one library to another.

Parameters
sourceAssetListIN assetID's of assets being copied
sourceLibraryIN ILibrary pointer to source library
destLibraryIN ILibrary pointer to destination library
Returns
interface pointer to ICommand
virtual ICommand* ILibraryCmdUtils::CreateLibraryDeleteItemsCmd (const AssetIDListassetList,
ILibrarylibrary 
)
pure virtual

Create a command to delete library assets.

Parameters
assetListIN assetIDs of assets to delete
libraryIN ILibrary pointer to library
Returns
interface pointer to ICommand
virtual ICommand* ILibraryCmdUtils::CreateLibraryNewLibCmd (const IDFilelibraryFile)
pure virtual

Create a command to create a new library.

Parameters
libraryFileIN file specification for the library file
Returns
interface pointer to ICommand
virtual ICommand* ILibraryCmdUtils::CreateLibraryOpenLibCmd (const IDFilelibraryFile)
pure virtual

Create a command to open a library.

Parameters
libraryFileIN file specification for the library file
Returns
interface pointer to ICommand
virtual ICommand* ILibraryCmdUtils::CreateLibraryUpdateItemCmd (UIDListselection,
ILibrarylibrary,
const AssetIDListassetList 
)
pure virtual

Create a command to update a library asset from pageitems.

Parameters
selectionIN the items to add
libraryIN the library containing the asset being updated
assetListIN AssetIDList containing one and only one assetID for asset to update
Returns
interface pointer to ICommand
virtual ErrorCode ILibraryCmdUtils::OpenLibraryWithUI (const IDFilesysFile,
UIDRefopenedLib = nil 
)
pure virtual

Open a library with the Library Panel UI brought up.

Parameters
sysFileIN the file specification of the library to open
openedLibOUT a UIDRef for the library opened
Returns
error code
virtual ErrorCode ILibraryCmdUtils::ProcessLibraryAddItemCmd (UIDListselection,
ILibrarylibrary,
bool16 fromCompletePage = false,
AssetIDListnewAssetList = nil,
IDataExchangeHandlerhandler = nil,
ExternalPMFlavor gotFlavor = kNoFlavor 
)
pure virtual

Create and immediately process a command to add a library asset from pageitems.

Parameters
selectionIN a pointer to the items to add, if IDataExchangeHandler is nil; this interface takes ownership of the pointer
libraryIN the library to contain the items
fromCompletePageIN if kTrue, we are adding all items from the page
newAssetListOUT if supplied, contains the created assetIDs
handlerIN data exchange handler containing data, if selection UIDList pointer is nil
gotFlavorIN flavor used by data exchange handler, if used
Returns
error code
virtual ErrorCode ILibraryCmdUtils::ProcessLibraryAddStructureCmd (XMLReferenceaddThis,
ILibrarylibrary,
AssetIDListnewAssetList = nil,
IDataExchangeHandlerhandler = nil,
ExternalPMFlavor gotFlavor = kNoFlavor 
)
pure virtual

Create and immediately process a command to add a library asset from structure.

Parameters
addThisIN a pointer to the XMLReference to add, if IDataExchangeHandler is nil
libraryIN the library to contain the items
newAssetListOUT if supplied, contains the created assetIDs
handlerIN data exchange handler containing data, if XMLReference is nil
gotFlavorIN flavor used by data exchange handler, if used
Returns
error code
virtual ErrorCode ILibraryCmdUtils::ProcessLibraryCopyItemsCmd (const AssetIDListsourceAssetList,
ILibrarysourceLibrary,
ILibrarydestLibrary 
)
pure virtual

Create and immediately process a command to copy an asset from one library to another.

Parameters
sourceAssetListIN assetID's of assets being copied
sourceLibraryIN ILibrary pointer to source library
destLibraryIN ILibrary pointer to destination library
Returns
error code
virtual ErrorCode ILibraryCmdUtils::ProcessLibraryDeleteItemsCmd (const AssetIDListassetList,
ILibrarylibrary 
)
pure virtual

Create and immediately process a command to delete library assets.

Parameters
assetListIN assetIDs of assets to delete
libraryIN ILibrary pointer to library
Returns
error code
virtual ErrorCode ILibraryCmdUtils::ProcessLibraryNewLibCmd (const IDFilelibraryFile)
pure virtual

Create and immediately process a command to create a new library.

Parameters
libraryFileIN file specification for the library file
Returns
error code
virtual ErrorCode ILibraryCmdUtils::ProcessLibraryOpenLibCmd (const IDFilelibraryFile,
UIDRefopenedLib = nil 
)
pure virtual

Create and immediately process a command to open a library.

Parameters
libraryFileIN file specification for the library file
openedLibOUT a UIDRef for the library opened
Returns
error code
virtual ErrorCode ILibraryCmdUtils::ProcessLibraryUpdateItemCmd (UIDListselection,
ILibrarylibrary,
AssetIDListnewAssetList = nil,
IDataExchangeHandlerhandler = nil,
ExternalPMFlavor gotFlavor = kNoFlavor 
)
pure virtual

Create and immediately process a command to update a library asset from pageitems.

Parameters
selectionIN a pointer to the one and only one to add, if IDataExchangeHandler is nil
libraryIN the library to contain the items
newAssetListOUT if supplied, contains the created assetIDs
handlerIN data exchange handler containing data, if selection UIDList pointer is nil
gotFlavorIN flavor used by data exchange handler, if used
Returns
error code
virtual ErrorCode ILibraryCmdUtils::ProcessLibraryUpdateStructureCmd (XMLReferenceaddThis,
ILibrarylibrary,
AssetIDListassetList = nil,
IDataExchangeHandlerhandler = nil,
ExternalPMFlavor gotFlavor = kNoFlavor 
)
pure virtual

Create and immediately process a command to update a library asset from structure.

Parameters
addThisIN a pointer to the XMLReference to add, if IDataExchangeHandler is nil
libraryIN the library to contain the items
assetListOUT if supplied, contains the created assetIDs
handlerIN data exchange handler containing data, if XMLReference is nil
gotFlavorIN flavor used by data exchange handler, if used
Returns
error code
static ILibraryCmdUtils* ILibraryCmdUtils::QueryLibraryCmdUtils ()
inlinestatic

Get an instance of the Library Cmd Utility Boss

Returns
an Interface pointer for ILibraryCmdUtils
virtual ErrorCode ILibraryCmdUtils::ScheduleLibraryCloseLibCmd (ILibrarylibrary)
pure virtual

Create and schedule a command close a library.

Parameters
libraryIN file specification for the library file
Returns
error code