Added new methods to read/write RTFD and resturctured the methods

for RTF.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6857 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2000-07-02 16:53:30 +00:00
parent ce0466b729
commit d1f7108b4c
4 changed files with 105 additions and 31 deletions

View file

@ -27,7 +27,22 @@
#ifndef _rtfConsumer_h_INCLUDE
#define _rtfConsumer_h_INCLUDE
NSAttributedString *parseRTFintoAttributedString(NSData *rtfData,
NSDictionary **dict);
@interface RTFConsumer: NSObject
{
@public
NSMutableDictionary *documentAttributes;
NSMutableDictionary *fonts;
NSMutableArray *colours;
NSMutableArray *attrs;
NSMutableAttributedString *result;
int ignore;
}
+ (NSAttributedString*) parseRTF: (NSData *)rtfData
documentAttributes: (NSDictionary **)dict;
+ (NSAttributedString*) parseRTFD: (NSFileWrapper *)rtfFile
documentAttributes: (NSDictionary **)dict;
@end
#endif