AxImporter.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. //
  2. // System.Windows.Forms.Design.AxImporter.cs
  3. //
  4. // Author:
  5. // Dennis Hayes ([email protected])
  6. // (C) 2002 Ximian, Inc. http://www.ximian.com
  7. //
  8. //
  9. // Permission is hereby granted, free of charge, to any person obtaining
  10. // a copy of this software and associated documentation files (the
  11. // "Software"), to deal in the Software without restriction, including
  12. // without limitation the rights to use, copy, modify, merge, publish,
  13. // distribute, sublicense, and/or sell copies of the Software, and to
  14. // permit persons to whom the Software is furnished to do so, subject to
  15. // the following conditions:
  16. //
  17. // The above copyright notice and this permission notice shall be
  18. // included in all copies or substantial portions of the Software.
  19. //
  20. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  23. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  24. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  25. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  26. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  27. //
  28. using System;
  29. using System.IO;
  30. using System.Reflection;
  31. using System.Runtime.InteropServices;
  32. namespace System.Windows.Forms.Design
  33. {
  34. [MonoTODO]
  35. public class AxImporter
  36. {
  37. #region Public Instance Constructors
  38. [MonoTODO]
  39. public AxImporter (AxImporter.Options options)
  40. {
  41. this.options = options;
  42. }
  43. #endregion Public Instance Constructors
  44. #region Public Instance Properties
  45. [MonoTODO]
  46. public string[] GeneratedAssemblies
  47. {
  48. get
  49. {
  50. throw new NotImplementedException ();
  51. }
  52. }
  53. [MonoTODO]
  54. public string[] GeneratedSources
  55. {
  56. get
  57. {
  58. throw new NotImplementedException ();
  59. }
  60. }
  61. #endregion Public Instance Properties
  62. #region Public Instance Methods
  63. [MonoTODO]
  64. public TYPELIBATTR[] GeneratedTypeLibAttributes
  65. {
  66. get
  67. {
  68. throw new NotImplementedException ();
  69. }
  70. }
  71. [MonoTODO]
  72. public string GenerateFromFile (FileInfo file)
  73. {
  74. throw new NotImplementedException ();
  75. }
  76. [MonoTODO]
  77. public string GenerateFromTypeLibrary (UCOMITypeLib typeLib)
  78. {
  79. throw new NotImplementedException ();
  80. }
  81. [MonoTODO]
  82. public string GenerateFromTypeLibrary (UCOMITypeLib typeLib, Guid clsid)
  83. {
  84. throw new NotImplementedException ();
  85. }
  86. #endregion Public Instance Methods
  87. #region Public Static Methods
  88. [MonoTODO]
  89. public static string GetFileOfTypeLib (ref TYPELIBATTR tlibattr)
  90. {
  91. throw new NotImplementedException ();
  92. }
  93. #endregion Public Static Methods
  94. #region Internal Instance Fields
  95. internal AxImporter.Options options;
  96. #endregion Internal Instance Fields
  97. public sealed class Options
  98. {
  99. #region Public Instance Constructors
  100. public Options ()
  101. {
  102. }
  103. #endregion Public Instance Constructors
  104. #region Public Instance Fields
  105. public bool delaySign;
  106. public bool genSources;
  107. public string keyContainer;
  108. public string keyFile;
  109. public StrongNameKeyPair keyPair;
  110. public bool noLogo;
  111. public string outputDirectory;
  112. public string outputName;
  113. public bool overwriteRCW;
  114. public byte[] publicKey;
  115. public AxImporter.IReferenceResolver references;
  116. public bool silentMode;
  117. public bool verboseMode;
  118. #endregion Public Instance Fields
  119. }
  120. public interface IReferenceResolver
  121. {
  122. string ResolveActiveXReference (UCOMITypeLib typeLib);
  123. string ResolveComReference (AssemblyName name);
  124. string ResolveComReference (UCOMITypeLib typeLib);
  125. string ResolveManagedReference (string assemName);
  126. }
  127. }
  128. }