mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-03 06:02:17 +00:00
Monotone-Parent: 608a60003e7ab414a1db4964517a15869cf440bb
Monotone-Revision: 91edd84f8562153c6c50c498b6d7d4dfaf789fdd Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-07-30T14:10:18 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#ifndef __Mailer_UIxKolabPartViewer_H__
|
||||
#define __Mailer_UIxKolabPartViewer_H__
|
||||
|
||||
#include "UIxMailPartViewer.h"
|
||||
#import "UIxMailPartViewer.h"
|
||||
|
||||
/*
|
||||
UIxKolabPartContactViewer
|
||||
@@ -30,17 +30,18 @@
|
||||
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
|
||||
|
||||
|
||||
@@ -19,9 +19,11 @@
|
||||
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
|
||||
|
||||
|
||||
@@ -19,7 +19,14 @@
|
||||
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
|
||||
@@ -40,10 +47,6 @@
|
||||
|
||||
@end
|
||||
|
||||
#include "UIxMailRenderingContext.h"
|
||||
#include <UI/MailerUI/WOContext+UIxMailer.h>
|
||||
#include "common.h"
|
||||
|
||||
@implementation UIxMailPartAlternativeViewer
|
||||
|
||||
- (void)dealloc {
|
||||
|
||||
@@ -19,13 +19,16 @@
|
||||
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 {
|
||||
|
||||
@@ -25,14 +25,22 @@
|
||||
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"
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#ifndef __Mailer_UIxMailPartLinkViewer_H__
|
||||
#define __Mailer_UIxMailPartLinkViewer_H__
|
||||
|
||||
#include "UIxMailPartViewer.h"
|
||||
#import "UIxMailPartViewer.h"
|
||||
|
||||
/*
|
||||
UIxMailPartLinkViewer
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "UIxMailPartLinkViewer.h"
|
||||
#include "common.h"
|
||||
#import "UIxMailPartLinkViewer.h"
|
||||
|
||||
@implementation UIxMailPartLinkViewer
|
||||
|
||||
|
||||
@@ -19,7 +19,11 @@
|
||||
02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "UIxMailPartViewer.h"
|
||||
#import <UI/MailerUI/WOContext+UIxMailer.h>
|
||||
|
||||
#import "UIxMailRenderingContext.h"
|
||||
|
||||
#import "UIxMailPartViewer.h"
|
||||
|
||||
@interface UIxMailPartMixedViewer : UIxMailPartViewer
|
||||
{
|
||||
@@ -29,10 +33,6 @@
|
||||
|
||||
@end
|
||||
|
||||
#include "UIxMailRenderingContext.h"
|
||||
#include <UI/MailerUI/WOContext+UIxMailer.h>
|
||||
#include "common.h"
|
||||
|
||||
@implementation UIxMailPartMixedViewer
|
||||
|
||||
- (void)dealloc {
|
||||
|
||||
@@ -21,19 +21,26 @@
|
||||
|
||||
#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 {
|
||||
}
|
||||
@@ -51,39 +58,39 @@
|
||||
- (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 {
|
||||
@@ -237,7 +244,7 @@
|
||||
|
||||
/* 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 */
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user