mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:10:48 +00:00
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:
parent
ce0466b729
commit
d1f7108b4c
4 changed files with 105 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue