InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICopyCmdData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: robin briggs
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 // Data interface for copying page items.
24 //
25 //========================================================================================
26 
27 #ifndef __ICopyCmdData__
28 #define __ICopyCmdData__
29 
30 #include "IPMUnknown.h"
31 #include "PageItemScrapID.h"
32 #include "UIDRef.h"
33 #include "PMPoint.h"
34 
35 class UIDList;
36 class PMMatrix;
37 class ICommand;
39 
42 class ICopyCmdData : public IPMUnknown
43 {
44 public:
45  enum { kDefaultIID = IID_ICOPYCMDDATA };
46 
53  virtual void Set(ICommand *rootCmd, UIDList *inputItems, const UIDRef& parent, IDataExchangeHandler* destinationHandler = nil) = 0;
54 
60  virtual void SetTransform(const PMMatrix& transform) = 0;
61 
65  virtual void SetOffset(const PMPoint& offset) = 0;
66 
70  virtual void SetParent(const UIDRef& parent) = 0;
71 
75  virtual const UIDRef& GetParent() const = 0;
76 
80  virtual const UIDList *GetInputItems() const = 0;
81 
85  virtual const PMMatrix& GetTransform() const = 0;
86 
90  virtual bool16 GetTransformWasExplicitlySet() const = 0;
91 
95  virtual const PBPMPoint& GetOffset() const = 0;
96 
100  virtual const UIDList *GetTotalList() = 0;
101 
106  virtual ICommand *GetCopyCmd(UID id) = 0;
107 
111  virtual ICommand *GetRootCmd() const = 0;
112 
119  virtual ICommand *GetCopyCmd(ClassID clsID, int32 which, int32 *index = nil) = 0;
120 
126  virtual void ReleaseDestinationHandler() = 0;
127 
131  virtual IDataExchangeHandler* GetDestinationHandler() const = 0;
132 
136  virtual void SetCopySourceCMSProfilesToTarget( bool16 bCopyProfiles ) = 0;
137 
142  virtual bool16 CopySourceCMSProfilesToTarget() const = 0;
143 
144 };
145 
146 
147 #endif // __ICopyCmdData__