InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
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
49
class
CDragDropTarget_Extensible
:
public
CDragDropTarget
50
{
51
typedef
CDragDropTarget
inherited
;
52
53
public
:
54
CDragDropTarget_Extensible
(
IPMUnknown
*boss);
55
virtual
~
CDragDropTarget_Extensible
();
56
66
virtual
DragDrop::TargetResponse
67
HandleCouldAcceptTypes
(
DataObjectIterator
*,
const
IDragDropSource
*,
const
IDragDropController
*);
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
90
virtual
ErrorCode
ProcessDragDropCommand
(
IDragDropController
*,
DragDrop::eCommandType
);
91
92
// Extensibility
95
virtual
ServiceID
GetFlavorHelperServiceID
()
const
= 0;
96
98
IDragDropTargetFlavorHelper
*
QueryActiveFlavorHelper
()
const
;
100
IDragDropTargetFlavorHelper
*
GetActiveFlavorHelper
()
const
;
102
void
SetActiveFlavorHelper
(
IDragDropTargetFlavorHelper
*);
103
105
bool16
CanHandleDragData
()
const
{
return
fCanHandleDragData;}
107
void
SetCanHandleDragData
(bool16 can) {fCanHandleDragData = can;}
108
111
DragDrop::TargetResponse
112
Delegate_CouldAcceptTypes
(
DataObjectIterator
*,
const
IDragDropSource
*,
const
IDragDropController
*);
114
ErrorCode
Delegate_ProcessDragDropCommand
(
IDragDropController
*,
DragDrop::eCommandType
);
115
117
virtual
PMRect
HandleGetDragDataBounds
()
const
;
118
119
protected
:
123
virtual
bool16
DoDragEnter_PreflightDragData
(
IDragDropController
*);
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
tmpdoxygeninput
CDragDropTarget_Extensible.h
Generated on Sat Jul 19 2025 02:54:11 for InDesign SDK by
1.8.3.1