InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDropDesktopFileCmdData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Dave Burnard
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 import/placing when a desktop file is dragged over a pub.
24 //
25 //========================================================================================
26 
27 #ifndef __IDropDesktopFileCmdData__
28 #define __IDropDesktopFileCmdData__
29 
30 #include "IPMUnknown.h"
31 #include "DragDropID.h"
32 #include "UIDRef.h"
33 #include "PMPoint.h"
34 
35 class IPlaceBehavior;
36 class IHierarchy;
37 
42 {
43 public:
44  enum { kDefaultIID = IID_IDROPDESKTOPFILECMDDATA };
45 
47  enum eDropBehavior {
56  };
57 
68  virtual void Set(const PMPoint& where, const UIDRef& parent, IDFile &file, UIFlags flags, const UIDRef& targetDoc, IPlaceBehavior* targetBehavior, const eDropBehavior dropBehavior = kPlace ) = 0;
69 
80  virtual void Set(const PMPoint& where, const UIDRef& parent, IDFile &file, UIFlags flags, const UIDRef& targetDoc, IHierarchy* targetHier, const eDropBehavior dropBehavior = kPlace ) = 0;
82  virtual const PMPoint& GetDropPoint() const = 0;
84  virtual const UIDRef& GetParent() const = 0;
86  virtual const IDFile& GetSysFile() const = 0;
88  virtual UIFlags GetUIFlags() const = 0;
90  virtual const UIDRef& GetTargetDocument() const = 0;
92  virtual IPlaceBehavior* GetTargetBehavior() const = 0;
94  virtual IHierarchy* GetTargetHierarchy() const = 0;
96  virtual const eDropBehavior GetDropBehavior() const = 0;
97 };
98 
99 #endif // __IDropDesktopFileCmdData__