mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 20:31:56 +00:00
Unify the text converter handling. Plus added a bit of implementation
for the new test block methods. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28713 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
420648751a
commit
3b51ebf3fe
7 changed files with 306 additions and 170 deletions
|
@ -35,8 +35,7 @@
|
|||
#include <Foundation/NSAttributedString.h>
|
||||
#include <Foundation/NSDictionary.h>
|
||||
#include <Foundation/NSData.h>
|
||||
#include <AppKit/NSFileWrapper.h>
|
||||
|
||||
#include <Foundation/NSError.h>
|
||||
|
||||
@protocol GSTextConverter
|
||||
+ (Class) classForFormat: (NSString*)format
|
||||
|
@ -45,9 +44,8 @@
|
|||
|
||||
@protocol GSTextProducer
|
||||
+ (NSData*) produceDataFrom: (NSAttributedString*) aText
|
||||
documentAttributes: (NSDictionary*)dict;
|
||||
+ (NSFileWrapper*) produceFileFrom: (NSAttributedString*) aText
|
||||
documentAttributes: (NSDictionary*)dict;
|
||||
documentAttributes: (NSDictionary*)dict
|
||||
error: (NSError **)error;
|
||||
@end
|
||||
|
||||
/*
|
||||
|
@ -57,10 +55,9 @@
|
|||
*/
|
||||
@protocol GSTextConsumer
|
||||
+ (NSAttributedString*) parseData: (NSData *)aData
|
||||
options: (NSDictionary *)options
|
||||
documentAttributes: (NSDictionary **)dict
|
||||
class: (Class)class;
|
||||
+ (NSAttributedString*) parseFile: (NSFileWrapper *)aFile
|
||||
documentAttributes: (NSDictionary **)dict
|
||||
error: (NSError **)error
|
||||
class: (Class)class;
|
||||
@end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue