1996-05-30 20:03:15 +00:00
|
|
|
/*
|
|
|
|
NSPasteboard.m
|
|
|
|
|
|
|
|
Description...
|
|
|
|
|
|
|
|
Copyright (C) 1996 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
Author: Scott Christley <scottc@net-community.com>
|
|
|
|
Date: 1996
|
|
|
|
|
|
|
|
This file is part of the GNUstep GUI Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
1996-10-18 17:14:13 +00:00
|
|
|
License along with this library; see the file COPYING.LIB.
|
|
|
|
If not, write to the Free Software Foundation,
|
|
|
|
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
1996-05-30 20:03:15 +00:00
|
|
|
*/
|
|
|
|
|
1997-02-18 00:29:25 +00:00
|
|
|
#include <AppKit/NSPasteboard.h>
|
1996-05-30 20:03:15 +00:00
|
|
|
|
|
|
|
// Pasteboard Type Globals
|
1997-02-18 00:29:25 +00:00
|
|
|
NSString *NSStringPboardType = @"NSStringPboardType";
|
|
|
|
NSString *NSColorPboardType = @"NSColorPboardType";
|
|
|
|
NSString *NSFileContentsPboardType = @"NSFileContentsPboardType";
|
|
|
|
NSString *NSFilenamesPboardType = @"NSFilenamesPboardType";
|
|
|
|
NSString *NSFontPboardType = @"NSFontPboardType";
|
|
|
|
NSString *NSRulerPboardType = @"NSRulerPboardType";
|
|
|
|
NSString *NSPostScriptPboardType = @"NSPostScriptPboardType";
|
|
|
|
NSString *NSTabularTextPboardType = @"NSTabularTextPboardType";
|
|
|
|
NSString *NSRTFPboardType = @"NSRTFPboardType";
|
|
|
|
NSString *NSTIFFPboardType = @"NSTIFFPboardType";
|
|
|
|
NSString *NSDataLinkPboardType = @"NSDataLinkPboardType";
|
|
|
|
NSString *NSGeneralPboardType = @"NSGeneralPboardType";
|
1996-05-30 20:03:15 +00:00
|
|
|
|
|
|
|
// Pasteboard Name Globals
|
1997-02-18 00:29:25 +00:00
|
|
|
NSString *NSDragPboard = @"NSDragPboard";
|
|
|
|
NSString *NSFindPboard = @"NSFindPboard";
|
|
|
|
NSString *NSFontPboard = @"NSFontPboard";
|
|
|
|
NSString *NSGeneralPboard = @"NSGeneralPboard";
|
|
|
|
NSString *NSRulerPboard = @"NSRulerPboard";
|
1996-05-30 20:03:15 +00:00
|
|
|
|
|
|
|
@implementation NSPasteboard
|
|
|
|
|
|
|
|
//
|
|
|
|
// Class methods
|
|
|
|
//
|
|
|
|
+ (void)initialize
|
|
|
|
{
|
|
|
|
if (self == [NSPasteboard class])
|
|
|
|
{
|
|
|
|
// Initial version
|
|
|
|
[self setVersion:1];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Creating and Releasing an NSPasteboard Object
|
|
|
|
//
|
|
|
|
+ (NSPasteboard *)generalPasteboard
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (NSPasteboard *)pasteboardWithName:(NSString *)name
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (NSPasteboard *)pasteboardWithUniqueName
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Getting Data in Different Formats
|
|
|
|
//
|
|
|
|
+ (NSPasteboard *)pasteboardByFilteringData:(NSData *)data
|
|
|
|
ofType:(NSString *)type
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (NSPasteboard *)pasteboardByFilteringFile:(NSString *)filename
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (NSPasteboard *)pasteboardByFilteringTypesInPasteboard:(NSPasteboard *)pboard
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (NSArray *)typesFilterableTo:(NSString *)type
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Instance methods
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
// Creating and Releasing an NSPasteboard Object
|
|
|
|
//
|
|
|
|
- (void)releaseGlobally
|
|
|
|
{}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Referring to a Pasteboard by Name
|
|
|
|
//
|
|
|
|
- (NSString *)name
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Writing Data
|
|
|
|
//
|
|
|
|
- (int)addTypes:(NSArray *)newTypes
|
|
|
|
owner:(id)newOwner
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (int)declareTypes:(NSArray *)newTypes
|
|
|
|
owner:(id)newOwner
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL)setData:(NSData *)data
|
|
|
|
forType:(NSString *)dataType
|
|
|
|
{
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL)setPropertyList:(id)propertyList
|
|
|
|
forType:(NSString *)dataType
|
|
|
|
{
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL)setString:(NSString *)string
|
|
|
|
forType:(NSString *)dataType
|
|
|
|
{
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL)writeFileContents:(NSString *)filename
|
|
|
|
{
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Determining Types
|
|
|
|
//
|
|
|
|
- (NSString *)availableTypeFromArray:(NSArray *)types
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray *)types
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Reading Data
|
|
|
|
//
|
|
|
|
- (int)changeCount
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSData *)dataForType:(NSString *)dataType
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (id)propertyListForType:(NSString *)dataType
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *)readFileContentsType:(NSString *)type
|
|
|
|
toFile:(NSString *)filename
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *)stringForType:(NSString *)dataType
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Methods Implemented by the Owner
|
|
|
|
//
|
|
|
|
- (void)pasteboard:(NSPasteboard *)sender
|
|
|
|
provideDataForType:(NSString *)type
|
|
|
|
{}
|
|
|
|
|
|
|
|
- (void)pasteboardChangedOwner:(NSPasteboard *)sender
|
|
|
|
{}
|
|
|
|
|
|
|
|
@end
|