mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +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
9345069a14
commit
afff99e2b3
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>
|
||||
|
||||
* Source/NSAttributedString.m
|
||||
|
|
|
@ -284,7 +284,7 @@ static BOOL classInheritsFromNSMutableAttributedString (Class c)
|
|||
- (void) appendString: (NSString*)string;
|
||||
- (void) appendHelpLink: (NSString*)fileName marker: (NSString *)markerName;
|
||||
- (void) appendHelpMarker: (NSString*)markerName;
|
||||
|
||||
- (void) reset;
|
||||
@end
|
||||
|
||||
@implementation RTFConsumer
|
||||
|
@ -424,6 +424,13 @@ static BOOL classInheritsFromNSMutableAttributedString (Class c)
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) reset
|
||||
{
|
||||
[super reset];
|
||||
[documentAttributes setValue: NSRTFDTextDocumentType
|
||||
forKey: NSDocumentTypeDocumentAttribute];
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(files);
|
||||
|
@ -532,6 +539,8 @@ static BOOL classInheritsFromNSMutableAttributedString (Class c)
|
|||
result = [[NSMutableAttributedString alloc] init];
|
||||
}
|
||||
ASSIGN(documentAttributes, [NSMutableDictionary dictionary]);
|
||||
[documentAttributes setValue: NSRTFTextDocumentType
|
||||
forKey: NSDocumentTypeDocumentAttribute];
|
||||
ASSIGN(fonts, [NSMutableDictionary dictionary]);
|
||||
ASSIGN(attrs, [NSMutableArray array]);
|
||||
ASSIGN(colours, [NSMutableArray array]);
|
||||
|
|
Loading…
Reference in a new issue