TemplateEditingService.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //
  2. // System.Web.UI.Design.TemplateEditingService
  3. //
  4. // Authors:
  5. // Gert Driesen ([email protected])
  6. //
  7. // (C) 2004 Novell
  8. //
  9. using System.Web.UI.WebControls;
  10. using System.ComponentModel.Design;
  11. namespace System.Web.UI.Design
  12. {
  13. public sealed class TemplateEditingService : ITemplateEditingService, IDisposable
  14. {
  15. public TemplateEditingService (IDesignerHost designerHost)
  16. {
  17. if (designerHost == null)
  18. throw new ArgumentNullException ("designerHost");
  19. _designerHost = designerHost;
  20. }
  21. ~TemplateEditingService ()
  22. {
  23. Dispose (false);
  24. }
  25. [MonoTODO]
  26. public ITemplateEditingFrame CreateFrame (TemplatedControlDesigner designer, string frameName, string[] templateNames)
  27. {
  28. return CreateFrame (designer, frameName, templateNames, null, null);
  29. }
  30. [MonoTODO]
  31. public ITemplateEditingFrame CreateFrame (TemplatedControlDesigner designer, string frameName, string[] templateNames, Style controlStyle, Style[] templateStyles)
  32. {
  33. throw new NotImplementedException ();
  34. }
  35. public void Dispose ()
  36. {
  37. Dispose (true);
  38. GC.SuppressFinalize (this);
  39. }
  40. private void Dispose (bool disposing)
  41. {
  42. if (disposing)
  43. _designerHost = null;
  44. }
  45. [MonoTODO]
  46. public string GetContainingTemplateName (Control control)
  47. {
  48. throw new NotImplementedException ();
  49. }
  50. public bool SupportsNestedTemplateEditing {
  51. get {
  52. return false;
  53. }
  54. }
  55. private IDesignerHost _designerHost;
  56. }
  57. }