]> err.no Git - scalable-opengroupware.org/commitdiff
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1129 d1b88da0-ebda-0310...
authorwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 30 Jul 2007 14:11:12 +0000 (14:11 +0000)
committerwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 30 Jul 2007 14:11:12 +0000 (14:11 +0000)
14 files changed:
UI/MailPartViewers/UIxKolabPartContactViewer.m
UI/MailPartViewers/UIxKolabPartEventViewer.m
UI/MailPartViewers/UIxKolabPartTaskViewer.m
UI/MailPartViewers/UIxKolabPartViewer.h
UI/MailPartViewers/UIxKolabPartViewer.m
UI/MailPartViewers/UIxMailPartAlternativeViewer.m
UI/MailPartViewers/UIxMailPartICalAction.m
UI/MailPartViewers/UIxMailPartICalViewer.m
UI/MailPartViewers/UIxMailPartImageViewer.m
UI/MailPartViewers/UIxMailPartLinkViewer.h
UI/MailPartViewers/UIxMailPartLinkViewer.m
UI/MailPartViewers/UIxMailPartMixedViewer.m
UI/MailPartViewers/UIxMailPartViewer.m
UI/MailPartViewers/common.h [deleted file]

index 663a9fdc05426bee4ea3dd938ea125e740660470..dc8f65d1ad240bb2bce5b28907b9be2c9fcc3bd8 100644 (file)
@@ -19,7 +19,9 @@
   02111-1307, USA.
 */
 
-#include "UIxKolabPartViewer.h"
+#import <DOM/DOMProtocols.h>
+
+#import "UIxKolabPartViewer.h"
 
 /*
   UIxKolabPartContactViewer
@@ -30,8 +32,6 @@
 @interface UIxKolabPartContactViewer : UIxKolabPartViewer
 @end
 
-#include "common.h"
-
 @implementation UIxKolabPartContactViewer
 
 - (id<NSObject,DOMNodeList>)addressElements {
index 9745be0876b5d436d7b8b6870d569ab1387da05c..30381b007cdb0d50e799c5cab89900bbc395f012 100644 (file)
@@ -19,7 +19,7 @@
   02111-1307, USA.
 */
 
-#include "UIxKolabPartViewer.h"
+#import "UIxKolabPartViewer.h"
 
 /*
   UIxKolabPartEventViewer
@@ -30,7 +30,5 @@
 @interface UIxKolabPartEventViewer : UIxKolabPartViewer
 @end
 
-#include "common.h"
-
 @implementation UIxKolabPartEventViewer
 @end /* UIxKolabPartEventViewer */
index 87a361c1711a260fa7a2bec8591a7bae5750aa74..be330f9c2c9529c20f7a47bfb572948eebc20408 100644 (file)
@@ -19,7 +19,7 @@
   02111-1307, USA.
 */
 
-#include "UIxKolabPartViewer.h"
+#import "UIxKolabPartViewer.h"
 
 /*
   UIxKolabPartTaskViewer
@@ -30,7 +30,5 @@
 @interface UIxKolabPartTaskViewer : UIxKolabPartViewer
 @end
 
-#include "common.h"
-
 @implementation UIxKolabPartTaskViewer
 @end /* UIxKolabPartTaskViewer */
index a47608b62d533ea3ecd33a3e45d6aae8fd97864f..cb9a86489bcaac047b98ec54fbf749be0c2459c9 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef __Mailer_UIxKolabPartViewer_H__
 #define __Mailer_UIxKolabPartViewer_H__
 
-#include "UIxMailPartViewer.h"
+#import "UIxMailPartViewer.h"
 
 /*
   UIxKolabPartContactViewer
   Superclass for viewers which show the application/x-vnd.* XML documents.
 */
 
-#include <DOM/DOMProtocols.h>
+@protocol NSObject;
+@protocol DOMDocument;
 
 @interface UIxKolabPartViewer : UIxMailPartViewer
 {
-  id<NSObject,DOMDocument> domDocument;
+  id <NSObject,DOMDocument> domDocument;
   id item;
 }
 
 /* getting a DOM representation */
 
-- (id<DOMDocument>)domDocument;
+- (id <DOMDocument>) domDocument;
 
 @end
 
index e5ac1cd642f754e111985f5c2a7b6e8920059c04..4afa120ef1cdc97b617a841993d77d2ba4ad9804 100644 (file)
   02111-1307, USA.
 */
 
-#include "UIxKolabPartViewer.h"
-#include "common.h"
-#include <DOM/DOMBuilderFactory.h>
+#import <NGExtensions/NSNull+misc.h>
+#import <DOM/DOMBuilderFactory.h>
+#import <DOM/DOMProtocols.h>
+
+#import "UIxKolabPartViewer.h"
 
 @implementation UIxKolabPartViewer
 
