1 // 2 // System.Drawing.Design.ToolboxService 3 // 4 // Authors: 5 // Sebastien Pouliot <sebastien@ximian.com> 6 // 7 // Copyright (C) 2007 Novell, Inc (http://www.novell.com) 8 // 9 // Permission is hereby granted, free of charge, to any person obtaining 10 // a copy of this software and associated documentation files (the 11 // "Software"), to deal in the Software without restriction, including 12 // without limitation the rights to use, copy, modify, merge, publish, 13 // distribute, sublicense, and/or sell copies of the Software, and to 14 // permit persons to whom the Software is furnished to do so, subject to 15 // the following conditions: 16 // 17 // The above copyright notice and this permission notice shall be 18 // included in all copies or substantial portions of the Software. 19 // 20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 24 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 25 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 27 // 28 29 30 using System.Collections; 31 using System.ComponentModel.Design; 32 using System.Reflection; 33 using System.Windows.Forms; 34 35 namespace System.Drawing.Design { 36 37 public abstract class ToolboxService : IComponentDiscoveryService, IToolboxService { 38 39 [MonoTODO] ToolboxService()40 protected ToolboxService () 41 { 42 throw new NotImplementedException (); 43 } 44 45 46 protected abstract CategoryNameCollection CategoryNames { 47 get; 48 } 49 50 protected abstract string SelectedCategory { 51 get; 52 set; 53 } 54 55 protected abstract ToolboxItemContainer SelectedItemContainer { 56 get; 57 set; 58 } 59 60 [MonoTODO] CreateItemContainer(IDataObject dataObject)61 protected virtual ToolboxItemContainer CreateItemContainer (IDataObject dataObject) 62 { 63 throw new NotImplementedException (); 64 } 65 66 [MonoTODO] CreateItemContainer(ToolboxItem item, IDesignerHost link)67 protected virtual ToolboxItemContainer CreateItemContainer (ToolboxItem item, IDesignerHost link) 68 { 69 throw new NotImplementedException (); 70 } 71 72 [MonoTODO] FilterChanged()73 protected virtual void FilterChanged () 74 { 75 throw new NotImplementedException (); 76 } 77 GetItemContainers()78 protected abstract IList GetItemContainers (); 79 GetItemContainers(string categoryName)80 protected abstract IList GetItemContainers (string categoryName); 81 82 [MonoTODO] IsItemContainer(IDataObject dataObject, IDesignerHost host)83 protected virtual bool IsItemContainer (IDataObject dataObject, IDesignerHost host) 84 { 85 throw new NotImplementedException (); 86 } 87 88 [MonoTODO] IsItemContainerSupported(ToolboxItemContainer container, IDesignerHost host)89 protected bool IsItemContainerSupported (ToolboxItemContainer container, IDesignerHost host) 90 { 91 throw new NotImplementedException (); 92 } 93 Refresh()94 protected abstract void Refresh (); 95 96 [MonoTODO] SelectedItemContainerUsed()97 protected virtual void SelectedItemContainerUsed () 98 { 99 throw new NotImplementedException (); 100 } 101 102 [MonoTODO] SetCursor()103 protected virtual bool SetCursor () 104 { 105 throw new NotImplementedException (); 106 } 107 108 [MonoTODO] UnloadToolboxItems()109 public static void UnloadToolboxItems () 110 { 111 throw new NotImplementedException (); 112 } 113 114 115 [MonoTODO] GetToolboxItem(Type toolType)116 public static ToolboxItem GetToolboxItem (Type toolType) 117 { 118 throw new NotImplementedException (); 119 } 120 121 [MonoTODO] GetToolboxItem(Type toolType, bool nonPublic)122 public static ToolboxItem GetToolboxItem (Type toolType, bool nonPublic) 123 { 124 throw new NotImplementedException (); 125 } 126 127 [MonoTODO] GetToolboxItems(AssemblyName an)128 public static ICollection GetToolboxItems (AssemblyName an) 129 { 130 throw new NotImplementedException (); 131 } 132 133 [MonoTODO] GetToolboxItems(AssemblyName an, bool throwOnError)134 public static ICollection GetToolboxItems (AssemblyName an, bool throwOnError) 135 { 136 throw new NotImplementedException (); 137 } 138 139 [MonoTODO] GetToolboxItems(Assembly a, string newCodeBase)140 public static ICollection GetToolboxItems (Assembly a, string newCodeBase) 141 { 142 throw new NotImplementedException (); 143 } 144 145 [MonoTODO] GetToolboxItems(Assembly a, string newCodeBase, bool throwOnError)146 public static ICollection GetToolboxItems (Assembly a, string newCodeBase, bool throwOnError) 147 { 148 throw new NotImplementedException (); 149 } 150 151 // IComponentDiscoveryService 152 IComponentDiscoveryService.GetComponentTypes(IDesignerHost designerHost, Type baseType)153 ICollection IComponentDiscoveryService.GetComponentTypes (IDesignerHost designerHost, Type baseType) 154 { 155 throw new NotImplementedException (); 156 } 157 158 // IToolboxService 159 160 CategoryNameCollection IToolboxService.CategoryNames { 161 get { throw new NotImplementedException (); } 162 } 163 164 string IToolboxService.SelectedCategory { 165 get { throw new NotImplementedException (); } 166 set { throw new NotImplementedException (); } 167 } 168 169 IToolboxService.AddCreator(ToolboxItemCreatorCallback creator, string format)170 void IToolboxService.AddCreator (ToolboxItemCreatorCallback creator, string format) 171 { 172 throw new NotImplementedException (); 173 } 174 IToolboxService.AddCreator(ToolboxItemCreatorCallback creator, string format, IDesignerHost host)175 void IToolboxService.AddCreator (ToolboxItemCreatorCallback creator, string format, IDesignerHost host) 176 { 177 throw new NotImplementedException (); 178 } 179 IToolboxService.AddLinkedToolboxItem(ToolboxItem toolboxItem, IDesignerHost host)180 void IToolboxService.AddLinkedToolboxItem (ToolboxItem toolboxItem, IDesignerHost host) 181 { 182 throw new NotImplementedException (); 183 } 184 IToolboxService.AddLinkedToolboxItem(ToolboxItem toolboxItem, string category, IDesignerHost host)185 void IToolboxService.AddLinkedToolboxItem (ToolboxItem toolboxItem, string category, IDesignerHost host) 186 { 187 throw new NotImplementedException (); 188 } 189 IToolboxService.AddToolboxItem(ToolboxItem toolboxItem, String category)190 void IToolboxService.AddToolboxItem (ToolboxItem toolboxItem, String category) 191 { 192 throw new NotImplementedException (); 193 } 194 IToolboxService.AddToolboxItem(ToolboxItem toolboxItem)195 void IToolboxService.AddToolboxItem (ToolboxItem toolboxItem) 196 { 197 throw new NotImplementedException (); 198 } 199 IToolboxService.DeserializeToolboxItem(object serializedObject)200 ToolboxItem IToolboxService.DeserializeToolboxItem (object serializedObject) 201 { 202 throw new NotImplementedException (); 203 } 204 IToolboxService.DeserializeToolboxItem(object serializedObject, IDesignerHost host)205 ToolboxItem IToolboxService.DeserializeToolboxItem (object serializedObject, IDesignerHost host) 206 { 207 throw new NotImplementedException (); 208 } 209 IToolboxService.GetSelectedToolboxItem()210 ToolboxItem IToolboxService.GetSelectedToolboxItem () 211 { 212 throw new NotImplementedException (); 213 } 214 IToolboxService.GetSelectedToolboxItem(IDesignerHost host)215 ToolboxItem IToolboxService.GetSelectedToolboxItem (IDesignerHost host) 216 { 217 throw new NotImplementedException (); 218 } 219 IToolboxService.GetToolboxItems()220 ToolboxItemCollection IToolboxService.GetToolboxItems () 221 { 222 throw new NotImplementedException (); 223 } 224 IToolboxService.GetToolboxItems(IDesignerHost host)225 ToolboxItemCollection IToolboxService.GetToolboxItems (IDesignerHost host) 226 { 227 throw new NotImplementedException (); 228 } 229 IToolboxService.GetToolboxItems(String category)230 ToolboxItemCollection IToolboxService.GetToolboxItems (String category) 231 { 232 throw new NotImplementedException (); 233 } 234 IToolboxService.GetToolboxItems(String category, IDesignerHost host)235 ToolboxItemCollection IToolboxService.GetToolboxItems (String category, IDesignerHost host) 236 { 237 throw new NotImplementedException (); 238 } 239 IToolboxService.IsSupported(object serializedObject, ICollection filterAttributes)240 bool IToolboxService.IsSupported (object serializedObject, ICollection filterAttributes) 241 { 242 throw new NotImplementedException (); 243 } 244 IToolboxService.IsSupported(object serializedObject, IDesignerHost host)245 bool IToolboxService.IsSupported (object serializedObject, IDesignerHost host) 246 { 247 throw new NotImplementedException (); 248 } 249 IToolboxService.IsToolboxItem(object serializedObject)250 bool IToolboxService.IsToolboxItem (object serializedObject) 251 { 252 throw new NotImplementedException (); 253 } 254 IToolboxService.IsToolboxItem(object serializedObject, IDesignerHost host)255 bool IToolboxService.IsToolboxItem (object serializedObject, IDesignerHost host) 256 { 257 throw new NotImplementedException (); 258 } 259 IToolboxService.Refresh()260 void IToolboxService.Refresh () 261 { 262 throw new NotImplementedException (); 263 } 264 IToolboxService.RemoveCreator(string format)265 void IToolboxService.RemoveCreator (string format) 266 { 267 throw new NotImplementedException (); 268 } 269 IToolboxService.RemoveCreator(string format, IDesignerHost host)270 void IToolboxService.RemoveCreator (string format, IDesignerHost host) 271 { 272 throw new NotImplementedException (); 273 } 274 IToolboxService.RemoveToolboxItem(ToolboxItem toolboxItem)275 void IToolboxService.RemoveToolboxItem (ToolboxItem toolboxItem) 276 { 277 throw new NotImplementedException (); 278 } 279 IToolboxService.RemoveToolboxItem(ToolboxItem toolboxItem, string category)280 void IToolboxService.RemoveToolboxItem (ToolboxItem toolboxItem, string category) 281 { 282 throw new NotImplementedException (); 283 } 284 IToolboxService.SelectedToolboxItemUsed()285 void IToolboxService.SelectedToolboxItemUsed () 286 { 287 throw new NotImplementedException (); 288 } 289 IToolboxService.SerializeToolboxItem(ToolboxItem toolboxItem)290 object IToolboxService.SerializeToolboxItem (ToolboxItem toolboxItem) 291 { 292 throw new NotImplementedException (); 293 } 294 IToolboxService.SetCursor()295 bool IToolboxService.SetCursor () 296 { 297 throw new NotImplementedException (); 298 } 299 IToolboxService.SetSelectedToolboxItem(ToolboxItem toolboxItem)300 void IToolboxService.SetSelectedToolboxItem (ToolboxItem toolboxItem) 301 { 302 throw new NotImplementedException (); 303 } 304 } 305 } 306 307