InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ILibraryScrapUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Mark VerMurlen
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 // Reviewed: 9/25/98
24 //
25 // Purpose:
26 // This interface is responsible for assisting the Library Panel's Scrap Controller.
27 //
28 //========================================================================================
29 
30 #ifndef __ILibraryScrapUtils__
31 #define __ILibraryScrapUtils__
32 
33 #include "IPMUnknown.h"
34 #include "LibraryAssetID.h"
35 #include "LibraryProviderID.h"
36 #include "PMFlavorTypes.h"
37 
38 class ILibrary;
39 class ILibraryAsset;
40 class UIDList;
41 class IDataBase;
43 class XMLReference;
44 
49 {
50 public:
51  enum {kDefaultIID = IID_ILIBRARYSCRAPUTILS};
52 
60  virtual LibraryAssetID ConvertToLibraryAsset(const UIDList *originalPageItems,
61  const UIDList *libraryScrapPageItems, ILibrary* library,
62  bool16 fromCompletePage = false) = 0;
63 
71  virtual LibraryAssetID ConvertToAssetUsingSnippets(ILibrary *library, UIDList *itemList,
72  IDataExchangeHandler *handler, ExternalPMFlavor gotFlavor) = 0;
73 
82  virtual ErrorCode UpdateItemAsset(ILibrary *library, ILibraryAsset* asset, UIDList *itemList,
83  IDataExchangeHandler *handler, ExternalPMFlavor gotFlavor) = 0;
84 
93  virtual ErrorCode UpdateStructureAsset(ILibrary *library, ILibraryAsset* asset, XMLReference& fromThis,
94  IDataExchangeHandler *handler, ExternalPMFlavor gotFlavor) = 0;
95 
104  IDataExchangeHandler *handler, ExternalPMFlavor gotFlavor) = 0;
105 
110  virtual bool16 IsScrapDB(IDataBase* db) = 0;
111 };
112 
113 #endif