index e7ff28aa1f2680aa9d9643ef0ee0ccfd8e562c60..182894f89c8621f6a69cc311403f906d2f795511 100644 (file)
   02111-1307, USA.
 */
 
-#include "UIxMailPartViewer.h"
+#import <Foundation/NSNull.h>
+
+#import <NGExtensions/NSObject+Logs.h>
+
+#import <UI/MailerUI/WOContext+UIxMailer.h>
+
+#import "UIxMailPartViewer.h"
+#import "UIxMailRenderingContext.h"
 
 /*
   UIxMailPartAlternativeViewer
 
 @end
 
-#include "UIxMailRenderingContext.h"
-#include <UI/MailerUI/WOContext+UIxMailer.h>
-#include "common.h"
-
 @implementation UIxMailPartAlternativeViewer
 
 - (void)dealloc {
index 196549d25b74ec5921a9ed35dde1f0935ecee533..7f1cf9e8f3dd694792b685fdfcaafc43b3009157 100644 (file)
   02111-1307, USA.
 */
 
-#include <NGObjWeb/WODirectAction.h>
+#import <NGObjWeb/SoObject.h>
+#import <NGObjWeb/WOContext.h>
+#import <NGObjWeb/WOResponse.h>
+#import <NGObjWeb/WODirectAction.h>
+#import <NGExtensions/NSNull+misc.h>
+#import <NGExtensions/NSString+misc.h>
 
 @interface UIxMailPartICalAction : WODirectAction
 @end
 
