mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Implemented [textFileTypes], [textPasteboardTypes],
[textUnfilteredFileTypes], [textUnfilteredPasteboardTypes]. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14414 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
497a0d707f
commit
fa182b53a4
1 changed files with 27 additions and 1 deletions
|
@ -27,6 +27,7 @@
|
|||
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <Foundation/NSArray.h>
|
||||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSRange.h>
|
||||
#include <Foundation/NSBundle.h>
|
||||
|
@ -34,9 +35,11 @@
|
|||
#include <AppKit/NSAttributedString.h>
|
||||
#include <AppKit/NSDocumentController.h>
|
||||
#include <AppKit/NSParagraphStyle.h>
|
||||
#include <AppKit/NSPasteboard.h>
|
||||
#include <AppKit/NSTextAttachment.h>
|
||||
#include <AppKit/NSFont.h>
|
||||
#include <AppKit/NSColor.h>
|
||||
#include <AppKit/NSFileWrapper.h>
|
||||
#include <AppKit/NSFont.h>
|
||||
// For the colour name spaces
|
||||
#include <AppKit/NSGraphics.h>
|
||||
|
||||
|
@ -206,6 +209,29 @@ static Class converter_class(NSString *format, BOOL producer)
|
|||
|
||||
@implementation NSAttributedString (AppKit)
|
||||
|
||||
+ (NSArray *) textFileTypes
|
||||
{
|
||||
// FIXME
|
||||
return [self textUnfilteredFileTypes];
|
||||
}
|
||||
|
||||
+ (NSArray *) textPasteboardTypes
|
||||
{
|
||||
// FIXME
|
||||
return [self textUnfilteredPasteboardTypes];
|
||||
}
|
||||
|
||||
+ (NSArray *) textUnfilteredFileTypes
|
||||
{
|
||||
return [NSArray arrayWithObjects: @"txt", @"rtf", @"rtfd", @"html", nil];
|
||||
}
|
||||
|
||||
+ (NSArray *) textUnfilteredPasteboardTypes
|
||||
{
|
||||
return [NSArray arrayWithObjects: NSStringPboardType, NSRTFPboardType,
|
||||
NSRTFDPboardType, NSHTMLPboardType, nil];
|
||||
}
|
||||
|
||||
+ (NSAttributedString *) attributedStringWithAttachment:
|
||||
(NSTextAttachment *)attachment
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue