InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IScrapUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bernd Paradies
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 
24 #ifndef __IScrapUtils__
25 #define __IScrapUtils__
26 
27 #include "AppFrameworkID.h"
28 #include "IPMUnknown.h"
29 #include "Utils.h"
30 
31 #include "UIDRef.h"
32 
33 class UIDList;
34 
35 
42 class IScrapUtils : public IPMUnknown
43 {
44 public:
45  enum { kDefaultIID = IID_ISCRAPUTILS };
46 
47 
54  virtual void CopyObjects(const UIDList *srcItems, UIDList *destItems, IPMUnknown* pmobject = nil) = 0;
55 
56 
62  virtual UID CopyObject(const UIDRef& srcItem, IDataBase *targetDB, IPMUnknown* pmobject = nil) = 0;
63 
70  virtual UID CopyMappedObject(const UIDRef& srcItem, IDataBase *targetDB, IPMUnknown* pmobject = nil) = 0;
71 
77  virtual void CopyObjectInto (IPMUnknown* sourceItem, IPMUnknown* destinationItem, bool16 dirtyDestination) = 0;
78 
85  virtual void CopyPageItemObjects(const UIDList *srcItems, UIDList *destItems, IPMUnknown* pmobject = nil) = 0;
86 
92  virtual UID CopyPageItemObject(const UIDRef& srcItem, IDataBase *targetDB, IPMUnknown* pmobject = nil) = 0;
93 
98  virtual bool16 IsScrapDB(IDataBase * db) = 0;
99 
100 
106  virtual void UpdateOriginalLayerOnPaste(const UIDList& items) = 0;
107 
108 };
109 
110 
111 #endif // __IScrapUtils__