AxImporter.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. using System;
  9. using System.IO;
  10. using System.Reflection;
  11. using System.Runtime.InteropServices;
  12. namespace System.Windows.Forms.Design
  13. {
  14. [MonoTODO]
  15. public class AxImporter
  16. {
  17. #region Public Instance Constructors
  18. [MonoTODO]
  19. public AxImporter (AxImporter.Options options)
  20. {
  21. this.options = options;
  22. }
  23. #endregion Public Instance Constructors
  24. #region Public Instance Properties
  25. [MonoTODO]
  26. public string[] GeneratedAssemblies
  27. {
  28. get
  29. {
  30. throw new NotImplementedException ();
  31. }
  32. }
  33. [MonoTODO]
  34. public string[] GeneratedSources
  35. {
  36. get
  37. {
  38. throw new NotImplementedException ();
  39. }
  40. }
  41. #endregion Public Instance Properties
  42. #region Public Instance Methods
  43. [MonoTODO]
  44. public TYPELIBATTR[] GeneratedTypeLibAttributes
  45. {
  46. get
  47. {
  48. throw new NotImplementedException ();
  49. }
  50. }
  51. [MonoTODO]
  52. public string GenerateFromFile (FileInfo file)
  53. {
  54. throw new NotImplementedException ();
  55. }
  56. [MonoTODO]
  57. public string GenerateFromTypeLibrary (UCOMITypeLib typeLib)
  58. {
  59. throw new NotImplementedException ();
  60. }
  61. [MonoTODO]
  62. public string GenerateFromTypeLibrary (UCOMITypeLib typeLib, Guid clsid)
  63. {
  64. throw new NotImplementedException ();
  65. }
  66. #endregion Public Instance Methods
  67. #region Public Static Methods
  68. [MonoTODO]
  69. public static string GetFileOfTypeLib (ref TYPELIBATTR tlibattr)
  70. {
  71. throw new NotImplementedException ();
  72. }
  73. #endregion Public Static Methods
  74. #region Internal Instance Fields
  75. internal AxImporter.Options options;
  76. #endregion Internal Instance Fields
  77. public sealed class Options
  78. {
  79. #region Public Instance Constructors
  80. public Options ()
  81. {
  82. }
  83. #endregion Public Instance Constructors
  84. #region Public Instance Fields
  85. public bool delaySign;
  86. public bool genSources;
  87. public string keyContainer;
  88. public string keyFile;
  89. public StrongNameKeyPair keyPair;
  90. public bool noLogo;
  91. public string outputDirectory;
  92. public string outputName;
  93. public bool overwriteRCW;
  94. public byte[] publicKey;
  95. public AxImporter.IReferenceResolver references;
  96. public bool silentMode;
  97. public bool verboseMode;
  98. #endregion Public Instance Fields
  99. }
  100. public interface IReferenceResolver
  101. {
  102. string ResolveActiveXReference (UCOMITypeLib typeLib);
  103. string ResolveComReference (AssemblyName name);
  104. string ResolveComReference (UCOMITypeLib typeLib);
  105. string ResolveManagedReference (string assemName);
  106. }
  107. }
  108. }