2 Copyright (C) 2004-2005 SKYRIX Software AG
4 This file is part of OpenGroupware.org.
6 OGo is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with OGo; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __Mailer_UIxMailRenderingContext_H__
23 #define __Mailer_UIxMailRenderingContext_H__
25 #import <Foundation/NSObject.h>
28 UIxMailRenderingContext
30 The rendering context is used to track nesting of mail part viewers.
33 @class NSData, NSArray, NSDictionary;
34 @class WOContext, WOComponent;
36 @interface UIxMailRenderingContext : NSObject
38 WOComponent *viewer; /* non-retained! */
39 WOContext *context; /* non-retained! */
40 NSDictionary *flatContents; /* IMAP4 name to NSData */
42 WOComponent *textViewer;
43 WOComponent *imageViewer;
44 WOComponent *linkViewer;
45 WOComponent *messageViewer;
46 WOComponent *iCalViewer;
47 WOComponent *htmlViewer;
50 - (id)initWithViewer:(WOComponent *)_viewer context:(WOContext *)_ctx;
58 - (NSDictionary *)flatContents;
59 - (NSData *)flatContentForPartPath:(NSArray *)_partPath;
61 /* viewer components */
63 - (WOComponent *)viewerForBodyInfo:(id)_info;
68 #include <NGObjWeb/WOContext.h>
70 @interface WOContext(UIxMailPart)
72 - (void)pushMailRenderingContext:(UIxMailRenderingContext *)_mctx;
73 - (UIxMailRenderingContext *)popMailRenderingContext;
74 - (UIxMailRenderingContext *)mailRenderingContext;
78 #endif /* __Mailer_UIxMailRenderingContext_H__ */