From b3976280add44f88ddcb5a2cf67cae5ced5eb9ba Mon Sep 17 00:00:00 2001 From: Duncan Mak Date: Fri, 17 May 2002 20:54:14 +0000 Subject: 2002-05-17 Duncan Mak * System.Web.build: Added new arguments: "/noconfig", "/r:System.Drawing.dll" and "/r:System.Xml.dll". * AttributeCollection.cs: * ControlCollection.cs: * CssStyleCollection.cs: * DataBindingCollection.cs: * EmptyControlCollection.cs: Added missing Collection classes. * BaseParser.cs: * TemplateParser.cs: Implemented. BaseParser is weird because there is no documentation on what it does. * ControlBuilder.cs: * DataBinder.cs: * DataBinding.cs: Added. * DataBoundLiteralControl.cs: * Triplet.cs: Added. * RenderMethod.cs: Added this delegate for Control.cs svn path=/trunk/mcs/; revision=4726 --- .../System.Web/System.Web.UI/ControlBuilder.cs | 167 +++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100755 mcs/class/System.Web/System.Web.UI/ControlBuilder.cs (limited to 'mcs/class/System.Web/System.Web.UI/ControlBuilder.cs') diff --git a/mcs/class/System.Web/System.Web.UI/ControlBuilder.cs b/mcs/class/System.Web/System.Web.UI/ControlBuilder.cs new file mode 100755 index 00000000000..7acb206a3a3 --- /dev/null +++ b/mcs/class/System.Web/System.Web.UI/ControlBuilder.cs @@ -0,0 +1,167 @@ +// +// System.Web.UI.ControlBuilder.cs +// +// Duncan Mak (duncan@ximian.com) +// +// (C) Ximian, Inc. +// + +using System; +using System.Collections; + +namespace System.Web.UI { + + public class ControlBuilder + { + TemplateParser parser; + ControlBuilder parentBuilder; + Type type; + string tagName; + string id; + IDictionary attribs; + int line; + string fileName; + + public ControlBuilder () + { + } + + + internal ControlBuilder ( + TemplateParser parser, ControlBuilder parentBuilder, + Type type, string tagName, string id, + IDictionary attribs, int line, string sourceFileName) + + { + this.parser = parser; + this.parentBuilder = parentBuilder; + this.type = type; + this.tagName = tagName; + this.id = id; + this.attribs = attribs; + this.line = line; + this.fileName = sourceFileName; + } + + public Type ControlType { + get { return type; } + } + + [MonoTODO] + public bool FChildrenAsProperties { + get { return false; } + } + + [MonoTODO] + public bool FIsNonParserAccessor { + get { return false; } + } + + [MonoTODO] + public bool HasAspCode { + get { return false; } + } + + public string ID { + get { return id; } + + set { id = value; } + } + + [MonoTODO] + public bool InDesigner { + get { return false; } + } + + [MonoTODO] + public Type NamingContainerType { + get { return null; } + } + + protected TemplateParser Parser { + get { return parser; } + } + + public string TagName { + get { return tagName; } + } + + [MonoTODO] + public virtual bool AllowWhitespaceLiterals () + { + return false; + } + + [MonoTODO] + public virtual void AppendLiteralString (string s) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public virtual void AppendSubBuilder (ControlBuilder subBuilder) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public virtual void CloseControl () + { + } + + [MonoTODO] + public static ControlBuilder CreateBuilderFromType ( + TemplateParser parser, ControlBuilder parentBuilder, + Type type, string tagName, string id, + IDictionary attribs, int line, string sourceFileName) + { + return new ControlBuilder (parser, parentBuilder, type, + tagName, id, attribs, line, sourceFileName); + } + + [MonoTODO] + public virtual Type GetChildControlType (string tagName, IDictionary attribs) + { + return attribs [tagName] as Type; + } + + [MonoTODO] + public virtual bool HasBody () + { + return false; + } + + [MonoTODO] + public virtual bool HtmlDecodeLiterals () + { + return false; + } + + [MonoTODO] + public virtual void Init ( + TemplateParser parser, ControlBuilder parentBuilder, + Type type, string tagName, string id, IDictionary attribs) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public virtual bool NeedsTagInnerText () + { + throw new NotImplementedException (); + } + + [MonoTODO] + public virtual void OnAppendToParentBuilder () + { + throw new NotImplementedException (); + } + + [MonoTODO] + public virtual void SetTagInnerText (string text) + { + throw new NotImplementedException (); + } + } +} + -- cgit v1.2.3