InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CDragDropSource_Extensible.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 for a generic extensible Drag and Drop source
24 //
25 //========================================================================================
26 
27 #ifndef __CDragDropSource_Extensible__
28 #define __CDragDropSource_Extensible__
29 
30 #include "HelperInterface.h"
31 #include "IK2ServiceProvider.h"
32 #include "IDragDropSource.h"
33 #include "IDragDropController.h"
34 
35 class IEvent;
36 class IDragDropTarget;
38 
39 
46 {
47  public:
49  virtual ~CDragDropSource_Extensible();
50 
54  virtual bool16 WillDrag(IEvent* e) const;
55 
57  virtual CursorSpec GetDragCursor(DragDrop::eTargetResponse, bool16 isDragLocal) const;
58 
60  virtual SysWireframe DoMakeDragOutlineRegion() const;
61 
63  virtual bool16 DoAddDragContent(IDragDropController*);
64 
67 
71  virtual IDataBase* GetSourceDataBase() const;
72 
75  virtual ServiceID GetContentHelperServiceID() const = 0;
76 
83 
88  bool16 Delegate_WillDrag(IEvent* e);
89 
93  SysWireframe Delegate_DoMakeDragOutlineRegion();
94 
95  private:
96  IDragDropSourceContentHelper* fActiveContentHelper;
97 
98 
99 };
100 
101 
102 #endif //__CDragDropSource__
103