2 Copyright (C) 2000-2003 SKYRIX Software AG
4 This file is part of OGo
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
23 #ifndef __ODNodeRenderer_H__
24 #define __ODNodeRenderer_H__
26 #import <Foundation/NSObject.h>
28 @class WOContext, WORequest, WOResponse;
30 @interface ODNodeRenderer : NSObject
32 /* renderer lookup (uses the ODNodeRendererFactory stored in the WOContext) */
34 - (ODNodeRenderer *)rendererForNode:(id)_domNode
35 inContext:(WOContext *)_ctx;
39 - (void)takeValuesForNode:(id)_domNode
40 fromRequest:(WORequest *)_request
41 inContext:(WOContext *)_context;
43 - (id)invokeActionForNode:(id)_domNode
44 fromRequest:(WORequest *)_request
45 inContext:(WOContext *)_context;
47 - (void)appendNode:(id)_domNode
48 toResponse:(WOResponse *)_response
49 inContext:(WOContext *)_context;
51 /* request phases for child nodes */
53 - (void)takeValuesForChildNodes:(id)_nodeList
54 fromRequest:(WORequest *)_request
55 inContext:(WOContext *)_context;
56 - (id)invokeActionForChildNodes:(id)_nodeList
57 fromRequest:(WORequest *)_request
58 inContext:(WOContext *)_context;
59 - (void)appendChildNodes:(id)_nodeList
60 toResponse:(WOResponse *)_response
61 inContext:(WOContext *)_context;
63 /* requires HTML form */
65 - (BOOL)requiresFormForNode:(id)_domNode inContext:(WOContext *)_ctx;
66 - (BOOL)requiresFormForChildNodes:(id)_nodeList inContext:(WOContext *)_ctx;
68 /* selecting children */
70 - (BOOL)includeChildNode:(id)_childNode
72 inContext:(WOContext *)_ctx;
74 /* generating node ids unique in DOM tree */
76 - (NSString *)uniqueIDForNode:(id)_node inContext:(WOContext *)_ctx;
80 #include <NGObjDOM/ODNodeRenderer+attributes.h>
82 #endif /* __ODNodeRenderer_H__ */