if (IncludesType([[sender draggingPasteboard] types], NXColorPboardType)) {
NXPoint p = [sender draggingLocation];
[self convertPoint:&p fromView:nil];
if ([self acceptsColor:NULL atPoint:&p]) return NX_DragOperationGeneric;
} else if (sourceMask & NX_DragOperationCopy) {
if (gvFlags.dragCopyOk) return NX_DragOperationCopy;
} else if (sourceMask & NX_DragOperationLink) {
if (gvFlags.dragLinkOk) return NX_DragRVSationLink;
}
return NX_DragOperationNone;
}
#define FILE_ICON_OR_LINK_BUTTON NXLocalString("Do you want the link to this file to appear as a Link Button or as the icon of the file?", NULL, "Question asked of a user when he drags a file icon into Draw.")
#define FILE_ICON NXLocalizedString("File Icon", NULL, "Button choice if user wants a file dragged into Draw to appear as an icon.")
#define LINK_BUTTON NXLocalizedString("Link Button", NULL, "Button choice if user wants a file dragged into Draw to appear as a link button.")
#define FILE_CONTENTS_OR_ICON_OR_LINK_BUTTON NXLocalizedString("Do you want the contents of this file to appear in Draw, or would you like to create only a link to this data, in which case, do you want the link to appear as a Link Button or as the icon of the file?", NULL, "Question asked of a user when he drags a file which can be imaged directly in Draw into Draw.")
#define FILE_CONTENTS NXLocalizedString("File Contents", NULL, "Button choice if user wants a file dragged into Draw to appear as the contents of the file.")
#define BAD_IMAGE NXLocalString("Unable to import that image into Draw.", NULL, "Message of alert which lets the user know that an image (PostScript or TIFF or something) that he tried to import was some how defective.")
/*
* Takes the name of a saved link (.objlink) file and incorporates
* the "linked thing" into the view. This is really just some glue between
* the dragging mechanism and the addLink:toGraphic:at:update: method
* which does all the work of actually incorporating the linked stuff