InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ILibrarySuite.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Paul Sorrick
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //
23 // Note:
24 //
25 //========================================================================================
26 
27 #ifndef __ILibrarySuite__
28 #define __ILibrarySuite__
29 
30 #include "IPMUnknown.h"
31 #include "ShuksanID.h"
32 #include "LibraryAssetID.h"
33 
34 // Forward declaration
35 class ILibrary;
36 class IDocument;
37 class IControlView;
38 
39 class ILibrarySuite : public IPMUnknown
40 {
41 public:
42  enum { kDefaultIID = IID_ILIBRARYSUITE };
43 
44 // ----- Abilities
45 
51  virtual bool16 CanAddToLibrary (ILibrary* library, IControlView* view) const = 0;
52 
58  virtual bool16 CanUpdateLibraryItem (ILibrary* library, const AssetIDList &assetList, IControlView* view) const = 0;
59 
66  virtual bool16 CanAddPageToLibrary (ILibrary* library, IControlView* view) const = 0;
67 
74  virtual bool16 CanPlaceLibraryItems (const AssetIDList &assetList, ILibrary* library, IControlView* view) const = 0;
75 
76  // ----- Manipulators
77 
84  virtual ErrorCode DoAddToLibrary (ILibrary* library, AssetIDList* newAssetIDList, IControlView* view) = 0;
85 
92  virtual ErrorCode DoUpdateLibraryItem (ILibrary* library, AssetIDList* assetIDList, IControlView* view) = 0;
93 
101  virtual ErrorCode DoAddPageToLibrary (ILibrary* library, AssetIDList* newAssetIDList, IControlView* view, bool16 bSeparateAssets = kFalse) = 0;
102 
110  virtual ErrorCode DoPlaceLibraryItems(const AssetIDList &assetList, ILibrary *library, UIDList& out_placedItemList, IControlView* view) = 0;
111 
112 };
113 
114 #endif // __ILibrarySuite__