2003-07-30 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / Xml.cs
index fc3f4dfe0de9dbc5120e96949c99868cf01ddf71..15fb7f9b6d3a2915148672c5afab63674934d284 100644 (file)
@@ -1,19 +1,19 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     Xml\r
- *\r
- * Author:  Gaurav Vaish, Gonzalo Paniagua Javier\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>, <gonzalo@ximian.com>\r
- * Implementation: yes\r
- * Status:  95%\r
- *\r
- * (C) Gaurav Vaish (2002)\r
- * (c) 2002 Ximian, Inc. (http://www.ximian.com)\r
- */\r
+//
+// System.Web.UI.WebControls.Xml.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (c) 2002 Ximian, Inc. (http://www.ximian.com)
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//\r
 \r
 using System;\r
-using System.ComponentModel;\r
+using System.ComponentModel;
+using System.ComponentModel.Design;\r
 using System.IO;\r
 using System.Xml;\r
 using System.Xml.Xsl;\r
@@ -24,7 +24,10 @@ using System.Web.UI;
 namespace System.Web.UI.WebControls\r
 {\r
        [DefaultProperty("DocumentSource")]\r
-       [PersistChildren(false)]\r
+       [PersistChildren(false)]
+       // TODO add control builder
+       //[ControlBuilder ()]
+       [Designer ("System.Web.UI.Design.WebControls.XmlDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]\r
        public class Xml : Control\r
        {\r
                private XmlDocument      document;\r
@@ -68,7 +71,9 @@ namespace System.Web.UI.WebControls
                                document.Load (documentSource);\r
                        }\r
                }\r
-\r
+
+               [Browsable (false), DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("This is the XML document that is used for the XML Webcontrol.")]\r
                public XmlDocument Document\r
                {\r
                        get\r
@@ -85,7 +90,9 @@ namespace System.Web.UI.WebControls
                                document        = value;\r
                        }\r
                }\r
-\r
+
+               [Browsable (false), DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("The XML content that is transformed for the XML Webcontrol.")]\r
                public string DocumentContent\r
                {\r
                        get\r
@@ -99,7 +106,10 @@ namespace System.Web.UI.WebControls
                                documentContent = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Behavior")]
+               [Editor ("System.Web.UI.Design.XmlUrlEditor, " + Consts.AssemblySystem_Design, typeof (System.Drawing.Design.UITypeEditor))]
+               [WebSysDescription ("The URL or the source of the XML content that is transformed for the XML Webcontrol.")]\r
                public string DocumentSource\r
                {\r
                        get\r
@@ -116,7 +126,9 @@ namespace System.Web.UI.WebControls
                                documentSource  = value;\r
                        }\r
                }\r
-\r
+
+               [Browsable (false), DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("The XSL transform that is applied to this XML Webcontrol.")]\r
                public XslTransform Transform\r
                {\r
                        get\r
@@ -129,7 +141,10 @@ namespace System.Web.UI.WebControls
                                transform       = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Behavior")]
+               [Editor ("System.Web.UI.Design.XmlUrlEditor, " + Consts.AssemblySystem_Design, typeof (System.Drawing.Design.UITypeEditor))]
+               [WebSysDescription ("An URL specifying the source that is used for the XSL transformation.")]\r
                public string TransformSource\r
                {\r
                        get\r
@@ -144,7 +159,9 @@ namespace System.Web.UI.WebControls
                                transformSource = value;\r
                        }\r
                }\r
-\r
+
+               [Browsable (false), DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("Arguments that are used by the XSL Transform.")]\r
                public XsltArgumentList TransformArgumentList\r
                {\r
                        get\r