+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: AdRotatorDesigner
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.IO;
-using System.Web.UI.WebControls;
-using System.Web.UI.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class AdRotatorDesigner : ControlDesigner
- {
- public AdRotatorDesigner() : base()
- {
- }
-
- public override string GetDesignTimeHtml()
- {
- if(Component != null && Component is AdRotator)
- {
- AdRotator toDesign = (AdRotator)Component;
- HtmlTextWriter writer = new HtmlTextWriter(new StringWriter());
- HyperLink link = new HyperLink();
- Image disp = new Image();
-
- link.ID = toDesign.ID;
- link.NavigateUrl = String.Empty;
- link.Target = toDesign.Target;
- link.AccessKey = toDesign.AccessKey;
- link.Enabled = toDesign.Enabled;
- link.TabIndex = toDesign.TabIndex;
-
- disp.ApplyStyle(toDesign.ControlStyle);
- disp.ImageUrl = String.Empty;
- disp.AlternateText = toDesign.ID;
- disp.ToolTip = toDesign.ToolTip;
-
- link.RenderBeginTag(writer);
- link.RenderControl(writer);
- link.RenderEndTag(writer);
-
- return writer.ToString();
- }
- return String.Empty;
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: BaseDataListComponentEditor
- *
- * Author: Gaurav Vaish
- * Maintainer: mastergaurav AT users DOT sf DOT net
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Web.UI.Design;
-using System.Windows.Forms;
-using System.Windows.Forms.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public abstract class BaseDataListComponentEditor : WindowsFormsComponentEditor
- {
- private int initialPage;
-
- public BaseDataListComponentEditor(int initialPage) : base()
- {
- this.initialPage = initialPage;
- }
-
- public override bool EditComponent(ITypeDescriptorContext context,
- object obj, IWin32Window parent)
- {
- IComponent comp = (IComponent) obj;
- ISite site = comp.Site;
- bool retVal = false;
- bool inTemplateMode = false;
-
- if(site != null)
- {
- IDesignerHost dh = (IDesignerHost)site.GetService(typeof(IDesignerHost));
- inTemplateMode = ((TemplatedControlDesigner)dh.GetDesigner(comp)).InTemplateMode;
- }
- if(inTemplateMode)
- {
- throw new NotImplementedException();
- } else
- {
- retVal = base.EditComponent(context, obj, parent);
- }
- return retVal;
- }
-
- protected override int GetInitialComponentEditorPageIndex()
- {
- return initialPage;
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: BaseDataListDesigner
- *
- * Author: Gaurav Vaish
- * Maintainer: mastergaurav AT users DOT sf DOT net
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.Collections;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Reflection;
-using System.Web.UI.Design;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-using System.Data;
-
-namespace System.Web.UI.Design.WebControls
-{
- public abstract class BaseDataListDesigner : TemplatedControlDesigner,
- IDataSourceProvider
- {
- private BaseDataList baseDataList;
- private DataTable desTimeDataTable;
- private DataTable dummyDataTable;
-
- private static readonly string[] validNames = new string[] {
- "AlternatingItemStyle",
- "BackColor",
- "DataSource",
- "DataMember",
- "EditItemStyle",
- "Font",
- "ForeColor",
- "HeaderStyle",
- "FooterStyle",
- "ItemStyle",
- "SelectedItemStyle",
- "SeparatorStyle"
- };
-
- public BaseDataListDesigner()
- {
- }
-
- public string DataKeyField
- {
- get
- {
- return baseDataList.DataKeyField;
- }
- set
- {
- baseDataList.DataKeyField = value;
- }
- }
-
- public string DataMember
- {
- get
- {
- return baseDataList.DataMember;
- }
- set
- {
- baseDataList.DataMember = value;
- }
- }
-
- public string DataSource
- {
- get
- {
- DataBinding element = DataBindings["DataSource"];
- if(element != null)
- {
- return element.Expression;
- }
- return String.Empty;
- }
- set
- {
- if(value == null && value.Length == 0)
- {
- DataBindings.Remove("DataSource");
- } else
- {
- DataBinding element = DataBindings["DataSource"];
- if(element == null)
- {
- element = new DataBinding("DataSource",
- typeof(IEnumerable),
- value);
- } else
- {
- element.Expression = value;
- }
- DataBindings.Add(element);
- }
- OnDataSourceChanged();
- OnBindingsCollectionChanged("DataSource");
- }
- }
-
- protected internal virtual void OnDataSourceChanged()
- {
- desTimeDataTable = null;
- }
-
- public override bool DesignTimeHtmlRequiresLoadComplete
- {
- get
- {
- return (DataSource.Length > 0);
- }
- }
-
- public override DesignerVerbCollection Verbs
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public object GetSelectedDataSource()
- {
- object retVal = null;
- DataBinding element = DataBindings["DataSource"];
- if(element != null)
- {
- retVal = DesignTimeData.GetSelectedDataSource(baseDataList,
- element.Expression);
- }
- return retVal;
- }
-
- public IEnumerable GetResolvedSelectedDataSource()
- {
- IEnumerable retVal = null;
- DataBinding element = DataBindings["DataSource"];
- if(element != null)
- {
- retVal = DesignTimeData.GetSelectedDataSource(baseDataList,
- element.Expression,
- DataMember);
- }
- return retVal;
- }
-
- public override IEnumerable GetTemplateContainerDataSource(
- string templateName)
- {
- return GetResolvedSelectedDataSource();
- }
-
- public override void Initialize(IComponent component)
- {
- baseDataList = (BaseDataList)component;
- base.Initialize(component);
- }
-
- public override void OnComponentChanged(object sender,
- ComponentChangedEventArgs e)
- {
- if(e.Member != null)
- {
- string name = e.Member.Name;
- foreach(string current in validNames)
- {
- if(name == current)
- {
- OnStylesChanged();
- break;
- }
- }
- }
- base.OnComponentChanged(sender, e);
- }
-
- protected internal void OnStylesChanged()
- {
- OnTemplateEditingVerbsChanged();
- }
-
- protected abstract void OnTemplateEditingVerbsChanged();
-
- protected override void Dispose(bool disposing)
- {
- if(disposing)
- baseDataList = null;
- base.Dispose(disposing);
- }
-
- protected IEnumerable GetDesignTimeDataSource(int minimumRows,
- out bool dummyDataSource)
- {
- return GetDesignTimeDataSource(GetResolvedSelectedDataSource(),
- minimumRows,
- out dummyDataSource);
- }
-
- protected IEnumerable GetDesignTimeDataSource(IEnumerable selectedDataSource,
- int minimumRows,
- out bool dummyDataSource)
- {
- DataTable toDeploy = desTimeDataTable;
- dummyDataSource = false;
- if(minimumRows == 0)
- {
- if(selectedDataSource != null)
- {
- desTimeDataTable = DesignTimeData.CreateSampleDataTable(
- selectedDataSource);
- toDeploy = desTimeDataTable;
- }
- if(toDeploy == null)
- {
- if(dummyDataTable == null)
- dummyDataTable = DesignTimeData.CreateDummyDataTable();
- toDeploy = dummyDataTable;
- dummyDataSource = true;
- }
- }
- return DesignTimeData.GetDesignTimeDataSource(toDeploy, minimumRows);
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: BaseDataListPageInternal
- *
- * Author: Gaurav Vaish
- * Maintainer: mastergaurav AT users DOT sf DOT net
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Web.UI.Design;
-using System.Windows.Forms.Design;
-using System.Web.UI.WebControls;
-
-namespace System.Web.UI.Design.WebControls
-{
- abstract class BaseDataListPageInternal : ComponentEditorPage
- {
- private bool isDataGridMode;
-
- public BaseDataListPageInternal()
- {
- }
-
- protected abstract string HelpKeyword { get; }
-
- protected bool IsDataGridMode
- {
- get
- {
- return isDataGridMode;
- }
- }
-
- public override void ShowHelp()
- {
- ISite site = GetSelectedComponent().Site;
- IHelpService service = (IHelpService)site.GetService(
- typeof(IHelpService));
- if(service != null)
- {
- service.ShowHelpFromKeyword(HelpKeyword);
- }
- }
-
- public override bool SupportsHelp()
- {
- return true;
- }
-
- public override void SetComponent(IComponent component)
- {
- base.SetComponent(component);
- isDataGridMode = (GetBaseControl() is DataGrid);
- }
-
- protected BaseDataList GetBaseControl()
- {
- return (BaseDataList)GetSelectedComponent();
- }
-
- protected BaseDataListDesigner GetBaseDesigner()
- {
- BaseDataListDesigner retVal = null;
- ISite site = GetSelectedComponent().Site;
- IDesignerHost designer = (IDesignerHost)site.GetService(
- typeof(IDesignerHost));
- if(designer != null)
- {
- retVal = (BaseDataListDesigner)designer.GetDesigner(
- GetSelectedComponent());
- }
- return retVal;
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: BaseValidatorDesigner
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.Web.UI.WebControls;
-using System.Web.UI.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class BaseValidatorDesigner : ControlDesigner
- {
- public BaseValidatorDesigner()
- {
- }
-
- public override string GetDesignTimeHtml()
- {
- BaseValidator validator = (BaseValidator)Component;
- validator.IsValid = false;
- string errMsg = validator.ErrorMessage;
- ValidatorDisplay dispBeh = validator.Display;
- bool toSetErrMesg = true;
- if(dispBeh != ValidatorDisplay.None &&
- (errMsg.Length > 0 || validator.Text.Trim().Length > 0))
- {
- toSetErrMesg = false;
- }
- if(toSetErrMesg)
- {
- validator.ErrorMessage = '[' + validator.ID + ']';
- validator.Display = ValidatorDisplay.Static;
- }
- string retVal = base.GetDesignTimeHtml();
- if(toSetErrMesg)
- {
- validator.ErrorMessage = errMsg;
- validator.Display = dispBeh;
- }
- return retVal;
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: BordersPageInternal
- *
- * Author: Gaurav Vaish
- * Maintainer: mastergaurav AT users DOT sf DOT net
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Web.UI.Design;
-using System.Windows.Forms.Design;
-using System.Web.UI.WebControls;
-
-namespace System.Web.UI.Design.WebControls
-{
- class BordersPageInternal : BaseDataListPageInternal
- {
- public BordersPageInternal()
- {
- }
-
- [MonoTODO]
- protected override void LoadComponent()
- {
- InitializePage();
- BaseDataList baseCtrl = GetBaseControl();
- int cellPadding = baseCtrl.CellPadding;
- if(cellPadding >= 0)
- {
- throw new NotImplementedException();
- }
- int cellSpacing = baseCtrl.CellSpacing;
- if(cellSpacing >= 0)
- {
- throw new NotImplementedException();
- }
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- private void InitializePage()
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- protected override void SaveComponent()
- {
- throw new NotImplementedException();
- }
-
- private void OnBordersChanged(object source, EventArgs e)
- {
- if(!IsLoading())
- {
- SetDirty();
- }
- }
-
- private void OnClickColorPicker(object source, EventArgs e)
- {
- throw new NotImplementedException();
- }
-
- public override void SetComponent(IComponent component)
- {
- base.SetComponent(component);
- InitializeForm();
- }
-
- [MonoTODO]
- private void InitializeForm()
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- protected override string HelpKeyword
- {
- get
- {
- throw new NotImplementedException();
- }
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: ButtonDesigner
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.Web;
-using System.Web.UI.WebControls;
-using System.Web.UI.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class ButtonDesigner : TextControlDesigner
- {
- public ButtonDesigner(): base()
- {
- }
-
- public override string GetDesignTimeHtml()
- {
- if(Component != null && Component is Button)
- {
- Button btn = (Button)Component;
- btn.Text = btn.Text.Trim();
- if(btn.Text.Length == 0)
- {
- btn.Text = "[" + btn.ID + "]";
- }
- return base.GetDesignTimeHtml();
- }
- return String.Empty;
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: CalendarAutoFormatDialog
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.Web;
-using System.Web.UI.WebControls;
-using System.Windows.Forms;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class CalendarAutoFormatDialog : Form
- {
- private Calendar calendar;
- private bool activated;
-
- public CalendarAutoFormatDialog(Calendar calendar) : base()
- {
- this.calendar = calendar;
- this.activated = false;
- this.InitializeCalendar();
- }
-
- [MonoTODO]
- private void InitializeCalendar()
- {
- // Load various WC-schemes.
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- protected void OnActivated(object source, EventArgs e)
- {
- throw new NotImplementedException();
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: CalendarDesigner
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Web;
-using System.Web.UI.WebControls;
-using System.Web.UI.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class CalendarDesigner : ControlDesigner
- {
- private DesignerVerbCollection verbs;
- private Calendar calendar;
-
- public CalendarDesigner() : base()
- {
- }
-
- public override DesignerVerbCollection Verbs
- {
- get
- {
- if(verbs == null)
- {
- verbs = new DesignerVerbCollection();
- //verbs.Add(new DesignerVerb(OnAutoFormat:Event_Handler)
- }
- return verbs;
- }
- }
-
- public override void Initialize(IComponent component)
- {
- if(component is Calendar)
- {
- base.Initialize(component);
- this.calendar = (Calendar) component;
- }
- }
-
- [MonoTODO]
- protected void OnAutoFormat(object sender, EventArgs e)
- {
- throw new NotImplementedException();
- }
- }
-}
+++ /dev/null
-
-2002-12-06 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * ListControlDataBindingHandler.cs
- : Initial implementation.
-
-2002-10-29 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * RepeaterDesigner.CS : Initial implementation.
- * XmlDesigner.cs : Minor bug fixes.
-
-2002-10-29 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * XmlDesigner.cs : Initial implementation.
-
-2002-10-29 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * TODO : Update for PanelDesigner.
- * PanelDesigner.cs : Completed.
-
-2002-10-29 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * TODO : Updates of what I am doing / have done.
- * BaseValidatorDesigner.cs: Completed.
-
-2002-10-29 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * BaseDataListDesigner.cs : GetDesignTimeDataSource(IEnumerable, int, bool)
- - Implemented.
-
-2002-10-07 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * BaseDataListDesigner.cs : Dipose(bool) - Implemented.
- : GetDesignTimeDataSource(IEnumerable, int, bool)
- - Stubbed.
- : GetDesignTimeDataSource(int, bool)
- - Implemented.
-
-2002-10-07 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * BaseDataListDesigner.cs : Initial implementation.
-
-2002-10-07 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * TableRowsCollectionEditor.cs
- : Completed.
- * TODO : Updated information.
-
-2002-10-07 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * BordersPageInternal.cs : LoadComponent() - Initial implementation.
- : OnClickColorPicker(object, EventArgs),
- : InitializePage()
- - Stubbed.
- : OnBordersChanged(object, EventArgs)
- - Implemented.
-
-2002-10-07 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * BaseDataListPageInternal.cs
- : ctor() - Removed call to base.
- It's by default.
- : HelpKeyword - Added abstract property.
- : IsDataGridMode - Implemented.
- : ShowHelp(),
- : SupportsHelp(),
- : SetComponent(IComponent),
- : GetBaseControl(),
- : GetBaseDesigner()
- - Implemented.
- * BordersPageInternal.cs : SetComponent(IComponent)
- - Implemented.
- : HelpKeyword { get; },
- : InitializeForm()
- - Stubbed.
- * FormatPageInternal.cs : HelpKeyword { get; }
- - Stubbed.
- * GeneralPageDataListInternal.cs
- : HelpKeyword { get; }
- - Stubbed.
-
-2002-09-25 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * RegextEditorDialog.cs : Added a few more methods.
- * BaseDataListComponentEditor.cs
- : Completed.
- * DataListComponentEditor.cs
- : Completed
- * BaseDataListPageInternal.cs,
- * GeneralPageDataListInternal.cs,
- * FormatPageInternal.cs,
- * BordersPageInternal.cs : Added private classes. Initial implementation.
-
-2002-09-24 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * RegexTypeEditor.cs : Completed
- * RegexEditorDialog.cs : Initial implementation.
-
-2002-09-16 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * AdRotatorDesigner.cs : GetDesignTimeHtml() - Removed "MonoTODO"
- * ButtonDesigner.cs : Completed.
- * CalendarAutoFormatDialog.cs
- : Initial implementation.
- * CalendarDesigner.cs : Initial implementation.
- * CheckBoxDesigner.cs : Completed.
- * HyperLinkDesigner.cs : Almost completed. See "FIXME".
- * LabelDesigner.cs : Completed.
- * LinkButtonDesigner.cs : Completed.
- * TableCellsCollectionEditor.cs
- : Completed
- * TableDesigner.cs : Initial implementation.
-
-2002-09-16 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * TODO : TODO Updates. Found some undocumented
- classes.
-
-2002-09-16 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * AdRotatorDesigner.cs : Damn those typo errors.
-
-2002-09-16 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * AdRotatorDesigner.cs : Completed.
-
-2002-09-16 Gaurav Vaish <gvaish_mono@lycos.com>
-
- * AdRotatorDesigner.cs : Initial implementation.
- * TODOAttribute.cs : The TODO-Attribute class.
- * TODO : Added file
- * ChangeLog : Added file
\ No newline at end of file
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: CheckboxDesigner
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.Web;
-using System.Web.UI.WebControls;
-using System.Web.UI.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class CheckBoxDesigner : ControlDesigner
- {
- public CheckBoxDesigner() : base()
- {
- }
-
- public override string GetDesignTimeHtml()
- {
- if(Component != null && Component is CheckBox)
- {
- CheckBox cbx = (CheckBox) Component;
- cbx.Text = cbx.Text.Trim();
- if(cbx.Text.Length == 0)
- {
- cbx.Text = "[" + cbx.ID + "]";
- }
- return base.GetDesignTimeHtml();
- }
- return String.Empty;
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: DataListComponentEditor
- *
- * Author: Gaurav Vaish
- * Maintainer: mastergaurav AT users DOT sf DOT net
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Web.UI.Design;
-using System.Windows.Forms.Design;
-using System.Web.UI.WebControls;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class DataListComponentEditor : BaseDataListComponentEditor
- {
- internal static int GENERAL = 0x00;
- internal static int FORMAT = 0x01;
- internal static int BORDERS = 0x02;
-
- private static Type[] componentEditorPages;
-
- static DataListComponentEditor()
- {
- componentEditorPages = new Type[] {
- typeof(GeneralPageDataListInternal),
- typeof(FormatPageInternal),
- typeof(BordersPageInternal)
- };
- }
-
- public DataListComponentEditor() : base(GENERAL)
- {
- }
-
- public DataListComponentEditor(int initialPage) : base(initialPage)
- {
- }
-
- protected override Type[] GetComponentEditorPages()
- {
- return componentEditorPages;
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: FormatPageInternal
- *
- * Author: Gaurav Vaish
- * Maintainer: mastergaurav AT users DOT sf DOT net
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Web.UI.Design;
-using System.Windows.Forms.Design;
-using System.Web.UI.WebControls;
-
-namespace System.Web.UI.Design.WebControls
-{
- class FormatPageInternal : BaseDataListPageInternal
- {
- public FormatPageInternal() : base()
- {
- }
-
- [MonoTODO]
- protected override void LoadComponent()
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- protected override void SaveComponent()
- {
- throw new NotImplementedException();
- }
-
- protected override string HelpKeyword
- {
- get
- {
- throw new NotImplementedException();
- }
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: GeneralPageDataListInternal
- *
- * Author: Gaurav Vaish
- * Maintainer: mastergaurav AT users DOT sf DOT net
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Web.UI.Design;
-using System.Windows.Forms.Design;
-using System.Web.UI.WebControls;
-
-namespace System.Web.UI.Design.WebControls
-{
- class GeneralPageDataListInternal : BaseDataListPageInternal
- {
- public GeneralPageDataListInternal() : base()
- {
- }
-
- [MonoTODO]
- protected override void LoadComponent()
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- protected override void SaveComponent()
- {
- throw new NotImplementedException();
- }
-
- protected override string HelpKeyword
- {
- get
- {
- throw new NotImplementedException();
- }
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: HyperLinkDesigner
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.Web;
-using System.Web.UI.WebControls;
-using System.Web.UI.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class HyperLinkDesigner : TextControlDesigner
- {
- public HyperLinkDesigner() : base()
- {
- }
-
- [MonoTODO]
- public override string GetDesignTimeHtml()
- {
- if(Component != null && Component is HyperLink)
- {
- HyperLink link = (HyperLink) Component;
- link.Text = link.Text.Trim();
- link.ImageUrl = link.ImageUrl.Trim();
- link.NavigateUrl = link.NavigateUrl.Trim();
- bool textOrImage = (link.Text.Length > 0 ||
- link.ImageUrl.Length > 0);
- bool nav = link.NavigateUrl.Length > 0;
- if(!textOrImage)
- {
- link.Text = "[" + link.ID + "]";
- if(!nav)
- {
- link.NavigateUrl = "url";
- }
- }
-
- // FIXME: Unable to get the essence of "Remarks"
- // in the MSDN documentation. Need to write a program
- // to test what's happening.
- throw new NotImplementedException();
-
- //return base.GetDesignTimeHtml();
- }
- return String.Empty;
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: LabelDesigner
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.Web;
-using System.Web.UI.WebControls;
-using System.Web.UI.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class LabelDesigner : TextControlDesigner
- {
- public LabelDesigner(): base()
- {
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: LinkButtonDesigner
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.Web;
-using System.Web.UI.WebControls;
-using System.Web.UI.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class LinkButtonDesigner : TextControlDesigner
- {
- public LinkButtonDesigner(): base()
- {
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: ListControlDataBindingHandler
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Web.UI.WebControls;
-using System.Web.UI.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class ListControlDataBindingHandler : DataBindingHandler
- {
- public ListControlDataBindingHandler()
- {
- }
-
- [MonoTODO]
- public override void DataBindControl(IDesignerHost designerHost,
- Control control)
- {
- DataBinding db = ((IDataBindingsAccessor)control).DataBindings["DataSource"];
- if(db != null)
- {
- ListControl ctrl = (ListControl)designerHost;
- ctrl.Items.Clear();
- throw new NotImplementedException();
- //ctrl.Items.Add("Sample_Databound_Text"???);
- }
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: PanelDesigner
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.Web.UI.WebControls;
-using System.Web.UI.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class PanelDesigner : ReadWriteControlDesigner
- {
- public PanelDesigner()
- {
- }
-
- protected override void MapPropertyToStyle(string propName,
- object varPropValue)
- {
- if(propName != null)
- {
- try
- {
- bool hasBeenSet = false;
- if(propName == "BackImageUrl")
- {
- string url = varPropValue.ToString();
- if(url.Length > 0)
- url = "url(" + url + ")";
- // FIXME: CSS Specs read "background-image",
- // while MS implementation puts "backgroundImage".
- // Is it a MS implementation bug?
- Behavior.SetStyleAttribute("backgroundImage",
- true, url, true);
- hasBeenSet = true;
- } else if(propName == "HorizonalAlign")
- {
- HorizontalAlign alignment = (HorizontalAlign)varPropValue;
- if(alignment != HorizontalAlign.NotSet)
- {
- string value = Enum.Format(typeof(HorizontalAlign),
- varPropValue, "G");
- Behavior.SetStyleAttribute("textAlign",
- true, value, true);
- hasBeenSet = true;
- }
- }
- if(!hasBeenSet)
- base.MapPropertyToStyle(propName, varPropValue);
-
- } catch(Exception) { }
- }
- }
-
- protected override void OnBehaviorAttached()
- {
- base.OnBehaviorAttached();
- Panel toDesign = (Panel)Component;
- MapPropertyToStyle("BackImageUrl", toDesign.BackImageUrl);
- MapPropertyToStyle("HorizontalAlign", toDesign.HorizontalAlign);
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: RegexEditorDialog
- *
- * Author: Gaurav Vaish
- * Maintainer: mastergaurav AT users DOT sf DOT net
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.Drawing;
-using System.ComponentModel;
-using System.Windows.Forms;
-using System.Windows.Forms.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class RegexEditorDialog : Form
- {
- private ISite site;
- private Container components;
- private bool isActivated;
- private bool sVal;
- private string regularExpression = String.Empty;
-
- private Button helpBtn;
- private Button testValBtn;
- private Button okBtn;
- private Button cancelBtn;
-
- private Label inputLabel;
- private Label testResultsLabel;
- private Label stdExprLabel;
- private Label exprLabel;
-
- private ListBox stdExprsList;
-
- private TextBox exprText;
- private TextBox sampleText;
-
- private GroupBox exprGrp;
-
- public RegexEditorDialog(ISite site) : base()
- {
- this.site = site;
- this.isActivated = false;
- this.sVal = false;
-
- InitializeComponents();
- }
-
- [MonoTODO]
- private void InitializeComponents()
- {
- components = new Container();
-
- helpBtn = new Button();
- testValBtn = new Button();
- okBtn = new Button();
- cancelBtn = new Button();
-
- inputLabel = new Label();
- testResultsLabel = new Label();
- stdExprLabel = new Label();
- exprLabel = new Label();
-
- stdExprsList = new ListBox();
-
- exprText = new TextBox();
- sampleText = new TextBox();
-
- exprGrp = new GroupBox();
-
- System.Drawing.Font cFont = System.Windows.Forms.Control.DefaultFont;
- IUIService service = (IUIService)site.GetService(typeof(IUIService));
- if(service != null)
- {
- cFont = (Font)(service.Styles["DialogFont"]);
- }
- throw new NotImplementedException();
- }
-
- public string RegularExpression
- {
- get
- {
- return regularExpression;
- }
- set
- {
- regularExpression = value;
- }
- }
-
- protected override void Dispose(bool disposing)
- {
- if(disposing)
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- [MonoTODO]
- private object[] CannedExpressions
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- private class CannedExpression
- {
- public string Description;
- public string Expression;
-
- public CannedExpression(string description, string expression)
- {
- Description = description;
- Expression = expression;
- }
-
- public override string ToString()
- {
- return Description;
- }
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: RegexTypeEditor
- *
- * Author: Gaurav Vaish
- * Maintainer: mastergaurav AT users DOT sf DOT net
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.ComponentModel;
-using System.Drawing.Design;
-using System.Web.UI.Design;
-using System.Windows.Forms.Design;
-using System.Windows.Forms;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class RegexTypeEditor : UITypeEditor
- {
- public RegexTypeEditor() : base()
- {
- }
-
- public override object EditValue(ITypeDescriptorContext context,
- IServiceProvider provider, object value)
- {
- if(provider != null)
- {
- IWindowsFormsEditorService winEdit = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService));
- ISite site = null;
- if(winEdit != null)
- {
- if(context.Instance is IComponent)
- {
- site = ((IComponent)context.Instance).Site;
- } else if(context.Instance is object[] &&
- ((object[])context.Instance)[0] is IComponent)
- {
- site = ((IComponent)(((object[])context.Instance)[0])).Site;
- }
- RegexEditorDialog dlg = new RegexEditorDialog(site);
- dlg.RegularExpression = value.ToString();
- DialogResult res = dlg.ShowDialog();
- if(res == DialogResult.OK)
- value = dlg.RegularExpression;
- }
- }
- return value;
- }
-
- public override UITypeEditorEditStyle GetEditStyle(
- ITypeDescriptorContext context)
- {
- return UITypeEditorEditStyle.Modal;
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: RepeaterDesigner
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.Collections;
-using System.Data;
-using System.Web.UI.WebControls;
-using System.Web.UI.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class RepeaterDesigner : ControlDesigner, IDataSourceProvider
- {
- private DataTable desTimeDataTable;
- private DataTable dummyDataTable;
- private Repeater repeater;
-
- public RepeaterDesigner()
- {
- }
-
- public string DataMember
- {
- get
- {
- return repeater.DataMember;
- }
- set
- {
- repeater.DataMember = value;
- }
- }
-
- public string DataSource
- {
- get
- {
- DataBinding db = DataBindings["DataSource"];
- if(db != null)
- return db.Expression;
- return String.Empty;
- }
- set
- {
- if(value == null || value.Length == 0)
- {
- DataBindings.Remove("DataSource");
- } else
- {
- DataBinding toSet = new DataBinding("DataSource",
- typeof(IEnumerable), value);
- toSet.Expression = value;
- DataBindings.Add(toSet);
- }
- OnDataSourceChanged();
- OnBindingsCollectionChanged("DataSource");
- }
- }
-
- public virtual void OnDataSourceChanged()
- {
- desTimeDataTable = null;
- }
-
- protected bool TemplateExists
- {
- get
- {
- return (repeater.ItemTemplate != null ||
- repeater.HeaderTemplate != null ||
- repeater.FooterTemplate != null ||
- repeater.AlternatingItemTemplate != null);
- }
- }
-
- protected IEnumerable GetDesignTimeDataSource(int minimumRows)
- {
- return GetDesignTimeDataSource(GetResolvedSelectedDataSource(),
- minimumRows);
- }
-
- protected IEnumerable GetDesignTimeDataSource(IEnumerable selectedDataSource,
- int minimumRows)
- {
- DataTable toDeploy = desTimeDataTable;
- if(toDeploy == null)
- {
- if(selectedDataSource != null)
- {
- desTimeDataTable = DesignTimeData.CreateSampleDataTable(
- selectedDataSource);
- toDeploy = desTimeDataTable;
- } else
- {
- if(dummyDataTable == null)
- dummyDataTable = DesignTimeData.CreateDummyDataTable();
- toDeploy = dummyDataTable;
- }
- }
- return DesignTimeData.GetDesignTimeDataSource(toDeploy,
- minimumRows);
- }
-
- protected override void Dispose(bool disposing)
- {
- if(disposing)
- repeater = null;
- base.Dispose(disposing);
- }
-
- public object GetSelectedDataSource()
- {
- object retVal = null;
- DataBinding db = DataBindings["DataSource"];
- if(db != null)
- {
- retVal = DesignTimeData.GetSelectedDataSource(repeater, db.Expression);
- }
- return retVal;
- }
-
- public virtual IEnumerable GetResolvedSelectedDataSource()
- {
- IEnumerable retVal = null;
- DataBinding db = DataBindings["DataSource"];
- if(db != null)
- {
- retVal = DesignTimeData.GetSelectedDataSource(repeater, db.Expression, DataMember);
- }
- return retVal;
- }
- }
-}
+++ /dev/null
-All Classes.
-Documented + Undocumented.
-
-<legends>
-*: Completed
-&: Work in progress. See <item-name>.cs file for maintainer's name
-</legends>
-
---------------------
- Documented Classes
---------------------
-
-* AdRotatorDesigner
-* BaseDataListComponentEditor
-& BaseDataListDesigner
-* BaseValidatorDesigner
-* ButtonDesigner
-& CalendarAutoFormatDialog
-& CalendarDesigner
-* CheckBoxDesigner
-DataGridColumnCollectionEditor
-DataGridComponentEditor
-DataGridDesigner
-& DataListComponentEditor
-DataListDesigner
-* HyperLinkDesigner
-* LabelDesigner
-* LinkButtonDesigner
-* ListControlDataBindingHandler
-ListControlDesigner
-ListItemsCollectionEditor
-* PanelDesigner
-* RegexTypeEditor
-* TableCellsCollectionEditor
-& TableDesigner
-& TableRowsCollectionEditor
-
-------------------------------------------------------
- Found new classes. Not documented in MSDN otherwise.
-------------------------------------------------------
-
-& RegexEditorDialog
-* RepeaterDesigner
-& XmlDesigner
\ No newline at end of file
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: TableCellsCollectionEditor
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.ComponentModel.Design;
-using System.Reflection;
-using System.Web.UI.WebControls;
-using System.Web.UI.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class TableCellsCollectionEditor : CollectionEditor
- {
- public TableCellsCollectionEditor(Type type) : base(type)
- {
- }
-
- protected override bool CanSelectMultipleInstances()
- {
- return false;
- }
-
- protected override object CreateInstance(Type itemType)
- {
- return Activator.CreateInstance(itemType, BindingFlags.Public |
- BindingFlags.CreateInstance |
- BindingFlags.Instance,
- null, null, null);
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: TableDesigner
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.Web;
-using System.Web.UI.WebControls;
-using System.Web.UI.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class TableDesigner : TextControlDesigner
- {
- public TableDesigner(): base()
- {
- }
-
- [MonoTODO]
- public override string GetDesignTimeHtml()
- {
- if(Component != null && Component is Table)
- {
- Table table = (Table) Component;
- throw new NotImplementedException();
- }
- return String.Empty;
- }
-
- [MonoTODO]
- public override string GetPersistInnerHtml()
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: TableRowsCollectionEditor
- *
- * Author: Gaurav Vaish
- * Maintainer: mastergaurav AT users DOT sf DOT net
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.ComponentModel.Design;
-using System.Reflection;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class TableRowsCollectionEditor : CollectionEditor
- {
- public TableRowsCollectionEditor(Type type) : base(type)
- {
- }
-
- protected override bool CanSelectMultipleInstances()
- {
- return false;
- }
-
- protected override object CreateInstance(Type itemType)
- {
- return Activator.CreateInstance(itemType,
- BindingFlags.CreateInstance |
- BindingFlags.Instance |
- BindingFlags.Public,
- null, null, null);
- }
- }
-}
+++ /dev/null
-
-//
-// 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.
-//
-/**
- * Namespace: System.Web.UI.Design.WebControls
- * Class: XmlDesigner
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
-
-using System;
-using System.ComponentModel;
-using System.Web.UI.WebControls;
-using System.Web.UI.Design;
-
-namespace System.Web.UI.Design.WebControls
-{
- public class XmlDesigner : ControlDesigner
- {
- private System.Web.UI.WebControls.Xml xml;
-
- public XmlDesigner()
- {
- }
-
- public override void Initialize(IComponent component)
- {
- if(component is System.Web.UI.WebControls.Xml)
- {
- xml = (System.Web.UI.WebControls.Xml)component;
- }
- base.Initialize(component);
- }
-
- public override string GetDesignTimeHtml()
- {
- return GetEmptyDesignTimeHtml();
- }
-
- [MonoTODO]
- protected override string GetEmptyDesignTimeHtml()
- {
- throw new NotImplementedException();
- }
-
- protected override void Dispose(bool disposing)
- {
- if(disposing)
- xml = null;
- base.Dispose(disposing);
- }
- }
-}