InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDragDropSource.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 // Interface definition for Drag and Drop sources
24 //
25 //========================================================================================
26 
27 #ifndef __IDragDropSource__
28 #define __IDragDropSource__
29 
30 #include "DragDropConstants.h"
31 #include "DragDropID.h"
32 
33 #include "IPMUnknown.h"
34 #include "CursorSpec.h"
35 
37 class IDragDropTarget;
38 class IEvent;
39 class ICommand;
40 class IDragItemIterator;
41 class ICommandSequence;
42 class IDataBase;
43 
50 {
51  public:
52  enum { kDefaultIID = IID_IDRAGDROPSOURCE };
53 
54  public:
60  virtual bool16 WillDrag(IEvent* e) const = 0;
61 
69  virtual CursorSpec GetDragCursor(DragDrop::eTargetResponse, bool16 isDragLocal ) const = 0;
70 
77  virtual SysWireframe DoMakeDragOutlineRegion() const = 0;
78 
84  virtual bool16 DoAddDragContent(IDragDropController*) = 0;
85 
93  virtual ErrorCode ProcessDragDropCommand(IDragDropController* controller, DragDrop::eCommandType) = 0;
94 
101  virtual IDataBase* GetSourceDataBase() const = 0;
102 };
103 
104 #endif