~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/DisplayBindings/FormsDesigner/Project/Src/DesignerGenerator/IDesignerGenerator.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)
 
3
 
 
4
using System;
 
5
using System.CodeDom;
 
6
using System.CodeDom.Compiler;
 
7
using System.Collections;
 
8
using System.Collections.Generic;
 
9
using System.ComponentModel;
 
10
using System.Reflection;
 
11
 
 
12
using ICSharpCode.SharpDevelop;
 
13
 
 
14
namespace ICSharpCode.FormsDesigner
 
15
{
 
16
        public interface IDesignerGenerator
 
17
        {
 
18
                CodeDomProvider CodeDomProvider {
 
19
                        get;
 
20
                }
 
21
                void Attach(FormsDesignerViewContent viewContent);
 
22
                void Detach();
 
23
                FormsDesignerViewContent ViewContent { get; }
 
24
                /// <summary>
 
25
                /// Gets the collection of OpenedFiles that contain code which belongs
 
26
                /// to the designed form, not including resource files.
 
27
                /// </summary>
 
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);
 
36
        }
 
37
}