Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (39 sloc) 1.17 KB
// Copyright 2010-2011 The Omni Group. All rights reserved.
//
// This software may only be used and reproduced according to the
// terms in the file OmniSourceLicense.html, which should be
// distributed with this project and can also be found at
// <http://www.omnigroup.com/developer/sourcecode/sourcelicense/>.
//
// $Id$
#import <OmniFoundation/OFObject.h>
@class NSAttributedString;
@class OAFontDescriptor;
#import <OmniFoundation/OFDataBuffer.h>
@interface OUIRTFWriter : OFObject
{
@private
NSAttributedString *_attributedString;
NSMutableDictionary *_registeredColors;
NSMutableDictionary *_registeredFonts;
OFDataBuffer *_dataBuffer;
struct {
struct {
unsigned int bold:1;
unsigned int italic:1;
} flags;
int fontSize;
int fontIndex;
int foregroundColorIndex;
int backgroundColorIndex;
unsigned int underline;
int superscript;
OAFontDescriptor *fontDescriptor;
int alignment;
int firstLineIndent;
int leftIndent;
int rightIndent;
} _state;
}
+ (NSData *)rtfDataForAttributedString:(NSAttributedString *)attributedString;
@end
Jump to Line
Something went wrong with that request. Please try again.