mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-08 15:20:38 +00:00
Added PasteboardCallback protocol for methods used to ask the pastboard object
in a client to get info from its owner git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2415 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0cf014e36e
commit
547e06350e
1 changed files with 18 additions and 10 deletions
|
@ -46,23 +46,23 @@
|
||||||
* perform tasks for the local NSPasteboard objects.
|
* perform tasks for the local NSPasteboard objects.
|
||||||
*/
|
*/
|
||||||
@protocol PasteboardObject
|
@protocol PasteboardObject
|
||||||
- (int) addTypes: (bycopy NSArray*)types
|
- (int) addTypes: (in bycopy NSArray*)types
|
||||||
owner: (id)owner
|
owner: (id)owner
|
||||||
pasteboard: (NSPasteboard*)pb
|
pasteboard: (NSPasteboard*)pb
|
||||||
oldCount: (int)count;
|
oldCount: (int)count;
|
||||||
- (NSString*) availableTypeFromArray: (bycopy NSArray*)types
|
- (NSString*) availableTypeFromArray: (in bycopy NSArray*)types
|
||||||
changeCount: (int*)count;
|
changeCount: (int*)count;
|
||||||
- (int) changeCount;
|
- (int) changeCount;
|
||||||
- (NSData*) dataForType: (NSString*)type
|
- (NSData*) dataForType: (in bycopy NSString*)type
|
||||||
oldCount: (int)count
|
oldCount: (int)count
|
||||||
mustBeCurrent: (BOOL)flag;
|
mustBeCurrent: (BOOL)flag;
|
||||||
- (int) declareTypes: (bycopy NSArray*)types
|
- (int) declareTypes: (in bycopy NSArray*)types
|
||||||
owner: (id)owner
|
owner: (id)owner
|
||||||
pasteboard: (NSPasteboard*)pb;
|
pasteboard: (NSPasteboard*)pb;
|
||||||
- (NSString*) name;
|
- (NSString*) name;
|
||||||
- (void) releaseGlobally;
|
- (void) releaseGlobally;
|
||||||
- (BOOL) setData: (NSData*)data
|
- (BOOL) setData: (in bycopy NSData*)data
|
||||||
forType: (NSString*)type
|
forType: (in bycopy NSString*)type
|
||||||
isFile: (BOOL)flag
|
isFile: (BOOL)flag
|
||||||
oldCount: (int)count;
|
oldCount: (int)count;
|
||||||
- (void) setHistory: (unsigned)length;
|
- (void) setHistory: (unsigned)length;
|
||||||
|
@ -76,14 +76,22 @@
|
||||||
@protocol PasteboardServer
|
@protocol PasteboardServer
|
||||||
// Use this next to implement [+pasteboardByFilteringData:ofType:] and
|
// Use this next to implement [+pasteboardByFilteringData:ofType:] and
|
||||||
// [+pasteboardByFilteringFile:] methods.
|
// [+pasteboardByFilteringFile:] methods.
|
||||||
- (id<PasteboardObject>) pasteboardByFilteringData: (NSData*)data
|
- (id<PasteboardObject>) pasteboardByFilteringData: (in bycopy NSData*)data
|
||||||
ofType: (NSString*)type
|
ofType: (in bycopy NSString*)type
|
||||||
isFile: (BOOL)flag;
|
isFile: (BOOL)flag;
|
||||||
- (id<PasteboardObject>) pasteboardByFilteringTypesInPasteboard: pb;
|
- (id<PasteboardObject>) pasteboardByFilteringTypesInPasteboard: pb;
|
||||||
- (id<PasteboardObject>) pasteboardWithName: (NSString*)name;
|
- (id<PasteboardObject>) pasteboardWithName: (in bycopy NSString*)name;
|
||||||
- (id<PasteboardObject>) pasteboardWithUniqueName;
|
- (id<PasteboardObject>) pasteboardWithUniqueName;
|
||||||
- (bycopy NSArray*) typesFilterableTo: (NSString*)type;
|
- (bycopy NSArray*) typesFilterableTo: (in bycopy NSString*)type;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This protocol is used by the server to ask pasteboard clients to
|
||||||
|
* provide additional data.
|
||||||
|
*/
|
||||||
|
@protocol PasteboardCallback
|
||||||
|
- (id)askOwner:(id)obj toProvideDataForType:(NSString*)type;
|
||||||
|
- (id)askOwner:(id)obj toProvideDataForType:(NSString*)type andVersion:(int)v;
|
||||||
|
@end
|
||||||
|
|
||||||
#endif // _GNUstep_H_PasteboardServer
|
#endif // _GNUstep_H_PasteboardServer
|
||||||
|
|
Loading…
Reference in a new issue