mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 19:21:16 +00:00
* TextConverters/RTF/RTFConsumer.m: Set NSDocumentTypeDocumentAttribute
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34986 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
01e2034c1c
commit
b30a00fc24
2 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2012-03-22 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
|
* TextConverters/RTF/RTFConsumer.m: Set NSDocumentTypeDocumentAttribute
|
||||||
|
|
||||||
2012-03-22 Eric Wasylishen <ewasylishen@gmail.com>
|
2012-03-22 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
* Source/NSAttributedString.m
|
* Source/NSAttributedString.m
|
||||||
|
|
|
@ -284,7 +284,7 @@ static BOOL classInheritsFromNSMutableAttributedString (Class c)
|
||||||
- (void) appendString: (NSString*)string;
|
- (void) appendString: (NSString*)string;
|
||||||
- (void) appendHelpLink: (NSString*)fileName marker: (NSString *)markerName;
|
- (void) appendHelpLink: (NSString*)fileName marker: (NSString *)markerName;
|
||||||
- (void) appendHelpMarker: (NSString*)markerName;
|
- (void) appendHelpMarker: (NSString*)markerName;
|
||||||
|
- (void) reset;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation RTFConsumer
|
@implementation RTFConsumer
|
||||||
|
@ -424,6 +424,13 @@ static BOOL classInheritsFromNSMutableAttributedString (Class c)
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) reset
|
||||||
|
{
|
||||||
|
[super reset];
|
||||||
|
[documentAttributes setValue: NSRTFDTextDocumentType
|
||||||
|
forKey: NSDocumentTypeDocumentAttribute];
|
||||||
|
}
|
||||||
|
|
||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
RELEASE(files);
|
RELEASE(files);
|
||||||
|
@ -532,6 +539,8 @@ static BOOL classInheritsFromNSMutableAttributedString (Class c)
|
||||||
result = [[NSMutableAttributedString alloc] init];
|
result = [[NSMutableAttributedString alloc] init];
|
||||||
}
|
}
|
||||||
ASSIGN(documentAttributes, [NSMutableDictionary dictionary]);
|
ASSIGN(documentAttributes, [NSMutableDictionary dictionary]);
|
||||||
|
[documentAttributes setValue: NSRTFTextDocumentType
|
||||||
|
forKey: NSDocumentTypeDocumentAttribute];
|
||||||
ASSIGN(fonts, [NSMutableDictionary dictionary]);
|
ASSIGN(fonts, [NSMutableDictionary dictionary]);
|
||||||
ASSIGN(attrs, [NSMutableArray array]);
|
ASSIGN(attrs, [NSMutableArray array]);
|
||||||
ASSIGN(colours, [NSMutableArray array]);
|
ASSIGN(colours, [NSMutableArray array]);
|
||||||
|
|
Loading…
Reference in a new issue