InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
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
//========================================================================
43
class
CDragDropTargetFlavorHelper
:
public
IDragDropTargetFlavorHelper
44
{
45
public
:
46
CDragDropTargetFlavorHelper
(
IPMUnknown
*boss);
47
virtual
~
CDragDropTargetFlavorHelper
();
48
52
virtual
DragDrop::eHelperType
53
GetHelperType
()
const
;
54
58
virtual
bool16
HelperWillDoDragTracking
()
const
;
59
63
virtual
void
PrepareHelperForDrag
()
const
;
64
67
virtual
DragDrop::TargetResponse
68
CouldAcceptTypes
(
const
IDragDropTarget
*,
DataObjectIterator
*,
const
IDragDropSource
*,
const
IDragDropController
*)
const
= 0;
69
71
bool16
CanHandleDragData
()
const
{
return
fCanHandleDragData;}
73
void
SetCanHandleDragData
(bool16 can) {fCanHandleDragData = can;}
74
78
virtual
bool16
DoDragEnter_PreflightDragData
(
IDragDropTarget
*,
IDragDropController
*);
79
83
virtual
void
DoDragEnter
(
IDragDropTarget
*);
87
virtual
void
DoDragWithin
(
IDragDropTarget
*,
const
PMPoint
& localPt);
91
virtual
void
DoDragLeave
(
IDragDropTarget
*);
92
95
virtual
ErrorCode
ProcessDragDropCommand
(
IDragDropTarget
*,
IDragDropController
*,
DragDrop::eCommandType
) = 0;
96
99
DragDrop::TargetResponse
100
HandleCouldAcceptTypes
(
const
IDragDropTarget
*,
DataObjectIterator
*,
const
IDragDropSource
*,
const
IDragDropController
*)
const
;
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
tmpdoxygeninput
CDragDropTargetFlavorHelper.h
Generated on Sat Jul 19 2025 02:54:11 for InDesign SDK by
1.8.3.1