2 // System.Web.UI.WebControls.WebParts.EditorPart.cs
5 // Chris Toshok (toshok@ximian.com)
7 // (C) 2006 Novell, Inc (http://www.novell.com)
10 // Permission is hereby granted, free of charge, to any person obtaining
11 // a copy of this software and associated documentation files (the
12 // "Software"), to deal in the Software without restriction, including
13 // without limitation the rights to use, copy, modify, merge, publish,
14 // distribute, sublicense, and/or sell copies of the Software, and to
15 // permit persons to whom the Software is furnished to do so, subject to
16 // the following conditions:
18 // The above copyright notice and this permission notice shall be
19 // included in all copies or substantial portions of the Software.
21 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 using System.Collections;
33 using System.ComponentModel;
35 namespace System.Web.UI.WebControls.WebParts
38 [BindableAttribute(false)]
39 [Designer ("System.Web.UI.Design.WebControls.WebParts.EditorPartDesigner, " + Consts.AssemblySystem_Design, "System.ComponentModel.Design.IDesigner")]
40 public abstract class EditorPart : Part
43 WebPart webPartToEdit;
45 WebPartManager manager;
52 protected EditorPart() {}
54 public abstract bool ApplyChanges ();
56 protected override IDictionary GetDesignModeState ()
58 throw new NotImplementedException ();
61 protected internal override void OnPreRender (EventArgs e)
64 throw new InvalidOperationException();
70 protected override void SetDesignModeState (IDictionary data)
72 EditorZoneBase stateZone = data["Zone"] as EditorZoneBase;
77 public abstract void SyncChanges ();
80 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
81 public virtual bool Display {
88 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
89 public string DisplayTitle {
90 get { return displayTitle; }
94 protected WebPartManager WebPartManager {
95 get { throw new NotImplementedException (); }
99 protected WebPart WebPartToEdit {
100 get { return webPartToEdit; }
104 protected EditorZoneBase Zone {
105 get { throw new NotImplementedException (); }