02111-1307, USA.
*/
-#include "UIxKolabPartViewer.h"
+#import <DOM/DOMProtocols.h>
+
+#import "UIxKolabPartViewer.h"
/*
UIxKolabPartContactViewer
@interface UIxKolabPartContactViewer : UIxKolabPartViewer
@end
-#include "common.h"
-
@implementation UIxKolabPartContactViewer
- (id<NSObject,DOMNodeList>)addressElements {
02111-1307, USA.
*/
-#include "UIxKolabPartViewer.h"
+#import "UIxKolabPartViewer.h"
/*
UIxKolabPartEventViewer
@interface UIxKolabPartEventViewer : UIxKolabPartViewer
@end
-#include "common.h"
-
@implementation UIxKolabPartEventViewer
@end /* UIxKolabPartEventViewer */
02111-1307, USA.
*/
-#include "UIxKolabPartViewer.h"
+#import "UIxKolabPartViewer.h"
/*
UIxKolabPartTaskViewer
@interface UIxKolabPartTaskViewer : UIxKolabPartViewer
@end
-#include "common.h"
-
@implementation UIxKolabPartTaskViewer
@end /* UIxKolabPartTaskViewer */
#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
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
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 {
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 {
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"
02111-1307, USA.
*/
-#include "UIxMailPartViewer.h"
+#import "UIxMailPartViewer.h"
@interface UIxMailPartImageViewer : UIxMailPartViewer
{
@end
-#include "common.h"
-
@implementation UIxMailPartImageViewer
/* URLs */
#ifndef __Mailer_UIxMailPartLinkViewer_H__
#define __Mailer_UIxMailPartLinkViewer_H__
-#include "UIxMailPartViewer.h"
+#import "UIxMailPartViewer.h"
/*
UIxMailPartLinkViewer
02111-1307, USA.
*/
-#include "UIxMailPartLinkViewer.h"
-#include "common.h"
+#import "UIxMailPartLinkViewer.h"
@implementation UIxMailPartLinkViewer
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 {
#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];
}
- (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 */
+++ /dev/null
-/*
- 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