1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
6
using System.CodeDom.Compiler;
7
using System.Collections;
8
using System.Collections.Generic;
9
using System.ComponentModel;
10
using System.Reflection;
12
using ICSharpCode.SharpDevelop;
14
namespace ICSharpCode.FormsDesigner
16
public interface IDesignerGenerator
18
CodeDomProvider CodeDomProvider {
21
void Attach(FormsDesignerViewContent viewContent);
23
FormsDesignerViewContent ViewContent { get; }
25
/// Gets the collection of OpenedFiles that contain code which belongs
26
/// to the designed form, not including resource files.
28
/// <param name="designerCodeFile">Receives the file which contains the code to be modified by the forms designer.</param>
29
/// <returns>A collection of OpenedFiles that contain code which belongs to the designed form.</returns>
30
/// <remarks>The returned collection must include the <paramref name="designerCodeFile"/>.</remarks>
31
IEnumerable<OpenedFile> GetSourceFiles(out OpenedFile designerCodeFile);
32
void MergeFormChanges(CodeCompileUnit unit);
33
bool InsertComponentEvent(IComponent component, EventDescriptor edesc, string eventMethodName, string body, out string file, out int position);
34
ICollection GetCompatibleMethods(EventDescriptor edesc);
35
void NotifyComponentRenamed(object component, string newName, string oldName);