InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CDragDropTarget_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 
24 #ifndef __CDragDropTarget_Extensible__
25 #define __CDragDropTarget_Extensible__
26 
27 #include "ShuksanID.h"
28 #include "DragDropID.h"
29 
30 #include "IEvent.h"
31 #include "CDragDropTarget.h"
32 #include "IDropTargetCallback.h"
33 #include "IDragDropController.h"
34 #include "IDragDropTargetFlavorHelper.h"
35 
36 #include "HelperInterface.h"
37 #include "PMFlavorTypes.h"
38 #include "CmdUtils.h"
39 
40 class DataObjectIterator;
41 
42 
50 {
51  typedef CDragDropTarget inherited;
52 
53  public:
55  virtual ~CDragDropTarget_Extensible();
56 
68 
70  virtual void HandleDoDragEnter();
72  virtual bool16 HandleDoDragEnter_PreflightDragData(IDragDropController*);
74  virtual void HandleDoDragWithin(const PMPoint& localPt);
76  virtual void HandleDoDragLeave();
78  virtual ErrorCode HandleProcessDragDropCommand(IDragDropController*, DragDrop::eCommandType);
80 
85  virtual void PrepareTargetForDrag();
86 
91 
92  // Extensibility
95  virtual ServiceID GetFlavorHelperServiceID() const = 0;
96 
103 
105  bool16 CanHandleDragData() const {return fCanHandleDragData;}
107  void SetCanHandleDragData(bool16 can) {fCanHandleDragData = can;}
108 
115 
117  virtual PMRect HandleGetDragDataBounds() const;
118 
119  protected:
124 
125  private:
126  IDragDropTargetFlavorHelper* fActiveFlavorHelper;
127 
128  bool16 fCanHandleDragData; // Once we see what the data is, can we still deal with a drop.
129 
130 
131 };
132 
133 
134 #endif