New test.
[mono.git] / mcs / class / System.Design / System.Windows.Forms.Design / AxImporter.cs
1 //
2 // System.Windows.Forms.Design.AxImporter.cs
3 //
4 // Author:
5 //   Dennis Hayes (dennish@raytek.com)
6 // (C) 2002 Ximian, Inc.  http://www.ximian.com
7 //
8
9 //
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:
17 // 
18 // The above copyright notice and this permission notice shall be
19 // included in all copies or substantial portions of the Software.
20 // 
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.
28 //
29
30 using System;
31 using System.IO;
32 using System.Reflection;
33 using System.Runtime.InteropServices;
34
35 namespace System.Windows.Forms.Design
36 {
37         [MonoTODO]
38         public class AxImporter
39         {
40                 #region Public Instance Constructors
41
42                 [MonoTODO]
43                 public AxImporter (AxImporter.Options options)
44                 {
45                         this.options = options;
46                 }
47
48                 #endregion Public Instance Constructors
49
50                 #region Public Instance Properties
51
52                 [MonoTODO]
53                 public string[] GeneratedAssemblies
54                 {
55                         get
56                         {
57                                 throw new NotImplementedException ();
58                         }
59                 }
60
61                 [MonoTODO]
62                 public string[] GeneratedSources
63                 {
64                         get
65                         {
66                                 throw new NotImplementedException ();
67                         }
68                 }
69
70                 #endregion Public Instance Properties
71
72                 #region Public Instance Methods
73
74                 [MonoTODO]
75                 public TYPELIBATTR[] GeneratedTypeLibAttributes
76                 {
77                         get
78                         {
79                                 throw new NotImplementedException ();
80                         }
81                 }
82
83                 [MonoTODO]
84                 public string GenerateFromFile (FileInfo file)
85                 {
86                         throw new NotImplementedException ();
87                 }
88
89                 [MonoTODO]
90                 public string GenerateFromTypeLibrary (UCOMITypeLib typeLib)
91                 {
92                         throw new NotImplementedException ();
93                 }
94
95                 [MonoTODO]
96                 public string GenerateFromTypeLibrary (UCOMITypeLib typeLib, Guid clsid)
97                 {
98                         throw new NotImplementedException ();
99                 }
100
101                 #endregion Public Instance Methods
102
103                 #region Public Static Methods
104
105                 [MonoTODO]
106                 public static string GetFileOfTypeLib (ref TYPELIBATTR tlibattr)
107                 {
108                         throw new NotImplementedException ();
109                 }
110
111                 #endregion Public Static Methods
112
113                 #region Internal Instance Fields
114
115                 internal AxImporter.Options options;
116
117                 #endregion Internal Instance Fields
118
119                 public sealed class Options
120                 {
121                         #region Public Instance Constructors
122
123                         public Options ()
124                         {
125                         }
126
127                         #endregion Public Instance Constructors
128
129                         #region Public Instance Fields
130
131                         public bool delaySign;
132                         public bool genSources;
133                         public string keyContainer;
134                         public string keyFile;
135                         public StrongNameKeyPair keyPair;
136
137                         public bool noLogo;
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;
145
146                         #endregion Public Instance Fields
147                 }
148
149                 public interface IReferenceResolver
150                 {
151                         string ResolveActiveXReference (UCOMITypeLib typeLib);
152                         string ResolveComReference (AssemblyName name);
153                         string ResolveComReference (UCOMITypeLib typeLib);
154                         string ResolveManagedReference (string assemName);
155                 }
156         }
157 }