Removed untyped contructor from ComponentRegistration and add a protected setter.
[castle.git] / Experiments / IronPythonViewEngine / Castle.MonoRail.Views.IronView / ITemplateContext.cs
blob1c88d920049b877c62385a24d3d8c8cbccda6431
1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle.MonoRail.Views.IronView
17 using System;
18 using System.Text;
19 using System.Xml;
20 using Castle.MonoRail.Framework;
22 /// <summary>
23 /// Represents an evaluation context
24 /// </summary>
25 public interface ITemplateContext
27 /// <summary>
28 /// Gets the template xml reader.
29 /// </summary>
30 /// <value>The reader.</value>
31 XmlReader Reader { get; }
33 /// <summary>
34 /// Gets the service provider.
35 /// </summary>
36 /// <value>The service provider.</value>
37 IServiceProvider ServiceProvider { get; }
39 /// <summary>
40 /// Gets the template engine.
41 /// </summary>
42 /// <value>The template engine.</value>
43 ITemplateEngine Engine { get; }
45 /// <summary>
46 /// Gets the name of the root view.
47 /// </summary>
48 /// <value>The name of the root view.</value>
49 String RootViewName { get; }
51 /// <summary>
52 /// Gets the script buffer.
53 /// </summary>
54 /// <value>The script.</value>
55 StringBuilder Script { get; }
57 /// <summary>
58 /// Gets the indentation level.
59 /// </summary>
60 /// <value>The indentation.</value>
61 int Indentation { get; }
63 /// <summary>
64 /// Gets the current element depth.
65 /// </summary>
66 /// <value>The current element depth.</value>
67 int CurrentElementDepth { get; }
69 void IncreaseIndentation();
71 void DecreaseIndentation();
73 void IncreaseDepth();
75 void DecreaseDepth();
77 void AppendIndented(string content);
79 void AppendLineIndented(string content);