-#include "common.h"
-
 @implementation UIxMailPartICalAction
 
 - (id)redirectToViewerWithError:(NSString *)_error {
index 7d18eb0e0a401a2a76ca525547b2ea488ac60dd5..600a473adf3ee9929d50e64a9f888d15901aa9f5 100644 (file)
   Show plain/calendar mail parts.
 */
 
+#import <NGExtensions/NSCalendarDate+misc.h>
+#import <NGExtensions/NSNull+misc.h>
+#import <NGExtensions/NSObject+Logs.h>
+
+#import <NGImap4/NGImap4EnvelopeAddress.h>
+
+#import <NGCards/iCalCalendar.h>
+#import <NGCards/iCalEvent.h>
+#import <NGCards/iCalPerson.h>
+#import <NGCards/iCalDateTime.h>
+
 #import <SoObjects/SOGo/SOGoDateFormatter.h>
 #import <SoObjects/SOGo/SOGoUser.h>
 #import <SoObjects/Appointments/SOGoAppointmentFolder.h>
 #import <SoObjects/Appointments/SOGoAppointmentObject.h>
 #import <SoObjects/Mailer/SOGoMailObject.h>
-#import <NGCards/NGCards.h>
-#import <NGImap4/NGImap4EnvelopeAddress.h>
-#import "common.h"
 
 #import "UIxMailPartICalViewer.h"
 
index b975a3248ced92f36b4c7097d6cd254b7e5a4366..cb9b82e5ddcbde902b0d90c5f5cf2f2160055c87 100644 (file)
@@ -19,7 +19,7 @@
   02111-1307, USA.
 */
 
-#include "UIxMailPartViewer.h"
+#import "UIxMailPartViewer.h"
 
 @interface UIxMailPartImageViewer : UIxMailPartViewer
 {
@@ -27,8 +27,6 @@
 
 @end
 
-#include "common.h"
-
 @implementation UIxMailPartImageViewer
 
 /* URLs */
index a74221867f7b2d1f878d47b5976542eb57f34bdd..d89421511fab635e4f499331e388d31272d29abc 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef __Mailer_UIxMailPartLinkViewer_H__
 #define __Mailer_UIxMailPartLinkViewer_H__
 
-#include "UIxMailPartViewer.h"
+#import "UIxMailPartViewer.h"
 
 /*
   UIxMailPartLinkViewer
index d9ce05d459689ef8d3b66776867a07e6ef5e2f2d..e030db1ab6b5ce1a065dae8506042e8dfc8afa6d 100644 (file)
@@ -19,8 +19,7 @@
   02111-1307, USA.
 */
 
-#include "UIxMailPartLinkViewer.h"
-#include "common.h"
+#import "UIxMailPartLinkViewer.h"
 
 @implementation UIxMailPartLinkViewer
 
index 191d35b7a68c9e245369802a6e7b63f19df44448..457c5d2be8c8779a92c0fa38e8de7e0f6ad8e33f 100644 (file)
   02111-1307, USA.
 */
 
-#include "UIxMailPartViewer.h"
+#import <UI/MailerUI/WOContext+UIxMailer.h>
+
+#import "UIxMailRenderingContext.h"
+
+#import "UIxMailPartViewer.h"
 
 @interface UIxMailPartMixedViewer : UIxMailPartViewer
 {
 
 @end
 
-#include "UIxMailRenderingContext.h"
-#include <UI/MailerUI/WOContext+UIxMailer.h>
-#include "common.h"
-
 @implementation UIxMailPartMixedViewer
 
 - (void)dealloc {
index 9f6285ac50efa91f48e7eaa4011439d5d1d034c1..73ff7282f8ca5908477e57532df9d001e9ea28f1 100644 (file)
 
 #import <Foundation/NSDictionary.h>
 
-#import "UIxMailPartViewer.h"
+#import <NGExtensions/NGBase64Coding.h>
+#import <NGExtensions/NSNull+misc.h>
+#import <NGExtensions/NSObject+Logs.h>
+#import <NGExtensions/NGQuotedPrintableCoding.h>
+#import <NGExtensions/NSString+Encoding.h>
+#import <NGExtensions/NSString+misc.h>
+#import <SoObjects/SOGo/NSString+Utilities.h>
+
+#import "UI/MailerUI/WOContext+UIxMailer.h"
 #import "UIxMailRenderingContext.h"
 #import "UIxMailSizeFormatter.h"
-#import "../MailerUI/WOContext+UIxMailer.h"
-#import <NGExtensions/NSString+Encoding.h>
-#import "common.h"
+
+#import "UIxMailPartViewer.h"
 
 @implementation UIxMailPartViewer
 
 - (void)dealloc {
-  [self->flatContent release];
-  [self->bodyInfo    release];
-  [self->partPath    release];
+  [flatContent release];
+  [bodyInfo    release];
+  [partPath    release];
   [super dealloc];
 }
 
@@ -41,7 +48,7 @@
 
 - (void)resetPathCaches {
   /* this is called when -setPartPath: is called */
-  [self->flatContent release]; self->flatContent = nil;
+  [flatContent release]; flatContent = nil;
 }
 - (void)resetBodyInfoCaches {
 }
 - (void)sleep {
   [self resetPathCaches];
   [self resetBodyInfoCaches];
-  [self->partPath release]; self->partPath = nil;
-  [self->bodyInfo release]; self->bodyInfo = nil;
+  [partPath release]; partPath = nil;
+  [bodyInfo release]; bodyInfo = nil;
   [super sleep];
 }
 
 /* accessors */
 
 - (void)setPartPath:(NSArray *)_path {
-  if ([_path isEqual:self->partPath])
+  if ([_path isEqual:partPath])
     return;
   
-  ASSIGN(self->partPath, _path);
+  ASSIGN(partPath, _path);
   [self resetPathCaches];
 }
 - (NSArray *)partPath {
-  return self->partPath;
+  return partPath;
 }
 
 - (void)setBodyInfo:(id)_info {
-  ASSIGN(self->bodyInfo, _info);
+  ASSIGN(bodyInfo, _info);
 }
 - (id)bodyInfo {
-  return self->bodyInfo;
+  return bodyInfo;
 }
 
 - (NSData *)flatContent {
-  if (self->flatContent != nil)
-    return [self->flatContent isNotNull] ? self->flatContent : nil;
+  if (flatContent != nil)
+    return [flatContent isNotNull] ? flatContent : nil;
   
-  self->flatContent = 
-    [[[[self context] mailRenderingContext] flatContentForPartPath:
+  flatContent = 
+    [[[context mailRenderingContext] flatContentForPartPath:
                                              [self partPath]] retain];
-  return self->flatContent;
+  return flatContent;
 }
 
 - (NSData *)decodedFlatContent {
 
   /* path to mail controller object */
   
-  url = [[self clientObject] baseURLInContext:[self context]];
+  url = [[self clientObject] baseURLInContext:context];
   if (![url hasSuffix:@"/"]) url = [url stringByAppendingString:@"/"];
   
   /* mail relative path to body-part */
diff --git a/UI/MailPartViewers/common.h b/UI/MailPartViewers/common.h
deleted file mode 100644 (file)
index 6cda684..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
-  Copyright (C) 2004 SKYRIX Software AG
-
-  This file is part of OpenGroupware.org.
-
-  OGo 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 version 2, or (at your option) any
-  later version.
-
-  OGo 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.
-
-  You should have received a copy of the GNU Lesser General Public
-  License along with OGo; see the file COPYING.  If not, write to the
-  Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-  02111-1307, USA.
-*/
-
-#import <Foundation/Foundation.h>
-
-#if LIB_FOUNDATION_LIBRARY
-#  include <Foundation/exceptions/GeneralExceptions.h>
-#elif NeXT_Foundation_LIBRARY || COCOA_Foundation_LIBRARY
-#  include <NGExtensions/NGObjectMacros.h>
-#  include <NGExtensions/NSString+Ext.h>
-#endif
-
-#include <NGExtensions/NGExtensions.h>
-#include <NGObjWeb/NGObjWeb.h>
-#include <NGObjWeb/SoObjects.h>
-
-#warning importing common.h is baaad