#include <CDragDropSource_Extensible.h>
|
| enum | { kDefaultIID = IID_IDRAGDROPSOURCE } |
| |
Extensible implementation of the IDragDropSource interface, representing the source object that initiates a drag drop operation. Implementors of IDragDropSource should derive from either this or CDragDropSource.
- See Also
- IDragDropSource, IDragDropSourceContentHelper
| SysWireframe CDragDropSource_Extensible::Delegate_DoMakeDragOutlineRegion | ( | | ) | |
Forwards the CreateDragOutlineRegion method to the active content helper.
Forwards the GetDragCursor method to the active content helper.
| bool16 CDragDropSource_Extensible::Delegate_WillDrag | ( | IEvent * | e | ) | |
Forwards the CouldStartDrag call to the content helpers for this target, to determine if a drag can be started at the specified location. Helper responses are prioritized based on the eHelperType returned by the helper. If a willing helper is found, it is set as the active content helper and the drag proceeds.
Default implementation forwards the DoAddDragContent method to the active content helper.
Implements IDragDropSource.
| virtual SysWireframe CDragDropSource_Extensible::DoMakeDragOutlineRegion | ( | | ) | const |
| virtual |
Default implementation calls Delegate_DoMakeDragOutlineRegion to query the active content helper for the drag outline region.
Implements IDragDropSource.
Get the active content handler, nil if one has not been set.
| virtual ServiceID CDragDropSource_Extensible::GetContentHelperServiceID | ( | | ) | const |
| pure virtual |
Override this to return the service ID that content helpers for this source will respond to.
Default implementation calls Delegate_GetDragCursor to query the active content helper for the drag cursor.
Implements IDragDropSource.
| virtual IDataBase* CDragDropSource_Extensible::GetSourceDataBase | ( | | ) | const |
| virtual |
Override this if your source needs to support removing data when it is moved to another target (or the trash), default implementation returns nil, which implies that data cannot be "moved" to any target not identical to this one.
Implements IDragDropSource.
Default implementation forwards the ProcessDragDropCommand method to the active content helper.
Implements IDragDropSource.
Query for the active content handler, nil if one has not been set.
Set the active content handler. Called by Delegate_WillDrag when/if it finds a helper willing to start a drag.
| virtual bool16 CDragDropSource_Extensible::WillDrag | ( | IEvent * | e | ) | const |
| virtual |
Default implementation calls Delegate_WillDrag to query content helpers to start the drag. When overriding this method, make sure to call the inherited version.
Implements IDragDropSource.