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:
authorMiguel de Icaza <miguel@gnome.org>2005-07-07 08:48:43 +0400
committerMiguel de Icaza <miguel@gnome.org>2005-07-07 08:48:43 +0400
commitbdf5975c96b4bafe832270f5546d0797a2c8ecc0 (patch)
treea9334c3048125dae2a0999c79d32e992c70239fc /mcs/class/System.Web.Mobile
parentfc7c0148989863d7fe3bcc81098a55a90977c8af (diff)
Remove dead code
svn path=/trunk/mcs/; revision=47024
Diffstat (limited to 'mcs/class/System.Web.Mobile')
-rw-r--r--mcs/class/System.Web.Mobile/Assembly/AssemblyInfo.cs67
-rw-r--r--mcs/class/System.Web.Mobile/Assembly/ChangeLog5
-rw-r--r--mcs/class/System.Web.Mobile/ChangeLog24
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.Mobile.Util/ChangeLog10
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.Mobile.Util/DataSourceHelper.cs57
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.Mobile.Util/ListDataHelper.cs191
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.Mobile/ChangeLog30
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.Mobile/DeviceFilterDictionary.cs112
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.Mobile/ErrorHandlerModule.cs45
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.Mobile/MobileCapabilities.cs1379
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/CHtmlCalendarAdapter.cs133
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ChangeLog80
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ControlAdapter.cs240
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlCalendarAdapter.cs98
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlCommandAdapter.cs136
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlControlAdapter.cs210
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlFormAdapter.cs39
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlMobileTextWriter.cs331
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlPageAdapter.cs58
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/MobileTextWriter.cs57
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/MultiPartWriter.cs46
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/StyleStack.cs79
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/StyleTag.cs61
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/WriterState.cs303
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/WriterStyle.cs170
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Alignment.cs41
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ArrayListCollectionBase.cs104
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/BaseValidator.cs226
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/BooleanOption.cs40
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Calendar.cs185
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ChangeLog224
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Command.cs213
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/CommandFormat.cs39
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/CompareValidator.cs130
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Constants.cs65
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ControlPager.cs127
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/CustomValidator.cs98
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecific.cs244
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecificChoice.cs254
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecificChoiceCollection.cs84
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecificChoiceTemplateContainer.cs72
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/FontInfo.cs112
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/FontSize.cs41
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Form.cs78
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/FormMethod.cs39
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IControlAdapter.cs59
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IListControl.cs40
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IObjectListFieldCollection.cs44
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IPageAdapter.cs57
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ITemplateable.cs37
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Image.cs109
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ItemPager.cs172
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Label.cs42
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Link.cs93
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/List.cs300
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListCommandEventArgs.cs76
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListCommandEventHandler.cs36
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDataBindEventArgs.cs64
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDataBindEventHandler.cs39
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDataHelper.cs49
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDecoration.cs40
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListSelectType.cs42
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/LoadItemsEventArgs.cs61
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/LoadItemsEventHandler.cs36
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileControl.cs347
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileListItem.cs279
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileListItemCollection.cs181
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileListItemType.cs41
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobilePage.cs73
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectList.cs52
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListCommandEventArgs.cs76
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListCommandEventHandler.cs36
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListField.cs42
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListItem.cs140
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListViewMode.cs40
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/PagedControl.cs211
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Panel.cs162
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/SelectionList.cs72
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Style.cs306
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/TemplateContainer.cs43
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/TextBox.cs43
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/TextControl.cs61
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/WmlListFieldType.cs43
-rw-r--r--mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Wrapping.cs40
84 files changed, 0 insertions, 10061 deletions
diff --git a/mcs/class/System.Web.Mobile/Assembly/AssemblyInfo.cs b/mcs/class/System.Web.Mobile/Assembly/AssemblyInfo.cs
deleted file mode 100644
index 4a50d80111c..00000000000
--- a/mcs/class/System.Web.Mobile/Assembly/AssemblyInfo.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-//
-// AssemblyInfo.cs
-//
-// Author:
-// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
-//
-// (C) 2003 Ximian, Inc. http://www.ximian.com
-//
-
-//
-// 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.
-//
-
-using System;
-using System.Reflection;
-using System.Resources;
-using System.Security;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about the System.Web.Mobile assembly
-
-#if (NET_1_0)
- [assembly: AssemblyVersion ("1.0.3300.0")]
- [assembly: SatelliteContractVersion ("1.0.3300.0")]
-#endif
-#if (NET_1_1)
- [assembly: AssemblyVersion ("1.0.5000.0")]
- [assembly: SatelliteContractVersion ("1.0.5000.0")]
-#endif
-
-[assembly: AssemblyTitle ("System.Web.Mobile.dll")]
-[assembly: AssemblyDescription ("System.Web.Mobile.dll")]
-[assembly: AssemblyConfiguration ("Development version")]
-[assembly: AssemblyCompany ("MONO development team")]
-[assembly: AssemblyProduct ("MONO CLI")]
-[assembly: AssemblyCopyright ("(c) 2003 Various Authors")]
-[assembly: AssemblyTrademark ("")]
-
-// FIXME: Add once compliance is reached
-//[assembly: CLSCompliant (true)]
-[assembly: AssemblyDefaultAlias ("System.Web.Mobile.dll")]
-[assembly: AssemblyInformationalVersion ("0.0.0.1")]
-[assembly: NeutralResourcesLanguage ("en-US")]
-
-[assembly: AllowPartiallyTrustedCallers]
-[assembly: ComVisible (false)]
-
-[assembly: AssemblyDelaySign (true)]
-[assembly: AssemblyKeyFile("../msfinal.pub")]
diff --git a/mcs/class/System.Web.Mobile/Assembly/ChangeLog b/mcs/class/System.Web.Mobile/Assembly/ChangeLog
deleted file mode 100644
index 40923a92125..00000000000
--- a/mcs/class/System.Web.Mobile/Assembly/ChangeLog
+++ /dev/null
@@ -1,5 +0,0 @@
-2004-04-06 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
-
- * AssemblyInfo.cs: Added
- * ChangeLog: Added
- * Locale.cs: Added \ No newline at end of file
diff --git a/mcs/class/System.Web.Mobile/ChangeLog b/mcs/class/System.Web.Mobile/ChangeLog
deleted file mode 100644
index b1348cdee50..00000000000
--- a/mcs/class/System.Web.Mobile/ChangeLog
+++ /dev/null
@@ -1,24 +0,0 @@
-
-2003-04-14 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * System.Web.UI.MobileControls.Adapters : Added directory.
-
-2003-01-08 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * System.Web.Mobile.Util : Added directory.
-
-2003-01-08 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * System.Web.Mobile.build : Also remove the pdb file.
-
-2003-01-08 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * .cvsignore : Ignores local files
- * System.Web.Mobile.build : The build file
-
-2003-01-08 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * System.Web.Mobile,
- * System.Web.UI.MobileControls,
- * System.Web.UI.MobileControls.Adapters : Added directories
-
diff --git a/mcs/class/System.Web.Mobile/System.Web.Mobile.Util/ChangeLog b/mcs/class/System.Web.Mobile/System.Web.Mobile.Util/ChangeLog
deleted file mode 100644
index 8faa4938e21..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.Mobile.Util/ChangeLog
+++ /dev/null
@@ -1,10 +0,0 @@
-
-2003-01-30 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * ListDataHelper.cs : Complete. Probably!
-
-2003-01-30 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * ListDataHelper.cs : Initial implementation.
- * DataSourceHelper.cs : Initial implementation.
-
diff --git a/mcs/class/System.Web.Mobile/System.Web.Mobile.Util/DataSourceHelper.cs b/mcs/class/System.Web.Mobile/System.Web.Mobile.Util/DataSourceHelper.cs
deleted file mode 100644
index d9f925a01b8..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.Mobile.Util/DataSourceHelper.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.Mobile.Util
- * Class : DataSourceHelper
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Collections;
-using System.Web.UI;
-using System.Web.Mobile;
-using System.Web.UI.MobileControls;
-
-namespace System.Web.Mobile.Util
-{
- internal class DataSourceHelper
- {
- private DataSourceHelper()
- {
- }
-
- [MonoTODO("Have_to_see_how_I_did_in_WebControls")]
- public static IEnumerable GetResolvedDataSource(object dataSource,
- string dataMember)
- {
- IEnumerable retVal = null;
- if(dataSource != null)
- {
- throw new NotImplementedException();
- }
- return retVal;
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.Mobile.Util/ListDataHelper.cs b/mcs/class/System.Web.Mobile/System.Web.Mobile.Util/ListDataHelper.cs
deleted file mode 100644
index 75609aa635b..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.Mobile.Util/ListDataHelper.cs
+++ /dev/null
@@ -1,191 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.Mobile.Util
- * Class : ListDataHelper
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Collections;
-using System.Web.UI;
-using System.Web.Mobile;
-using System.Web.UI.MobileControls;
-
-namespace System.Web.Mobile.Util
-{
- internal class ListDataHelper
- {
- private object dataSource;
- private int dataSourceCount = -1;
- private IEnumerable resolvedDataSrc;
- private MobileListItemCollection items;
- private string dataTextField;
- private string dataValueField;
- private bool bindFromFields;
-
- private IListControl parent;
- private StateBag parentViewState;
-
- public ListDataHelper(IListControl parent, StateBag parentViewState)
- {
- this.parent = parent;
- this.parentViewState = parentViewState;
- }
-
- public string DataMember
- {
- get
- {
- object o = parentViewState["DataMember"];
- if(o != null)
- return (string)o;
- return String.Empty;
- }
- set
- {
- parentViewState["DataMember"] = value;
- }
- }
-
- public string DataTextField
- {
- get
- {
- object o = parentViewState["DataTextField"];
- if(o != null)
- return (string)o;
- return String.Empty;
- }
- set
- {
- parentViewState["DataTextField"] = value;
- }
- }
-
- public string DataValueField
- {
- get
- {
- object o = parentViewState["DataValueField"];
- if(o != null)
- return (string)o;
- return String.Empty;
- }
- set
- {
- parentViewState["DataValueField"] = value;
- }
- }
-
- public object DataSource
- {
- get
- {
- return this.dataSource;
- }
- set
- {
- this.dataSource = value;
- }
- }
-
- public int DataSourceCount
- {
- get
- {
- if(dataSourceCount == -1)
- {
- if(ResolvedDataSource != null)
- {
- if(ResolvedDataSource is ICollection)
- dataSourceCount = ((ICollection)ResolvedDataSource).Count;
- }
- }
- return dataSourceCount;
- }
- }
-
- public IEnumerable ResolvedDataSource
- {
- get
- {
- if(this.resolvedDataSrc == null)
- {
- resolvedDataSrc = DataSourceHelper.GetResolvedDataSource(DataSource, DataMember);
- }
- return resolvedDataSrc;
- }
- }
-
- public MobileListItemCollection Items
- {
- get
- {
- if(items == null)
- {
- items = new MobileListItemCollection();
- if(parent.TrackingViewState)
- ((IStateManager)items).TrackViewState();
- }
- return items;
- }
- }
-
- public void AddItem(MobileListItem item)
- {
- Items.Add(item);
- }
-
- public MobileListItem CreateItem(object dataItem)
- {
- MobileListItem retVal;
- string itemText = null;
- string itemValue = null;
- if(bindFromFields)
- {
- if(this.dataTextField.Length > 0)
- {
- itemText = DataBinder.GetPropertyValue(dataItem,
- dataTextField, "{0}");
- }
- if(this.dataValueField.Length > 0)
- {
- itemValue = DataBinder.GetPropertyValue(dataItem,
- dataValueField, "{0}");
- }
- } else
- {
- itemText = dataItem.ToString();
- }
- retVal = new MobileListItem(dataItem, itemText, itemValue);
- if(dataItem != null)
- {
- parent.OnItemDataBind(new ListDataBindEventArgs(retVal, dataItem));
- }
- return retVal;
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.Mobile/ChangeLog b/mcs/class/System.Web.Mobile/System.Web.Mobile/ChangeLog
deleted file mode 100644
index b11d86f0b03..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.Mobile/ChangeLog
+++ /dev/null
@@ -1,30 +0,0 @@
-
-2003-04-05 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * MobileCapabilities.cs : HasCapability(string, string)
- - In words how to implement it.
-
-2003-04-05 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * MobileCapabilities.cs : More methods.
- * DeviceFilterDictionary.cs: Used by MobCaps for filtering
- the capabilities. Init impl.
-
-2003-04-05 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * MobileCapabilities.cs : Completed all properties.
- Thanks to the tool that I made.
- * ErrorHandlerModule.cs : Initial implementation.
-
-2003-03-08 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * MobileCapabilities.cs : Stub-ing methods / properties.
-
-2003-02-23 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * MobileCapabilities.cs : Initial implementation.
-
-2003-01-08 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * TODOAttribute.cs : Added MonoTODO Attribute
-
diff --git a/mcs/class/System.Web.Mobile/System.Web.Mobile/DeviceFilterDictionary.cs b/mcs/class/System.Web.Mobile/System.Web.Mobile/DeviceFilterDictionary.cs
deleted file mode 100644
index c12c50f8b48..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.Mobile/DeviceFilterDictionary.cs
+++ /dev/null
@@ -1,112 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.Mobile
- * Class : DeviceFilterDictionary
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Collections;
-using System.Web;
-using System.Web.UI;
-
-namespace System.Web.Mobile
-{
- class DeviceFilterDictionary
- {
- internal class ComparisonEvaluator
- {
- public readonly string Name;
- public readonly string Argument;
-
- public ComparisonEvaluator(string name, string argument)
- {
- this.Name = name;
- this.Argument = argument;
- }
- }
-
- // for comparisons
- private Hashtable cmpEvaluators;
-
- // for delegates
- private Hashtable dlgEvaluators;
-
- internal DeviceFilterDictionary()
- {
- this.cmpEvaluators = new Hashtable();
- this.dlgEvaluators = new Hashtable();
- }
-
- internal DeviceFilterDictionary(DeviceFilterDictionary init)
- {
- this.cmpEvaluators = (Hashtable)init.cmpEvaluators.Clone();
- this.dlgEvaluators = (Hashtable)init.dlgEvaluators.Clone();
- }
-
- internal void AddCapabilityDelegate(string name,
- MobileCapabilities.EvaluateCapabilitiesHandler handler)
- {
- dlgEvaluators[name] = handler;
- }
-
- internal void AddComparisonDelegate(string delegateName,
- string comparisonName, string argument)
- {
- this.cmpEvaluators[delegateName] =
- new ComparisonEvaluator(comparisonName, argument);
- }
-
- private void InvalidateComparisonDelegateLoops(string name)
- {
- // throws exception in case of a loop
- throw new NotImplementedException();
- }
-
- internal bool LocateComparisonEvaluator(string evaluatorName,
- out string capabilityName, out string capArgument)
- {
- throw new NotImplementedException();
- }
-
- internal bool LocateDelegateEvaluator(string name,
- out MobileCapabilities.EvaluateCapabilitiesHandler result)
- {
- throw new NotImplementedException();
- }
-
- internal bool IsComparisonEvaluator(string name)
- {
- return cmpEvaluators.Contains(name);
- }
-
- internal bool IsDelegateEvaluator(string name)
- {
- return dlgEvaluators.Contains(name);
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.Mobile/ErrorHandlerModule.cs b/mcs/class/System.Web.Mobile/System.Web.Mobile/ErrorHandlerModule.cs
deleted file mode 100644
index 06e35d76c3e..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.Mobile/ErrorHandlerModule.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.Mobile
- * Class : MobileCapabilities
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Web;
-using System.Web.UI;
-
-namespace System.Web.Mobile
-{
- public class ErrorHandlerModule //: IHttpModule
- {
- public ErrorHandlerModule()
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.Mobile/MobileCapabilities.cs b/mcs/class/System.Web.Mobile/System.Web.Mobile/MobileCapabilities.cs
deleted file mode 100644
index 36e098a6056..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.Mobile/MobileCapabilities.cs
+++ /dev/null
@@ -1,1379 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.Mobile
- * Class : MobileCapabilities
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Collections;
-using System.Web;
-using System.Web.UI;
-
-namespace System.Web.Mobile
-{
- public class MobileCapabilities : HttpBrowserCapabilities
- {
- internal delegate void
- EvaluateCapabilitiesHandler(MobileCapabilities capabilities,
- string evaluationParam);
-
- private Hashtable evaluatorResults =
- Hashtable.Synchronized(new Hashtable());
-
- private bool canCombineFormsInDeck = false;
-
- public MobileCapabilities()
- {
- }
-
- public bool CanCombineFormsInDeck
- {
- get
- {
- if(!this.canCombineFormsInDeck)
- {
- if(this["CanCombineFormsInDeck"] != null)
- {
- this.canCombineFormsInDeck =
- Convert.ToBoolean(this["CanCombineFormsInDeck"]);
- }
- }
- return this.canCombineFormsInDeck;
- }
- }
-
- private bool canInitiateVoiceCall = false;
-
- public bool CanInitiateVoiceCall
- {
- get
- {
- if(!this.canInitiateVoiceCall)
- {
- if(this["CanInitiateVoiceCall"] != null)
- {
- this.canInitiateVoiceCall =
- Convert.ToBoolean(this["CanInitiateVoiceCall"]);
- }
- }
- return this.canInitiateVoiceCall;
- }
- }
-
- private bool canRenderAfterInputOrSelectElement = false;
-
- public bool CanRenderAfterInputOrSelectElement
- {
- get
- {
- if(!this.canRenderAfterInputOrSelectElement)
- {
- if(this["CanRenderAfterInputOrSelectElement"] != null)
- {
- this.canRenderAfterInputOrSelectElement =
- Convert.ToBoolean(this["CanRenderAfterInputOrSelectElement"]);
- }
- }
- return this.canRenderAfterInputOrSelectElement;
- }
- }
-
- private bool canRenderEmptySelects = false;
-
- public bool CanRenderEmptySelects
- {
- get
- {
- if(!this.canRenderEmptySelects)
- {
- if(this["CanRenderEmptySelects"] != null)
- {
- this.canRenderEmptySelects =
- Convert.ToBoolean(this["CanRenderEmptySelects"]);
- }
- }
- return this.canRenderEmptySelects;
- }
- }
-
- private bool canRenderInputAndSelectElementsTogether = false;
-
- public bool CanRenderInputAndSelectElementsTogether
- {
- get
- {
- if(!this.canRenderInputAndSelectElementsTogether)
- {
- if(this["CanRenderInputAndSelectElementsTogether"] != null)
- {
- this.canRenderInputAndSelectElementsTogether =
- Convert.ToBoolean(this["CanRenderInputAndSelectElementsTogether"]);
- }
- }
- return this.canRenderInputAndSelectElementsTogether;
- }
- }
-
- private bool canRenderMixedSelects = false;
-
- public bool CanRenderMixedSelects
- {
- get
- {
- if(!this.canRenderMixedSelects)
- {
- if(this["CanRenderMixedSelects"] != null)
- {
- this.canRenderMixedSelects =
- Convert.ToBoolean(this["CanRenderMixedSelects"]);
- }
- }
- return this.canRenderMixedSelects;
- }
- }
-
- private bool canRenderOneventAndPrevElementsTogether = false;
-
- public bool CanRenderOneventAndPrevElementsTogether
- {
- get
- {
- if(canRenderOneventAndPrevElementsTogether == false)
- {
- if(this["CanRenderOneventAndPrevElementsTogether"] != null)
- {
- this.canRenderOneventAndPrevElementsTogether =
- Convert.ToBoolean(this["CanRenderOneventAndPrevElementsTogether"]);
- }
- }
- return canRenderOneventAndPrevElementsTogether;
- }
- }
-
- private bool canRenderPostBackCards = false;
-
- public bool CanRenderPostBackCards
- {
- get
- {
- if(canRenderPostBackCards == false)
- {
- if(this["CanRenderPostBackCards"] != null)
- {
- this.canRenderPostBackCards =
- Convert.ToBoolean(this["CanRenderPostBackCards"]);
- }
- }
- return canRenderPostBackCards;
- }
- }
-
- private bool canRenderSetvarZeroWithMultiSelectionList = false;
-
- public bool CanRenderSetvarZeroWithMultiSelectionList
- {
- get
- {
- if(canRenderSetvarZeroWithMultiSelectionList == false)
- {
- if(this["CanRenderSetvarZeroWithMultiSelectionList"] != null)
- {
- this.canRenderSetvarZeroWithMultiSelectionList =
- Convert.ToBoolean(this["CanRenderSetvarZeroWithMultiSelectionList"]);
- }
- }
- return canRenderSetvarZeroWithMultiSelectionList;
- }
- }
-
- private bool canSendMail = false;
-
- public bool CanSendMail
- {
- get
- {
- if(canSendMail == false)
- {
- if(this["CanSendMail"] != null)
- {
- this.canSendMail =
- Convert.ToBoolean(this["CanSendMail"]);
- }
- }
- return canSendMail;
- }
- }
-
- private string gatewayVersion = String.Empty;
-
- public string GatewayVersion
- {
- get
- {
- if(gatewayVersion == String.Empty)
- {
- if(this["GatewayVersion"] != null)
- {
- this.gatewayVersion =
- this["GatewayVersion"];
- }
- }
- return gatewayVersion;
- }
- }
-
- private bool hasBackButton = false;
-
- public bool HasBackButton
- {
- get
- {
- if(hasBackButton == false)
- {
- if(this["HasBackButton"] != null)
- {
- this.hasBackButton =
- Convert.ToBoolean(this["HasBackButton"]);
- }
- }
- return hasBackButton;
- }
- }
-
- private bool hidesRightAlignedMultiselectScrollbars = false;
-
- public bool HidesRightAlignedMultiselectScrollbars
- {
- get
- {
- if(hidesRightAlignedMultiselectScrollbars == false)
- {
- if(this["HidesRightAlignedMultiselectScrollbars"] != null)
- {
- this.hidesRightAlignedMultiselectScrollbars =
- Convert.ToBoolean(this["HidesRightAlignedMultiselectScrollbars"]);
- }
- }
- return hidesRightAlignedMultiselectScrollbars;
- }
- }
-
- private string inputType = String.Empty;
-
- public string InputType
- {
- get
- {
- if(inputType == String.Empty)
- {
- if(this["InputType"] != null)
- {
- this.inputType =
- this["InputType"];
- }
- }
- return inputType;
- }
- }
-
- private bool isColor = false;
-
- public bool IsColor
- {
- get
- {
- if(isColor == false)
- {
- if(this["IsColor"] != null)
- {
- this.isColor =
- Convert.ToBoolean(this["IsColor"]);
- }
- }
- return isColor;
- }
- }
-
- private bool isMobileDevice = false;
-
- public bool IsMobileDevice
- {
- get
- {
- if(isMobileDevice == false)
- {
- if(this["IsMobileDevice"] != null)
- {
- this.isMobileDevice =
- Convert.ToBoolean(this["IsMobileDevice"]);
- }
- }
- return isMobileDevice;
- }
- }
-
- private string mobileDeviceManufacturer = String.Empty;
-
- public string MobileDeviceManufacturer
- {
- get
- {
- if(mobileDeviceManufacturer == String.Empty)
- {
- if(this["MobileDeviceManufacturer"] != null)
- {
- this.mobileDeviceManufacturer =
- this["MobileDeviceManufacturer"];
- }
- }
- return mobileDeviceManufacturer;
- }
- }
-
- private string mobileDeviceModel = String.Empty;
-
- public string MobileDeviceModel
- {
- get
- {
- if(mobileDeviceModel == String.Empty)
- {
- if(this["MobileDeviceModel"] != null)
- {
- this.mobileDeviceModel =
- this["MobileDeviceModel"];
- }
- }
- return mobileDeviceModel;
- }
- }
-
- private string preferredImageMime = String.Empty;
-
- public string PreferredImageMime
- {
- get
- {
- if(preferredImageMime == String.Empty)
- {
- if(this["PreferredImageMime"] != null)
- {
- this.preferredImageMime =
- this["PreferredImageMime"];
- }
- }
- return preferredImageMime;
- }
- }
-
- private string preferredRenderingMime = String.Empty;
-
- public string PreferredRenderingMime
- {
- get
- {
- if(preferredRenderingMime == String.Empty)
- {
- if(this["PreferredRenderingMime"] != null)
- {
- this.preferredRenderingMime =
- this["PreferredRenderingMime"];
- }
- }
- return preferredRenderingMime;
- }
- }
-
- private string preferredRenderingType = String.Empty;
-
- public string PreferredRenderingType
- {
- get
- {
- if(preferredRenderingType == String.Empty)
- {
- if(this["PreferredRenderingType"] != null)
- {
- this.preferredRenderingType =
- this["PreferredRenderingType"];
- }
- }
- return preferredRenderingType;
- }
- }
-
- private bool rendersBreakBeforeWmlSelectAndInput = false;
-
- public bool RendersBreakBeforeWmlSelectAndInput
- {
- get
- {
- if(rendersBreakBeforeWmlSelectAndInput == false)
- {
- if(this["RendersBreakBeforeWmlSelectAndInput"] != null)
- {
- this.rendersBreakBeforeWmlSelectAndInput =
- Convert.ToBoolean(this["RendersBreakBeforeWmlSelectAndInput"]);
- }
- }
- return rendersBreakBeforeWmlSelectAndInput;
- }
- }
-
- private bool rendersBreaksAfterHtmlLists = false;
-
- public bool RendersBreaksAfterHtmlLists
- {
- get
- {
- if(rendersBreaksAfterHtmlLists == false)
- {
- if(this["RendersBreaksAfterHtmlLists"] != null)
- {
- this.rendersBreaksAfterHtmlLists =
- Convert.ToBoolean(this["RendersBreaksAfterHtmlLists"]);
- }
- }
- return rendersBreaksAfterHtmlLists;
- }
- }
-
- private bool rendersBreaksAfterWmlAnchor = false;
-
- public bool RendersBreaksAfterWmlAnchor
- {
- get
- {
- if(rendersBreaksAfterWmlAnchor == false)
- {
- if(this["RendersBreaksAfterWmlAnchor"] != null)
- {
- this.rendersBreaksAfterWmlAnchor =
- Convert.ToBoolean(this["RendersBreaksAfterWmlAnchor"]);
- }
- }
- return rendersBreaksAfterWmlAnchor;
- }
- }
-
- private bool rendersBreaksAfterWmlInput = false;
-
- public bool RendersBreaksAfterWmlInput
- {
- get
- {
- if(rendersBreaksAfterWmlInput == false)
- {
- if(this["RendersBreaksAfterWmlInput"] != null)
- {
- this.rendersBreaksAfterWmlInput =
- Convert.ToBoolean(this["RendersBreaksAfterWmlInput"]);
- }
- }
- return rendersBreaksAfterWmlInput;
- }
- }
-
- private bool rendersWmlDoAcceptsInline = false;
-
- public bool RendersWmlDoAcceptsInline
- {
- get
- {
- if(rendersWmlDoAcceptsInline == false)
- {
- if(this["RendersWmlDoAcceptsInline"] != null)
- {
- this.rendersWmlDoAcceptsInline =
- Convert.ToBoolean(this["RendersWmlDoAcceptsInline"]);
- }
- }
- return rendersWmlDoAcceptsInline;
- }
- }
-
- private bool rendersWmlSelectsAsMenuCards = false;
-
- public bool RendersWmlSelectsAsMenuCards
- {
- get
- {
- if(rendersWmlSelectsAsMenuCards == false)
- {
- if(this["RendersWmlSelectsAsMenuCards"] != null)
- {
- this.rendersWmlSelectsAsMenuCards =
- Convert.ToBoolean(this["RendersWmlSelectsAsMenuCards"]);
- }
- }
- return rendersWmlSelectsAsMenuCards;
- }
- }
-
- private string requiredMetaTagNameValue = String.Empty;
-
- public string RequiredMetaTagNameValue
- {
- get
- {
- if(requiredMetaTagNameValue == String.Empty)
- {
- if(this["RequiredMetaTagNameValue"] != null)
- {
- this.requiredMetaTagNameValue =
- this["RequiredMetaTagNameValue"];
- }
- }
- return requiredMetaTagNameValue;
- }
- }
-
- private bool requiresAttributeColonSubstitution = false;
-
- public bool RequiresAttributeColonSubstitution
- {
- get
- {
- if(requiresAttributeColonSubstitution == false)
- {
- if(this["RequiresAttributeColonSubstitution"] != null)
- {
- this.requiresAttributeColonSubstitution =
- Convert.ToBoolean(this["RequiresAttributeColonSubstitution"]);
- }
- }
- return requiresAttributeColonSubstitution;
- }
- }
-
- private bool requiresContentTypeMetaTag = false;
-
- public bool RequiresContentTypeMetaTag
- {
- get
- {
- if(requiresContentTypeMetaTag == false)
- {
- if(this["RequiresContentTypeMetaTag"] != null)
- {
- this.requiresContentTypeMetaTag =
- Convert.ToBoolean(this["RequiresContentTypeMetaTag"]);
- }
- }
- return requiresContentTypeMetaTag;
- }
- }
-
- private bool requiresDBCSCharacter = false;
-
- public bool RequiresDBCSCharacter
- {
- get
- {
- if(requiresDBCSCharacter == false)
- {
- if(this["RequiresDBCSCharacter"] != null)
- {
- this.requiresDBCSCharacter =
- Convert.ToBoolean(this["RequiresDBCSCharacter"]);
- }
- }
- return requiresDBCSCharacter;
- }
- }
-
- private bool requiresHtmlAdaptiveErrorReporting = false;
-
- public bool RequiresHtmlAdaptiveErrorReporting
- {
- get
- {
- if(requiresHtmlAdaptiveErrorReporting == false)
- {
- if(this["RequiresHtmlAdaptiveErrorReporting"] != null)
- {
- this.requiresHtmlAdaptiveErrorReporting =
- Convert.ToBoolean(this["RequiresHtmlAdaptiveErrorReporting"]);
- }
- }
- return requiresHtmlAdaptiveErrorReporting;
- }
- }
-
- private bool requiresLeadingPageBreak = false;
-
- public bool RequiresLeadingPageBreak
- {
- get
- {
- if(requiresLeadingPageBreak == false)
- {
- if(this["RequiresLeadingPageBreak"] != null)
- {
- this.requiresLeadingPageBreak =
- Convert.ToBoolean(this["RequiresLeadingPageBreak"]);
- }
- }
- return requiresLeadingPageBreak;
- }
- }
-
- private bool requiresNoBreakInFormatting = false;
-
- public bool RequiresNoBreakInFormatting
- {
- get
- {
- if(requiresNoBreakInFormatting == false)
- {
- if(this["RequiresNoBreakInFormatting"] != null)
- {
- this.requiresNoBreakInFormatting =
- Convert.ToBoolean(this["RequiresNoBreakInFormatting"]);
- }
- }
- return requiresNoBreakInFormatting;
- }
- }
-
- private bool requiresOutputOptimization = false;
-
- public bool RequiresOutputOptimization
- {
- get
- {
- if(requiresOutputOptimization == false)
- {
- if(this["RequiresOutputOptimization"] != null)
- {
- this.requiresOutputOptimization =
- Convert.ToBoolean(this["RequiresOutputOptimization"]);
- }
- }
- return requiresOutputOptimization;
- }
- }
-
- private bool requiresPhoneNumbersAsPlainText = false;
-
- public bool RequiresPhoneNumbersAsPlainText
- {
- get
- {
- if(requiresPhoneNumbersAsPlainText == false)
- {
- if(this["RequiresPhoneNumbersAsPlainText"] != null)
- {
- this.requiresPhoneNumbersAsPlainText =
- Convert.ToBoolean(this["RequiresPhoneNumbersAsPlainText"]);
- }
- }
- return requiresPhoneNumbersAsPlainText;
- }
- }
-
- private bool requiresSpecialViewStateEncoding = false;
-
- public bool RequiresSpecialViewStateEncoding
- {
- get
- {
- if(requiresSpecialViewStateEncoding == false)
- {
- if(this["RequiresSpecialViewStateEncoding"] != null)
- {
- this.requiresSpecialViewStateEncoding =
- Convert.ToBoolean(this["RequiresSpecialViewStateEncoding"]);
- }
- }
- return requiresSpecialViewStateEncoding;
- }
- }
-
- private bool requiresUniqueFilePathSuffix = false;
-
- public bool RequiresUniqueFilePathSuffix
- {
- get
- {
- if(requiresUniqueFilePathSuffix == false)
- {
- if(this["RequiresUniqueFilePathSuffix"] != null)
- {
- this.requiresUniqueFilePathSuffix =
- Convert.ToBoolean(this["RequiresUniqueFilePathSuffix"]);
- }
- }
- return requiresUniqueFilePathSuffix;
- }
- }
-
- private bool requiresUniqueHtmlCheckboxNames = false;
-
- public bool RequiresUniqueHtmlCheckboxNames
- {
- get
- {
- if(requiresUniqueHtmlCheckboxNames == false)
- {
- if(this["RequiresUniqueHtmlCheckboxNames"] != null)
- {
- this.requiresUniqueHtmlCheckboxNames =
- Convert.ToBoolean(this["RequiresUniqueHtmlCheckboxNames"]);
- }
- }
- return requiresUniqueHtmlCheckboxNames;
- }
- }
-
- private bool requiresUrlEncodedPostfieldValues = false;
-
- public bool RequiresUrlEncodedPostfieldValues
- {
- get
- {
- if(requiresUrlEncodedPostfieldValues == false)
- {
- if(this["RequiresUrlEncodedPostfieldValues"] != null)
- {
- this.requiresUrlEncodedPostfieldValues =
- Convert.ToBoolean(this["RequiresUrlEncodedPostfieldValues"]);
- }
- }
- return requiresUrlEncodedPostfieldValues;
- }
- }
-
- private bool supportsAccesskeyAttribute = false;
-
- public bool SupportsAccesskeyAttribute
- {
- get
- {
- if(supportsAccesskeyAttribute == false)
- {
- if(this["SupportsAccesskeyAttribute"] != null)
- {
- this.supportsAccesskeyAttribute =
- Convert.ToBoolean(this["SupportsAccesskeyAttribute"]);
- }
- }
- return supportsAccesskeyAttribute;
- }
- }
-
- private bool supportsBodyColor = false;
-
- public bool SupportsBodyColor
- {
- get
- {
- if(supportsBodyColor == false)
- {
- if(this["SupportsBodyColor"] != null)
- {
- this.supportsBodyColor =
- Convert.ToBoolean(this["SupportsBodyColor"]);
- }
- }
- return supportsBodyColor;
- }
- }
-
- private bool supportsBold = false;
-
- public bool SupportsBold
- {
- get
- {
- if(supportsBold == false)
- {
- if(this["SupportsBold"] != null)
- {
- this.supportsBold =
- Convert.ToBoolean(this["SupportsBold"]);
- }
- }
- return supportsBold;
- }
- }
-
- private bool supportsCacheControlMetaTag = false;
-
- public bool SupportsCacheControlMetaTag
- {
- get
- {
- if(supportsCacheControlMetaTag == false)
- {
- if(this["SupportsCacheControlMetaTag"] != null)
- {
- this.supportsCacheControlMetaTag =
- Convert.ToBoolean(this["SupportsCacheControlMetaTag"]);
- }
- }
- return supportsCacheControlMetaTag;
- }
- }
-
- private bool supportsCss = false;
-
- public bool SupportsCss
- {
- get
- {
- if(supportsCss == false)
- {
- if(this["SupportsCss"] != null)
- {
- this.supportsCss =
- Convert.ToBoolean(this["SupportsCss"]);
- }
- }
- return supportsCss;
- }
- }
-
- private bool supportsDivAlign = false;
-
- public bool SupportsDivAlign
- {
- get
- {
- if(supportsDivAlign == false)
- {
- if(this["SupportsDivAlign"] != null)
- {
- this.supportsDivAlign =
- Convert.ToBoolean(this["SupportsDivAlign"]);
- }
- }
- return supportsDivAlign;
- }
- }
-
- private bool supportsDivNoWrap = false;
-
- public bool SupportsDivNoWrap
- {
- get
- {
- if(supportsDivNoWrap == false)
- {
- if(this["SupportsDivNoWrap"] != null)
- {
- this.supportsDivNoWrap =
- Convert.ToBoolean(this["SupportsDivNoWrap"]);
- }
- }
- return supportsDivNoWrap;
- }
- }
-
- private bool supportsFontColor = false;
-
- public bool SupportsFontColor
- {
- get
- {
- if(supportsFontColor == false)
- {
- if(this["SupportsFontColor"] != null)
- {
- this.supportsFontColor =
- Convert.ToBoolean(this["SupportsFontColor"]);
- }
- }
- return supportsFontColor;
- }
- }
-
- private bool supportsFontName = false;
-
- public bool SupportsFontName
- {
- get
- {
- if(supportsFontName == false)
- {
- if(this["SupportsFontName"] != null)
- {
- this.supportsFontName =
- Convert.ToBoolean(this["SupportsFontName"]);
- }
- }
- return supportsFontName;
- }
- }
-
- private bool supportsFontSize = false;
-
- public bool SupportsFontSize
- {
- get
- {
- if(supportsFontSize == false)
- {
- if(this["SupportsFontSize"] != null)
- {
- this.supportsFontSize =
- Convert.ToBoolean(this["SupportsFontSize"]);
- }
- }
- return supportsFontSize;
- }
- }
-
- private bool supportsModeSymbols = false;
-
- public bool SupportsModeSymbols
- {
- get
- {
- if(supportsModeSymbols == false)
- {
- if(this["SupportsModeSymbols"] != null)
- {
- this.supportsModeSymbols =
- Convert.ToBoolean(this["SupportsModeSymbols"]);
- }
- }
- return supportsModeSymbols;
- }
- }
-
- private bool supportsImageSubmit = false;
-
- public bool SupportsImageSubmit
- {
- get
- {
- if(supportsImageSubmit == false)
- {
- if(this["SupportsImageSubmit"] != null)
- {
- this.supportsImageSubmit =
- Convert.ToBoolean(this["SupportsImageSubmit"]);
- }
- }
- return supportsImageSubmit;
- }
- }
-
- private bool supportsInputStyle = false;
-
- public bool SupportsInputStyle
- {
- get
- {
- if(supportsInputStyle == false)
- {
- if(this["SupportsInputStyle"] != null)
- {
- this.supportsInputStyle =
- Convert.ToBoolean(this["SupportsInputStyle"]);
- }
- }
- return supportsInputStyle;
- }
- }
-
- private bool supportsInputMode = false;
-
- public bool SupportsInputMode
- {
- get
- {
- if(supportsInputMode == false)
- {
- if(this["SupportsInputMode"] != null)
- {
- this.supportsInputMode =
- Convert.ToBoolean(this["SupportsInputMode"]);
- }
- }
- return supportsInputMode;
- }
- }
-
- private bool supportsItalic = false;
-
- public bool SupportsItalic
- {
- get
- {
- if(supportsItalic == false)
- {
- if(this["SupportsItalic"] != null)
- {
- this.supportsItalic =
- Convert.ToBoolean(this["SupportsItalic"]);
- }
- }
- return supportsItalic;
- }
- }
-
- private bool supportsJPhoneMultiMediaAttributes = false;
-
- public bool SupportsJPhoneMultiMediaAttributes
- {
- get
- {
- if(supportsJPhoneMultiMediaAttributes == false)
- {
- if(this["SupportsJPhoneMultiMediaAttributes"] != null)
- {
- this.supportsJPhoneMultiMediaAttributes =
- Convert.ToBoolean(this["SupportsJPhoneMultiMediaAttributes"]);
- }
- }
- return supportsJPhoneMultiMediaAttributes;
- }
- }
-
- private bool supportsJPhoneSymbols = false;
-
- public bool SupportsJPhoneSymbols
- {
- get
- {
- if(supportsJPhoneSymbols == false)
- {
- if(this["SupportsJPhoneSymbols"] != null)
- {
- this.supportsJPhoneSymbols =
- Convert.ToBoolean(this["SupportsJPhoneSymbols"]);
- }
- }
- return supportsJPhoneSymbols;
- }
- }
-
- private bool supportsQueryStringInFormAction = false;
-
- public bool SupportsQueryStringInFormAction
- {
- get
- {
- if(supportsQueryStringInFormAction == false)
- {
- if(this["SupportsQueryStringInFormAction"] != null)
- {
- this.supportsQueryStringInFormAction =
- Convert.ToBoolean(this["SupportsQueryStringInFormAction"]);
- }
- }
- return supportsQueryStringInFormAction;
- }
- }
-
- private bool supportsRedirectWithCookie = false;
-
- public bool SupportsRedirectWithCookie
- {
- get
- {
- if(supportsRedirectWithCookie == false)
- {
- if(this["SupportsRedirectWithCookie"] != null)
- {
- this.supportsRedirectWithCookie =
- Convert.ToBoolean(this["SupportsRedirectWithCookie"]);
- }
- }
- return supportsRedirectWithCookie;
- }
- }
-
- private bool supportsSelectMultiple = false;
-
- public bool SupportsSelectMultiple
- {
- get
- {
- if(supportsSelectMultiple == false)
- {
- if(this["SupportsSelectMultiple"] != null)
- {
- this.supportsSelectMultiple =
- Convert.ToBoolean(this["SupportsSelectMultiple"]);
- }
- }
- return supportsSelectMultiple;
- }
- }
-
- private bool supportsUncheck = false;
-
- public bool SupportsUncheck
- {
- get
- {
- if(supportsUncheck == false)
- {
- if(this["SupportsUncheck"] != null)
- {
- this.supportsUncheck =
- Convert.ToBoolean(this["SupportsUncheck"]);
- }
- }
- return supportsUncheck;
- }
- }
-
- private int gatewayMajorVersion = 0;
-
- public int GatewayMajorVersion
- {
- get
- {
- if(gatewayMajorVersion == 0)
- {
- if(this["GatewayMajorVersion"] != null)
- {
- this.gatewayMajorVersion =
- Convert.ToInt32(this["GatewayMajorVersion"]);
- }
- }
- return gatewayMajorVersion;
- }
- }
-
- private int maximumRenderedPageSize = 0;
-
- public int MaximumRenderedPageSize
- {
- get
- {
- if(maximumRenderedPageSize == 0)
- {
- if(this["MaximumRenderedPageSize"] != null)
- {
- this.maximumRenderedPageSize =
- Convert.ToInt32(this["MaximumRenderedPageSize"]);
- }
- }
- return maximumRenderedPageSize;
- }
- }
-
- private int maximumSoftkeyLabelLength = 0;
-
- public int MaximumSoftkeyLabelLength
- {
- get
- {
- if(maximumSoftkeyLabelLength == 0)
- {
- if(this["MaximumSoftkeyLabelLength"] != null)
- {
- this.maximumSoftkeyLabelLength =
- Convert.ToInt32(this["MaximumSoftkeyLabelLength"]);
- }
- }
- return maximumSoftkeyLabelLength;
- }
- }
-
- private int numberOfSoftkeys = 0;
-
- public int NumberOfSoftkeys
- {
- get
- {
- if(numberOfSoftkeys == 0)
- {
- if(this["NumberOfSoftkeys"] != null)
- {
- this.numberOfSoftkeys =
- Convert.ToInt32(this["NumberOfSoftkeys"]);
- }
- }
- return numberOfSoftkeys;
- }
- }
-
- private int screenBitDepth = 0;
-
- public int ScreenBitDepth
- {
- get
- {
- if(screenBitDepth == 0)
- {
- if(this["ScreenBitDepth"] != null)
- {
- this.screenBitDepth =
- Convert.ToInt32(this["ScreenBitDepth"]);
- }
- }
- return screenBitDepth;
- }
- }
-
- private int screenCharactersHeight = 0;
-
- public int ScreenCharactersHeight
- {
- get
- {
- if(screenCharactersHeight == 0)
- {
- if(this["ScreenCharactersHeight"] != null)
- {
- this.screenCharactersHeight =
- Convert.ToInt32(this["ScreenCharactersHeight"]);
- }
- }
- return screenCharactersHeight;
- }
- }
-
- private int screenCharactersWidth = 0;
-
- public int ScreenCharactersWidth
- {
- get
- {
- if(screenCharactersWidth == 0)
- {
- if(this["ScreenCharactersWidth"] != null)
- {
- this.screenCharactersWidth =
- Convert.ToInt32(this["ScreenCharactersWidth"]);
- }
- }
- return screenCharactersWidth;
- }
- }
-
- private int screenPixelsHeight = 0;
-
- public int ScreenPixelsHeight
- {
- get
- {
- if(screenPixelsHeight == 0)
- {
- if(this["ScreenPixelsHeight"] != null)
- {
- this.screenPixelsHeight =
- Convert.ToInt32(this["ScreenPixelsHeight"]);
- }
- }
- return screenPixelsHeight;
- }
- }
-
- private int screenPixelsWidth = 0;
-
- public int ScreenPixelsWidth
- {
- get
- {
- if(screenPixelsWidth == 0)
- {
- if(this["ScreenPixelsWidth"] != null)
- {
- this.screenPixelsWidth =
- Convert.ToInt32(this["ScreenPixelsWidth"]);
- }
- }
- return screenPixelsWidth;
- }
- }
-
- private double gatewayMinorVersion = 0.0;
-
- public double GatewayMinorVersion
- {
- get
- {
- if(gatewayMinorVersion == 0.0)
- {
- if(this["GatewayMinorVersion"] != null)
- {
- this.gatewayMinorVersion =
- Convert.ToDouble(this["GatewayMinorVersion"]);
- }
- }
- return gatewayMinorVersion;
- }
- }
-
- public bool HasCapability(string delegateName, string optParams)
- {
- if(delegateName == null || delegateName.Trim() == String.Empty)
- {
- throw new ArgumentException("MobCap_DelegateNameNoValue");
- }
- DeviceFilterDictionary dict = GetCurrentFilters();
- // check if delegateName is ComparisonEvaluator
- // search for it in this.evaluatorResults, if failed:
- // HasProperty(??), HasItem(??)
- // -> add to this.evaluatorResults
- // else throw not found exception!
- throw new NotImplementedException();
- }
-
- private bool HasComparisonEvaluator(string evalName,
- out bool result)
- {
- throw new NotImplementedException();
- }
-
- private bool HasDelegateEvaluator(string evalName,
- out bool result)
- {
- throw new NotImplementedException();
- }
-
- private bool HasProperty(string evalName, string param,
- out bool result)
- {
- throw new NotImplementedException();
- }
-
- private bool HasItem(string evalName, string param,
- out bool result)
- {
- throw new NotImplementedException();
- }
-
- private bool IsComparisonEvaluator(string evalName)
- {
- throw new NotImplementedException();
- }
-
- private DeviceFilterDictionary GetCurrentFilters()
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/CHtmlCalendarAdapter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/CHtmlCalendarAdapter.cs
deleted file mode 100644
index 03738b6da4a..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/CHtmlCalendarAdapter.cs
+++ /dev/null
@@ -1,133 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls.Adapters
- * Class : CHtmlCalendarAdapter
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.IO;
-using System.Web.UI;
-using System.Web.Mobile;
-using System.Web.UI.MobileControls;
-
-namespace System.Web.UI.MobileControls.Adapters
-{
- public class CHtmlCalendarAdapter : HtmlControlAdapter
- {
- private const int optionPrompt = 0x00;
- private const int typeDate = 0x01;
- private const int dateOption = 0x02;
- private const int weekOption = 0x03;
- private const int mthOption = 0x04;
- private const int chooseMonth = 0x05;
- private const int chooseWeek = 0x06;
- private const int chooseDay = 0x07;
- private const int defDateDone = 0x08;
- private const int typeDateDone = 0x09;
- private const int done = 0x0A;
- private const int firstPrompt = 0xFFFFFFF;
-
- private static int[] options;
- private static char[] fmtChars;
-
- private const string daySeparator = " - ";
- private const string space = " ";
-
- private int chooseOption;
- private int eraCount;
- private int monthsDisplayCount;
- private bool reqFormTag;
- private string textBoxErrMsg;
-
- private Command command;
- private List dayList;
- private List monthList;
- private List optionList;
- private List weekList;
- private SelectionList selectList;
- private TextBox textBox;
- private System.Globalization.Calendar threadCal;
-
- public CHtmlCalendarAdapter()
- {
- }
-
- protected new Calendar Control
- {
- get
- {
- return base.Control as Calendar;
- }
- }
-
- public override bool RequiresFormTag
- {
- get
- {
- return this.reqFormTag;
- }
- }
-
- [MonoTODO]
- public override bool HandlePostBackEvent(string eventArg)
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- public override void LoadAdapterState(object state)
- {
- throw new NotImplementedException();
- }
-
- public override object SaveAdapterState()
- {
- throw new NotImplementedException();
- }
-
- public override void OnInit(EventArgs e)
- {
- throw new NotImplementedException();
- }
-
- public override void OnLoad(EventArgs e)
- {
- throw new NotImplementedException();
- }
-
- public override void OnPreRender(EventArgs e)
- {
- throw new NotImplementedException();
- }
-
- public override void Render(HtmlMobileTextWriter writer)
- {
- throw new NotImplementedException();
- }
- }
-}
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
deleted file mode 100644
index 6764a500ea6..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ChangeLog
+++ /dev/null
@@ -1,80 +0,0 @@
-
-2003-10-08 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * CHtmlCalendarAdapter.cs: Initial implmentation.
- * ControlAdapter.cs : HandlePostBackEvent(string),
- : OnLoad(EventArgs),
- : OnPreRender(EventArgs),
- : OnUnload(EventArgs),
- : OnRender(EventArgs) - Marked virtual
-
-2003-10-08 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * HtmlCalendarAdapter.cs: Initial implmentation.
-
-2003-09-29 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * HtmlMobileTextWriter.cs
- : Added several Style related methods,
- and also some Write methods.
- * MobileTextWriter.cs : Device { get; } - Implemented
- * StyleStack.cs, WriterState.cs, WriterStyle.cs, StyleTag.cs
- : (Private / Internal) Helper classes.
-
-2003-09-04 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * ControlAdapter.cs : Control property - Marked virtual
- : LoadPostData(...) - Marked virtual
- * HtmlCommandAdapter.cs : Implemented.
- * HtmlControlAdapter.cs : RenderEndLink(...) - Correct signature
- * HtmlMobileTextWriter.cs
- : Added several properties,
- : Stubbed several methods
-
-2003-09-03 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * HtmlControlAdapter.cs : Looks like done, at least stubbing.
-
-2003-08-13 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * ControlAdapter.cs : Style { get; } - Implemented.
- * HtmlControlAdapter.cs : Towards finishing.
- * HtmlPageAdapter.cs : PersistCookielessData - Mocked.
- * HtmlMobileTextWriter.cs
- : EnterStyle(Style) - Mocked.
-
-2003-08-07 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * ControlAdapter.cs : Mark Render(...) virtual.
- * HtmlControlAdapter.cs : AddAttributes(...),
- ExitSecondaryUIMode(),
- LoadAdapterState(),
- Render(...) - Implemented.
-
-2003-06-17 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.
-
-2003-04-29 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * ControlAdapter.cs : Some more methods.
-
-2003-04-08 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * ControlAdapter.cs : Initial implementation.
- * HtmlControlAdapter.cs : Corrected the namesapce.
-
-2003-04-08 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * HtmlControlAdapter.cs : Initial implementation. \ No newline at end of file
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ControlAdapter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ControlAdapter.cs
deleted file mode 100644
index 4210fa9869f..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ControlAdapter.cs
+++ /dev/null
@@ -1,240 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls.Adapters
- * Class : ControlAdapter
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Collections.Specialized;
-using System.Web.Mobile;
-using System.Web.UI;
-using System.Web.UI.MobileControls;
-
-namespace System.Web.UI.MobileControls.Adapters
-{
- public abstract class ControlAdapter : IControlAdapter
- {
- private MobileControl control = null;
-
- protected static readonly int BackLabel = 0x00;
- protected static readonly int GoLabel = 0x01;
- protected static readonly int OKLabel = 0x02;
- protected static readonly int MoreLabel = 0x03;
- protected static readonly int OptionsLabel = 0x04;
- protected static readonly int NextLabel = 0x05;
- protected static readonly int PreviousLabel = 0x06;
- protected static readonly int LinkLabel = 0x07;
- protected static readonly int CallLabel = 0x08;
-
- private static string[] labelIDs = {
- "ControlAdapter_Back",
- "ControlAdapter_Go",
- "ControlAdapter_OK",
- "ControlAdapter_More",
- "ControlAdapter_Options",
- "ControlAdapter_Next",
- "ControlAdapter_Previous",
- "ControlAdapter_Link",
- "ControlAdapter_Call"
- };
-
- private string[] defaultLabels = null;
-
- public ControlAdapter()
- {
- }
-
- public MobileCapabilities Device
- {
- get
- {
- if(Page != null)
- {
- return (MobileCapabilities) Page.Request.Browser;
- }
- return null;
- }
- }
-
- public System.Web.UI.MobileControls.Style Style
- {
- get
- {
- return Control.Style;
- }
- }
-
- public virtual MobileControl Control
- {
- get
- {
- return this.control;
- }
- set
- {
- this.control = value;
- }
- }
-
- public int ItemWeight
- {
- get
- {
- return ControlPager.UseDefaultWeight;
- }
- }
-
- public MobilePage Page
- {
- get
- {
- if(Control != null)
- return Control.MobilePage;
- return null;
- }
- }
-
- public int VisibleWeight
- {
- get
- {
- return ControlPager.UseDefaultWeight;
- }
- }
-
- public void CreateTemplatedUI(bool doDataBind)
- {
- Control.CreateDefaultTemplatedUI(doDataBind);
- }
-
- public virtual bool HandlePostBackEvent(string eventArguments)
- {
- return false;
- }
-
- public virtual void LoadAdapterState(object state)
- {
- }
-
- public virtual bool LoadPostData(string postKey,
- NameValueCollection postCollection,
- object privateControlData, out bool dataChanged)
- {
- dataChanged = false;
- return false;
- }
-
- public virtual void OnInit(EventArgs e)
- {
- return;
- }
-
- public virtual void OnLoad(EventArgs e)
- {
- return;
- }
-
- public virtual void OnPreRender(EventArgs e)
- {
- return;
- }
-
- public virtual void OnUnload(EventArgs e)
- {
- return;
- }
-
- public virtual void Render(HtmlTextWriter writer)
- {
- RenderChildren(writer);
- }
-
- public virtual object SaveAdapterState()
- {
- return null;
- }
-
- protected void RenderChildren(HtmlTextWriter writer)
- {
- if(Control != null && Control.HasControls())
- {
- foreach(Control cCtrl in Control.Controls)
- {
- cCtrl.RenderControl(writer);
- }
- if(Control.Controls.GetEnumerator() is IDisposable)
- {
- ((IDisposable)Control.Controls.GetEnumerator()).Dispose();
- }
- }
- }
-
- protected int CalculateOptimumPageWeight(int defaultPageWeight)
- {
- int defWt = defaultPageWeight;
- if(Device != null)
- {
- string httpDefWt = Device[Constants.OptimumPageWeightParameter];
- if(httpDefWt != null)
- {
- try
- {
- defWt = Convert.ToInt32(httpDefWt);
- } catch { }
- }
- }
- return -1;
- }
-
- protected string GetDefaultLabel(int labelID)
- {
- if(labelID < 0 || labelID >= labelIDs.Length)
- {
- // FIXME
- throw new ArgumentException("ControlAdapter" +
- "_InvalidDefaultLabel");
- }
- string retVal = null;
- if(Page != null)
- {
- ControlAdapter ca = (ControlAdapter)Page.Adapter;
- if(defaultLabels == null)
- {
- defaultLabels = new string[labelIDs.Length];
- Array.Copy(labelIDs, defaultLabels, labelIDs.Length);
- }
- retVal = defaultLabels[labelID];
- }
- if(retVal == null)
- {
- retVal = labelIDs[labelID];
- }
- return retVal;
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlCalendarAdapter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlCalendarAdapter.cs
deleted file mode 100644
index c357ac7678a..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlCalendarAdapter.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls.Adapters
- * Class : HtmlCalendarAdapter
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.IO;
-using System.Web.UI;
-using System.Web.Mobile;
-using System.Web.UI.MobileControls;
-
-namespace System.Web.UI.MobileControls.Adapters
-{
- public class HtmlCalendarAdapter : HtmlControlAdapter
- {
- private const int bgColDistThresh = 1000;
- private const int bgColInsert = 4;
- private const string selDateAttr = "background-color:Silver;";
- private const string selDateCellTag = "<td ";
- private const string selDateTableTag = "<table ";
-
- public HtmlCalendarAdapter()
- {
- }
-
- protected new Calendar Control
- {
- get
- {
- return (Calendar)base.Control;
- }
- }
-
- public override void Render(HtmlMobileTextWriter writer)
- {
- System.Web.UI.WebControls.WebControl cal = Control.WebCalendar;
- Style.ApplyTo(cal);
- cal.Visible = true;
- writer.EnterStyle(new Style());
- writer.EnsureStyle();
- if(Control.Alignment != Alignment.NotSet)
- {
- cal.Attributes["align"] = Control.Alignment.ToString();
- }
- if(Device.SupportsCss)
- {
- cal.RenderControl(writer);
- } else
- {
- StringWriter sw = new StringWriter();
- HtmlTextWriter htw = new HtmlTextWriter(sw);
- cal.RenderControl(htw);
- string res = sw.ToString();
- //TODO: Add styles manually (with things like
- // <table bgcolor="something">
- // and foreach selectedDates =>
- // "<td bgcolor="new Color(BackColorKey.R/G/B)"> etc
- throw new NotImplementedException();
- }
- if(Control.BreakAfter)
- {
- writer.WriteBreak();
- }
- writer.ExitStyle(new Style());
- }
-
- [MonoTODO("Helper_For_Render")]
- private int GetNextSelectedDate(string webCalHtml, int start)
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlCommandAdapter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlCommandAdapter.cs
deleted file mode 100644
index 0511ebf9ba6..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlCommandAdapter.cs
+++ /dev/null
@@ -1,136 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls.Adapters
- * Class : HtmlCommandAdapter
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Collections.Specialized;
-using System.Web.Mobile;
-using System.Web.UI.MobileControls;
-
-namespace System.Web.UI.MobileControls.Adapters
-{
- public class HtmlCommandAdapter : HtmlControlAdapter
- {
- public HtmlCommandAdapter() : base()
- {
- }
-
- protected new Command Control
- {
- get
- {
- return base.Control as Command;
- }
- }
-
- public override bool LoadPostData(string postKey,
- NameValueCollection data,
- object privateControlData, out bool dataChanged)
- {
- dataChanged = false;
- bool retVal = false;
- if(Control != null)
- {
- string id = Control.UniqueID;
- string ctrl = data[id + ".x"];
- string evnt = data[id + ".y"];
- if(ctrl != null && evnt != null && ctrl.Length > 0 && evnt.Length > 0)
- {
- dataChanged = true;
- retVal = true;
- }
- }
- return retVal;
- }
-
- public override void Render(HtmlMobileTextWriter writer)
- {
- bool supportsImgSbt = false;
- bool supportsJavascript = false;
- Form mobileForm = null;
-
- if(Control != null)
- {
- if(Control.ImageUrl != String.Empty && Device.SupportsImageSubmit)
- {
- supportsImgSbt = true;
- if(Control.Format == CommandFormat.Link)
- {
- if(Device.JavaScript)
- {
- supportsJavascript = true;
- }
- }
- }
- }
- if(supportsJavascript)
- {
- writer.EnterStyle(Style);
- mobileForm = Control.Form;
- if(mobileForm.Action.Length > 0)
- {
- writer.Write("<a href=\"javascript:document.");
- writer.Write(mobileForm.ClientID);
- writer.Write(".submit()\"");
- base.AddAttributes(writer);
- writer.Write(">");
- writer.WriteText(Control.Text, false);
- writer.WriteEndTag("a");
- } else
- {
- base.RenderBeginLink(writer, Constants.FormIDPrefix + mobileForm.UniqueID);
- writer.WriteText(Control.Text, true);
- base.RenderEndLink(writer);
- }
- writer.ExitStyle(Style, Control.BreakAfter);
- } else
- {
- writer.EnterLayout(Style);
- writer.WriteBeginTag("input");
- writer.WriteAttribute("name", Control.UniqueID);
- if(supportsImgSbt)
- {
- writer.WriteAttribute("type", "image");
- writer.WriteAttribute("src", Control.ResolveUrl(Control.ImageUrl));
- writer.WriteAttribute("alt", Control.Text);
- } else
- {
- writer.WriteAttribute("type", "submit");
- writer.Write("value=\"");
- writer.WriteText(Control.Text, true);
- }
- writer.Write("\"");
- base.AddAttributes(writer);
- writer.Write("/>");
- writer.ExitLayout(Style, Control.BreakAfter);
- }
- }
- }
-}
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
deleted file mode 100644
index 9703d560388..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlControlAdapter.cs
+++ /dev/null
@@ -1,210 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls.Adapters
- * Class : HtmlControlAdapter
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls.Adapters
-{
- public class HtmlControlAdapter : ControlAdapter
- {
- protected static readonly int NotSecondaryUI = -1;
-
- [MonoTODO("Whould_like_to_keep_it_FFFFFFFF")]
- internal const int NotSecondaryUIInitial = 0x7FFFFFFF;
-
- private static string[] multimediaAttrs = {
- "src",
- "soundstart",
- "loop",
- "volume",
- "vibration",
- "viblength"
- };
-
- public HtmlControlAdapter()
- {
- }
-
- protected HtmlFormAdapter FormAdapter
- {
- get
- {
- return (HtmlFormAdapter)Control.Form.Adapter;
- }
- }
-
- protected HtmlPageAdapter PageAdapter
- {
- get
- {
- return (HtmlPageAdapter)Page.Adapter;
- }
- }
-
- [MonoTODO]
- protected int SecondaryUIMode
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public virtual bool RequiresFormTag
- {
- get
- {
- 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);
- }
- }
- }
-
- protected void ExitSecondaryUIMode()
- {
- this.SecondaryUIMode = NotSecondaryUI;
- }
-
- public override void LoadAdapterState(object state)
- {
- if(state != null && state is int)
- {
- this.SecondaryUIMode = (int)state;
- }
- }
-
- public virtual void Render(HtmlMobileTextWriter writer)
- {
- base.RenderChildren(writer);
- }
-
- public override void Render(HtmlTextWriter writer)
- {
- if(writer is HtmlMobileTextWriter)
- {
- Render((HtmlMobileTextWriter)writer);
- }
- }
-
- protected virtual void RenderAsHiddenInputField(HtmlMobileTextWriter writer)
- {
- }
-
- [MonoTODO]
- protected void RenderBeginLink(HtmlMobileTextWriter writer,
- string target)
- {
- bool isHTTP = false;
- if(PageAdapter.PersistCookielessData)
- {
- if(target.StartsWith("http:") || target.StartsWith("https:"))
- {
- throw new NotImplementedException();
- }
- }
- }
-
- [MonoTODO]
- protected void RenderEndLink(HtmlMobileTextWriter writer)
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- protected void RenderPostBackEventAsAnchor(HtmlMobileTextWriter writer,
- string argument, string linkText)
- {
- throw new NotImplementedException();
- }
-
- protected void RenderPostBackEventAsAttribute(HtmlMobileTextWriter writer,
- string name, string value)
- {
- writer.Write(" " + name + "=\"");
- RenderPostBackEventReference(writer, value);
- writer.Write("\" ");
- }
-
- protected void RenderPostBackEventReference(HtmlMobileTextWriter writer,
- string argument)
- {
- PageAdapter.RenderPostBackEvent(writer, Control.UniqueID, argument);
- }
-
- public override object SaveAdapterState()
- {
- int uiMode = SecondaryUIMode;
- object retVal = null;
- if(uiMode != NotSecondaryUI)
- retVal = uiMode;
- return retVal;
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlFormAdapter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlFormAdapter.cs
deleted file mode 100644
index 9b0c78e68b2..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlFormAdapter.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls.Adapters
- * Class : HtmlFormAdapter
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-
-namespace System.Web.UI.MobileControls.Adapters
-{
- public class HtmlFormAdapter : HtmlControlAdapter
- {
- }
-}
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
deleted file mode 100644
index a56c56e40f3..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlMobileTextWriter.cs
+++ /dev/null
@@ -1,331 +0,0 @@
-
-//
-// 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.
-//
-/**
- * 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
- {
- private bool beforeFirstControlWritten = true;
- private bool maintainState = true;
- private bool renderBodyColor = true;
- private bool renderBold = true;
- private bool renderDivAlign = true;
- private bool renderDivNoWrap = false;
- private bool renderFontColor = true;
- private bool renderFontName = true;
- private bool renderFontSize = true;
- private bool renderItalic = true;
- private bool requiresNoBreak = false;
- private bool shouldEnsureStyle = true;
-
- private WriterState currentState;
-
- [MonoTODO]
- public HtmlMobileTextWriter(TextWriter writer,
- MobileCapabilities capabilities)
- : base(writer, capabilities)
- {
- RenderBold = capabilities.SupportsBold;
- RenderItalic = capabilities.SupportsItalic;
- RenderFontSize = capabilities.SupportsFontSize;
- RenderFontName = capabilities.SupportsFontName;
- RenderFontColor = capabilities.SupportsFontColor;
- RenderBodyColor = capabilities.SupportsBodyColor;
- RenderDivAlign = capabilities.SupportsDivAlign;
- RenderDivNoWrap = capabilities.SupportsDivNoWrap;
- RequiresNoBreakInFormatting = capabilities.RequiresNoBreakInFormatting;
-
- currentState = new WriterState(this);
- }
-
- public bool BeforeFirstControlWritten
- {
- get
- {
- return beforeFirstControlWritten;
- }
- set
- {
- beforeFirstControlWritten = value;
- }
- }
-
- public bool MaintainState
- {
- get
- {
- return maintainState;
- }
- set
- {
- maintainState = value;
- }
- }
-
- public bool RenderBodyColor
- {
- get
- {
- return renderBodyColor;
- }
- set
- {
- renderBodyColor = value;
- }
- }
-
- public bool RenderBold
- {
- get
- {
- return renderBold;
- }
- set
- {
- renderBold = value;
- }
- }
-
- public bool RenderDivAlign
- {
- get
- {
- return renderDivAlign;
- }
- set
- {
- renderDivAlign = value;
- }
- }
-
- public bool RenderDivNoWrap
- {
- get
- {
- return renderDivNoWrap;
- }
- set
- {
- renderDivNoWrap = value;
- }
- }
-
- public bool RenderFontColor
- {
- get
- {
- return renderFontColor;
- }
- set
- {
- renderFontColor = value;
- }
- }
-
- public bool RenderFontName
- {
- get
- {
- return renderFontName;
- }
- set
- {
- renderFontName = value;
- }
- }
-
- public bool RenderFontSize
- {
- get
- {
- return renderFontSize;
- }
- set
- {
- renderFontSize = value;
- }
- }
-
- public bool RenderItalic
- {
- get
- {
- return renderItalic;
- }
- set
- {
- renderItalic = value;
- }
- }
-
- public bool RequiresNoBreakInFormatting
- {
- get
- {
- return requiresNoBreak;
- }
- set
- {
- requiresNoBreak = value;
- }
- }
-
- public bool ShouldEnsureStyle
- {
- get
- {
- return shouldEnsureStyle;
- }
- set
- {
- shouldEnsureStyle = value;
- }
- }
-
- [MonoTODO]
- public void EnterLayout(Style style)
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- public void ExitLayout(Style style, bool breakAfter)
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- public void EnterStyle(System.Web.UI.MobileControls.Style style)
- {
- throw new NotImplementedException();
- }
-
- private void EnterStyle(WriterStyle style)
- {
- currentState.Push(style);
- }
-
- public void ExitStyle(Style style)
- {
- ExitStyle(style, false);
- }
-
- [MonoTODO]
- public void ExitStyle(Style style, bool breakAfter)
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- public void WriteText(string text, bool encode)
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- public override void Write(char c)
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- public override void Write(string text)
- {
- throw new NotImplementedException();
- }
-
- public void BeginStyleContext()
- {
- if(currentState.IsBreakPending)
- {
- WriteBreak();
- currentState.IsBreakPending = false;
- }
- currentState.PushState();
- EnterStyle(new WriterStyle());
- }
-
- public void EndStyleContext()
- {
- if(currentState.IsBreakPending)
- {
- WriteBreak();
- currentState.IsBreakPending = false;
- }
- currentState.PopState();
- currentState.Pop();
- currentState.Transition(new WriterStyle());
- }
-
- public void EnterFormat(Style style)
- {
- WriterStyle wstyle = new WriterStyle(style);
- wstyle.Layout = false;
- EnterStyle(wstyle);
- }
-
- public virtual void ExitFormat(Style style)
- {
- ExitStyle(style);
- }
-
- public void WriteBreak()
- {
- WriteLine("<br>");
- }
-
- public override void WriteLine(string text)
- {
- EnsureStyle();
- base.WriteLine(text);
- }
-
- internal void EnsureStyle()
- {
- if(shouldEnsureStyle)
- {
- if(currentState.Count > 0)
- {
- currentState.Transition(currentState.Peek());
- }
- shouldEnsureStyle = false;
- }
- if(BeforeFirstControlWritten)
- {
- BeforeFirstControlWritten = false;
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlPageAdapter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlPageAdapter.cs
deleted file mode 100644
index ead1356a60d..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlPageAdapter.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls.Adapters
- * Class : HtmlPageAdapter
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls.Adapters
-{
- public class HtmlPageAdapter : HtmlControlAdapter
- {
- [MonoTODO]
- public bool PersistCookielessData
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public virtual void RenderPostBackEvent(HtmlMobileTextWriter writer,
- string target, string argument)
- {
- writer.Write("javascript:__doPostBack('" + target + "','" + argument + "')");
- }
- }
-}
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
deleted file mode 100644
index 8688810b7f3..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/MobileTextWriter.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-
-//
-// 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.
-//
-/**
- * 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
- {
- private MobileCapabilities device;
-
- public MobileTextWriter(TextWriter writer,
- MobileCapabilities capabilities) : base(writer)
- {
- this.device = capabilities;
- throw new NotImplementedException();
- }
-
- public MobileCapabilities Device
- {
- get
- {
- return device;
- }
- }
- }
-}
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
deleted file mode 100644
index 5fdab36158f..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/MultiPartWriter.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-
-//
-// 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.
-//
-/**
- * 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();
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/StyleStack.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/StyleStack.cs
deleted file mode 100644
index 35d849b8272..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/StyleStack.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls.Adapters
- * Class : StyleStack
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Collections;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls.Adapters
-{
- class StyleStack
- {
- private HtmlMobileTextWriter writer;
- private Stack stack;
-
- protected StyleStack(HtmlMobileTextWriter writer)
- {
- this.writer = writer;
- stack = new Stack();
- }
-
- public int Count
- {
- get
- {
- return stack.Count;
- }
- }
-
- public WriterStyle Peek()
- {
- WriterStyle retVal = null;
- if(stack.Count > 0)
- retVal = (WriterStyle)stack.Peek();
- return retVal;
- }
-
- public WriterStyle Pop()
- {
- WriterStyle retVal = null;
- if(stack.Count > 0)
- retVal = (WriterStyle)stack.Pop();
- return retVal;
- }
-
- public void Push(WriterStyle style)
- {
- stack.Push(style);
- writer.ShouldEnsureStyle = true;
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/StyleTag.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/StyleTag.cs
deleted file mode 100644
index 0ca789a42b1..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/StyleTag.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls.Adapters
- * Class : StyleTag
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Collections;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls.Adapters
-{
- abstract class StyleTag
- {
- private int level;
-
- public StyleTag(int level)
- {
- this.level = level;
- }
-
- public int Level
- {
- get
- {
- return this.level;
- }
- set
- {
- this.level = value;
- }
- }
-
- public abstract void CloseTag(WriterState state);
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/WriterState.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/WriterState.cs
deleted file mode 100644
index 0c91ab7a9e1..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/WriterState.cs
+++ /dev/null
@@ -1,303 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls.Adapters
- * Class : WriterState
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.IO;
-using System.Collections;
-using System.Drawing;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls.Adapters
-{
- class WriterState : StyleStack
- {
- // stack of tagswritten and writerstyles
- private Stack stack = new Stack();
- private Stack tagsWritten = new Stack();
- private WriterStyle current = new WriterStyle();
- private HtmlMobileTextWriter writer;
-
- private bool isInTransition = false;
- private bool isBreakPending = false;
- private int fontLevel = -1;
- private int divLevel = -1;
- private int mark = 0;
-
- public WriterState(HtmlMobileTextWriter writer) : base(writer)
- {
- this.writer = writer;
- }
-
- public bool IsBreakPending
- {
- get
- {
- return this.isBreakPending;
- }
- set
- {
- this.isBreakPending = value;
- }
- }
-
- public int FontLevel
- {
- get
- {
- return this.fontLevel;
- }
- set
- {
- this.fontLevel = value;
- }
- }
-
- public int DivLevel
- {
- get
- {
- return this.divLevel;
- }
- set
- {
- this.divLevel = value;
- }
- }
-
- public WriterStyle Current
- {
- get
- {
- return this.current;
- }
- }
-
- // The tags that have been written.
- public Stack TagsWritten
- {
- get
- {
- return this.tagsWritten;
- }
- }
-
- public HtmlTextWriter Writer
- {
- get
- {
- return this.writer;
- }
- }
-
- public void MarkStyleContext()
- {
- this.mark = this.tagsWritten.Count;
- }
-
- public void UnmarkStyleContext()
- {
- while(tagsWritten.Count > mark)
- CloseTag();
- }
-
- public WriterStyle PopState()
- {
- writer.ShouldEnsureStyle = true;
- IsBreakPending = (bool) stack.Pop();
-
- while(tagsWritten.Count > 0)
- CloseTag();
-
- tagsWritten = (Stack)stack.Pop();
- current = (WriterStyle)stack.Pop();
- return current;
- }
-
- public void PushState()
- {
- writer.ShouldEnsureStyle = true;
- stack.Push(current);
- stack.Push(tagsWritten);
- stack.Push(IsBreakPending);
- current = new WriterStyle();
- tagsWritten = new Stack();
- IsBreakPending = false;
- }
-
- public void CloseTag()
- {
- StyleTag tag = tagsWritten.Pop() as StyleTag;
- if(tag != null)
- tag.CloseTag(this);
- }
-
- public void Transition(WriterStyle style)
- {
- Transition(style, true);
- }
-
- [MonoTODO]
- public void Transition(WriterStyle style, bool captureOutput)
- {
- HtmlMobileTextWriter tempWriter = this.writer;
- try
- {
- if(!captureOutput && !isInTransition)
- {
- this.writer = new HtmlMobileTextWriter(
- new HtmlTextWriter(
- new StringWriter()),
- tempWriter.Device);
- isInTransition = true;
- if(Count > 0)
- {
- while(Count > 0)
- {
- CloseTag();
- }
- isInTransition = false;
- } else
- {
- if(current.Italic && writer.RenderItalic)
- {
- while(current.Italic)
- {
- CloseTag();
- }
- }
- if(current.Bold && writer.RenderBold)
- {
- while(current.Bold)
- {
- CloseTag();
- }
- }
- if(current.FontColor != Color.Empty && writer.RenderFontColor)
- {
- while(current.FontColor != Color.Empty)
- {
- CloseTag();
- }
- }
- if(current.FontName != String.Empty && writer.RenderFontName)
- {
- while(current.FontName != String.Empty)
- {
- CloseTag();
- }
- }
- if(FontChange(style))
- {
- while(FontLevel > Count)
- {
- CloseTag();
- }
- }
- if(current.Wrapping == Wrapping.NoWrap && writer.RenderDivNoWrap)
- {
- while(current.Wrapping == Wrapping.NoWrap)
- {
- CloseTag();
- }
- }
- if(current.Alignment != Alignment.NotSet && writer.RenderDivAlign)
- {
- while(DivLevel > Count)
- {
- CloseTag();
- }
- }
- bool dc = DivChange(style);
- if(IsBreakPending && !dc)
- {
- writer.WriteBreak();
- IsBreakPending = false;
- }
- if(dc)
- {
- while(FontLevel > Count)
- {
- if(current.Bold || current.Italic)
- CloseTag();
- }
- }
- bool fc = FontChange(style);
- dc = DivChange(style);
- if(dc)
- {
- throw new NotImplementedException();
- //DivStyleTag
- // Actually Render
- }
- if(fc)
- {
- throw new NotImplementedException();
- // Actually Render
- }
- // Push Bold, Italic etc in current Stack
- isInTransition = false;
- throw new NotImplementedException();
- }
- }
- } finally
- {
- this.writer = tempWriter;
- }
- }
-
- private bool DivChange(WriterStyle newStyle)
- {
- bool retVal = false;
- if(newStyle.Layout)
- {
- if((current.Wrapping != newStyle.Wrapping
- && writer.RenderDivNoWrap) ||
- (current.Alignment != newStyle.Alignment
- && writer.RenderDivAlign))
- retVal = true;
- }
- return retVal;
- }
-
- private bool FontChange(WriterStyle newStyle)
- {
- bool retVal = false;
- if( (current.FontColor != newStyle.FontColor
- && writer.RenderFontColor) ||
- (current.FontSize != newStyle.FontSize
- && writer.RenderFontSize) ||
- (current.FontName != newStyle.FontName
- && writer.RenderFontName))
- retVal = true;
- return retVal;
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/WriterStyle.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/WriterStyle.cs
deleted file mode 100644
index 9bc003891ee..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/WriterStyle.cs
+++ /dev/null
@@ -1,170 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls.Adapters
- * Class : WriterStyle
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Collections;
-using System.Drawing;
-using System.Web.Mobile;
-using System.Web.UI.MobileControls;
-
-namespace System.Web.UI.MobileControls.Adapters
-{
- class WriterStyle
- {
- private bool layout;
- private Alignment alignment;
- private bool bold;
- private Color fontColor;
- private string fontName;
- private FontSize fontSize;
- private bool format;
- private bool italic;
- private Wrapping wrapping;
-
- public WriterStyle()
- {
- throw new NotImplementedException();
- }
-
- public WriterStyle(Style style)
- {
- throw new NotImplementedException();
- }
-
- public bool Layout
- {
- get
- {
- return this.layout;
- }
- set
- {
- this.layout = value;
- }
- }
-
- public Alignment Alignment
- {
- get
- {
- return alignment;
- }
- set
- {
- alignment = value;
- }
- }
-
- public bool Bold
- {
- get
- {
- return bold;
- }
- set
- {
- bold = value;
- }
- }
-
- public Color FontColor
- {
- get
- {
- return fontColor;
- }
- set
- {
- fontColor = value;
- }
- }
-
- public string FontName
- {
- get
- {
- return fontName;
- }
- set
- {
- fontName = value;
- }
- }
-
- public FontSize FontSize
- {
- get
- {
- return fontSize;
- }
- set
- {
- fontSize = value;
- }
- }
-
- public bool Format
- {
- get
- {
- return format;
- }
- set
- {
- format = value;
- }
- }
-
- public bool Italic
- {
- get
- {
- return italic;
- }
- set
- {
- italic = value;
- }
- }
-
- public Wrapping Wrapping
- {
- get
- {
- return wrapping;
- }
- set
- {
- wrapping = value;
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Alignment.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Alignment.cs
deleted file mode 100644
index e018443ba33..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Alignment.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : Alignment
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public enum Alignment
- {
- NotSet,
- Left,
- Center,
- Right
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ArrayListCollectionBase.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ArrayListCollectionBase.cs
deleted file mode 100644
index d638227685e..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ArrayListCollectionBase.cs
+++ /dev/null
@@ -1,104 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ArrayListCollectionBase
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Collections;
-
-namespace System.Web.UI.MobileControls
-{
- public class ArrayListCollectionBase : ICollection, IEnumerable
- {
- private ArrayList items;
- internal ArrayListCollectionBase()
- {
- }
-
- internal ArrayListCollectionBase(ArrayList items)
- {
- this.items = items;
- }
-
- public int Count
- {
- get
- {
- return (items == null ? 0 : items.Count);
- }
- }
-
- public bool IsReadOnly
- {
- get
- {
- return (items == null ? false : items.IsReadOnly);
- }
- }
-
- public bool IsSynchronized
- {
- get
- {
- return false;
- }
- }
-
- public object SyncRoot
- {
- get
- {
- return this;
- }
- }
-
- protected ArrayList Items
- {
- get
- {
- if(items == null)
- items = new ArrayList();
- return items;
- }
- set
- {
- items = value;
- }
- }
-
- public void CopyTo(Array array, int index)
- {
- Items.CopyTo(array, index);
- }
-
- public IEnumerator GetEnumerator()
- {
- return Items.GetEnumerator();
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/BaseValidator.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/BaseValidator.cs
deleted file mode 100644
index 79c7c368ba3..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/BaseValidator.cs
+++ /dev/null
@@ -1,226 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : BaseValidator
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.ComponentModel;
-using System.Web.UI;
-using System.Web.Mobile;
-using System.Web.UI.WebControls;
-
-namespace System.Web.UI.MobileControls
-{
- public abstract class BaseValidator : TextControl, IValidator
- {
- private System.Web.UI.WebControls.BaseValidator webBaseValidator;
- private bool isValid = true;
-
- protected BaseValidator()
- {
- StyleReference = "error";
- webBaseValidator = CreateWebValidator();
- if(webBaseValidator == null)
- this.webBaseValidator = new DefaultWebValidator();
- Controls.Add(webBaseValidator);
- webBaseValidator.Display = ValidatorDisplay.Dynamic;
- }
-
- private class DefaultWebValidator
- : System.Web.UI.WebControls.BaseValidator
- {
- protected override bool EvaluateIsValid()
- {
- return false;
- }
- }
-
- protected virtual System.Web.UI.WebControls.BaseValidator CreateWebValidator()
- {
- return null;
- }
-
- public string ErrorMessage
- {
- get
- {
- return webBaseValidator.ErrorMessage;
- }
- set
- {
- webBaseValidator.ErrorMessage = value;
- }
- }
-
- public bool IsValid
- {
- get
- {
- return isValid;
- }
- set
- {
- isValid = value;
- }
- }
-
- public void Validate()
- {
- if(Visible)
- {
- Control parent = Parent;
- bool visible = true;
- while(parent != null)
- {
- if(!parent.Visible)
- {
- visible = false;
- break;
- }
- parent = parent.Parent;
- }
- if(visible)
- EvaluateIsValid();
- } else
- {
- IsValid = true;
- }
- }
-
- protected abstract bool EvaluateIsValid();
-
- public string ControlToValidate
- {
- get
- {
- return webBaseValidator.ControlToValidate;
- }
- set
- {
- webBaseValidator.ControlToValidate = value;
- }
- }
-
- public ValidatorDisplay Display
- {
- get
- {
- return webBaseValidator.Display;
- }
- set
- {
- webBaseValidator.Display = value;
- }
- }
-
- public override string StyleReference
- {
- get
- {
- return base.StyleReference;
- }
- set
- {
- base.StyleReference = value;
- }
- }
-
- public override int VisibleWeight
- {
- get
- {
- return 0;
- }
- }
-
- protected void CheckControlValidationProperty(string name,
- string propertyName)
- {
- Control ctrl = NamingContainer.FindControl(name);
- if(ctrl == null)
- {
- // FIXME
- throw new ArgumentException("BaseValidator_ControlNotFound");
- }
- PropertyDescriptor pd = System.Web.UI.WebControls.BaseValidator.GetValidationProperty(ctrl);
- if(pd == null)
- {
- // FIXME
- throw new ArgumentException("BaseValidator_BadControlType");
- }
- }
-
- protected virtual bool ControlPropertiesValid()
- {
- string ctrl = ControlToValidate;
- if(ctrl.Length == 0)
- {
- // FIXME
- throw new ArgumentException("BaseValidator_ControlToValidateBlank");
- }
- CheckControlValidationProperty(ctrl, "ControlToValidate");
- return true;
- }
-
- internal bool EvaluateIsValidInternal()
- {
- try
- {
- webBaseValidator.Validate();
- } catch(Exception)
- {
- string thisID = ID;
- ID = webBaseValidator.ID;
- webBaseValidator.ID = thisID;
- try
- {
- webBaseValidator.Validate();
- } finally
- {
- thisID = ID;
- ID = webBaseValidator.ID;
- webBaseValidator.ID = thisID;
- }
- }
- return webBaseValidator.IsValid;
- }
-
- protected override void OnInit(EventArgs e)
- {
- Page.Validators.Add(this);
- base.OnInit(e);
- }
-
- protected override void OnPreRender(EventArgs e)
- {
- if(MobilePage.ActiveForm == Form)
- ControlPropertiesValid();
- base.OnPreRender(e);
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/BooleanOption.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/BooleanOption.cs
deleted file mode 100644
index fcc30f1f5bf..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/BooleanOption.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : BooleanOption
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public enum BooleanOption
- {
- NotSet = -1,
- False = 0,
- True,
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Calendar.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Calendar.cs
deleted file mode 100644
index 4f2a271a686..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Calendar.cs
+++ /dev/null
@@ -1,185 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : Calendar
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Web.UI;
-using System.Web.Mobile;
-using System.Web.UI.WebControls;
-
-namespace System.Web.UI.MobileControls
-{
- public class Calendar : MobileControl, IPostBackEventHandler
- {
- private System.Web.UI.WebControls.Calendar webCal;
- private static readonly object SelectionChangedEvent = new object();
-
- public Calendar()
- {
- webCal = CreateWebCalendar();
- webCal.Visible = false;
- webCal.Controls.Add(webCal);
- webCal.SelectionChanged += new EventHandler(WebSelectionChanged);
- }
-
- protected virtual System.Web.UI.WebControls.Calendar CreateWebCalendar()
- {
- return new System.Web.UI.WebControls.Calendar();
- }
-
- void IPostBackEventHandler.RaisePostBackEvent(string eventArgument)
- {
- if(MobilePage.ActiveForm != Form)
- MobilePage.ActiveForm = Form;
- Adapter.HandlePostBackEvent(eventArgument);
- }
-
- public event EventHandler SelectionChanged
- {
- add
- {
- Events.AddHandler(SelectionChangedEvent, value);
- }
- remove
- {
- Events.RemoveHandler(SelectionChangedEvent, value);
- }
- }
-
- public string CalendarEntryText
- {
- get
- {
- object o = ViewState["CalendarEntryText"];
- if(o != null)
- return (string)o;
- return String.Empty;
- }
- set
- {
- ViewState["CalendarEntryText"] = value;
- }
- }
-
- public FirstDayOfWeek FirstDayOfWeek
- {
- get
- {
- return webCal.FirstDayOfWeek;
- }
- set
- {
- webCal.FirstDayOfWeek = value;
- }
- }
-
- public DateTime SelectedDate
- {
- get
- {
- return webCal.SelectedDate;
- }
- set
- {
- webCal.SelectedDate = value;
- }
- }
-
- public SelectedDatesCollection SelectedDates
- {
- get
- {
- return webCal.SelectedDates;
- }
- }
-
- public CalendarSelectionMode SelectionMode
- {
- get
- {
- return webCal.SelectionMode;
- }
- set
- {
- webCal.SelectionMode = value;
- }
- }
-
- public bool ShowDayHeader
- {
- get
- {
- return webCal.ShowDayHeader;
- }
- set
- {
- webCal.ShowDayHeader = value;
- }
- }
-
- public DateTime VisibleDate
- {
- get
- {
- return webCal.VisibleDate;
- }
- set
- {
- webCal.VisibleDate = value;
- }
- }
-
- public System.Web.UI.WebControls.Calendar WebCalendar
- {
- get
- {
- return webCal;
- }
- }
-
- private void WebSelectionChanged(object sender, EventArgs e)
- {
- OnSelectionChanged();
- }
-
- protected virtual void OnSelectionChanged()
- {
- EventHandler eh = (EventHandler)(Events[SelectionChangedEvent]);
- if(eh != null)
- {
- eh(this, new EventArgs());
- }
- }
-
- public void RaiseSelectionChangedEvent()
- {
- WebSelectionChanged(this, new EventArgs());
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ChangeLog b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ChangeLog
deleted file mode 100644
index 9c775dddcf9..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ChangeLog
+++ /dev/null
@@ -1,224 +0,0 @@
-
-2003-10-08 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * SelectionList.cs : Initial implementation.
- * ListDataHelper.cs : Initial implementation.
- * TextBox.cs : Dummy implmentation.
-
-2003-10-08 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * Style.cs : ApplyTo(WebControl) - Stubbed.
-
-2003-08-14 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * MobileControl.cs : Style { get; } - Completed.
-
-2003-04-29 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * MobilePage.cs : Adapter { get; } - Stubbed.
-
-2003-04-08 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * Style.cs : Implements interfaces now.
-
-2003-04-07 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * MobileListItem.cs : Completed.
-
-2003-04-04 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * DeviceSpecificChoice.cs: FindAndApplyProperty(...) - Bug fix.
- * Style.cs : Added several properties.
-
-2003-04-04 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * DeviceSpecificChoice.cs: HasTemplates { get; },
- : FindAndApplyEvent(...) - Completed
- : FindAndApplyProperty(...),
- : CheckOnPageEvaluator(...) - Init impl.
-
-2003-04-03 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * DeviceSpecific.cs : Almost done.
- * DeviceSpecificChoice.cs: HasTemplates { get; } - Subbed.
- * Style.cs : Control { get; } - Stubbed.
- * MobileControl.cs : FindClosestTemplateControl()
- - Stubbed.
-
-2003-02-23 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * CustomValidator.cs : Completed.
- * DeviceSpecific.cs : Initial implementation.
- * DeviceSpecificChoiceTemplateContainer.cs
- : Completed.
- * DeviceSpecificChoiceCollection.cs
- : Completed.
- * DeviceSpecificChoice.cs: Initial implementation.
-
-2003-02-23 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * Calendar.cs : Completed.
- * BaseValidator.cs : Completed.
- * CompareValidator.cs : Completed.
-
-2003-01-30 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * MobileListItemCollection.cs
- : Stubbed Add(...) methods.
-
-2003-01-30 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * MobileListItemCollection.cs
- : Stubbed IStateManager methods.
-
-2003-01-30 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * ListDataHelperInternal.cs
- : Moved to Util namespace,
- as ListDataHelper.cs
-
-2003-01-30 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * ListDataHelperInternal.cs
- : Added class.
-
-2003-01-27 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * IListControl.cs : A private class hacked.
- * PagedControl.cs : Fixed typo error (OnPageChange)
- * List.cs : Stubbed almost all methods. Will
- implement tommorrow. Time to sleep.
- * MobileListItemCollection.cs
- : Finally, a collection class will bite
- me all. ;-)
-
-2003-01-27 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * List.cs, PagedControl.cs
- : Was I drunk? or Sleeping when I wrote
- the classes? I mixed up the methods.
- Reorganizing.
- * PagedControl.cs : Completed.
-
-2003-01-26 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * Form.cs : HasActiveHandler() - Stubbed.
- * List.cs : Initial implementation.
- * ItemPager.cs,
- * Image.cs,
- * Link.cs,
- * ListDataBindEventArgs.cs,
- * ListDataBindEventHandler.cs,
- * ListCommandEventArgs.cs,
- * ListCommandEventHandler.cs,
- * LoadItemsEventArgs.cs,
- * LoadItemsEventHandler.cs
- : Completed.
- * MobilePage.cs : ActivePage { get; set; } - Stubbed.
- : GetForm(string) - Stubbed.
- * PagedControl.cs : Initial implementation.
-
-2003-01-25 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * ControlPager.cs : Completed.
- * ItemPager.cs : Initial implementation.
-
-2003-01-24 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * ControlPager.cs : PageCount { get; set; } - Stubbed.
- * MobileControl.cs : EnablePagination { get; set; }
- - Completed
- : SetControlPageRecursive - Stubbed.
- * Panel.cs : Completed.
-
-2003-01-23 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * Command.cs : Completed.
- * Form.cs : CurrentPage { get; set; } - Stubbed.
-
-2003-01-19 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * Command.cs : Initial implementation.
- * IObjectListFieldCollection.cs
- : F*** the docs. Use only reflection
- to get the correct methods / properties.
- * TextControl.cs : Implemented.
- * ObjectListCommandEventArgs/Handler.cs
- : Implemented.
- * MobileListItem.cs : Initial Implementation.
- * ObjectListItem.cs : Initial Implementation.
- * ObjectList.cs : Initial Implementation.
- * TemplateContainer.cs : Initial Implementation.
-
-2003-01-18 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * Constants.cs : Undocumented class. Reflection revealed.
- Implemented.
-
-2003-01-18 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * ArrayListCollectionBase.cs
- : Implemented.
-
-2003-01-14 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * *.cs : Update the year in copyright notice.
-
-2003-01-13 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * Label.cs : The smallest class on this earth.
-
-2003-01-12 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * MobileControl.cs : Stub-ing completed. ;-)
- * ControlPager.cs : Dummy implementation.
-
-2003-01-12 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * FontInfo.cs : Implemented.
- * Form.cs : Initial implementation.
- * Panel.cs : Initial implementation.
- * MobileControl.cs : Stubbed all properties.
-
-2003-01-10 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * DeviceSpecific.cs : Dummy implementation.
- * MobilePage.cs : GetControlAdapter(MobileControl) - Stubbed.
- * MobileControl.cs : Adapter { get; } - Implemented
- : BreakAfter { get; set; } - Stubbed.
- : DeviceSpecific { get; set; } - Stubbed.
- : MobilePage { get; } - Stubbed.
-
-2003-01-10 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * IObjectListFieldCollection.cs,
- * IPageAdapter.cs,
- * ITemplateable.cs : Added interface.
- * ObjectListField.cs : Dummy implementation.
-
-2003-01-10 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * MobileListItemType.cs,
- * ObjectListViewMode.cs,
- * WmlListFieldType.cs, // Failed to locate enumeration!
- * Wrapping.cs
- : Added enumerations.
-
-2003-01-09 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * MobileControl.cs : Added some more properties (dummies).
- * Alignment.cs,
- * BooleanOption.cs,
- * CommandFormat.cs,
- * FontSize.cs,
- * FormMethod.cs,
- * ListDecoration.cs,
- * ListSelectType.cs,
- : Added enumerations.
-
-2003-01-08 Gaurav Vaish <gvaish_mono AT lycos.com>
-
- * IControlAdapter.cs : Completed interface.
- * MobileControl.cs : Initial implementation.
- * MobilePage.cs : Dummy implementation.
-
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Command.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Command.cs
deleted file mode 100644
index e8c3a92e775..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Command.cs
+++ /dev/null
@@ -1,213 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : Command
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Collections.Specialized;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-
-namespace System.Web.UI.MobileControls
-{
- public class Command : TextControl, IPostBackEventHandler,
- IPostBackDataHandler
- {
- private static readonly object ClickEvent = new object();
- private static readonly object ItemCommandEvent = new object();
-
- public Command()
- {
- }
-
- public event EventHandler Click
- {
- add
- {
- Events.AddHandler(ClickEvent, value);
- }
- remove
- {
- Events.RemoveHandler(ClickEvent, value);
- }
- }
-
- public event ObjectListCommandEventHandler ItemCommand
- {
- add
- {
- Events.AddHandler(ItemCommandEvent, value);
- }
- remove
- {
- Events.RemoveHandler(ItemCommandEvent, value);
- }
- }
-
- bool IPostBackDataHandler.LoadPostData(string key,
- NameValueCollection data)
- {
- bool dataChanged;
- bool stateChanged = Adapter.LoadPostData(key, data, null, out dataChanged);
- if(stateChanged)
- {
- if(dataChanged)
- Page.RegisterRequiresRaiseEvent(this);
- } else
- {
- if(data[key] != null)
- Page.RegisterRequiresRaiseEvent(this);
- }
- return false;
- }
-
- void IPostBackDataHandler.RaisePostDataChangedEvent()
- {
- }
-
- void IPostBackEventHandler.RaisePostBackEvent(string eventArgument)
- {
- if(CausesValidation)
- MobilePage.Validate();
- Form.CurrentPage = 1;
- OnClick(EventArgs.Empty);
- OnItemCommand(new CommandEventArgs(CommandName, CommandArgument));
- }
-
- public bool CausesValidation
- {
- get
- {
- object o = ViewState["CausesValidation"];
- if(o != null)
- return (bool)o;
- return true;
- }
- set
- {
- ViewState["CausesValidation"] = value;
- }
- }
-
- public string CommandArgument
- {
- get
- {
- object o = ViewState["CommandArgument"];
- if(o != null)
- return (string)o;
- return String.Empty;
- }
- set
- {
- ViewState["CommandArgument"] = value;
- }
- }
-
- public string CommandName
- {
- get
- {
- object o = ViewState["CommandName"];
- if(o != null)
- return (string)o;
- return String.Empty;
- }
- set
- {
- ViewState["CommandName"] = value;
- }
- }
-
- public CommandFormat Format
- {
- get
- {
- object o = ViewState["Format"];
- if(o != null)
- return (CommandFormat)o;
- return CommandFormat.Button;
- }
- set
- {
- //if(!System.Enum.IsDefined(typeof(CommandFormat), value)
- // throw new ArgumentException("Illegal value");
- ViewState["Format"] = value;
- }
- }
-
- public string ImageUrl
- {
- get
- {
- object o = ViewState["ImageUrl"];
- if(o != null)
- return (string)o;
- return String.Empty;
- }
- set
- {
- ViewState["ImageUrl"] = value;
- }
- }
-
- public string SoftKeyLabel
- {
- get
- {
- object o = ViewState["SoftKeyLabel"];
- if(o != null)
- return (string)o;
- return String.Empty;
- }
- set
- {
- ViewState["SoftKeyLabel"] = value;
- }
- }
-
- protected virtual void OnClick(EventArgs e)
- {
- EventHandler eh = (EventHandler)(Events[ClickEvent]);
- if(eh != null)
- eh(this, e);
- }
-
- protected virtual void OnItemCommand(CommandEventArgs e)
- {
- CommandEventHandler ceh = (CommandEventHandler)(Events[ItemCommandEvent]);
- if(ceh != null)
- ceh(this, e);
- }
-
- protected virtual bool IsFormSubmitControl()
- {
- return true;
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/CommandFormat.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/CommandFormat.cs
deleted file mode 100644
index e1535e3af63..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/CommandFormat.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : CommandFormat
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public enum CommandFormat
- {
- Button,
- Link
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/CompareValidator.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/CompareValidator.cs
deleted file mode 100644
index d6803861ccf..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/CompareValidator.cs
+++ /dev/null
@@ -1,130 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : CompareValidator
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.ComponentModel;
-using System.Web.UI;
-using System.Web.Mobile;
-using System.Web.UI.WebControls;
-
-namespace System.Web.UI.MobileControls
-{
- public class CompareValidator : BaseValidator
- {
- private System.Web.UI.WebControls.CompareValidator webCmpVal;
-
- public CompareValidator()
- {
- }
-
- protected override System.Web.UI.WebControls.BaseValidator CreateWebValidator()
- {
- webCmpVal = new System.Web.UI.WebControls.CompareValidator();
- return webCmpVal;
- }
-
- protected override bool EvaluateIsValid()
- {
- return base.EvaluateIsValidInternal();
- }
-
- protected override bool ControlPropertiesValid()
- {
- if(ControlToCompare.Length > 0)
- {
- base.CheckControlValidationProperty(ControlToCompare, "ControlToCompare");
- if(String.Compare(ControlToCompare, ControlToValidate, true) == 0)
- {
- // FIXME
- throw new ArgumentException("CompareValidator_BadCompareControl");
- }
- } else
- {
- if(Operator != ValidationCompareOperator.DataTypeCheck)
- {
- if(!BaseCompareValidator.CanConvert(ValueToCompare, Type))
- {
- // FIXME
- throw new ArgumentException("Validator_ValueBadType");
- }
- }
- }
- return base.ControlPropertiesValid();
- }
-
- public string ControlToCompare
- {
- get
- {
- return webCmpVal.ControlToCompare;
- }
- set
- {
- webCmpVal.ControlToCompare = value;
- }
- }
-
- public ValidationCompareOperator Operator
- {
- get
- {
- return webCmpVal.Operator;
- }
- set
- {
- webCmpVal.Operator = value;
- }
- }
-
- public ValidationDataType Type
- {
- get
- {
- return webCmpVal.Type;
- }
- set
- {
- webCmpVal.Type = value;
- }
- }
-
- public string ValueToCompare
- {
- get
- {
- return webCmpVal.ValueToCompare;
- }
- set
- {
- webCmpVal.ValueToCompare = value;
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Constants.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Constants.cs
deleted file mode 100644
index 38cfc34bf72..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Constants.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : Constants
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public class Constants
- {
- public const string AlternatingItemTemplateTag =
- "AlternatingItemTemplate";
- public const string ContentTemplateTag = "ContentTemplate";
- public const int DefaultSessionsStateHistorySize = 5;
- public const string EventArgumentID = "__EA";
- public const string EventSourceID = "__ET";
- public const string FooterTemplateTag = "FooterTemplate";
- public const string FormIDPrefix = "#";
- public const string HeaderTemplateTag = "HeaderTemplate";
- public const string ItemDetailsTemplateTag =
- "ItemDetailsTemplate";
- public const string ItemTemplateTag = "ItemTemplate";
- public const string LabelTemplateTag = "LabelTemplate";
- public const string OptimumPageWeightParameter =
- "optimumPageWeight";
- public const string PagePrefix = "__PG_";
- public const string ScreenCharactersHeightParameter =
- "screenCharactersHeight";
- public const string ScriptTemplateTag = "ScriptTemplate";
- public const char SelectionListSpecialCharacter = '*';
- public const string SeparatorTempalteTag =
- "SeparatorTemplate";
- public const string SymbolProtocol = "symbol:";
- public const string UniqueFilePathSuffixVariable = "__ufps=";
- public const string UniqueFilePathSuffixVariableWithoutEqual =
- "__ufps";
-
- internal const string ErrorStyle = "error";
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ControlPager.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ControlPager.cs
deleted file mode 100644
index 1c68bb7509c..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ControlPager.cs
+++ /dev/null
@@ -1,127 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ControlPager
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class ControlPager
- {
- private int pageCount = 0;
- private int maxPage = -1;
- private int pageWt;
- private int remainingWt = 0;
-
- private Form form;
-
- // To ponder: will const be better?
- public static readonly int DefaultWeight = 100;
- public static readonly int UseDefaultWeight = -1;
-
- public ControlPager(Form form, int pageWeight)
- {
- this.form = form;
- this.pageWt = pageWeight;
- }
-
- public int PageCount
- {
- get
- {
- return pageCount;
- }
- set
- {
- pageCount = value;
- }
- }
-
- public int MaximumPage
- {
- get
- {
- return maxPage;
- }
- set
- {
- maxPage = value;
- }
- }
-
- public int PageWeight
- {
- get
- {
- return pageWt;
- }
- set
- {
- pageWt = value;
- }
- }
-
- public int RemainingWeight
- {
- get
- {
- return remainingWt;
- }
- set
- {
- remainingWt = value;
- }
- }
-
- public ItemPager GetItemPager(MobileControl control, int itemCount,
- int itemsPerPage, int itemWeight)
- {
- return new ItemPager(this, control, itemCount,
- itemsPerPage, itemWeight);
- }
-
- public int GetPage(int weight)
- {
- if(weight > remainingWt)
- {
- PageCount += 1;
- RemainingWeight = PageWeight;
- }
- if(remainingWt > weight)
- {
- remainingWt -= weight;
- } else
- {
- remainingWt = 0;
- }
- return PageCount;
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/CustomValidator.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/CustomValidator.cs
deleted file mode 100644
index c714e91da22..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/CustomValidator.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : CustomValidator
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Web.UI;
-using System.Web.Mobile;
-using System.Web.UI.WebControls;
-
-namespace System.Web.UI.MobileControls
-{
- public class CustomValidator : BaseValidator
- {
- private static readonly object ServerValidateEvent = new object();
- private System.Web.UI.WebControls.CustomValidator webCV;
-
- public CustomValidator()
- {
- }
-
- protected override bool EvaluateIsValid()
- {
- return base.EvaluateIsValidInternal();
- }
-
- protected override System.Web.UI.WebControls.BaseValidator CreateWebValidator()
- {
- webCV = new System.Web.UI.WebControls.CustomValidator();
- webCV.ServerValidate += new ServerValidateEventHandler(WebServerValidate);
- return webCV;
- }
-
- private void WebServerValidate(object sender, ServerValidateEventArgs e)
- {
- e.IsValid = OnServerValidate(e.Value);
- }
-
- protected bool OnServerValidate(string value)
- {
- ServerValidateEventHandler sveh =
- (ServerValidateEventHandler)(Events[ServerValidateEvent]);
- if(sveh != null)
- {
- ServerValidateEventArgs e =
- new ServerValidateEventArgs(value, true);
- sveh(this, e);
- return e.IsValid;
- }
- return false;
- }
-
- protected override bool ControlPropertiesValid()
- {
- if(ControlToValidate.Length > 0)
- return true;
-
- return base.ControlPropertiesValid();
- }
-
- public event ServerValidateEventHandler ServerValidate
- {
- add
- {
- Events.AddHandler(ServerValidateEvent, value);
- }
- remove
- {
- Events.RemoveHandler(ServerValidateEvent, value);
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecific.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecific.cs
deleted file mode 100644
index 04ad2e1e590..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecific.cs
+++ /dev/null
@@ -1,244 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : DeviceSpecific
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Collections;
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class DeviceSpecific : Control
- {
- private DeviceSpecificChoiceCollection choices;
- private TemplateControl closestTemplateControl = null;
- private bool haveSelectedChoice = false;
- private object owner;
- private DeviceSpecificChoice selectedChoice;
-
- public DeviceSpecific()
- {
- }
-
- internal void SetOwner(object owner)
- {
- this.owner = owner;
- }
-
- internal void SetDesignerChoice(DeviceSpecificChoice choice)
- {
- this.selectedChoice = choice;
- this.haveSelectedChoice = true;
- }
-
- internal void ApplyProperties()
- {
- if(SelectedChoice != null)
- {
- SelectedChoice.ApplyProperties();
- }
- }
-
- public new event EventHandler DataBinding
- {
- add
- {
- base.DataBinding += value;
- }
- remove
- {
- base.DataBinding -= value;
- }
- }
-
- public new event EventHandler Disposed
- {
- add
- {
- base.Disposed += value;
- }
- remove
- {
- base.Disposed -= value;
- }
- }
-
- public new event EventHandler Init
- {
- add
- {
- base.Init += value;
- }
- remove
- {
- base.Init -= value;
- }
- }
-
- public new event EventHandler Load
- {
- add
- {
- base.Load += value;
- }
- remove
- {
- base.Load -= value;
- }
- }
-
- public new event EventHandler PreRender
- {
- add
- {
- base.PreRender += value;
- }
- remove
- {
- base.PreRender -= value;
- }
- }
-
- public new event EventHandler Unload
- {
- add
- {
- base.Unload += value;
- }
- remove
- {
- base.Unload -= value;
- }
- }
-
- public DeviceSpecificChoiceCollection Choices
- {
- get
- {
- if(choices == null)
- {
- choices = new DeviceSpecificChoiceCollection(this);
- }
- return choices;
- }
- }
-
- public TemplateControl ClosestTemplateControl
- {
- get
- {
- if(closestTemplateControl == null)
- {
- MobileControl ctrl = null;
- if(Owner is System.Web.UI.MobileControls.Style)
- {
- ctrl = ((System.Web.UI.MobileControls.Style)Owner).Control;
- } else
- {
- ctrl = (MobileControl) Owner;
- }
- closestTemplateControl = ctrl.FindClosestTemplateControl();
- }
- return closestTemplateControl;
- }
- }
-
- public override bool EnableViewState
- {
- get
- {
- return base.EnableViewState;
- }
- }
-
- public bool HasTemplates
- {
- get
- {
- if(SelectedChoice != null)
- {
- return SelectedChoice.HasTemplates;
- }
- return false;
- }
- }
-
- public MobilePage MobilePage
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public object Owner
- {
- get
- {
- return this.owner;
- }
- }
-
- public DeviceSpecificChoice SelectedChoice
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public override bool Visible
- {
- get
- {
- return base.Visible;
- }
- }
-
- protected override void AddParsedSubObject(object obj)
- {
- if(obj is DeviceSpecificChoice)
- {
- DeviceSpecificChoice dsc = (DeviceSpecificChoice)obj;
- Choices.Add(dsc);
- }
- }
-
- public ITemplate GetTemplate(string templateName)
- {
- ITemplate retVal = null;
- if(SelectedChoice != null)
- {
- retVal = (ITemplate) SelectedChoice.Templates[templateName];
- }
- return retVal;
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecificChoice.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecificChoice.cs
deleted file mode 100644
index 76741e9ed35..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecificChoice.cs
+++ /dev/null
@@ -1,254 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : DeviceSpecificChoice
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.ComponentModel;
-using System.Collections;
-using System.Collections.Specialized;
-using System.Reflection;
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class DeviceSpecificChoice : IParserAccessor,
- IAttributeAccessor
- {
- private string argument;
- private IDictionary contents;
- private string filter;
- private DeviceSpecific owner;
- private IDictionary templates;
- private string xmlns;
-
- private static IComparer caseInsensitiveComparer
- = new CaseInsensitiveComparer();
-
- public DeviceSpecificChoice()
- {
- }
-
- string IAttributeAccessor.GetAttribute(string key)
- {
- object val = Contents[key];
- if(val != null && val is string)
- return (string)val;
- //FIXME
- throw new ArgumentException("DeviceSpecificChoice" +
- "_PropetyNotAnAttribute");
- }
-
- void IAttributeAccessor.SetAttribute(string key, string value)
- {
- Contents[key] = value;
- }
-
- void IParserAccessor.AddParsedSubObject(object obj)
- {
- if(obj is DeviceSpecificChoiceTemplateContainer)
- {
- DeviceSpecificChoiceTemplateContainer ctr =
- (DeviceSpecificChoiceTemplateContainer)obj;
- Templates[ctr.Name] = ctr.Template;
- }
- }
-
- public string Argument
- {
- get
- {
- return this.argument;
- }
- set
- {
- this.argument = value;
- }
- }
-
- public IDictionary Contents
- {
- get
- {
- if(this.contents == null)
- {
- this.contents = new ListDictionary(caseInsensitiveComparer);
- }
- return this.contents;
- }
- }
-
- public string Filter
- {
- get
- {
- return this.filter;
- }
- set
- {
- this.filter = value;
- }
- }
-
- public DeviceSpecific Owner
- {
- get
- {
- return this.owner;
- }
- set
- {
- this.owner = value;
- }
- }
-
- public IDictionary Templates
- {
- get
- {
- if(this.templates == null)
- {
- this.templates = new ListDictionary(caseInsensitiveComparer);
- }
- return this.templates;
- }
- }
-
- internal void ApplyProperties()
- {
- IDictionaryEnumerator ide = Contents.GetEnumerator();
- while(ide.MoveNext())
- {
- object owner = Owner.Owner;
- string key = (string)ide.Key;
- string value = (string)ide.Value;
- if(key.ToLower() == "id")
- {
- //FIXME
- throw new ArgumentException("DeviceSpecificChoice" +
- "_InvalidPropertyOverride");
- }
- if(value != null)
- {
- int dash = 0;
- while((dash = key.IndexOf('-')) != -1)
- {
- string first = key.Substring(0, dash);
- PropertyDescriptor pd =
- TypeDescriptor.GetProperties(owner).Find(key, true);
- if(pd == null)
- {
- //FIXME
- throw new ArgumentException("DeviceSpecificChoice" +
- "_OverridingPropertyNotFound");
- }
- owner = pd.GetValue(owner);
- key = key.Substring(dash + 1);
- }
- if(!FindAndApplyProperty(owner, key, value) &&
- !FindAndApplyEvent(owner, key, value))
- {
- if(owner is IAttributeAccessor)
- {
- ((IAttributeAccessor)owner).SetAttribute(key, value);
- } else
- {
- //FIXME
- throw new ArgumentException("DeviceSpecificChoice" +
- "_OverridingPropertyNotFound");
- }
- }
- }
- }
- }
-
- /// <summary>
- /// Returns false if not found or not applied
- /// </summary>
- private bool FindAndApplyProperty(object parentObj, string key,
- string value)
- {
- bool retVal = false;
- PropertyDescriptor pd =
- TypeDescriptor.GetProperties(parentObj).Find(key, true);
- if(pd != null)
- {
- if(pd.Attributes.Contains(
- DesignerSerializationVisibilityAttribute.Hidden))
- {
- throw new ArgumentException("DeviceSpecificChoice" +
- "_OverridingPropertyNotDeclarable");
- }
- throw new NotImplementedException();
- }
- return retVal;
- }
-
- private bool FindAndApplyEvent(object parentObj, string key,
- string value)
- {
- bool retVal = false;
- if(key.Length > 0)
- {
- if(key.ToLower().StartsWith("on"))
- {
- string eventName = key.Substring(2);
- EventDescriptor ed =
- TypeDescriptor.GetEvents(parentObj).Find(key, true);
- if(ed != null)
- {
- ed.AddEventHandler(parentObj,
- Delegate.CreateDelegate(ed.EventType,
- Owner.MobilePage, eventName));
- }
- }
- }
- return retVal;
- }
-
- private bool CheckOnPageEvaluator(MobileCapabilities capabilities,
- out bool evaluatorResult)
- {
- bool retVal = false;
- evaluatorResult = false;
- TemplateControl tc = Owner.ClosestTemplateControl;
- // I have to get the method (MethodInfo?) and then invoke
- // the method and send back the results of the method!
- throw new NotImplementedException();
- }
-
- public bool HasTemplates
- {
- get
- {
- return (templates != null && templates.Count > 0);
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecificChoiceCollection.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecificChoiceCollection.cs
deleted file mode 100644
index 1a635594799..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecificChoiceCollection.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : DeviceSpecificChoiceCollection
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Collections;
-using System.Reflection;
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class DeviceSpecificChoiceCollection
- : ArrayListCollectionBase
- {
- private DeviceSpecific owner;
-
- internal DeviceSpecificChoiceCollection(DeviceSpecific owner)
- {
- this.owner = owner;
- }
-
- public DeviceSpecificChoice this[int index]
- {
- get
- {
- return (DeviceSpecificChoice)base.Items[index];
- }
- }
-
- public ArrayList All
- {
- get
- {
- return base.Items;
- }
- }
-
- public void Add(DeviceSpecificChoice choice)
- {
- AddAt(-1, choice);
- }
-
- public void AddAt(int index, DeviceSpecificChoice choice)
- {
- choice.Owner = owner;
- if(index == -1)
- Items.Add(choice);
- else
- Items.Insert(index, choice);
- }
-
- public void Clear()
- {
- Items.Clear();
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecificChoiceTemplateContainer.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecificChoiceTemplateContainer.cs
deleted file mode 100644
index 8ca68cf3cb8..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecificChoiceTemplateContainer.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : DeviceSpecificChoiceTemplateContainer
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Collections;
-using System.Reflection;
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class DeviceSpecificChoiceTemplateContainer
- {
- private string name;
- private ITemplate template;
-
- public DeviceSpecificChoiceTemplateContainer()
- {
- }
-
- public string Name
- {
- get
- {
- return name;
- }
- set
- {
- name = value;
- }
- }
-
- public ITemplate Template
- {
- get
- {
- return template;
- }
- set
- {
- template = value;
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/FontInfo.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/FontInfo.cs
deleted file mode 100644
index 99d6cd338f7..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/FontInfo.cs
+++ /dev/null
@@ -1,112 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : FontInfo
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class FontInfo
- {
- private Style style;
-
- internal FontInfo(Style style)
- {
- this.style = style;
- }
-
- public BooleanOption Bold
- {
- get
- {
- if(style != null)
- return style.Bold;
- return BooleanOption.False;
- }
- set
- {
- if(style != null)
- style.Bold = value;
- }
- }
-
- public BooleanOption Italic
- {
- get
- {
- if(style != null)
- return style.Italic;
- return BooleanOption.False;
- }
- set
- {
- if(style != null)
- style.Italic = value;
- }
- }
-
- public string Name
- {
- get
- {
- if(style != null)
- return style.FontName;
- return String.Empty;
- }
- set
- {
- if(style != null)
- style.FontName = value;
- }
- }
-
- public FontSize Size
- {
- get
- {
- if(style != null)
- return style.FontSize;
- return FontSize.Normal;
- }
- set
- {
- if(style != null)
- style.FontSize = value;
- }
- }
-
- [MonoTODO]
- public override string ToString()
- {
- //string retVal = String.Empty;
- throw new NotImplementedException();
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/FontSize.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/FontSize.cs
deleted file mode 100644
index 350b490fddc..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/FontSize.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : FontSize
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public enum FontSize
- {
- NotSet,
- Normal,
- Small,
- Large
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Form.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Form.cs
deleted file mode 100644
index 55d79747f16..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Form.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : Form
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class Form : Panel, IPostBackEventHandler
- {
- public Form()
- {
- }
-
- public string Action
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- [MonoTODO]
- void IPostBackEventHandler.RaisePostBackEvent(string eventArgument)
- {
- throw new NotImplementedException();
- }
-
- public int CurrentPage
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public bool HasActiveHandler()
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/FormMethod.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/FormMethod.cs
deleted file mode 100644
index cdcae3066a6..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/FormMethod.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : FormMethod
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public enum FormMethod
- {
- Get,
- Post
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IControlAdapter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IControlAdapter.cs
deleted file mode 100644
index 673e7433ff5..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IControlAdapter.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : IControlAdapter
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Collections.Specialized;
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public interface IControlAdapter
- {
- MobileControl Control { get; set; }
- int ItemWeight { get; }
- MobilePage Page { get; }
- int VisibleWeight { get; }
-
- void CreateTemplatedUI(bool doDataBind);
- bool HandlePostBackEvent(string eventArguments);
- void LoadAdapterState(object state);
- bool LoadPostData(string postKey, NameValueCollection postCollection,
- object privateControlData, out bool dataChanged);
- void OnInit(EventArgs e);
- // Strange! Docs read "public virtual void OnLoad(...);"
- void OnLoad(EventArgs e);
- void OnPreRender(EventArgs e);
- void OnUnload(EventArgs e);
- // Strange! Docs read "Render(...);"
- void Render(HtmlTextWriter writer);
- object SaveAdapterState();
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IListControl.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IListControl.cs
deleted file mode 100644
index c0c05cc5c39..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IListControl.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : IListControl
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- interface IListControl
- {
- void OnItemDataBind(ListDataBindEventArgs e);
-
- bool TrackingViewState { get; }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IObjectListFieldCollection.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IObjectListFieldCollection.cs
deleted file mode 100644
index 63c8ccff48c..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IObjectListFieldCollection.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : IObjectListFieldCollection
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Collections;
-
-namespace System.Web.UI.MobileControls
-{
- public interface IObjectListFieldCollection : ICollection
- {
- ObjectListField this[int index] { get; }
-
- ObjectListField[] GetAll();
- int IndexOf(ObjectListField field);
- int IndexOf(string fieldID);
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IPageAdapter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IPageAdapter.cs
deleted file mode 100644
index cfe597039a4..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/IPageAdapter.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : IPageAdapter
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Collections;
-using System.Collections.Specialized;
-using System.IO;
-using System.Web.UI;
-using System.Web;
-
-namespace System.Web.UI.MobileControls
-{
- public interface IPageAdapter : IControlAdapter
- {
- IList CacheVaryByHeaders { get; }
- IDictionary CookielessDataDictionary { get; set; }
- int OptimumPageWeight { get; }
- new MobilePage Page { get; set; }
- bool PersistCookielessData { get; set; }
-
- HtmlTextWriter CreateTextWriter(TextWriter writer);
- NameValueCollection DeterminePostBackMode(HttpRequest request,
- string postEventSourceID,
- string postEventArgumentID,
- NameValueCollection baseCollection);
- bool HandleError(Exception e, HtmlTextWriter writer);
- bool HandlePagePostBackEvent(string eventSource,
- string eventArgument);
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ITemplateable.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ITemplateable.cs
deleted file mode 100644
index 99dc61f43ab..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ITemplateable.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ITemplateable
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public interface ITemplateable
- {
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Image.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Image.cs
deleted file mode 100644
index df20ae456e9..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Image.cs
+++ /dev/null
@@ -1,109 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : Image
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class Image : MobileControl, IPostBackEventHandler
- {
- public Image()
- {
- }
-
- void IPostBackEventHandler.RaisePostBackEvent(string argument)
- {
- MobilePage.ActiveForm = MobilePage.GetForm(argument);
- }
-
- public string AlternateText
- {
- get
- {
- object o = ViewState["AlternateText"];
- if(o != null)
- return (string)o;
- return String.Empty;
- }
- set
- {
- ViewState["AlternateText"] = value;
- }
- }
-
- public string ImageUrl
- {
- get
- {
- object o = ViewState["ImageUrl"];
- if(o != null)
- return (string)o;
- return String.Empty;
- }
- set
- {
- ViewState["ImageUrl"] = value;
- }
- }
-
- public string NavigateUrl
- {
- get
- {
- object o = ViewState["NavigateUrl"];
- if(o != null)
- return (string)o;
- return String.Empty;
- }
- set
- {
- ViewState["NavigateUrl"] = value;
- }
- }
-
- public string SoftkeyLabel
- {
- get
- {
- object o = ViewState["SoftkeyLabel"];
- if(o != null)
- return (string)o;
- return String.Empty;
- }
- set
- {
- ViewState["SoftkeyLabel"] = value;
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ItemPager.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ItemPager.cs
deleted file mode 100644
index 9385168448a..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ItemPager.cs
+++ /dev/null
@@ -1,172 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ItemPager
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class ItemPager
- {
- private MobileControl control;
-
- private int firstPage;
- private int lastPage;
-
- private int firstPageItemCount;
- private int fullPageItemCount;
- private int lastPageItemCount;
-
- public ItemPager()
- {
- }
-
- public ItemPager(ControlPager pager, MobileControl control,
- int itemCount, int itemsPerPage, int itemWeight)
- {
- this.control = control;
- if(itemsPerPage > 0)
- {
- if(itemCount < itemsPerPage)
- {
- firstPageItemCount = itemCount;
- firstPage = pager.GetPage(itemWeight * itemCount);
- lastPage = firstPage;
- } else
- {
- int ppic = (itemCount - 1)/itemsPerPage + 1;
- firstPageItemCount = itemsPerPage;
- fullPageItemCount = itemsPerPage;
- lastPageItemCount = ppic - (ppic - 1)*itemsPerPage;
- firstPage = pager.GetPage(itemsPerPage * itemWeight);
- pager.PageCount += (ppic - 1);
- if(ppic > 1)
- {
- pager.RemainingWeight = pager.PageWeight
- - (itemsPerPage * itemWeight);
- lastPage = firstPage + ppic - 1;
- }
- }
- } else
- {
- int totalWt = itemWeight * itemCount;
- if(totalWt <= pager.RemainingWeight)
- {
- firstPageItemCount = itemCount;
- firstPage = pager.GetPage(totalWt);
- lastPage = firstPage;
- } else
- {
- firstPageItemCount = pager.RemainingWeight / itemWeight;
- int rem = itemCount - firstPageItemCount;
- fullPageItemCount = Math.Max(itemWeight, pager.PageWeight);
- int pages = rem / fullPageItemCount;
- lastPageItemCount = rem % fullPageItemCount;
- firstPage = pager.PageCount;
- pager.PageCount += 1;
- pager.RemainingWeight = pager.PageWeight;
- pager.PageCount += pages;
- pager.RemainingWeight -= lastPageItemCount * itemWeight;
- if(firstPageItemCount == 0)
- {
- firstPage += 1;
- firstPageItemCount = Math.Min(fullPageItemCount,
- itemCount);
- }
- if(lastPageItemCount == 0)
- {
- pager.PageCount -= 1;
- lastPageItemCount = Math.Min(fullPageItemCount,
- itemCount);
- pager.RemainingWeight = 0;
- }
- lastPage = pager.PageCount;
- }
- control.FirstPage = firstPage;
- control.LastPage = lastPage;
- }
- }
-
- public int ItemCount
- {
- get
- {
- return GetItemCount();
- }
- }
-
- public int ItemIndex
- {
- get
- {
- return GetItemIndex();
- }
- }
-
- private int GetItemCount()
- {
- int cp = control.Form.CurrentPage;
- int retVal;
- if(cp >= firstPage && cp <= lastPage)
- {
- if(cp == firstPage)
- retVal = firstPageItemCount;
- else if(cp == lastPage)
- retVal = lastPageItemCount;
- else
- retVal = fullPageItemCount;
- } else
- {
- retVal = -1;
- }
- return retVal;
- }
-
- private int GetItemIndex()
- {
- int cp = control.Form.CurrentPage;
- int retVal;
- if(cp >= firstPage && cp <= lastPage)
- {
- if(cp == firstPage)
- retVal = 0;
- else
- {
- retVal = (cp - firstPage - 1)* fullPageItemCount
- + firstPageItemCount;
- }
- } else
- {
- retVal = -1;
- }
- return retVal;
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Label.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Label.cs
deleted file mode 100644
index bd464224e2f..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Label.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : Label
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class Label : MobileControl
- {
- public Label()
- {
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Link.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Link.cs
deleted file mode 100644
index 6179699aaf8..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Link.cs
+++ /dev/null
@@ -1,93 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : Link
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Collections;
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class Link : MobileControl, IPostBackEventHandler
- {
- public Link()
- {
- }
-
- void IPostBackEventHandler.RaisePostBackEvent(string argument)
- {
- MobilePage.ActiveForm = MobilePage.GetForm(argument);
- }
-
- public override void AddLinkedForms(IList linkedForms)
- {
- string url = NavigateUrl;
- string pref = Constants.FormIDPrefix;
- if(url.StartsWith(pref))
- {
- url = url.Substring(pref.Length);
- Form toAdd = ResolveFormReference(url);
- if(toAdd != null && !toAdd.HasActiveHandler())
- linkedForms.Add(toAdd);
- }
- }
-
- public string NavigateUrl
- {
- get
- {
- object o = ViewState["NavigateUrl"];
- if(o != null)
- return (string)o;
- return String.Empty;
- }
- set
- {
- ViewState["NavigateUrl"] = value;
- }
- }
-
- public string SoftkeyLabel
- {
- get
- {
- object o = ViewState["SoftkeyLabel"];
- if(o != null)
- return (string)o;
- return String.Empty;
- }
- set
- {
- ViewState["SoftkeyLabel"] = value;
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/List.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/List.cs
deleted file mode 100644
index 64831b83c62..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/List.cs
+++ /dev/null
@@ -1,300 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : List
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Collections;
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class List : PagedControl, INamingContainer, IListControl,
- ITemplateable, IPostBackEventHandler
- {
- private static readonly object ItemDataBindEvent = new object();
- private static readonly object ItemCommandEvent = new object();
-
- private ListDecoration decoration = ListDecoration.None;
-
- public List()
- {
- }
-
- public event ListCommandEventHandler ItemCommand
- {
- add
- {
- Events.AddHandler(ItemCommandEvent, value);
- }
- remove
- {
- Events.RemoveHandler(ItemCommandEvent, value);
- }
- }
-
- public event ListDataBindEventHandler ItemDataBind
- {
- add
- {
- Events.AddHandler(ItemDataBindEvent, value);
- }
- remove
- {
- Events.RemoveHandler(ItemDataBindEvent, value);
- }
- }
-
- private void CreateChildControls(bool doDataBind)
- {
- if(IsTemplated)
- {
- throw new NotImplementedException();
- }
- ChildControlsCreated = true;
- }
-
- public virtual string DataMember
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public virtual object DataSource
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public string DataTextField
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public string DataValueField
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public ListDecoration Decoration
- {
- get
- {
- return decoration;
- }
- set
- {
- decoration = value;
- }
- }
-
- public bool HasItemCommandHandler
- {
- get
- {
- return (Events[ItemCommandEvent] != null);
- }
- }
-
- protected override int InternalItemCount
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public MobileListItemCollection Items
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public bool ItemsAsLinks
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- private void CreateControlItem(MobileListItemType itemType,
- ITemplate itemTemplate, bool doDataBind)
- {
- // Create control.
- // Add control at the end of this "List".
- throw new NotImplementedException();
- }
-
- private int TranslateVirtualItemIndex(int itemIndex)
- {
- throw new NotImplementedException();
- }
-
- protected override void AddParsedSubObject(object obj)
- {
- if(obj is LiteralControl || obj is MobileControl)
- {
- throw new NotImplementedException();
- }
- }
-
- protected override void CreateChildControls()
- {
- CreateChildControls(true);
- }
-
- protected virtual void CreateItems(IEnumerable dataSource)
- {
- throw new NotImplementedException();
- }
-
- protected override void LoadViewState(object state)
- {
- throw new NotImplementedException();
- }
-
- protected override bool OnBubbleEvent(object sender, EventArgs e)
- {
- if(e is ListCommandEventArgs)
- {
- OnItemCommand((ListCommandEventArgs)e);
- return true;
- }
- return false;
- }
-
- protected override void OnDataBinding(EventArgs e)
- {
- base.OnDataBinding(e);
- throw new NotImplementedException();
- }
-
- protected void OnItemDataBind(ListDataBindEventArgs e)
- {
- ListDataBindEventHandler ldbeh = (ListDataBindEventHandler)(Events[ItemDataBindEvent]);
- if(ldbeh != null)
- ldbeh(this, e);
- }
-
- protected virtual void OnItemCommand(ListCommandEventArgs e)
- {
- ListCommandEventHandler lceh = (ListCommandEventHandler)(Events[ItemCommandEvent]);
- if(lceh != null)
- lceh(this, e);
- }
-
- protected override void OnLoadItems(LoadItemsEventArgs e)
- {
- throw new NotImplementedException();
- }
-
- protected override void OnPageChange(int oldPageIndex,
- int newPageIndex)
- {
- base.OnPageChange(oldPageIndex, newPageIndex);
- throw new NotImplementedException();
- }
-
- protected override void OnPreRender(EventArgs e)
- {
- throw new NotImplementedException();
- }
-
- protected override object SaveViewState()
- {
- throw new NotImplementedException();
- }
-
- protected override void TrackViewState()
- {
- throw new NotImplementedException();
- }
-
- public override void CreateDefaultTemplatedUI(bool doDataBind)
- {
- throw new NotImplementedException();
- }
-
- public override void EnsureTemplatedUI()
- {
- EnsureChildControls();
- }
-
- void IPostBackEventHandler.RaisePostBackEvent(string eventArgument)
- {
- throw new NotImplementedException();
- }
-
- void IListControl.OnItemDataBind(ListDataBindEventArgs e)
- {
- OnItemDataBind(e);
- }
-
- bool IListControl.TrackingViewState
- {
- get
- {
- return IsTrackingViewState;
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListCommandEventArgs.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListCommandEventArgs.cs
deleted file mode 100644
index b13ca4a9c7a..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListCommandEventArgs.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ListCommandEventArgs
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Web.UI.WebControls;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class ListCommandEventArgs : CommandEventArgs
- {
- protected static readonly string DefaultCommand = "Default";
-
- private object cmdSource;
- private MobileListItem listItem;
-
- public ListCommandEventArgs(MobileListItem item,
- object commandSource)
- :base(DefaultCommand, commandSource)
- {
- this.listItem = item;
- this.cmdSource = commandSource;
- }
-
- public ListCommandEventArgs(MobileListItem item,
- object commandSource, CommandEventArgs originalArgs)
- : base(originalArgs)
- {
- this.cmdSource = commandSource;
- this.listItem = item;
- }
-
- public object CommandSource
- {
- get
- {
- return this.cmdSource;
- }
- }
-
- public MobileListItem ListItem
- {
- get
- {
- return this.listItem;
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListCommandEventHandler.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListCommandEventHandler.cs
deleted file mode 100644
index 0a3e9c1b2fd..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListCommandEventHandler.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ListCommandEventHandler
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public delegate void ListCommandEventHandler(object sender,
- ListCommandEventArgs e);
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDataBindEventArgs.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDataBindEventArgs.cs
deleted file mode 100644
index 79e6fc0b8d1..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDataBindEventArgs.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ListDataBindEventArgs
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class ListDataBindEventArgs : EventArgs
- {
- private MobileListItem item;
- private object dataItem;
-
- public ListDataBindEventArgs(MobileListItem item, object dataItem)
- {
- this.item = item;
- this.dataItem = dataItem;
- }
-
- public object DataItem
- {
- get
- {
- return dataItem;
- }
- }
-
- public MobileListItem ListItem
- {
- get
- {
- return item;
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDataBindEventHandler.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDataBindEventHandler.cs
deleted file mode 100644
index 5e4f4e97995..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDataBindEventHandler.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ListDataBindEventHandler
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public delegate void ListDataBindEventHandler(object sender,
- ListDataBindEventArgs e);
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDataHelper.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDataHelper.cs
deleted file mode 100644
index 0e07556d35e..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDataHelper.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ListDataHelper
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- class ListDataHelper
- {
- private int dataSrcCount = -1;
- private IListControl parent;
- private StateBag parentViewState;
-
- public ListDataHelper(IListControl parent, StateBag parentViewState)
- {
- this.parent = parent;
- this.parentViewState = parentViewState;
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDecoration.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDecoration.cs
deleted file mode 100644
index a101b4146ff..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListDecoration.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ListDecoration
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public enum ListDecoration
- {
- None,
- Bulleted,
- Numbered
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListSelectType.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListSelectType.cs
deleted file mode 100644
index 7c038f3279c..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ListSelectType.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ListSelectType
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public enum ListSelectType
- {
- DropDown,
- ListBox,
- Radio,
- MultiSelectListBox,
- CheckBox
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/LoadItemsEventArgs.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/LoadItemsEventArgs.cs
deleted file mode 100644
index 3f4a8d43709..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/LoadItemsEventArgs.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : LoadItemsEventArgs
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public class LoadItemsEventArgs : EventArgs
- {
- private int index;
- private int count;
-
- public LoadItemsEventArgs(int index, int count)
- {
- this.index = index;
- this.count = count;
- }
-
- public int ItemCount
- {
- get
- {
- return count;
- }
- }
-
- public int ItemIndex
- {
- get
- {
- return index;
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/LoadItemsEventHandler.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/LoadItemsEventHandler.cs
deleted file mode 100644
index 27f9051574a..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/LoadItemsEventHandler.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : LoadItemsEventHandler
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public delegate void LoadItemsEventHandler(object sender,
- LoadItemsEventArgs e);
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileControl.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileControl.cs
deleted file mode 100644
index ebdd3c851db..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileControl.cs
+++ /dev/null
@@ -1,347 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : MobileControl
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Drawing;
-using System.Collections;
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public abstract class MobileControl : Control//, IAttributeAccessor
- {
- private Style style;
- private IControlAdapter adapter;
-
- private bool enablePagination;
-
- //public abstract string GetAttribute(string key);
- //public abstract void SetAttribute(string key, string value);
-
- protected MobileControl()
- {
- }
-
- public IControlAdapter Adapter
- {
- get
- {
- IControlAdapter retVal = null;
- if(adapter != null)
- retVal = adapter;
- else if(MobilePage != null)
- retVal = MobilePage.GetControlAdapter(this);
- return retVal;
- }
- }
-
- public Alignment Alignment
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public virtual Color BackColor
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public virtual bool BreakAfter
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public DeviceSpecific DeviceSpecific
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public int FirstPage
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public virtual FontInfo Font
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public virtual Color ForeColor
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public Form Form
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public virtual bool IsTemplated
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public int LastPage
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public MobilePage MobilePage
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public virtual Style Style
- {
- get
- {
- if(this.style == null)
- {
- this.style = this.CreateStyle();
- }
- return this.style;
- }
- }
-
- public virtual string StyleReference
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public virtual int VisibleWeight
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public virtual Wrapping Wrapping
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- protected string InnerText
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- protected virtual bool PaginateChildren
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public virtual void AddLinkedForms(IList linkedForms)
- {
- throw new NotImplementedException();
- }
-
- public virtual void CreateDefaultTemplatedUI(bool doDataBind)
- {
- throw new NotImplementedException();
- }
-
- public virtual void EnsureTemplatedUI()
- {
- throw new NotImplementedException();
- }
-
- public virtual ITemplate GetTemplate(string templateName)
- {
- throw new NotImplementedException();
- }
-
- public bool IsVisibleOnPage(int pageNumber)
- {
- throw new NotImplementedException();
- }
-
- public virtual void PaginateRecursive(ControlPager pager)
- {
- throw new NotImplementedException();
- }
-
- public Form ResolveFormReference(string name)
- {
- throw new NotImplementedException();
- }
-
- protected virtual Style CreateStyle()
- {
- throw new NotImplementedException();
- }
-
- protected virtual void CreatedTempaltedUI(bool doDataBind)
- {
- throw new NotImplementedException();
- }
-
- protected virtual bool isFormSubmitControl()
- {
- throw new NotImplementedException();
- }
-
- protected virtual void LoadPrivateViewState(object state)
- {
- throw new NotImplementedException();
- }
-
- protected virtual void OnPageChange(int oldIndex, int newIndex)
- {
- throw new NotImplementedException();
- }
-
- protected virtual void OnRender(HtmlTextWriter writer)
- {
- throw new NotImplementedException();
- }
-
- protected virtual object SavePrivateViewState()
- {
- throw new NotImplementedException();
- }
-
- protected virtual void CreateTemplatedUI(bool doDataBind)
- {
- throw new NotImplementedException();
- }
-
- internal static void SetControlPageRecursive(Control ctrl, int page)
- {
- throw new NotImplementedException();
- }
-
- internal bool EnablePagination
- {
- get
- {
- return enablePagination;
- }
- set
- {
- enablePagination = value;
- }
- }
-
- internal TemplateControl FindClosestTemplateControl()
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileListItem.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileListItem.cs
deleted file mode 100644
index 7f9d6761ac8..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileListItem.cs
+++ /dev/null
@@ -1,279 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : MobileListItem
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Collections;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-
-namespace System.Web.UI.MobileControls
-{
- public class MobileListItem : TemplateContainer, IStateManager
- {
- private int index;
- private string text;
- private string value;
-
- private object dataItem;
- private MobileListItemType itemType;
-
- private const int SELECTED = 0x00;
- private const int MARKED = 0x01; // Tracking?
- private const int SELECTD = 0x02; // Selection dirty flag
- private const int TEXTD = 0x03; // Text dirty flag
- private const int VALUED = 0x04; // Value dirty flag
-
- private BitArray flags = new BitArray(5);
-
- public MobileListItem()
- : this(null, null, null)
- {
- }
-
- public MobileListItem(MobileListItemType type)
- : this(null, null, null)
- {
- this.itemType = type;
- }
-
- public MobileListItem(string text)
- : this(null, text, null)
- {
- }
-
- public MobileListItem(string text, string value)
- : this(null, text, value)
- {
- }
-
- public MobileListItem(object dataItem, string text, string value)
- : base()
- {
- this.dataItem = dataItem;
- this.text = text;
- this.value = value;
- this.itemType = MobileListItemType.ListItem;
- }
-
- internal void SetIndex(int index)
- {
- this.index = index;
- }
-
- public object DataItem
- {
- get
- {
- return this.dataItem;
- }
- set
- {
- this.dataItem = value;
- }
- }
-
- public int Index
- {
- get
- {
- return this.index;
- }
- }
-
- internal MobileListItemType ItemType
- {
- get
- {
- return this.itemType;
- }
- }
-
- public bool Selected
- {
- get
- {
- return flags[SELECTED];
- }
- set
- {
- flags[SELECTED] = value;
- if(IsTrackingViewState)
- {
- flags[SELECTD] = true;
- }
- }
- }
-
- internal bool IsSelectionDirty
- {
- get
- {
- return flags[SELECTD];
- }
- set
- {
- flags[SELECTD] = value;
- }
- }
-
- internal bool IsDirty
- {
- get
- {
- return (flags[TEXTD] || flags[VALUED]);
- }
- set
- {
- flags[TEXTD] = value;
- flags[VALUED] = value;
- }
- }
-
- public string Text
- {
- get
- {
- if(this.text != null)
- return this.text;
- if(this.value != null)
- return this.value;
- return String.Empty;
- }
- set
- {
- this.text = value;
- if(IsTrackingViewState)
- {
- flags[TEXTD] = true;
- }
- }
- }
-
- public string Value
- {
- get
- {
- if(this.value != null)
- return this.value;
- if(this.text != null)
- return this.text;
- return String.Empty;
- }
- set
- {
- this.value = value;
- if(IsTrackingViewState)
- {
- flags[VALUED] = true;
- }
- }
- }
-
- public static implicit operator MobileListItem(string text)
- {
- return new MobileListItem(text);
- }
-
- bool IStateManager.IsTrackingViewState
- {
- get
- {
- return flags[MARKED];
- }
- }
-
- public override bool Equals(object obj)
- {
- if(obj is MobileListItem)
- {
- MobileListItem other = (MobileListItem) obj;
- return (this.Text == other.Text &&
- this.Value == other.Value);
- }
- return false;
- }
-
- public override int GetHashCode()
- {
- return (Text.GetHashCode() + Value.GetHashCode());
- }
-
- public static MobileListItem FromString(string text)
- {
- return new MobileListItem(text);
- }
-
- public override string ToString()
- {
- return this.Text;
- }
-
- protected override bool OnBubbleEvent(object sender, EventArgs e)
- {
- if(e is CommandEventArgs)
- {
- CommandEventArgs cmdArgs = (CommandEventArgs)e;
- RaiseBubbleEvent(this,
- new ListCommandEventArgs(this, sender,
- cmdArgs));
- return true;
- }
- return false;
- }
-
- void IStateManager.TrackViewState()
- {
- flags[MARKED] = true;
- }
-
- object IStateManager.SaveViewState()
- {
- object retVal = null;
- string text = (flags[TEXTD] ? this.text : null);
- string value = (flags[VALUED] ? this.value : null);
- if(text != null || value != null)
- {
- retVal = new string[] { text, value };
- }
- return retVal;
- }
-
- void IStateManager.LoadViewState(object state)
- {
- if(state != null)
- {
- string[] data = (string[]) state;
- this.text = data[0];
- this.value = data[1];
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileListItemCollection.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileListItemCollection.cs
deleted file mode 100644
index d1456723c09..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileListItemCollection.cs
+++ /dev/null
@@ -1,181 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : MobileListItemCollection
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Collections;
-using System.Web.UI;
-
-namespace System.Web.UI.MobileControls
-{
- public class MobileListItemCollection : ArrayListCollectionBase,
- IStateManager
- {
- private int baseIndex = 0;
-
- private bool marked = false;
- private bool saveAll = false;
- private bool saveSel = false;
-
- public MobileListItemCollection()
- {
- }
-
- public MobileListItemCollection(ArrayList items) : base(items)
- {
- }
-
- void IStateManager.LoadViewState(object state)
- {
- throw new NotImplementedException();
- }
-
- object IStateManager.SaveViewState()
- {
- throw new NotImplementedException();
- }
-
- void IStateManager.TrackViewState()
- {
- this.marked = true;
- throw new NotImplementedException();
- }
-
- bool IStateManager.IsTrackingViewState
- {
- get
- {
- return this.marked;
- }
- }
-
- public void Add(string item)
- {
- Add(new MobileListItem(item));
- }
-
- public void Add(MobileListItem item)
- {
- throw new NotImplementedException();
- }
-
- public MobileListItem this[int index]
- {
- get
- {
- return (MobileListItem)base.Items[index];
- }
- }
-
- public void Clear()
- {
- base.Items.Clear();
- if(this.marked)
- this.saveAll = true;
- }
-
- public bool Contains(MobileListItem item)
- {
- return Items.Contains(item);
- }
-
- public MobileListItem[] GetAll()
- {
- MobileListItem[] retVal = new MobileListItem[Items.Count];
- if(Items.Count > 0)
- Items.CopyTo(0, retVal, 0, Items.Count);
- return retVal;
- }
-
- public int IndexOf(MobileListItem item)
- {
- return Items.IndexOf(item);
- }
-
- public virtual void Insert(int index, string item)
- {
- Insert(index, new MobileListItem(item));
- }
-
- public void Insert(int index, MobileListItem item)
- {
- Items.Insert(index, item);
- throw new NotImplementedException();
- }
-
- public void Remove(string item)
- {
- RemoveAt(IndexOf(new MobileListItem(item)));
- }
-
- public void Remove(MobileListItem item)
- {
- RemoveAt(IndexOf(item));
- }
-
- public void RemoveAt(int index)
- {
- if(index >= 0)
- {
- Items.RemoveAt(index);
- throw new NotImplementedException();
- }
- }
-
- public void SetAll(MobileListItem[] items)
- {
- throw new NotImplementedException();
- }
-
- public int BaseIndex
- {
- get
- {
- return this.baseIndex;
- }
- set
- {
- this.baseIndex = value;
- }
- }
-
- public bool SaveSelection
- {
- get
- {
- return this.saveSel;
- }
- set
- {
- this.saveSel = value;
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileListItemType.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileListItemType.cs
deleted file mode 100644
index f6d26dd1bdd..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileListItemType.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : MobileListItemType
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public enum MobileListItemType
- {
- HeaderItem,
- ListItem,
- FooterItem,
- SeparatorItem
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobilePage.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobilePage.cs
deleted file mode 100644
index f42d3344bb1..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobilePage.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : MobilePage
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class MobilePage : Page
- {
- public MobilePage()
- {
- }
-
- public virtual IControlAdapter GetControlAdapter(MobileControl control)
- {
- throw new NotImplementedException();
- }
-
- public Form ActiveForm
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public Form GetForm(string id)
- {
- throw new NotImplementedException();
- }
-
- public IPageAdapter Adapter
- {
- get
- {
- throw new NotImplementedException();
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectList.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectList.cs
deleted file mode 100644
index e297832fd37..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectList.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ObjectList
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Web.UI;
-
-namespace System.Web.UI.MobileControls
-{
- public class ObjectList // : PagedControl, INamingContainer,
- // ITemplateable, IPostBackEventHander
- {
- public ObjectList()
- {
- }
-
- public IObjectListFieldCollection AllFields
- {
- get
- {
- throw new NotImplementedException();
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListCommandEventArgs.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListCommandEventArgs.cs
deleted file mode 100644
index 1dddb774f11..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListCommandEventArgs.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ObjectListCommandEventHandler
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Web.UI.WebControls;
-
-namespace System.Web.UI.MobileControls
-{
- public class ObjectListCommandEventArgs : CommandEventArgs
- {
- private ObjectListItem item;
- private object commandSource;
-
- public ObjectListCommandEventArgs(ObjectListItem item,
- object source, CommandEventArgs e)
- : base(e)
- {
- this.item = item;
- this.commandSource = source;
- }
-
- public ObjectListCommandEventArgs(ObjectListItem item,
- string commandName)
- : base(commandName, item)
- {
- this.item = item;
- this.commandSource = null;
- }
-
- public object CommandSource
- {
- get
- {
- return this.commandSource;
- }
- }
-
- public ObjectListItem ListItem
- {
- get
- {
- return this.item;
- }
- }
-
- protected static readonly string DefaultCommand = "Default";
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListCommandEventHandler.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListCommandEventHandler.cs
deleted file mode 100644
index ede3abacefb..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListCommandEventHandler.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ObjectListCommandEventHandler
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public delegate void ObjectListCommandEventHandler(object sender,
- ObjectListCommandEventArgs e);
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListField.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListField.cs
deleted file mode 100644
index 84f3971744d..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListField.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ObjectListField
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Web.UI;
-
-namespace System.Web.UI.MobileControls
-{
- public class ObjectListField //: IStateManager
- {
- public ObjectListField()
- {
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListItem.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListItem.cs
deleted file mode 100644
index 9d576b1fd81..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListItem.cs
+++ /dev/null
@@ -1,140 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ObjectListCommandEventHandler
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class ObjectListItem : MobileListItem
- {
- private ObjectList owner;
- private string[] fields;
- private bool dirty = false;
-
- internal ObjectListItem(ObjectList owner, object dataItem)
- : base(dataItem, null, null)
- {
- this.owner = owner;
- this.fields = new string[owner.AllFields.Count];
- }
-
- internal ObjectListItem(ObjectList owner)
- : this(owner, null)
- {
- }
-
- public string this[int key]
- {
- get
- {
- if(fields != null && fields.Length >= key - 1
- && fields[key] != null)
- return fields[key];
- return String.Empty;
- }
- set
- {
- if(fields != null && fields.Length >= key - 1)
- fields[key] = value;
- if(IsTrackingViewState)
- dirty = true;
- }
- }
-
- internal bool Dirty
- {
- get
- {
- return dirty;
- }
- set
- {
- dirty = value;
- }
- }
-
- public string this[string fieldName]
- {
- get
- {
- return this[IndexOf(fieldName)];
- }
- set
- {
- this[IndexOf(fieldName)] = value;
- }
- }
-
- [MonoTODO("Exception_Details_Not_Exact")]
- private int IndexOf(string fieldName)
- {
- int index = owner.AllFields.IndexOf(fieldName);
- if(index < 0)
- {
- throw new ArgumentException("ObjectList_FieldNotFound");
- }
- return index;
- }
-
- public override bool Equals(object obj)
- {
- bool retVal = false;
- if(obj is ObjectListItem)
- {
- ObjectListItem oli = (ObjectListItem) obj;
- if(oli.fields != null && this.fields != null)
- {
- if(this.fields.Length == oli.fields.Length)
- {
- int i;
- for(i = 0; i < fields.Length; i++)
- {
- if(fields[i] != oli.fields[i])
- break;
- }
- if(i == fields.Length)
- retVal = true;
- }
- }
- retVal &= (Value == oli.Value);
- retVal &= (Text == oli.Text);
- }
- return retVal;
- }
-
- public override int GetHashCode()
- {
- return (fields == null ? Value.GetHashCode() :
- fields[0].GetHashCode());
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListViewMode.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListViewMode.cs
deleted file mode 100644
index 21080cd54b7..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListViewMode.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : ObjectListViewMode
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public enum ObjectListViewMode
- {
- List,
- Commands,
- Details
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/PagedControl.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/PagedControl.cs
deleted file mode 100644
index 41f64f27f2b..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/PagedControl.cs
+++ /dev/null
@@ -1,211 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : PagedControl
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public abstract class PagedControl : MobileControl
- {
- private static readonly object LoadItemsEvent = new object();
-
- private int itemCount = 0;
- private ItemPager itemPager;
- private bool pagingCharsChanged = false;
-
- protected PagedControl()
- {
- }
-
- public event LoadItemsEventHandler LoadItems
- {
- add
- {
- Events.AddHandler(LoadItemsEvent, value);
- }
- remove
- {
- Events.RemoveHandler(LoadItemsEvent, value);
- }
- }
-
- private int PagerItemIndex
- {
- get
- {
- return (itemPager == null ? 0 : itemPager.ItemIndex);
- }
- }
-
- private int PagerItemCount
- {
- get
- {
- return (itemPager == null ? InternalItemCount :
- itemPager.ItemCount);
- }
- }
-
- protected abstract int InternalItemCount { get; }
-
- public int FirstVisibleItemIndex
- {
- get
- {
- if(!IsCustomPaging && EnablePagination)
- return PagerItemIndex;
- return 0;
- }
- }
-
- private bool IsCustomPaging
- {
- get
- {
- return (itemCount > 0);
- }
- }
-
- public int ItemCount
- {
- get
- {
- return itemCount;
- }
- set
- {
- itemCount = value;
- }
- }
-
- public int ItemWeight
- {
- get
- {
- return ControlPager.DefaultWeight;
- }
- }
-
- public int ItemsPerPage
- {
- get
- {
- object o = ViewState["ItemsPerPage"];
- if(o != null)
- return (int)o;
- return 0;
- }
- set
- {
- ViewState["ItemsPerPage"] = value;
- }
- }
-
- public int VisibleItemCount
- {
- get
- {
- if(IsCustomPaging || !EnablePagination)
- return InternalItemCount;
- return PagerItemCount;
- }
- }
-
- public override int VisibleWeight
- {
- get
- {
- if(VisibleItemCount == -1)
- return 0;
- return VisibleItemCount * GetItemWeight();
- }
- }
-
- private int GetItemWeight()
- {
- int iw = Adapter.ItemWeight;
- if(iw == ControlPager.UseDefaultWeight)
- return ItemWeight;
- return iw;
- }
-
- protected virtual void OnLoadItems(LoadItemsEventArgs e)
- {
- LoadItemsEventHandler lieh = (LoadItemsEventHandler)(Events[LoadItemsEvent]);
- if(lieh != null)
- lieh(this, e);
- }
-
- private void OnLoadItems()
- {
- OnLoadItems(new LoadItemsEventArgs(PagerItemIndex, PagerItemCount));
- }
-
- protected override void OnPageChange(int oldPageIndex, int newPageIndex)
- {
- pagingCharsChanged = true;
- }
-
- protected override void OnPreRender(EventArgs e)
- {
- if(IsCustomPaging)
- {
- if(!Page.IsPostBack || Form.PaginationStateChanged
- || pagingCharsChanged || !IsViewStateEnabled())
- {
- OnLoadItems();
- }
- }
- base.OnPreRender(e);
- }
-
- private bool IsViewStateEnabled()
- {
- Control ctrl = this;
- while(ctrl != null && ctrl.EnableViewState)
- {
- ctrl = ctrl.Parent;
- }
- return (ctrl == null);
- }
-
- public override void PaginateRecursive(ControlPager pager)
- {
- int ic = 0;
- int ipp = 0;
- if(IsCustomPaging || InternalItemCount == 0)
- ic = ItemCount;
- ipp = ItemsPerPage;
- itemPager = pager.GetItemPager(this, ic, ipp, GetItemWeight());
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Panel.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Panel.cs
deleted file mode 100644
index 4c482ed9e3d..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Panel.cs
+++ /dev/null
@@ -1,162 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : Panel
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Collections;
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class Panel : MobileControl, ITemplateable
- {
- private Panel deviceSpecificContent;
- private bool paginationStateChanged = false;
-
- public Panel()
- {
- }
-
- public override bool BreakAfter
- {
- get
- {
- return base.BreakAfter;
- }
- set
- {
- base.BreakAfter = value;
- }
- }
-
- protected override bool PaginateChildren
- {
- get
- {
- return Paginate;
- }
- }
-
- public virtual bool Paginate
- {
- get
- {
- object o = ViewState["Paginate"];
- if(o != null)
- return (bool)o;
- return false;
- }
- set
- {
- bool oldPaginate = Paginate;
- ViewState["Paginate"] = value;
- if(IsTrackingViewState)
- {
- PaginationStateChanged = true;
- if(oldPaginate && !value)
- MobileControl.SetControlPageRecursive(this, 1);
- }
- }
- }
-
- public Panel Content
- {
- get
- {
- return deviceSpecificContent;
- }
- }
-
- internal bool PaginationStateChanged
- {
- get
- {
- return paginationStateChanged;
- }
- set
- {
- paginationStateChanged = value;
- }
- }
-
- public override void AddLinkedForms(IList linkedForms)
- {
- try
- {
- foreach(Control current in Controls)
- {
- if(current is MobileControl)
- ((MobileControl)current).AddLinkedForms(linkedForms);
- }
- } finally
- {
- if(linkedForms.GetEnumerator() is IDisposable)
- ((IDisposable)linkedForms.GetEnumerator()).Dispose();
- }
- }
-
- public override void CreateDefaultTemplatedUI(bool doDataBind)
- {
- ITemplate contentTmpl = GetTemplate(Constants.ContentTemplateTag);
- if(contentTmpl != null)
- {
- deviceSpecificContent = new TemplateContainer();
- contentTmpl.InstantiateIn(this);
- Controls.AddAt(0, deviceSpecificContent);
- }
- }
-
- public override void PaginateRecursive(ControlPager pager)
- {
- if(EnablePagination)
- {
- if(Paginate && Content != null)
- {
- Content.Paginate = true;
- Content.PaginateRecursive(pager);
- FirstPage = Content.FirstPage;
- LastPage = pager.PageCount;
- base.PaginateRecursive(pager);
- }
- }
- }
-
- protected override void OnInit(EventArgs e)
- {
- base.OnInit(e);
- if(IsTemplated)
- {
- ClearChildViewState();
- CreateTemplatedUI(false);
- ChildControlsCreated = true;
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/SelectionList.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/SelectionList.cs
deleted file mode 100644
index 1364297a616..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/SelectionList.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : SelectionList
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Collections;
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class SelectionList : MobileControl, IListControl//, IPostBackDataHandler
- {
- ListDataHelper dataHelper;
-
- private static readonly object ItemDataBindEvent = new object();
- private static readonly object SelectionIndexChangedEvent = new object();
-
- public SelectionList()
- {
- dataHelper = new ListDataHelper(this, ViewState);
- }
-
- protected virtual void OnItemDataBind(ListDataBindEventArgs e)
- {
- ListDataBindEventHandler hdbeh = Events[ItemDataBindEvent] as ListDataBindEventHandler;
- if(hdbeh != null)
- {
- hdbeh(this, e);
- }
- }
-
- void IListControl.OnItemDataBind(ListDataBindEventArgs e)
- {
- OnItemDataBind(e);
- }
-
- bool IListControl.TrackingViewState
- {
- get
- {
- return IsTrackingViewState;
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Style.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Style.cs
deleted file mode 100644
index 1befddd147e..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Style.cs
+++ /dev/null
@@ -1,306 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : Style
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Drawing;
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class Style : IParserAccessor, ITemplateable, IStateManager,
- ICloneable
- {
- private BooleanOption bold = BooleanOption.NotSet;
- private BooleanOption italic = BooleanOption.NotSet;
- private Alignment alignment = Alignment.NotSet;
- private Color backColor = Color.Empty;
- private Color foreColor = Color.Empty;
- private string fontName = String.Empty;
- private FontSize fontSize = FontSize.NotSet;
- private Wrapping wrapping = Wrapping.NotSet;
-
- private bool marked = false;
- private bool checkedStyleRef = false;
-
- private MobileControl control = null;
- private DeviceSpecific deviceSpecific;
- private FontInfo font;
- private Style referredStyle;
-
- private StateBag state;
-
- public Style()
- {
- }
-
- public object this[object key]
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public object this[object key, bool inherit]
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public Alignment Alignment
- {
- get
- {
- return this.alignment;
- }
- set
- {
- this.alignment = value;
- }
- }
-
- public Color BackColor
- {
- get
- {
- return this.backColor;
- }
- set
- {
- this.backColor = value;
- }
- }
-
- public DeviceSpecific DeviceSpecific
- {
- get
- {
- return deviceSpecific;
- }
- set
- {
- deviceSpecific = value;
- }
- }
-
- public FontInfo Font
- {
- get
- {
- if(font == null)
- {
- font = new FontInfo(this);
- }
- return font;
- }
- }
-
- public Color ForeColor
- {
- get
- {
- return this.foreColor;
- }
- set
- {
- this.foreColor = value;
- }
- }
-
- public bool IsTemlpated
- {
- get
- {
- if(this.deviceSpecific != null)
- {
- return deviceSpecific.HasTemplates;
- } else if(ReferredStyle != null)
- {
- return ReferredStyle.IsTemlpated;
- }
- return false;
- }
- }
-
- internal Style ReferredStyle
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- internal BooleanOption Bold
- {
- get
- {
- return this.bold;
- }
- set
- {
- this.bold = value;
- }
- }
-
- internal BooleanOption Italic
- {
- get
- {
- return this.italic;
- }
- set
- {
- this.italic = value;
- }
- }
-
- internal string FontName
- {
- get
- {
- return this.fontName;
- }
- set
- {
- this.fontName = value;
- }
- }
-
- internal FontSize FontSize
- {
- get
- {
- return this.fontSize;
- }
- set
- {
- this.fontSize = value;
- }
- }
-
- public MobileControl Control
- {
- get
- {
- return this.control;
- }
- set
- {
- this.control = value;
- }
- }
-
- protected internal StateBag State
- {
- get
- {
- if(this.state == null)
- {
- this.state = new StateBag();
- if(((IStateManager)this).IsTrackingViewState)
- {
- ((IStateManager)state).TrackViewState();
- }
- }
- return this.state;
- }
- }
-
- internal void Refresh()
- {
- this.referredStyle = null;
- this.checkedStyleRef = false;
- }
-
- void IParserAccessor.AddParsedSubObject(object obj)
- {
- if(obj is DeviceSpecific)
- {
- DeviceSpecific ds = (DeviceSpecific) obj;
- if(this.DeviceSpecific == null)
- this.DeviceSpecific = ds;
- else
- {
- throw new ArgumentException("MobileControl" +
- "_NoMultipleDeviceSpecifics");
- }
- }
- }
-
- void IStateManager.LoadViewState(object state)
- {
- if(state != null)
- {
- this.Refresh();
- ((IStateManager)State).LoadViewState(state);
- }
- }
-
- object IStateManager.SaveViewState()
- {
- if(this.state != null)
- {
- return ((IStateManager)state).SaveViewState();
- }
- return null;
- }
-
- bool IStateManager.IsTrackingViewState
- {
- get
- {
- return this.marked;
- }
- }
-
- void IStateManager.TrackViewState()
- {
- this.marked = true;
- }
-
- public object Clone()
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- public void ApplyTo(WebControls.WebControl control)
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/TemplateContainer.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/TemplateContainer.cs
deleted file mode 100644
index b1468215b1c..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/TemplateContainer.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : TemplateContainer
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System;
-using System.Web.UI;
-
-namespace System.Web.UI.MobileControls
-{
- public class TemplateContainer : Panel, INamingContainer
- {
- public TemplateContainer()
- {
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/TextBox.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/TextBox.cs
deleted file mode 100644
index 1604861fbfb..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/TextBox.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : TextBox
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Web.UI;
-using System.Web.Mobile;
-
-namespace System.Web.UI.MobileControls
-{
- public class TextBox : TextControl//,IPostBackDataHandler
- {
- public TextBox()
- {
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/TextControl.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/TextControl.cs
deleted file mode 100644
index 872849cd046..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/TextControl.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : TextControl
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-using System.Web.UI;
-
-namespace System.Web.UI.MobileControls
-{
- public class TextControl : MobileControl
- {
- public TextControl()
- {
- }
-
- /*
- * Document speaks of
- * public IControlAdapter Adapter { get; }
- * but this is not available (no such property).
- * So, I am not keeping it.
- */
-
- public string Text
- {
- get
- {
- return InnerText;
- }
- set
- {
- InnerText = value;
- }
- }
- }
-}
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/WmlListFieldType.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/WmlListFieldType.cs
deleted file mode 100644
index 5776ef14cbc..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/WmlListFieldType.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : WmlListFieldType
- * Author : Gaurav Vaish
- *
- * Copyright : 2002 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-/// <summary>
-/// The enumeration exists only in the documentation.
-/// I failed to locate it in the assembly (.dll).
-/// </summary>
-/*
-namespace System.Web.UI.MobileControls
-{
- public enum WmlListFieldType
- {
- }
-}
-*/
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Wrapping.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Wrapping.cs
deleted file mode 100644
index 45c9485a5bd..00000000000
--- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Wrapping.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-
-//
-// 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.
-//
-/**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : Wrapping
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
-
-namespace System.Web.UI.MobileControls
-{
- public enum Wrapping
- {
- NotSet,
- Wrap,
- NoWrap
- }
-}