Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
//
// System.Web.UI.Design.WebControls.AdRotatorDesigner
//
// Author: Duncan Mak (duncan@novell.com)
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.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.Web.UI.Design;
namespace System.Web.UI.Design.WebControls {
public class AdRotatorDesigner : ControlDesigner
{
public AdRotatorDesigner ()
: base ()
{
}
public override string GetDesignTimeHtml ()
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,134 @@
//
// BaseDataBoundControlDesigner.cs
//
// Author:
// Marek Habersack <mhabersack@novell.com>
//
// (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Web.UI.WebControls;
namespace System.Web.UI.Design.WebControls
{
public abstract class BaseDataBoundControlDesigner : ControlDesigner
{
[MonoNotSupported ("")]
protected BaseDataBoundControlDesigner ()
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
public string DataSource {
[MonoNotSupported ("")]
get {
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
set {
throw new NotImplementedException ();
}
}
[MonoNotSupported ("")]
public string DataSourceID {
[MonoNotSupported ("")]
get {
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
set {
throw new NotImplementedException ();
}
}
[MonoNotSupported ("")]
protected override void Dispose (bool disposing)
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
public override string GetDesignTimeHtml ()
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
public override void Initialize (IComponent component)
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
public static DialogResult ShowCreateDataSourceDialog (ControlDesigner controlDesigner, Type dataSourceType,
bool configure, out string dataSourceID)
{
throw new NotImplementedException ();
}
protected abstract bool ConnectToDataSource ();
protected abstract void CreateDataSource ();
protected abstract void DataBind (BaseDataBoundControl dataBoundControl);
protected abstract void DisconnectFromDataSource ();
[MonoNotSupported ("")]
protected override string GetEmptyDesignTimeHtml ()
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
protected override string GetErrorDesignTimeHtml (Exception e)
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
protected virtual void OnDataSourceChanged (bool forceUpdateView)
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
protected virtual void OnSchemaRefreshed ()
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
protected override void PreFilterProperties (IDictionary properties)
{
throw new NotImplementedException ();
}
}
}
#endif

View File

@@ -0,0 +1,56 @@
//
// System.Web.UI.Design.WebControls.BaseDataListComponentEditor.cs
//
// Author: Duncan Mak (duncan@novell.com)
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.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.ComponentModel;
using System.Windows.Forms;
using System.Windows.Forms.Design;
namespace System.Web.UI.Design.WebControls {
public abstract class BaseDataListComponentEditor : WindowsFormsComponentEditor
{
int initial_page;
public BaseDataListComponentEditor (int initial_page)
{
this.initial_page = initial_page;
}
public override bool EditComponent (
ITypeDescriptorContext context,
object obj,
IWin32Window parent)
{
throw new NotImplementedException ();
}
protected override int GetInitialComponentEditorPageIndex ()
{
return initial_page;
}
}
}

View File

@@ -0,0 +1,148 @@
//
// System.Web.UI.Design.WebControls.BaseDataListDesigner.cs
//
// Author: Duncan Mak (duncan@novell.com)
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.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.Collections;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Data;
using System.Windows.Forms.Design;
namespace System.Web.UI.Design.WebControls {
public abstract class BaseDataListDesigner : TemplatedControlDesigner, IDataSourceProvider
{
string data_key_field;
string data_member;
string data_source;
public BaseDataListDesigner ()
: base ()
{
}
public string DataKeyField {
get { return data_key_field; }
set { data_key_field = value; }
}
public string DataMember {
get { return data_member; }
set { data_member = value; }
}
public string DataSource {
get { return data_source; }
set { data_source = value; }
}
public override bool DesignTimeHtmlRequiresLoadComplete {
get { throw new NotImplementedException (); }
}
public override DesignerVerbCollection Verbs {
get { throw new NotImplementedException (); }
}
protected override void Dispose (bool disposing)
{
throw new NotImplementedException ();
}
protected IEnumerable GetDesignTimeDataSource (
int minimum_rows,
out bool dummy_data_source)
{
throw new NotImplementedException ();
}
protected IEnumerable GetDesignTimeDataSource (
IEnumerable selected_data_source,
int minimum_rows,
out bool dummy_data_source)
{
throw new NotImplementedException ();
}
public virtual IEnumerable GetResolvedSelectedDataSource ()
{
throw new NotImplementedException ();
}
public virtual object GetSelectedDataSource ()
{
throw new NotImplementedException ();
}
public override IEnumerable GetTemplateContainerDataSource (string template_name)
{
throw new NotImplementedException ();
}
public override void Initialize (IComponent component)
{
throw new NotImplementedException ();
}
protected internal void InvokePropertyBuilder (int initial_page)
{
throw new NotImplementedException ();
}
protected void OnAutoFormat (object sender, EventArgs e)
{
throw new NotImplementedException ();
}
public override void OnComponentChanged (object sender, ComponentChangedEventArgs e)
{
throw new NotImplementedException ();
}
protected internal virtual void OnDataSourceChanged ()
{
throw new NotImplementedException ();
}
protected void OnPropertyBuilder (object sender, EventArgs e)
{
throw new NotImplementedException ();
}
protected internal void OnStylesChanged ()
{
throw new NotImplementedException ();
}
protected abstract void OnTemplateEditingVerbsChanged ();
protected override void PreFilterProperties (IDictionary properties)
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,45 @@
//
// System.Web.UI.Design.WebControls.BaseValidatorDesigner.cs
//
// Author: Duncan Mak (duncan@novell.com)
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.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.ComponentModel;
using System.Windows.Forms.Design;
namespace System.Web.UI.Design.WebControls {
public class BaseValidatorDesigner : ControlDesigner
{
public BaseValidatorDesigner ()
: base ()
{
}
public override string GetDesignTimeHtml ()
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,45 @@
//
// System.Web.UI.Design.WebControls.ButtonDesigner.cs
//
// Author: Duncan Mak (duncan@novell.com)
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.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.ComponentModel;
using System.Windows.Forms.Design;
namespace System.Web.UI.Design.WebControls {
public class ButtonDesigner : ControlDesigner
{
public ButtonDesigner ()
: base ()
{
}
public override string GetDesignTimeHtml ()
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,61 @@
//
// System.Web.UI.Design.WebControls.CalendarAutoFormatDialog.cs
//
// Author: Duncan Mak (duncan@novell.com)
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.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.Windows.Forms;
using System.Windows.Forms.Design;
using System.Web.UI.WebControls;
namespace System.Web.UI.Design.WebControls {
public class CalendarAutoFormatDialog : Form
{
public CalendarAutoFormatDialog (Calendar calendar)
{
throw new NotImplementedException ();
}
protected void OnDelayLoadActions ()
{
throw new NotImplementedException ();
}
protected void OnActivated (object source, EventArgs e)
{
throw new NotImplementedException ();
}
protected void OnOKClicked (object source, EventArgs e)
{
throw new NotImplementedException ();
}
protected void OnSelChangedScheme (object source, EventArgs e)
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,55 @@
//
// System.Web.UI.Design.WebControls.CalendarDesigner.cs
//
// Author: Duncan Mak (duncan@novell.com)
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.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.ComponentModel;
using System.ComponentModel.Design;
using System.Windows.Forms.Design;
namespace System.Web.UI.Design.WebControls {
public class CalendarDesigner : ControlDesigner
{
public CalendarDesigner ()
: base ()
{
}
public override DesignerVerbCollection Verbs {
get { throw new NotImplementedException (); }
}
public override void Initialize (IComponent component)
{
throw new NotImplementedException ();
}
protected void OnAutoFormat (object sender, EventArgs e)
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,59 @@
2010-01-21 Marek Habersack <mhabersack@novell.com>
* HierarchicalDataBoundControlDesigner.cs: added
2009-05-26 Marek Habersack <mhabersack@novell.com>
* ListControlDesigner.cs: updated to match MSDN specs, added 2.0
methods. Used in the latest AjaxControlToolkit.
2008-06-15 Noam Lampert <noaml@mainsoft.com>
* CompositeControlDesigner.cs: Add stubs.
2008-05-14 Marek Habersack <mhabersack@novell.com>
* DataSourceIDConverter.cs: added
2007-09-27 Marek Habersack <mhabersack@novell.com>
* DataBoundControlDesigner.cs: TemplateGroups moved to
ControlDesigner.
2007-09-25 Marek Habersack <mhabersack@novell.com>
* DataBoundControlDesigner.cs: added
2005-10-25 Chris Toshok <toshok@ximian.com>
* DataProviderNameConverter.cs: new implementation.
2005-07-08 Duncan Mak <duncan@novell.com>
* BaseDataListComponentEditor.cs:
* BaseDataListDesigner.cs:
* BaseValidatorDesigner.cs:
* ButtonDesigner.cs:
* CalendarAutoFormatDialog.cs:
* CalendarDesigner.cs:
* CheckBoxDesigner.cs:
* DataGridColumnCollectionEditor.cs:
* DataGridComponentEditor.cs:
* DataGridDesigner.cs:
* DataListComponentEditor.cs:
* DataListDesigner.cs:
* HyperLinkDesigner.cs:
* LabelDesigner.cs:
* LinkButtonDesigner.cs:
* ListControlDataBindingHandler.cs:
* ListControlDesigner.cs:
* ListItemsCollectionEditor.cs:
* PanelDesigner.cs:
* RegexEditorDialog.cs:
* RegexTypeEditor.cs:
* RepeaterDesigner.cs:
* TableCellsCollectionEditor.cs:
* TableDesigner.cs:
* TableRowsCollectionEditor.cs:
* XmlDesigner.cs: Added stubs.

View File

@@ -0,0 +1,45 @@
//
// System.Web.UI.Design.WebControls.CheckBoxDesigner.cs
//
// Author: Duncan Mak (duncan@novell.com)
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.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.ComponentModel;
using System.Windows.Forms.Design;
namespace System.Web.UI.Design.WebControls {
public class CheckBoxDesigner : ControlDesigner
{
public CheckBoxDesigner ()
: base ()
{
}
public override string GetDesignTimeHtml ()
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,63 @@
//
// BaseDataBoundControlDesigner.cs
//
// Author:
// Noam Lampert <noaml@mainsoft.com>
//
// (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace System.Web.UI.Design.WebControls
{
class CompositeControlDesigner : ControlDesigner
{
public CompositeControlDesigner () {
throw new NotImplementedException ();
}
protected virtual void CreateChildControls () {
throw new NotImplementedException ();
}
public override string GetDesignTimeHtml () {
throw new NotImplementedException ();
}
public virtual string GetDesignTimeHtml (DesignerRegionCollection regions) {
throw new NotImplementedException ();
}
public override void Initialize (IComponent component) {
throw new NotImplementedException ();
}
}
}
#endif

View File

@@ -0,0 +1,181 @@
//
// DataBoundControlDesigner.cs
//
// Author:
// Marek Habersack <mhabersack@novell.com>
//
// (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System;
using System.Collections;
using System.ComponentModel.Design;
using System.Web.UI.WebControls;
namespace System.Web.UI.Design.WebControls
{
public class DataBoundControlDesigner : BaseDataBoundControlDesigner, IDataBindingSchemaProvider, IDataSourceProvider
{
[MonoNotSupported ("")]
public DataBoundControlDesigner ()
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
public override DesignerActionListCollection ActionLists {
[MonoNotSupported ("")]
get {
throw new NotImplementedException ();
}
}
[MonoNotSupported ("")]
public string DataMember {
[MonoNotSupported ("")]
get {
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
set {
throw new NotImplementedException ();
}
}
[MonoNotSupported ("")]
public IDataSourceDesigner DataSourceDesigner {
[MonoNotSupported ("")]
get {
throw new NotImplementedException ();
}
}
[MonoNotSupported ("")]
public DesignerDataSourceView DesignerView {
[MonoNotSupported ("")]
get {
throw new NotImplementedException ();
}
}
[MonoNotSupported ("")]
protected virtual int SampleRowCount {
[MonoNotSupported ("")]
get {
throw new NotImplementedException ();
}
}
[MonoNotSupported ("")]
protected virtual bool UseDataSourcePickerActionList {
[MonoNotSupported ("")]
get {
throw new NotImplementedException ();
}
}
[MonoNotSupported ("")]
protected override void Dispose (bool disposing)
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
protected override bool ConnectToDataSource ()
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
protected override void CreateDataSource ()
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
protected override void DataBind (BaseDataBoundControl dataBoundControl)
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
protected override void DisconnectFromDataSource ()
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
protected virtual IEnumerable GetDesignTimeDataSource ()
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
protected virtual IEnumerable GetSampleDataSource ()
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
protected override void PreFilterProperties (IDictionary properties)
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
void IDataBindingSchemaProvider.RefreshSchema (bool preferSilent)
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
IEnumerable IDataSourceProvider.GetResolvedSelectedDataSource ()
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
Object IDataSourceProvider.GetSelectedDataSource ()
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
bool IDataBindingSchemaProvider.CanRefreshSchema {
[MonoNotSupported ("")]
get {
throw new NotImplementedException ();
}
}
[MonoNotSupported ("")]
IDataSourceViewSchema IDataBindingSchemaProvider.Schema {
get {
throw new NotImplementedException ();
}
}
}
}
#endif

View File

@@ -0,0 +1,59 @@
//
// System.Web.UI.Design.WebControls.DataListComponentEditor.cs
//
// Author: Duncan Mak (duncan@novell.com)
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.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.ComponentModel;
using System.Windows.Forms;
using System.Windows.Forms.Design;
namespace System.Web.UI.Design.WebControls {
public class DataListComponentEditor : BaseDataListComponentEditor
{
public DataListComponentEditor ()
: base (0)
{
}
public DataListComponentEditor (int initial_page)
: base (initial_page)
{
}
public override bool EditComponent (
ITypeDescriptorContext context,
object obj,
IWin32Window parent)
{
throw new NotImplementedException ();
}
protected override Type [] GetComponentEditorPages ()
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,67 @@
//
// System.Web.UI.Design.WebControls.DataProviderNameConverter.cs
//
// Author:
// Chris Toshok (toshok@ximian.com)
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.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.
//
#if NET_2_0
using System.ComponentModel;
using System.Windows.Forms.Design;
using System.Data.Common;
using System.Data;
namespace System.Web.UI.Design.WebControls {
public class DataProviderNameConverter : StringConverter
{
public override StandardValuesCollection GetStandardValues (ITypeDescriptorContext context)
{
DataTable table = DbProviderFactories.GetFactoryClasses();
if (table == null)
return new StandardValuesCollection (new string[0]);
string[] names = new string[table.Rows.Count];
int i = 0;
foreach (DataRow row in table.Rows) {
names[i++] = (string)row ["Name"];
}
return new StandardValuesCollection (names);
}
public override bool GetStandardValuesExclusive (ITypeDescriptorContext context)
{
return true;
}
public override bool GetStandardValuesSupported (ITypeDescriptorContext context)
{
return false;
}
}
}
#endif

View File

@@ -0,0 +1,83 @@
//
// BaseDataBoundControlDesigner.cs
//
// Author:
// Marek Habersack <mhabersack@novell.com>
//
// (C) 2008 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System;
using System.ComponentModel;
using System.Globalization;
namespace System.Web.UI.Design.WebControls
{
public class DataSourceIDConverter : TypeConverter
{
public DataSourceIDConverter ()
{
}
public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType)
{
return sourceType == typeof (string);
}
public override object ConvertFrom (ITypeDescriptorContext context, CultureInfo culture, object value)
{
if (value == null)
return String.Empty;
if (value is string)
return (string)value;
throw GetConvertFromException (value);
}
[MonoTODO]
public override TypeConverter.StandardValuesCollection GetStandardValues (ITypeDescriptorContext context)
{
throw new NotImplementedException ();
}
public override bool GetStandardValuesExclusive (ITypeDescriptorContext context)
{
return false;
}
public override bool GetStandardValuesSupported (ITypeDescriptorContext context)
{
return true;
}
protected virtual bool IsValidDataSource (IComponent component)
{
if (component == null)
return false;
return component is IDataSource;
}
}
}
#endif

View File

@@ -0,0 +1,94 @@
//
// Authors:
// Marek Habersack <mhabersack@novell.com>
//
// Copyright (C) 2010 Novell, Inc (http://novell.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.Collections;
using System.ComponentModel.Design;
using System.Web.UI;
using System.Web.UI.Design;
using System.Web.UI.WebControls;
namespace System.Web.UI.Design.WebControls
{
public class HierarchicalDataBoundControlDesigner : BaseDataBoundControlDesigner
{
public override DesignerActionListCollection ActionLists {
get { throw new NotImplementedException (); }
}
public IHierarchicalDataSourceDesigner DataSourceDesigner {
get { throw new NotImplementedException (); }
}
public DesignerHierarchicalDataSourceView DesignerView {
get { throw new NotImplementedException (); }
}
protected virtual bool UseDataSourcePickerActionList {
get { throw new NotImplementedException (); }
}
public HierarchicalDataBoundControlDesigner ()
{
}
protected override bool ConnectToDataSource ()
{
throw new NotImplementedException ();
}
protected override void CreateDataSource ()
{
throw new NotImplementedException ();
}
protected override void DataBind (BaseDataBoundControl dataBoundControl)
{
throw new NotImplementedException ();
}
protected override void DisconnectFromDataSource ()
{
throw new NotImplementedException ();
}
protected virtual IHierarchicalEnumerable GetDesignTimeDataSource ()
{
throw new NotImplementedException ();
}
protected virtual IHierarchicalEnumerable GetSampleDataSource ()
{
throw new NotImplementedException ();
}
protected override void PreFilterProperties (IDictionary properties)
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,45 @@
//
// System.Web.UI.Design.WebControls.HyperLinkDesigner.cs
//
// Author: Duncan Mak (duncan@novell.com)
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.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.ComponentModel;
using System.Windows.Forms.Design;
namespace System.Web.UI.Design.WebControls {
public class HyperLinkDesigner : TextControlDesigner
{
public HyperLinkDesigner ()
: base ()
{
}
public override string GetDesignTimeHtml ()
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,40 @@
//
// System.Web.UI.Design.WebControls.LabelDesigner.cs
//
// Author: Duncan Mak (duncan@novell.com)
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.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.ComponentModel;
using System.Windows.Forms.Design;
namespace System.Web.UI.Design.WebControls {
public class LabelDesigner : TextControlDesigner
{
public LabelDesigner ()
: base ()
{
}
}
}

View File

@@ -0,0 +1,40 @@
//
// System.Web.UI.Design.WebControls.LinkButtonDesigner.cs
//
// Author: Duncan Mak (duncan@novell.com)
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.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.ComponentModel;
using System.Windows.Forms.Design;
namespace System.Web.UI.Design.WebControls {
public class LinkButtonDesigner : TextControlDesigner
{
public LinkButtonDesigner ()
: base ()
{
}
}
}

View File

@@ -0,0 +1,46 @@
//
// System.Web.UI.Design.WebControls.ListControlDataBindingHandler.cs
//
// Author: Duncan Mak (duncan@novell.com)
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.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.ComponentModel;
using System.ComponentModel.Design;
using System.Windows.Forms;
namespace System.Web.UI.Design.WebControls {
public class ListControlDataBindingHandler : DataBindingHandler
{
public ListControlDataBindingHandler ()
{
throw new NotImplementedException ();
}
public override void DataBindControl (IDesignerHost designer_host, Control control)
{
throw new NotImplementedException ();
}
}
}

Some files were not shown because too many files have changed in this diff Show More