2003-05-02 18:59:38 +00:00
|
|
|
/*
|
2007-10-29 21:16:17 +00:00
|
|
|
RTFProducer.h
|
2003-05-02 18:59:38 +00:00
|
|
|
|
2007-10-29 21:16:17 +00:00
|
|
|
Writes out a NSAttributedString as RTF
|
2003-05-02 18:59:38 +00:00
|
|
|
|
2007-10-29 21:16:17 +00:00
|
|
|
Copyright (C) 2000 Free Software Foundation, Inc.
|
2003-05-02 18:59:38 +00:00
|
|
|
|
2007-10-29 21:16:17 +00:00
|
|
|
Author: Fred Kiefer <FredKiefer@gmx.de>
|
|
|
|
Date: June 2000
|
|
|
|
Modifications: Axel Katerbau <axel@objectpark.org>
|
|
|
|
Date: April 2003
|
2003-05-02 18:59:38 +00:00
|
|
|
|
2007-10-29 21:16:17 +00:00
|
|
|
This file is part of the GNUstep GUI Library.
|
2003-05-02 18:59:38 +00:00
|
|
|
|
2007-10-29 21:16:17 +00:00
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
2008-06-10 04:01:49 +00:00
|
|
|
version 2 of the License, or (at your option) any later version.
|
2003-05-02 18:59:38 +00:00
|
|
|
|
2007-10-29 21:16:17 +00:00
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
2003-05-02 18:59:38 +00:00
|
|
|
|
2007-10-29 21:16:17 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; see the file COPYING.LIB.
|
|
|
|
If not, see <http://www.gnu.org/licenses/> or write to the
|
|
|
|
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA.
|
2003-05-02 18:59:38 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _GNUstep_H_RTFDProducer
|
|
|
|
#define _GNUstep_H_RTFDProducer
|
2000-06-24 22:12:43 +00:00
|
|
|
|
2003-07-31 23:52:10 +00:00
|
|
|
#include <GNUstepGUI/GSTextConverter.h>
|
2003-05-02 18:59:38 +00:00
|
|
|
//#include "GSTextConverter.h"
|
2001-08-18 22:04:15 +00:00
|
|
|
|
|
|
|
@class NSAttributedString;
|
|
|
|
@class NSMutableDictionary;
|
|
|
|
@class NSColor;
|
|
|
|
@class NSFont;
|
|
|
|
@class NSMutableParagraphStyle;
|
|
|
|
|
|
|
|
@interface RTFDProducer: NSObject <GSTextProducer>
|
2000-06-24 22:12:43 +00:00
|
|
|
{
|
2003-05-02 18:59:38 +00:00
|
|
|
@public
|
2000-06-24 22:12:43 +00:00
|
|
|
NSAttributedString *text;
|
|
|
|
NSMutableDictionary *fontDict;
|
|
|
|
NSMutableDictionary *colorDict;
|
2012-01-23 14:27:58 +00:00
|
|
|
NSDictionary *docDict;
|
2003-05-02 18:59:38 +00:00
|
|
|
NSMutableArray *attachments;
|
2000-06-24 22:12:43 +00:00
|
|
|
|
|
|
|
NSColor *fgColor;
|
|
|
|
NSColor *bgColor;
|
2011-02-22 20:59:10 +00:00
|
|
|
NSColor *ulColor;
|
2003-05-02 18:59:38 +00:00
|
|
|
|
|
|
|
NSDictionary *_attributesOfLastRun; /*" holds the attributes of the last run
|
|
|
|
to build the delta "*/
|
|
|
|
|
|
|
|
BOOL _inlineGraphics; /*" Indicates if graphics should be inlined. "*/
|
2006-05-12 21:21:41 +00:00
|
|
|
int unnamedAttachmentCounter; /*" Count the number of unnamed attachments so we can name them uniquely "*/
|
2000-06-24 22:12:43 +00:00
|
|
|
}
|
|
|
|
|
2001-08-18 22:04:15 +00:00
|
|
|
@end
|
2000-06-24 22:12:43 +00:00
|
|
|
|
2001-08-18 22:04:15 +00:00
|
|
|
@interface RTFProducer: RTFDProducer
|
|
|
|
// Subclass with no special interface
|
2000-06-24 22:12:43 +00:00
|
|
|
@end
|
2003-05-02 18:59:38 +00:00
|
|
|
|
|
|
|
#endif
|