Main.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using com.insanitydesign.MarkdownViewerPlusPlus;
  2. using Kbg.NppPluginNET.PluginInfrastructure;
  3. /// <summary>
  4. ///
  5. /// </summary>
  6. namespace Kbg.NppPluginNET
  7. {
  8. /// <summary>
  9. ///
  10. /// </summary>
  11. class Main
  12. {
  13. /// <summary>
  14. ///
  15. /// </summary>
  16. public const string PluginName = "MarkdownViewer++";
  17. /// <summary>
  18. /// "Singleton" for this plugin of the actual implementation
  19. /// </summary>
  20. private static MarkdownViewer MarkdownViewer = new MarkdownViewer();
  21. /// <summary>
  22. /// This method is invoked whenever something is happening in notepad++
  23. /// use eg. as
  24. /// if (notification.Header.Code == (uint)NppMsg.NPPN_xxx)
  25. /// { ... }
  26. /// or
  27. ///
  28. /// if (notification.Header.Code == (uint)SciMsg.SCNxxx)
  29. /// { ... }
  30. /// </summary>
  31. /// <param name="notification"></param>
  32. public static void OnNotification(ScNotification notification)
  33. {
  34. MarkdownViewer.OnNotification(notification);
  35. }
  36. /// <summary>
  37. ///
  38. /// </summary>
  39. internal static void CommandMenuInit()
  40. {
  41. MarkdownViewer.CommandMenuInit();
  42. }
  43. /// <summary>
  44. ///
  45. /// </summary>
  46. internal static void SetToolBarIcon()
  47. {
  48. MarkdownViewer.SetToolBarIcon();
  49. }
  50. /// <summary>
  51. ///
  52. /// </summary>
  53. internal static void PluginCleanUp()
  54. {
  55. MarkdownViewer.PluginCleanUp();
  56. }
  57. }
  58. }