Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaurav Vaish <gvaish@mono-cvs.ximian.com>2003-06-17 16:26:17 +0400
committerGaurav Vaish <gvaish@mono-cvs.ximian.com>2003-06-17 16:26:17 +0400
commit889b7a47127af1104be9cd7f3458e5d23420fafa (patch)
treed7cc4b30100a4c8019c2c11940e7ea689515d824 /mcs/class/System.Web.Mobile
parent4ad670959b00f319dcd79c0068cd0db6e03b5786 (diff)
2003-05-21 Gaurav Vaish <gvaish_mono AT lycos.com>
* HtmlControlAdapter.cs : A little more implementation. * HtmlMobileTextWriter.cs, * MultiPartWriter.cs, * MobileTextWriter.cs : Dummy implementation. * MobileControl.cs : Now implements IAttributeAccessor. -- Commented out. svn path=/trunk/mcs/; revision=15450
Diffstat (limited to 'mcs/class/System.Web.Mobile')
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ChangeLog9
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlControlAdapter.cs36
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlMobileTextWriter.cs27
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/MobileTextWriter.cs25
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/MultiPartWriter.cs25
5 files changed, 122 insertions, 0 deletions
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ChangeLog b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ChangeLog
index cff059f26f7..3658179fb1e 100644
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ChangeLog
+++ b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ChangeLog
@@ -1,6 +1,15 @@
2003-05-21 Gaurav Vaish <gvaish_mono AT lycos.com>
+ * HtmlControlAdapter.cs : A little more implementation.
+ * HtmlMobileTextWriter.cs,
+ * MultiPartWriter.cs,
+ * MobileTextWriter.cs : Dummy implementation.
+ * MobileControl.cs : Now implements IAttributeAccessor.
+ -- Commented out.
+
+2003-05-21 Gaurav Vaish <gvaish_mono AT lycos.com>
+
* HtmlControlAdapter.cs : Partial implementation.
* HtmlFormAdapter.cs : Initial implementation.
* HtmlPageAdapter.cs : Initial implementation.
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlControlAdapter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlControlAdapter.cs
index 671ebe2efa8..86ad41ccbce 100644
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlControlAdapter.cs
+++ b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlControlAdapter.cs
@@ -69,5 +69,41 @@ namespace System.Web.UI.MobileControls.Adapters
return false;
}
}
+
+ [MonoTODO]
+ private void AddAttributePrivate(HtmlMobileTextWriter writer,
+ string attribute)
+ {
+ //string val = Control.GetAttribute(attribute);
+ string val = String.Empty;
+ if(val != null && val.Length > 0)
+ {
+ writer.WriteAttribute(attribute, val);
+ }
+ }
+
+ protected virtual void AddAccesskey(HtmlMobileTextWriter writer)
+ {
+ if(Device.SupportsAccesskeyAttribute)
+ {
+ AddAttributePrivate(writer, "accesskey");
+ }
+ }
+
+ protected virtual void AddAttributes(HtmlMobileTextWriter writer)
+ {
+ }
+
+ protected virtual void AddJPhoneMultiMediaAttributes(
+ HtmlMobileTextWriter writer)
+ {
+ if(Device.SupportsJPhoneMultiMediaAttributes)
+ {
+ foreach(string cAttrib in multimediaAttrs)
+ {
+ AddAttributePrivate(writer, cAttrib);
+ }
+ }
+ }
}
}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlMobileTextWriter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlMobileTextWriter.cs
new file mode 100644
index 00000000000..73514e17208
--- /dev/null
+++ b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlMobileTextWriter.cs
@@ -0,0 +1,27 @@
+/**
+ * Project : Mono
+ * Namespace : System.Web.UI.MobileControls.Adapters
+ * Class : HtmlMobileTextWriter
+ * Author : Gaurav Vaish
+ *
+ * Copyright : 2003 with Gaurav Vaish, and with
+ * Ximian Inc
+ */
+
+using System;
+using System.IO;
+using System.Web.Mobile;
+
+namespace System.Web.UI.MobileControls.Adapters
+{
+ public class HtmlMobileTextWriter : MobileTextWriter
+ {
+ [MonoTODO]
+ public HtmlMobileTextWriter(TextWriter writer,
+ MobileCapabilities capabilities)
+ : base(writer, capabilities)
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/MobileTextWriter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/MobileTextWriter.cs
new file mode 100644
index 00000000000..65b1be1dc55
--- /dev/null
+++ b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/MobileTextWriter.cs
@@ -0,0 +1,25 @@
+/**
+ * Project : Mono
+ * Namespace : System.Web.UI.MobileControls.Adapters
+ * Class : MobileTextWriter
+ * Author : Gaurav Vaish
+ *
+ * Copyright : 2003 with Gaurav Vaish, and with
+ * Ximian Inc
+ */
+
+using System;
+using System.IO;
+using System.Web.Mobile;
+
+namespace System.Web.UI.MobileControls.Adapters
+{
+ public class MobileTextWriter : MultiPartWriter
+ {
+ public MobileTextWriter(TextWriter writer,
+ MobileCapabilities capabilities) : base(writer)
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/MultiPartWriter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/MultiPartWriter.cs
new file mode 100644
index 00000000000..6257db712a0
--- /dev/null
+++ b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/MultiPartWriter.cs
@@ -0,0 +1,25 @@
+/**
+ * Project : Mono
+ * Namespace : System.Web.UI.MobileControls.Adapters
+ * Class : MultiPartWriter
+ * Author : Gaurav Vaish
+ *
+ * Copyright : 2003 with Gaurav Vaish, and with
+ * Ximian Inc
+ */
+
+using System;
+using System.Web.Mobile;
+using System.Web.UI;
+using System.IO;
+
+namespace System.Web.UI.MobileControls.Adapters
+{
+ public class MultiPartWriter : HtmlTextWriter
+ {
+ public MultiPartWriter(TextWriter writer) : base(writer)
+ {
+ throw new NotImplementedException();
+ }
+ }
+}