2 // System.Windows.Forms.Design.AxImporter.cs
5 // Dennis Hayes (dennish@raytek.com)
6 // (C) 2002 Ximian, Inc. http://www.ximian.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.Reflection;
33 using System.Runtime.InteropServices;
35 namespace System.Windows.Forms.Design
38 public class AxImporter
40 #region Public Instance Constructors
43 public AxImporter (AxImporter.Options options)
45 this.options = options;
48 #endregion Public Instance Constructors
50 #region Public Instance Properties
53 public string[] GeneratedAssemblies
57 throw new NotImplementedException ();
62 public string[] GeneratedSources
66 throw new NotImplementedException ();
70 #endregion Public Instance Properties
72 #region Public Instance Methods
75 public TYPELIBATTR[] GeneratedTypeLibAttributes
79 throw new NotImplementedException ();
84 public string GenerateFromFile (FileInfo file)
86 throw new NotImplementedException ();
90 public string GenerateFromTypeLibrary (UCOMITypeLib typeLib)
92 throw new NotImplementedException ();
96 public string GenerateFromTypeLibrary (UCOMITypeLib typeLib, Guid clsid)
98 throw new NotImplementedException ();
101 #endregion Public Instance Methods
103 #region Public Static Methods
106 public static string GetFileOfTypeLib (ref TYPELIBATTR tlibattr)
108 throw new NotImplementedException ();
111 #endregion Public Static Methods
113 #region Internal Instance Fields
115 internal AxImporter.Options options;
117 #endregion Internal Instance Fields
119 public sealed class Options
121 #region Public Instance Constructors
127 #endregion Public Instance Constructors
129 #region Public Instance Fields
131 public bool delaySign;
132 public bool genSources;
133 public string keyContainer;
134 public string keyFile;
135 public StrongNameKeyPair keyPair;
138 public string outputDirectory;
139 public string outputName;
140 public bool overwriteRCW;
141 public byte[] publicKey;
142 public AxImporter.IReferenceResolver references;
143 public bool silentMode;
144 public bool verboseMode;
146 #endregion Public Instance Fields
149 public interface IReferenceResolver
151 string ResolveActiveXReference (UCOMITypeLib typeLib);
152 string ResolveComReference (AssemblyName name);
153 string ResolveComReference (UCOMITypeLib typeLib);
154 string ResolveManagedReference (string assemName);