/Contracts/Sinks/DocumentSinks.cs

http://solidworks.codeplex.com · C# · 514 lines · 440 code · 74 blank · 0 comment · 6 complexity · 7748834dce2e35a0ee1d5a464edf9bfc MD5 · raw file

  1. using System;
  2. using System.Linq;
  3. using System.Text;
  4. using System.Collections.Generic;
  5. using System.Runtime.InteropServices;
  6. using System.Runtime.InteropServices.ComTypes;
  7. using System.Runtime.CompilerServices;
  8. using System.Text;
  9. using System.IO;
  10. using System.Reflection;
  11. using System.Reflection.Emit;
  12. using System.Windows.Forms;
  13. using SolidWorks.Interop.sldworks;
  14. namespace SwAddinHelpers.Sinks
  15. {
  16. [ComImport, TypeLibType((short)0x1010), InterfaceType((short)2), Guid("83A33D32-37C5-11CE-BFD4-00400513BB57")]
  17. public interface DPartDocEvents
  18. {
  19. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)]
  20. int RegenNotify();
  21. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)]
  22. int DestroyNotify();
  23. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)]
  24. int RegenPostNotify();
  25. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)]
  26. int ViewNewNotify();
  27. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)]
  28. int NewSelectionNotify();
  29. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)]
  30. int FileSaveNotify([MarshalAs(UnmanagedType.BStr)] string FileName);
  31. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)]
  32. int FileSaveAsNotify([MarshalAs(UnmanagedType.BStr)] string FileName);
  33. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(8)]
  34. int LoadFromStorageNotify();
  35. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(9)]
  36. int SaveToStorageNotify();
  37. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)]
  38. int ActiveConfigChangeNotify();
  39. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)]
  40. int ActiveConfigChangePostNotify();
  41. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(14)]
  42. int ViewNewNotify2([MarshalAs(UnmanagedType.IDispatch)] object viewBeingAdded);
  43. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(15)]
  44. int LightingDialogCreateNotify([MarshalAs(UnmanagedType.IDispatch)] object dialog);
  45. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x10)]
  46. int AddItemNotify(int EntityType, [MarshalAs(UnmanagedType.BStr)] string itemName);
  47. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x11)]
  48. int RenameItemNotify(int EntityType, [MarshalAs(UnmanagedType.BStr)] string oldName, [MarshalAs(UnmanagedType.BStr)] string NewName);
  49. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x12)]
  50. int DeleteItemNotify(int EntityType, [MarshalAs(UnmanagedType.BStr)] string itemName);
  51. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x13)]
  52. int ModifyNotify();
  53. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)]
  54. int FileReloadNotify();
  55. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)]
  56. int AddCustomPropertyNotify([MarshalAs(UnmanagedType.BStr)] string propName, [MarshalAs(UnmanagedType.BStr)] string Configuration, [MarshalAs(UnmanagedType.BStr)] string Value, int valueType);
  57. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x16)]
  58. int ChangeCustomPropertyNotify([MarshalAs(UnmanagedType.BStr)] string propName, [MarshalAs(UnmanagedType.BStr)] string Configuration, [MarshalAs(UnmanagedType.BStr)] string oldValue, [MarshalAs(UnmanagedType.BStr)] string NewValue, int valueType);
  59. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x17)]
  60. int DeleteCustomPropertyNotify([MarshalAs(UnmanagedType.BStr)] string propName, [MarshalAs(UnmanagedType.BStr)] string Configuration, [MarshalAs(UnmanagedType.BStr)] string Value, int valueType);
  61. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x18)]
  62. int FeatureEditPreNotify([MarshalAs(UnmanagedType.IDispatch)] object EditFeature);
  63. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)]
  64. int FeatureSketchEditPreNotify([MarshalAs(UnmanagedType.IDispatch)] object EditFeature, [MarshalAs(UnmanagedType.IDispatch)] object featureSketch);
  65. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1a)]
  66. int FileSaveAsNotify2([MarshalAs(UnmanagedType.BStr)] string FileName);
  67. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1b)]
  68. int DeleteSelectionPreNotify();
  69. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1c)]
  70. int FileReloadPreNotify();
  71. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1d)]
  72. int BodyVisibleChangeNotify();
  73. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(30)]
  74. int RegenPostNotify2([MarshalAs(UnmanagedType.IDispatch)] object stopFeature);
  75. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1f)]
  76. int FileSavePostNotify(int saveType, [MarshalAs(UnmanagedType.BStr)] string FileName);
  77. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x20)]
  78. int LoadFromStorageStoreNotify();
  79. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x21)]
  80. int SaveToStorageStoreNotify();
  81. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x22)]
  82. int FeatureManagerTreeRebuildNotify();
  83. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x23)]
  84. int FileDropPostNotify([MarshalAs(UnmanagedType.BStr)] string FileName);
  85. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x24)]
  86. int DynamicHighlightNotify(bool bHighlightState);
  87. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x25)]
  88. int DimensionChangeNotify([MarshalAs(UnmanagedType.IDispatch)] object displayDim);
  89. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x26)]
  90. int FileReloadCancelNotify(int ErrorCode);
  91. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x27)]
  92. int FileSavePostCancelNotify();
  93. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(40)]
  94. int SketchSolveNotify([MarshalAs(UnmanagedType.BStr)] string featName);
  95. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x29)]
  96. int DeleteItemPreNotify(int EntityType, [MarshalAs(UnmanagedType.BStr)] string itemName);
  97. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x2a)]
  98. int ClearSelectionsNotify();
  99. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x2b)]
  100. int EquationEditorPreNotify();
  101. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x2c)]
  102. int EquationEditorPostNotify(bool Changed);
  103. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x2d)]
  104. int OpenDesignTableNotify([MarshalAs(UnmanagedType.IDispatch)] object DesignTable);
  105. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x2e)]
  106. int CloseDesignTableNotify([MarshalAs(UnmanagedType.IDispatch)] object DesignTable);
  107. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x2f)]
  108. int PromptBodiesToKeepNotify([MarshalAs(UnmanagedType.IDispatch)] object Feature, [MarshalAs(UnmanagedType.Struct)] ref object Bodies);
  109. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x30)]
  110. int AddDvePagePreNotify(int Command, [MarshalAs(UnmanagedType.IDispatch)] ref object PageToAdd);
  111. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x31)]
  112. int UnitsChangeNotify();
  113. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(50)]
  114. int DestroyNotify2(int DestroyType);
  115. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x33)]
  116. int ConfigurationChangeNotify([MarshalAs(UnmanagedType.BStr)] string ConfigurationName, [MarshalAs(UnmanagedType.IDispatch)] object Object, int ObjectType, int changeType);
  117. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x34)]
  118. int SuppressionStateChangeNotify([MarshalAs(UnmanagedType.Interface)] Feature Feature, int NewSuppressionState, int PreviousSuppressionState, int ConfigurationOption, [MarshalAs(UnmanagedType.Struct)] ref object ConfigurationNames);
  119. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x35)]
  120. int ActiveViewChangeNotify();
  121. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x36)]
  122. int FeatureManagerFilterStringChangeNotify([MarshalAs(UnmanagedType.BStr)] string FilterString);
  123. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x37)]
  124. int FlipLoopNotify([MarshalAs(UnmanagedType.IDispatch)] object TheLoop, [MarshalAs(UnmanagedType.IDispatch)] object TheEdge);
  125. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)]
  126. int AutoSaveNotify([MarshalAs(UnmanagedType.BStr)] string FileName);
  127. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)]
  128. int AutoSaveToStorageNotify();
  129. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x38)]
  130. int FileDropPreNotify([MarshalAs(UnmanagedType.BStr)] string FileName);
  131. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x39)]
  132. int SensorAlertPreNotify([MarshalAs(UnmanagedType.IDispatch)] object SensorIn, int SensorAlertType);
  133. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x3a)]
  134. int UndoPostNotify();
  135. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x3b)]
  136. int UserSelectionPreNotify(int SelType);
  137. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(60)]
  138. int ActiveDisplayStateChangePreNotify();
  139. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x3d)]
  140. int ActiveDisplayStateChangePostNotify([MarshalAs(UnmanagedType.BStr)] string DisplayStateName);
  141. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x3e)]
  142. int RedoPostNotify();
  143. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x3f)]
  144. int RedoPreNotify();
  145. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x40)]
  146. int UndoPreNotify();
  147. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x41)]
  148. int WeldmentCutListUpdatePostNotify();
  149. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x42)]
  150. int AutoSaveToStorageStoreNotify();
  151. [PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x43)]
  152. int DragStateChangeNotify(bool State);
  153. }
  154. public class DPartDocEventsImpl : DPartDocEvents
  155. {
  156. private SwAddinHelpers.Contracts.ISwAddinBase _owner;
  157. public DPartDocEventsImpl(SwAddinHelpers.Contracts.ISwAddinBase owner)
  158. {
  159. _owner = owner;
  160. }
  161. public int RegenNotify()
  162. {
  163. return 0;
  164. }
  165. public int DestroyNotify()
  166. {
  167. return 0;
  168. }
  169. public int RegenPostNotify()
  170. {
  171. return 0;
  172. }
  173. public int ViewNewNotify()
  174. {
  175. return 0;
  176. }
  177. public int NewSelectionNotify()
  178. {
  179. Delegate d = _owner.MainAppEventSink.GetDelegate(Sinks.enumEventSink.Document_NewSelectionNotify);
  180. _owner.Debug.Manager.PostEvent(AddinManager.enumDebugMsgType.Callback, String.Join("", _owner.MainAppEventSink.GetInvocationList(d)));
  181. if (d != null) d.DynamicInvoke(new object[] { null, new SolidWorksEventArgs() });
  182. return 0;
  183. }
  184. public int FileSaveNotify(string FileName)
  185. {
  186. Delegate d = _owner.MainAppEventSink.GetDelegate(Sinks.enumEventSink.Document_FileSaveNotify);
  187. _owner.Debug.Manager.PostEvent(AddinManager.enumDebugMsgType.Callback, String.Join("", _owner.MainAppEventSink.GetInvocationList(d)));
  188. if (d != null) d.DynamicInvoke(new object[] { null, new SolidWorksEventArgs(Filename: FileName) });
  189. return 0;
  190. }
  191. public int FileSaveAsNotify(string FileName)
  192. {
  193. return 0;
  194. }
  195. public int LoadFromStorageNotify()
  196. {
  197. return 0;
  198. }
  199. public int SaveToStorageNotify()
  200. {
  201. return 0;
  202. }
  203. public int ActiveConfigChangeNotify()
  204. {
  205. return 0;
  206. }
  207. public int ActiveConfigChangePostNotify()
  208. {
  209. return 0;
  210. }
  211. public int ViewNewNotify2(object viewBeingAdded)
  212. {
  213. return 0;
  214. }
  215. public int LightingDialogCreateNotify(object dialog)
  216. {
  217. return 0;
  218. }
  219. public int AddItemNotify(int EntityType, string itemName)
  220. {
  221. return 0;
  222. }
  223. public int RenameItemNotify(int EntityType, string oldName, string NewName)
  224. {
  225. return 0;
  226. }
  227. public int DeleteItemNotify(int EntityType, string itemName)
  228. {
  229. return 0;
  230. }
  231. public int ModifyNotify()
  232. {
  233. return 0;
  234. }
  235. public int FileReloadNotify()
  236. {
  237. return 0;
  238. }
  239. public int AddCustomPropertyNotify(string propName, string Configuration, string Value, int valueType)
  240. {
  241. return 0;
  242. }
  243. public int ChangeCustomPropertyNotify(string propName, string Configuration, string oldValue, string NewValue, int valueType)
  244. {
  245. return 0;
  246. }
  247. public int DeleteCustomPropertyNotify(string propName, string Configuration, string Value, int valueType)
  248. {
  249. return 0;
  250. }
  251. public int FeatureEditPreNotify(object EditFeature)
  252. {
  253. return 0;
  254. }
  255. public int FeatureSketchEditPreNotify(object EditFeature, object featureSketch)
  256. {
  257. return 0;
  258. }
  259. public int FileSaveAsNotify2(string FileName)
  260. {
  261. return 0;
  262. }
  263. public int DeleteSelectionPreNotify()
  264. {
  265. return 0;
  266. }
  267. public int FileReloadPreNotify()
  268. {
  269. return 0;
  270. }
  271. public int BodyVisibleChangeNotify()
  272. {
  273. return 0;
  274. }
  275. public int RegenPostNotify2(object stopFeature)
  276. {
  277. return 0;
  278. }
  279. public int FileSavePostNotify(int saveType, string FileName)
  280. {
  281. return 0;
  282. }
  283. public int LoadFromStorageStoreNotify()
  284. {
  285. return 0;
  286. }
  287. public int SaveToStorageStoreNotify()
  288. {
  289. return 0;
  290. }
  291. public int FeatureManagerTreeRebuildNotify()
  292. {
  293. return 0;
  294. }
  295. public int FileDropPostNotify(string FileName)
  296. {
  297. return 0;
  298. }
  299. public int DynamicHighlightNotify(bool bHighlightState)
  300. {
  301. return 0;
  302. }
  303. public int DimensionChangeNotify(object displayDim)
  304. {
  305. return 0;
  306. }
  307. public int FileReloadCancelNotify(int ErrorCode)
  308. {
  309. return 0;
  310. }
  311. public int FileSavePostCancelNotify()
  312. {
  313. return 0;
  314. }
  315. public int SketchSolveNotify(string featName)
  316. {
  317. return 0;
  318. }
  319. public int DeleteItemPreNotify(int EntityType, string itemName)
  320. {
  321. return 0;
  322. }
  323. public int ClearSelectionsNotify()
  324. {
  325. return 0;
  326. }
  327. public int EquationEditorPreNotify()
  328. {
  329. return 0;
  330. }
  331. public int EquationEditorPostNotify(bool Changed)
  332. {
  333. return 0;
  334. }
  335. public int OpenDesignTableNotify(object DesignTable)
  336. {
  337. return 0;
  338. }
  339. public int CloseDesignTableNotify(object DesignTable)
  340. {
  341. return 0;
  342. }
  343. public int PromptBodiesToKeepNotify(object Feature, ref object Bodies)
  344. {
  345. return 0;
  346. }
  347. public int AddDvePagePreNotify(int Command, ref object PageToAdd)
  348. {
  349. return 0;
  350. }
  351. public int UnitsChangeNotify()
  352. {
  353. return 0;
  354. }
  355. public int DestroyNotify2(int DestroyType)
  356. {
  357. Delegate d = _owner.MainAppEventSink.GetDelegate(Sinks.enumEventSink.Document_DestroyNotify);
  358. _owner.Debug.Manager.PostEvent(AddinManager.enumDebugMsgType.Callback, String.Join("", _owner.MainAppEventSink.GetInvocationList(d)));
  359. if (d != null) d.DynamicInvoke(new object[] { null, new SolidWorksEventArgs(DestroyType: (SolidWorks.Interop.swconst.swDestroyNotifyType_e)DestroyType) });
  360. _owner.MainAppEventSink.DetachCurrentDocumentSink();
  361. return 0;
  362. }
  363. public int ConfigurationChangeNotify(string ConfigurationName, object Object, int ObjectType, int changeType)
  364. {
  365. return 0;
  366. }
  367. public int SuppressionStateChangeNotify(Feature Feature, int NewSuppressionState, int PreviousSuppressionState, int ConfigurationOption, ref object ConfigurationNames)
  368. {
  369. return 0;
  370. }
  371. public int ActiveViewChangeNotify()
  372. {
  373. return 0;
  374. }
  375. public int FeatureManagerFilterStringChangeNotify(string FilterString)
  376. {
  377. return 0;
  378. }
  379. public int FlipLoopNotify(object TheLoop, object TheEdge)
  380. {
  381. return 0;
  382. }
  383. public int AutoSaveNotify(string FileName)
  384. {
  385. return 0;
  386. }
  387. public int AutoSaveToStorageNotify()
  388. {
  389. return 0;
  390. }
  391. public int FileDropPreNotify(string FileName)
  392. {
  393. return 0;
  394. }
  395. public int SensorAlertPreNotify(object SensorIn, int SensorAlertType)
  396. {
  397. return 0;
  398. }
  399. public int UndoPostNotify()
  400. {
  401. return 0;
  402. }
  403. public int UserSelectionPreNotify(int SelType)
  404. {
  405. return 0;
  406. }
  407. public int ActiveDisplayStateChangePreNotify()
  408. {
  409. return 0;
  410. }
  411. public int ActiveDisplayStateChangePostNotify(string DisplayStateName)
  412. {
  413. return 0;
  414. }
  415. public int RedoPostNotify()
  416. {
  417. return 0;
  418. }
  419. public int RedoPreNotify()
  420. {
  421. return 0;
  422. }
  423. public int UndoPreNotify()
  424. {
  425. return 0;
  426. }
  427. public int WeldmentCutListUpdatePostNotify()
  428. {
  429. return 0;
  430. }
  431. public int AutoSaveToStorageStoreNotify()
  432. {
  433. return 0;
  434. }
  435. public int DragStateChangeNotify(bool State)
  436. {
  437. return 0;
  438. }
  439. }
  440. }