InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CDragDropTargetFlavorHelper.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 __CDragDropTargetFlavorHelper__
25 #define __CDragDropTargetFlavorHelper__
26 
27 #include "IDragDropTargetFlavorHelper.h"
28 
29 #include "IDragDropSource.h"
30 #include "IDragDropTarget.h"
31 #include "IDragDropController.h"
32 #include "IDataExchangeHandler.h"
33 
34 
35 //========================================================================
36 // Class CDragDropTargetFlavorHelper
42 //========================================================================
44 {
45  public:
47  virtual ~CDragDropTargetFlavorHelper();
48 
52  virtual DragDrop::eHelperType
53  GetHelperType() const;
54 
58  virtual bool16 HelperWillDoDragTracking() const;
59 
63  virtual void PrepareHelperForDrag() const;
64 
69 
71  bool16 CanHandleDragData() const {return fCanHandleDragData;}
73  void SetCanHandleDragData(bool16 can) {fCanHandleDragData = can;}
74 
79 
83  virtual void DoDragEnter(IDragDropTarget*);
87  virtual void DoDragWithin(IDragDropTarget*, const PMPoint& localPt);
91  virtual void DoDragLeave(IDragDropTarget*);
92 
96 
101 
105  virtual PMRect GetDragDataBounds() const;
106 
107  protected:
108  DragDrop::TargetResponse GetCachedResponse() const {return fCachedResponse;}
109 
110  mutable DragDrop::TargetResponse fCachedResponse;
111  mutable bool16 fCanHandleDragData;
112 };
113 
114 
115 #endif