2005-01-21 Lluis Sanchez Gual <lluis@novell.com>
authorLluis Sanchez <lluis@novell.com>
Fri, 21 Jan 2005 18:03:41 +0000 (18:03 -0000)
committerLluis Sanchez <lluis@novell.com>
Fri, 21 Jan 2005 18:03:41 +0000 (18:03 -0000)
* Content.cs, ContentPlaceHolder.cs, ContentControlBuilder.cs
ContentPlaceHolderBuilder.cs: Implemented.

svn path=/trunk/mcs/; revision=39319

mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
mcs/class/System.Web/System.Web.UI.WebControls/Content.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/ContentControlBuilder.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/ContentPlaceHolder.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/ContentPlaceHolderBuilder.cs [new file with mode: 0644]

index 241d2c1281268c7641ff5cc5bd582f5cf6fb9a17..e1ed6cb0bb8438a2b13536143d2c2626d9f1b114 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-21  Lluis Sanchez Gual <lluis@novell.com>
+
+       * Content.cs, ContentPlaceHolder.cs, ContentControlBuilder.cs
+       ContentPlaceHolderBuilder.cs: Implemented.
+
 2005-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * CheckBox.cs: when rendering the input tag inside a span tag, keep the
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/Content.cs b/mcs/class/System.Web/System.Web.UI.WebControls/Content.cs
new file mode 100644 (file)
index 0000000..ae27ef7
--- /dev/null
@@ -0,0 +1,50 @@
+//
+// System.Web.UI.WebControls.Content.cs
+//
+// Authors:
+//   Lluis Sanchez Gual (lluis@novell.com)
+//
+// (C) 2005 Novell, Inc.
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+using System.ComponentModel;
+
+namespace System.Web.UI.WebControls
+{
+       [ControlBuilder(typeof(ContentControlBuilder))] 
+       public class Content: Control, INamingContainer
+       {
+               string placeHolderId;
+               
+               public string ContentPlaceHolderID {
+                       get { return placeHolderId; }
+                       set { placeHolderId = value; }
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/ContentControlBuilder.cs b/mcs/class/System.Web/System.Web.UI.WebControls/ContentControlBuilder.cs
new file mode 100644 (file)
index 0000000..ca31d83
--- /dev/null
@@ -0,0 +1,60 @@
+//
+// System.Web.UI.WebControls.Content.cs
+//
+// Authors:
+//   Lluis Sanchez Gual (lluis@novell.com)
+//
+// (C) 2005 Novell, Inc.
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+using System.Collections;
+using System.Web.UI.WebControls;
+
+namespace System.Web.UI
+{
+       internal class ContentControlBuilder: TemplateBuilder
+       {
+               string placeHolderID;
+               
+               public override void Init (TemplateParser parser,
+                                         ControlBuilder parentBuilder,
+                                         Type type,
+                                         string tagName,
+                                         string ID,
+                                         IDictionary attribs)
+               {
+                       base.Init (parser, parentBuilder, type, tagName, ID, attribs);
+                       placeHolderID = attribs ["ContentPlaceHolderID"] as string;
+               }
+               
+               public string ContentPlaceHolderID {
+                       get { return placeHolderID; }
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/ContentPlaceHolder.cs b/mcs/class/System.Web/System.Web.UI.WebControls/ContentPlaceHolder.cs
new file mode 100644 (file)
index 0000000..346af88
--- /dev/null
@@ -0,0 +1,45 @@
+//
+// System.Web.UI.WebControls.ContentPlaceholder.cs
+//
+// Authors:
+//   Lluis Sanchez Gual (lluis@novell.com)
+//
+// (C) 2005 Novell, Inc.
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+
+namespace System.Web.UI.WebControls
+{
+       [ControlBuilder(typeof(ContentPlaceHolderBuilder))] 
+       public class ContentPlaceHolder: Control
+       {
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/ContentPlaceHolderBuilder.cs b/mcs/class/System.Web/System.Web.UI.WebControls/ContentPlaceHolderBuilder.cs
new file mode 100644 (file)
index 0000000..c5d6a1b
--- /dev/null
@@ -0,0 +1,44 @@
+//
+// System.Web.UI.WebControls.ContentPlaceHolderBuilder.cs
+//
+// Authors:
+//   Lluis Sanchez Gual (lluis@novell.com)
+//
+// (C) 2005 Novell, Inc.
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+using System.Collections;
+using System.Web.UI.WebControls;
+
+namespace System.Web.UI
+{
+       internal class ContentPlaceHolderBuilder: ControlBuilder
+       {
+       }
+}
+
+#endif