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

#include <ILibraryService.h>

Inheritance diagram for ILibraryService:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_ILIBRARYSERVICE }
 

Public Member Functions

virtual ILibraryCreateLibrary ()=0
 
virtual void ReleaseLibrary (ILibrary *library)=0
 
virtual int32 NumLibraries () const =0
 
virtual ILibraryQueryNthLibrary (int32 n) const =0
 
virtual ILibraryCmdUtilsQueryLibraryCmdUtils () const =0
 
virtual ILibraryDragDropUtilsQueryLibraryDDUtils () const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

This interface is used to create and manage Library Bosses. It also is used to obtain interfaces to Library utilities.

Member Function Documentation

virtual ILibrary* ILibraryService::CreateLibrary ()
pure virtual

Create a new library object and return a pointer to it. The library service keeps a reference to the library, so the caller must call ReleaseLibrary when finished with it to cause the Library Service to release it.

Returns
interface pointer to library created
virtual int32 ILibraryService::NumLibraries () const
pure virtual

Get the number of library objects currently in use.

Returns
the number of libraries
virtual ILibraryCmdUtils* ILibraryService::QueryLibraryCmdUtils () const
pure virtual

Get the Library Command Utilities interface.

Returns
interface pointer to ILibraryCmdUtils
virtual ILibraryDragDropUtils* ILibraryService::QueryLibraryDDUtils () const
pure virtual

Get the Library Drag&Drop Utilities interface.

Returns
interface pointer to ILibraryDragDropUtils
virtual ILibrary* ILibraryService::QueryNthLibrary (int32 n) const
pure virtual

Get the Nth library.

Parameters
nIN library index
Returns
interface pointer to nth library
virtual void ILibraryService::ReleaseLibrary (ILibrarylibrary)
pure virtual

Call when finished with using a library object. The library will most likely be destructed during this call.

Parameters
libraryIN the library to release