]> err.no Git - sope/blob - Recycler/NGObjDOM/ODNodeRenderer.h
minor improvement to quoting
[sope] / Recycler / NGObjDOM / ODNodeRenderer.h
1 /*
2   Copyright (C) 2000-2003 SKYRIX Software AG
3
4   This file is part of OGo
5
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
9   later version.
10
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.
15
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
19   02111-1307, USA.
20 */
21 // $Id$
22
23 #ifndef __ODNodeRenderer_H__
24 #define __ODNodeRenderer_H__
25
26 #import <Foundation/NSObject.h>
27
28 @class WOContext, WORequest, WOResponse;
29
30 @interface ODNodeRenderer : NSObject
31
32 /* renderer lookup (uses the ODNodeRendererFactory stored in the WOContext) */
33
34 - (ODNodeRenderer *)rendererForNode:(id)_domNode
35   inContext:(WOContext *)_ctx;
36
37 /* request phases */
38
39 - (void)takeValuesForNode:(id)_domNode
40   fromRequest:(WORequest *)_request
41   inContext:(WOContext *)_context;
42
43 - (id)invokeActionForNode:(id)_domNode
44   fromRequest:(WORequest *)_request
45   inContext:(WOContext *)_context;
46
47 - (void)appendNode:(id)_domNode
48   toResponse:(WOResponse *)_response
49   inContext:(WOContext *)_context;
50
51 /* request phases for child nodes */
52
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;
62
63 /* requires HTML form */
64
65 - (BOOL)requiresFormForNode:(id)_domNode inContext:(WOContext *)_ctx;
66 - (BOOL)requiresFormForChildNodes:(id)_nodeList inContext:(WOContext *)_ctx;
67
68 /* selecting children */
69
70 - (BOOL)includeChildNode:(id)_childNode
71   ofNode:(id)_domNode
72   inContext:(WOContext *)_ctx;
73
74 /* generating node ids unique in DOM tree */
75
76 - (NSString *)uniqueIDForNode:(id)_node inContext:(WOContext *)_ctx;
77
78 @end
79
80 #include <NGObjDOM/ODNodeRenderer+attributes.h>
81
82 #endif /* __ODNodeRenderer_H__ */