From 7a5a68eb0208a2d3c5cb1f524e7e7585b5de5c2b Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 19 Sep 2006 21:09:11 +0000 Subject: [PATCH] Monotone-Parent: 007ccbcb2314639592079266f43db3a3925517cb Monotone-Revision: 184ca5f4175b29f1837888270afce47c10fde5b3 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-19T21:09:11 Monotone-Branch: ca.inverse.sogo --- UI/MailPartViewers/UIxMailPartTextViewer.h | 36 ++++++++++++++++++++++ UI/MailPartViewers/UIxMailPartTextViewer.m | 14 +++------ 2 files changed, 40 insertions(+), 10 deletions(-) create mode 100644 UI/MailPartViewers/UIxMailPartTextViewer.h diff --git a/UI/MailPartViewers/UIxMailPartTextViewer.h b/UI/MailPartViewers/UIxMailPartTextViewer.h new file mode 100644 index 000000000..f41e49424 --- /dev/null +++ b/UI/MailPartViewers/UIxMailPartTextViewer.h @@ -0,0 +1,36 @@ +/* UIxMailPartTextViewer.h - this file is part of $PROJECT_NAME_HERE$ + * + * Copyright (C) 2006 Inverse groupe conseil + * + * Author: Wolfgang Sourdeau + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This file 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef UIXMAILPARTTEXTVIEWER_H +#define UIXMAILPARTTEXTVIEWER_H + +#import "UIxMailPartViewer.h" + +@class NSString; + +@interface UIxMailPartTextViewer : UIxMailPartViewer + +- (NSString *) flatContentAsString; + +@end + +#endif /* UIXMAILPARTTEXTVIEWER_H */ diff --git a/UI/MailPartViewers/UIxMailPartTextViewer.m b/UI/MailPartViewers/UIxMailPartTextViewer.m index 03824f08c..f37364b57 100644 --- a/UI/MailPartViewers/UIxMailPartTextViewer.m +++ b/UI/MailPartViewers/UIxMailPartTextViewer.m @@ -19,24 +19,18 @@ 02111-1307, USA. */ -#include "UIxMailPartViewer.h" - /* UIxMailPartTextViewer - Show plain/text mail parts in a
 section.
-  
+  Show plaintext mail parts correctly formatted.
+
   TODO: add server side wrapping.
   TODO: add contained link detection.
 */
 
-@interface UIxMailPartTextViewer : UIxMailPartViewer
-{
-}
+#import "common.h"
 
-@end
-
-#include "common.h"
+#import "UIxMailPartTextViewer.h"
 
 @implementation UIxMailPartTextViewer