Msgs_h.cs 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. // NPP plugin platform for .Net v0.94.00 by Kasper B. Graversen etc.
  2. //
  3. // This file should stay in sync with the CPP project file
  4. // "notepad-plus-plus/PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h"
  5. // found at
  6. // https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h
  7. using System;
  8. namespace Kbg.NppPluginNET.PluginInfrastructure
  9. {
  10. class Constants
  11. {
  12. public const int WM_USER = 0x400;
  13. public const int NPPMSG = WM_USER + 1000;
  14. }
  15. public enum LangType
  16. {
  17. L_TEXT, L_PHP, L_C, L_CPP, L_CS, L_OBJC, L_JAVA, L_RC,
  18. L_HTML, L_XML, L_MAKEFILE, L_PASCAL, L_BATCH, L_INI, L_ASCII, L_USER,
  19. L_ASP, L_SQL, L_VB, L_JS, L_CSS, L_PERL, L_PYTHON, L_LUA,
  20. L_TEX, L_FORTRAN, L_BASH, L_FLASH, L_NSIS, L_TCL, L_LISP, L_SCHEME,
  21. L_ASM, L_DIFF, L_PROPS, L_PS, L_RUBY, L_SMALLTALK, L_VHDL, L_KIX, L_AU3,
  22. L_CAML, L_ADA, L_VERILOG, L_MATLAB, L_HASKELL, L_INNO, L_SEARCHRESULT,
  23. L_CMAKE, L_YAML, L_COBOL, L_GUI4CLI, L_D, L_POWERSHELL, L_R, L_JSP,
  24. L_COFFEESCRIPT, L_JSON, L_JAVASCRIPT, L_FORTRAN_77,
  25. // Don't use L_JS, use L_JAVASCRIPT instead
  26. // The end of enumated language type, so it should be always at the end
  27. L_EXTERNAL
  28. }
  29. [Flags]
  30. public enum NppMsg : uint
  31. {
  32. /* ++Autogenerated -- start of section automatically generated from notepad-plus-plus\PowerEditor\src\MISC\PluginsManager\Notepad_plus_msgs.h */
  33. NPPMSG = Constants.WM_USER + 1000,
  34. NPPM_GETCURRENTSCINTILLA = Constants.NPPMSG + 4,
  35. NPPM_GETCURRENTLANGTYPE = Constants.NPPMSG + 5,
  36. NPPM_SETCURRENTLANGTYPE = Constants.NPPMSG + 6,
  37. NPPM_GETNBOPENFILES = Constants.NPPMSG + 7,
  38. ALL_OPEN_FILES = 0,
  39. PRIMARY_VIEW = 1,
  40. SECOND_VIEW = 2,
  41. NPPM_GETOPENFILENAMES = Constants.NPPMSG + 8,
  42. NPPM_MODELESSDIALOG = Constants.NPPMSG + 12,
  43. MODELESSDIALOGADD = 0,
  44. MODELESSDIALOGREMOVE = 1,
  45. NPPM_GETNBSESSIONFILES = Constants.NPPMSG + 13,
  46. NPPM_GETSESSIONFILES = Constants.NPPMSG + 14,
  47. NPPM_SAVESESSION = Constants.NPPMSG + 15,
  48. NPPM_SAVECURRENTSESSION = Constants.NPPMSG + 16,
  49. NPPM_GETOPENFILENAMESPRIMARY = Constants.NPPMSG + 17,
  50. NPPM_GETOPENFILENAMESSECOND = Constants.NPPMSG + 18,
  51. NPPM_CREATESCINTILLAHANDLE = Constants.NPPMSG + 20,
  52. NPPM_DESTROYSCINTILLAHANDLE = Constants.NPPMSG + 21,
  53. NPPM_GETNBUSERLANG = Constants.NPPMSG + 22,
  54. NPPM_GETCURRENTDOCINDEX = Constants.NPPMSG + 23,
  55. MAIN_VIEW = 0,
  56. SUB_VIEW = 1,
  57. NPPM_SETSTATUSBAR = Constants.NPPMSG + 24,
  58. STATUSBAR_DOC_TYPE = 0,
  59. STATUSBAR_DOC_SIZE = 1,
  60. STATUSBAR_CUR_POS = 2,
  61. STATUSBAR_EOF_FORMAT = 3,
  62. STATUSBAR_UNICODE_TYPE = 4,
  63. STATUSBAR_TYPING_MODE = 5,
  64. NPPM_GETMENUHANDLE = Constants.NPPMSG + 25,
  65. NPPPLUGINMENU = 0,
  66. /// <summary>
  67. /// INT NPPM_GETMENUHANDLE(INT menuChoice, 0)
  68. /// Return: menu handle (HMENU) of choice (plugin menu handle or Notepad++ main menu handle)
  69. /// </summary>
  70. NPPMAINMENU = 1,
  71. /// <summary>
  72. ///ascii file to unicode
  73. ///int NPPM_ENCODESCI(MAIN_VIEW/SUB_VIEW, 0)
  74. ///return new unicodeMode
  75. /// </summary>
  76. NPPM_ENCODESCI = Constants.NPPMSG + 26,
  77. /// <summary>
  78. ///unicode file to ascii
  79. ///int NPPM_DECODESCI(MAIN_VIEW/SUB_VIEW, 0)
  80. ///return old unicodeMode
  81. /// </summary>
  82. NPPM_DECODESCI = Constants.NPPMSG + 27,
  83. /// <summary>
  84. ///void NPPM_ACTIVATEDOC(int view, int index2Activate)
  85. /// </summary>
  86. NPPM_ACTIVATEDOC = Constants.NPPMSG + 28,
  87. /// <summary>
  88. ///void NPPM_LAUNCHFINDINFILESDLG(TCHAR * dir2Search, TCHAR * filtre)
  89. /// </summary>
  90. NPPM_LAUNCHFINDINFILESDLG = Constants.NPPMSG + 29,
  91. /// <summary>
  92. ///void NPPM_DMMSHOW(0, tTbData->hClient)
  93. /// </summary>
  94. NPPM_DMMSHOW = Constants.NPPMSG + 30,
  95. /// <summary>
  96. ///void NPPM_DMMHIDE(0, tTbData->hClient)
  97. /// </summary>
  98. NPPM_DMMHIDE = Constants.NPPMSG + 31,
  99. /// <summary>
  100. ///void NPPM_DMMUPDATEDISPINFO(0, tTbData->hClient)
  101. /// </summary>
  102. NPPM_DMMUPDATEDISPINFO = Constants.NPPMSG + 32,
  103. /// <summary>
  104. ///void NPPM_DMMREGASDCKDLG(0, &tTbData)
  105. /// </summary>
  106. NPPM_DMMREGASDCKDLG = Constants.NPPMSG + 33,
  107. /// <summary>
  108. ///void NPPM_LOADSESSION(0, const TCHAR* file name)
  109. /// </summary>
  110. NPPM_LOADSESSION = Constants.NPPMSG + 34,
  111. /// <summary>
  112. ///void WM_DMM_VIEWOTHERTAB(0, tTbData->pszName)
  113. /// </summary>
  114. NPPM_DMMVIEWOTHERTAB = Constants.NPPMSG + 35,
  115. /// <summary>
  116. ///BOOL NPPM_RELOADFILE(BOOL withAlert, TCHAR *filePathName2Reload)
  117. /// </summary>
  118. NPPM_RELOADFILE = Constants.NPPMSG + 36,
  119. /// <summary>
  120. ///BOOL NPPM_SWITCHTOFILE(0, TCHAR *filePathName2switch)
  121. /// </summary>
  122. NPPM_SWITCHTOFILE = Constants.NPPMSG + 37,
  123. /// <summary>
  124. ///BOOL NPPM_SAVECURRENTFILE(0, 0)
  125. /// </summary>
  126. NPPM_SAVECURRENTFILE = Constants.NPPMSG + 38,
  127. /// <summary>
  128. ///BOOL NPPM_SAVEALLFILES(0, 0)
  129. /// </summary>
  130. NPPM_SAVEALLFILES = Constants.NPPMSG + 39,
  131. /// <summary>
  132. ///void WM_PIMENU_CHECK(UINT funcItem[X]._cmdID, TRUE/FALSE)
  133. /// </summary>
  134. NPPM_SETMENUITEMCHECK = Constants.NPPMSG + 40,
  135. /// <summary>
  136. ///void WM_ADDTOOLBARICON(UINT funcItem[X]._cmdID, toolbarIcons icon)
  137. /// </summary>
  138. NPPM_ADDTOOLBARICON = Constants.NPPMSG + 41,
  139. /// <summary>
  140. ///winVer NPPM_GETWINDOWSVERSION(0, 0)
  141. /// </summary>
  142. NPPM_GETWINDOWSVERSION = Constants.NPPMSG + 42,
  143. /// <summary>
  144. ///HWND WM_DMM_GETPLUGINHWNDBYNAME(const TCHAR *windowName, const TCHAR *moduleName)
  145. /// if moduleName is NULL, then return value is NULL
  146. /// if windowName is NULL, then the first found window handle which matches with the moduleName will be returned
  147. /// </summary>
  148. NPPM_DMMGETPLUGINHWNDBYNAME = Constants.NPPMSG + 43,
  149. /// <summary>
  150. ///BOOL NPPM_MAKECURRENTBUFFERDIRTY(0, 0)
  151. /// </summary>
  152. NPPM_MAKECURRENTBUFFERDIRTY = Constants.NPPMSG + 44,
  153. /// <summary>
  154. ///BOOL NPPM_GETENABLETHEMETEXTUREFUNC(0, 0)
  155. /// </summary>
  156. NPPM_GETENABLETHEMETEXTUREFUNC = Constants.NPPMSG + 45,
  157. /// <summary>
  158. ///void NPPM_GETPLUGINSCONFIGDIR(int strLen, TCHAR *str)
  159. /// </summary>
  160. NPPM_GETPLUGINSCONFIGDIR = Constants.NPPMSG + 46,
  161. /// <summary>
  162. ///BOOL NPPM_MSGTOPLUGIN(TCHAR *destModuleName, CommunicationInfo *info)
  163. /// return value is TRUE when the message arrive to the destination plugins.
  164. /// if destModule or info is NULL, then return value is FALSE
  165. /// </summary>
  166. NPPM_MSGTOPLUGIN = Constants.NPPMSG + 47,
  167. /// <summary>
  168. ///void NPPM_MENUCOMMAND(0, int cmdID)
  169. /// uncomment //#include "menuCmdID.h"
  170. /// in the beginning of this file then use the command symbols defined in "menuCmdID.h" file
  171. /// to access all the Notepad++ menu command items
  172. /// </summary>
  173. NPPM_MENUCOMMAND = Constants.NPPMSG + 48,
  174. /// <summary>
  175. ///void NPPM_TRIGGERTABBARCONTEXTMENU(int view, int index2Activate)
  176. /// </summary>
  177. NPPM_TRIGGERTABBARCONTEXTMENU = Constants.NPPMSG + 49,
  178. /// <summary>
  179. /// int NPPM_GETNPPVERSION(0, 0)
  180. /// return version
  181. /// ex : v4.6
  182. /// HIWORD(version) == 4
  183. /// LOWORD(version) == 6
  184. /// </summary>
  185. NPPM_GETNPPVERSION = Constants.NPPMSG + 50,
  186. /// <summary>
  187. /// BOOL NPPM_HIDETABBAR(0, BOOL hideOrNot)
  188. /// if hideOrNot is set as TRUE then tab bar will be hidden
  189. /// otherwise it'll be shown.
  190. /// return value : the old status value
  191. /// </summary>
  192. NPPM_HIDETABBAR = Constants.NPPMSG + 51,
  193. /// <summary>
  194. /// BOOL NPPM_ISTABBARHIDDEN(0, 0)
  195. /// returned value : TRUE if tab bar is hidden, otherwise FALSE
  196. /// </summary>
  197. NPPM_ISTABBARHIDDEN = Constants.NPPMSG + 52,
  198. /// <summary>
  199. /// INT NPPM_GETPOSFROMBUFFERID(INT bufferID, INT priorityView)
  200. /// Return VIEW|INDEX from a buffer ID. -1 if the bufferID non existing
  201. /// if priorityView set to SUB_VIEW, then SUB_VIEW will be search firstly
  202. ///
  203. /// VIEW takes 2 highest bits and INDEX (0 based) takes the rest (30 bits)
  204. /// Here's the values for the view :
  205. /// MAIN_VIEW 0
  206. /// SUB_VIEW 1
  207. /// </summary>
  208. NPPM_GETPOSFROMBUFFERID = Constants.NPPMSG + 57,
  209. /// <summary>
  210. /// INT NPPM_GETFULLPATHFROMBUFFERID(INT bufferID, TCHAR *fullFilePath)
  211. /// Get full path file name from a bufferID.
  212. /// Return -1 if the bufferID non existing, otherwise the number of TCHAR copied/to copy
  213. /// User should call it with fullFilePath be NULL to get the number of TCHAR (not including the nul character),
  214. /// allocate fullFilePath with the return values + 1, then call it again to get full path file name
  215. /// </summary>
  216. NPPM_GETFULLPATHFROMBUFFERID = Constants.NPPMSG + 58,
  217. /// <summary>
  218. /// LRESULT NPPM_GETBUFFERIDFROMPOS(INT index, INT iView)
  219. /// wParam: Position of document
  220. /// lParam: View to use, 0 = Main, 1 = Secondary
  221. /// Returns 0 if invalid
  222. /// </summary>
  223. NPPM_GETBUFFERIDFROMPOS = Constants.NPPMSG + 59,
  224. /// <summary>
  225. /// LRESULT NPPM_GETCURRENTBUFFERID(0, 0)
  226. /// Returns active Buffer
  227. /// </summary>
  228. NPPM_GETCURRENTBUFFERID = Constants.NPPMSG + 60,
  229. /// <summary>
  230. /// VOID NPPM_RELOADBUFFERID(0, 0)
  231. /// Reloads Buffer
  232. /// wParam: Buffer to reload
  233. /// lParam: 0 if no alert, else alert
  234. /// </summary>
  235. NPPM_RELOADBUFFERID = Constants.NPPMSG + 61,
  236. /// <summary>
  237. /// INT NPPM_GETBUFFERLANGTYPE(INT bufferID, 0)
  238. /// wParam: BufferID to get LangType from
  239. /// lParam: 0
  240. /// Returns as int, see LangType. -1 on error
  241. /// </summary>
  242. NPPM_GETBUFFERLANGTYPE = Constants.NPPMSG + 64,
  243. /// <summary>
  244. /// BOOL NPPM_SETBUFFERLANGTYPE(INT bufferID, INT langType)
  245. /// wParam: BufferID to set LangType of
  246. /// lParam: LangType
  247. /// Returns TRUE on success, FALSE otherwise
  248. /// use int, see LangType for possible values
  249. /// L_USER and L_EXTERNAL are not supported
  250. /// </summary>
  251. NPPM_SETBUFFERLANGTYPE = Constants.NPPMSG + 65,
  252. /// <summary>
  253. /// INT NPPM_GETBUFFERENCODING(INT bufferID, 0)
  254. /// wParam: BufferID to get encoding from
  255. /// lParam: 0
  256. /// returns as int, see UniMode. -1 on error
  257. /// </summary>
  258. NPPM_GETBUFFERENCODING = Constants.NPPMSG + 66,
  259. /// <summary>
  260. /// BOOL NPPM_SETBUFFERENCODING(INT bufferID, INT encoding)
  261. /// wParam: BufferID to set encoding of
  262. /// lParam: encoding
  263. /// Returns TRUE on success, FALSE otherwise
  264. /// use int, see UniMode
  265. /// Can only be done on new, unedited files
  266. /// </summary>
  267. NPPM_SETBUFFERENCODING = Constants.NPPMSG + 67,
  268. /// <summary>
  269. /// INT NPPM_GETBUFFERFORMAT(INT bufferID, 0)
  270. /// wParam: BufferID to get format from
  271. /// lParam: 0
  272. /// returns as int, see formatType. -1 on error
  273. /// </summary>
  274. NPPM_GETBUFFERFORMAT = Constants.NPPMSG + 68,
  275. /// <summary>
  276. /// BOOL NPPM_SETBUFFERFORMAT(INT bufferID, INT format)
  277. /// wParam: BufferID to set format of
  278. /// lParam: format
  279. /// Returns TRUE on success, FALSE otherwise
  280. /// use int, see formatType
  281. /// </summary>
  282. NPPM_SETBUFFERFORMAT = Constants.NPPMSG + 69,
  283. /// <summary>
  284. /// BOOL NPPM_ADDREBAR(0, REBARBANDINFO *)
  285. /// Returns assigned ID in wID value of struct pointer
  286. /// </summary>
  287. NPPM_ADDREBAR = Constants.NPPMSG + 57,
  288. /// <summary>
  289. /// BOOL NPPM_ADDREBAR(INT ID, REBARBANDINFO *)
  290. ///Use ID assigned with NPPM_ADDREBAR
  291. /// </summary>
  292. NPPM_UPDATEREBAR = Constants.NPPMSG + 58,
  293. /// <summary>
  294. /// BOOL NPPM_ADDREBAR(INT ID, 0)
  295. ///Use ID assigned with NPPM_ADDREBAR
  296. /// </summary>
  297. NPPM_REMOVEREBAR = Constants.NPPMSG + 59,
  298. /// <summary>
  299. /// BOOL NPPM_HIDETOOLBAR(0, BOOL hideOrNot)
  300. /// if hideOrNot is set as TRUE then tool bar will be hidden
  301. /// otherwise it'll be shown.
  302. /// return value : the old status value
  303. /// </summary>
  304. NPPM_HIDETOOLBAR = Constants.NPPMSG + 70,
  305. /// <summary>
  306. /// BOOL NPPM_ISTOOLBARHIDDEN(0, 0)
  307. /// returned value : TRUE if tool bar is hidden, otherwise FALSE
  308. /// </summary>
  309. NPPM_ISTOOLBARHIDDEN = Constants.NPPMSG + 71,
  310. /// <summary>
  311. /// BOOL NPPM_HIDEMENU(0, BOOL hideOrNot)
  312. /// if hideOrNot is set as TRUE then menu will be hidden
  313. /// otherwise it'll be shown.
  314. /// return value : the old status value
  315. /// </summary>
  316. NPPM_HIDEMENU = Constants.NPPMSG + 72,
  317. /// <summary>
  318. /// BOOL NPPM_ISMENUHIDDEN(0, 0)
  319. /// returned value : TRUE if menu is hidden, otherwise FALSE
  320. /// </summary>
  321. NPPM_ISMENUHIDDEN = Constants.NPPMSG + 73,
  322. /// <summary>
  323. /// BOOL NPPM_HIDESTATUSBAR(0, BOOL hideOrNot)
  324. /// if hideOrNot is set as TRUE then STATUSBAR will be hidden
  325. /// otherwise it'll be shown.
  326. /// return value : the old status value
  327. /// </summary>
  328. NPPM_HIDESTATUSBAR = Constants.NPPMSG + 74,
  329. /// <summary>
  330. /// BOOL NPPM_ISSTATUSBARHIDDEN(0, 0)
  331. /// returned value : TRUE if STATUSBAR is hidden, otherwise FALSE
  332. /// </summary>
  333. NPPM_ISSTATUSBARHIDDEN = Constants.NPPMSG + 75,
  334. /// <summary>
  335. /// BOOL NPPM_GETSHORTCUTBYCMDID(int cmdID, ShortcutKey *sk)
  336. /// get your plugin command current mapped shortcut into sk via cmdID
  337. /// You may need it after getting NPPN_READY notification
  338. /// returned value : TRUE if this function call is successful and shorcut is enable, otherwise FALSE
  339. /// </summary>
  340. NPPM_GETSHORTCUTBYCMDID = Constants.NPPMSG + 76,
  341. /// <summary>
  342. /// BOOL NPPM_DOOPEN(0, const TCHAR *fullPathName2Open)
  343. /// fullPathName2Open indicates the full file path name to be opened.
  344. /// The return value is TRUE (1) if the operation is successful, otherwise FALSE (0).
  345. /// </summary>
  346. NPPM_DOOPEN = Constants.NPPMSG + 77,
  347. /// <summary>
  348. /// BOOL NPPM_SAVECURRENTFILEAS (BOOL asCopy, const TCHAR* filename)
  349. /// </summary>
  350. NPPM_SAVECURRENTFILEAS = Constants.NPPMSG + 78,
  351. /// <summary>
  352. /// INT NPPM_GETCURRENTNATIVELANGENCODING(0, 0)
  353. /// returned value : the current native language enconding
  354. /// </summary>
  355. NPPM_GETCURRENTNATIVELANGENCODING = Constants.NPPMSG + 79,
  356. /// <summary>
  357. /// returns TRUE if NPPM_ALLOCATECMDID is supported
  358. /// Use to identify if subclassing is necessary
  359. /// </summary>
  360. NPPM_ALLOCATESUPPORTED = Constants.NPPMSG + 80,
  361. /// <summary>
  362. /// BOOL NPPM_ALLOCATECMDID(int numberRequested, int* startNumber)
  363. /// sets startNumber to the initial command ID if successful
  364. /// Returns: TRUE if successful, FALSE otherwise. startNumber will also be set to 0 if unsuccessful
  365. /// </summary>
  366. NPPM_ALLOCATECMDID = Constants.NPPMSG + 81,
  367. /// <summary>
  368. /// BOOL NPPM_ALLOCATEMARKER(int numberRequested, int* startNumber)
  369. /// sets startNumber to the initial command ID if successful
  370. /// Allocates a marker number to a plugin
  371. /// Returns: TRUE if successful, FALSE otherwise. startNumber will also be set to 0 if unsuccessful
  372. /// </summary>
  373. NPPM_ALLOCATEMARKER = Constants.NPPMSG + 82,
  374. /// <summary>
  375. /// INT NPPM_GETLANGUAGENAME(int langType, TCHAR *langName)
  376. /// Get programing language name from the given language type (LangType)
  377. /// Return value is the number of copied character / number of character to copy (\0 is not included)
  378. /// You should call this function 2 times - the first time you pass langName as NULL to get the number of characters to copy.
  379. /// You allocate a buffer of the length of (the number of characters + 1) then call NPPM_GETLANGUAGENAME function the 2nd time
  380. /// by passing allocated buffer as argument langName
  381. /// </summary>
  382. NPPM_GETLANGUAGENAME = Constants.NPPMSG + 83,
  383. /// <summary>
  384. /// INT NPPM_GETLANGUAGEDESC(int langType, TCHAR *langDesc)
  385. /// Get programing language short description from the given language type (LangType)
  386. /// Return value is the number of copied character / number of character to copy (\0 is not included)
  387. /// You should call this function 2 times - the first time you pass langDesc as NULL to get the number of characters to copy.
  388. /// You allocate a buffer of the length of (the number of characters + 1) then call NPPM_GETLANGUAGEDESC function the 2nd time
  389. /// by passing allocated buffer as argument langDesc
  390. /// </summary>
  391. NPPM_GETLANGUAGEDESC = Constants.NPPMSG + 84,
  392. /// <summary>
  393. /// VOID NPPM_ISDOCSWITCHERSHOWN(0, BOOL toShowOrNot)
  394. /// Send this message to show or hide doc switcher.
  395. /// if toShowOrNot is TRUE then show doc switcher, otherwise hide it.
  396. /// </summary>
  397. NPPM_SHOWDOCSWITCHER = Constants.NPPMSG + 85,
  398. /// <summary>
  399. /// BOOL NPPM_ISDOCSWITCHERSHOWN(0, 0)
  400. /// Check to see if doc switcher is shown.
  401. /// </summary>
  402. NPPM_ISDOCSWITCHERSHOWN = Constants.NPPMSG + 86,
  403. /// <summary>
  404. /// BOOL NPPM_GETAPPDATAPLUGINSALLOWED(0, 0)
  405. /// Check to see if loading plugins from "%APPDATA%\Notepad++\plugins" is allowed.
  406. /// </summary>
  407. NPPM_GETAPPDATAPLUGINSALLOWED = Constants.NPPMSG + 87,
  408. /// <summary>
  409. /// INT NPPM_GETCURRENTVIEW(0, 0)
  410. /// Return: current edit view of Notepad++. Only 2 possible values: 0 = Main, 1 = Secondary
  411. /// </summary>
  412. NPPM_GETCURRENTVIEW = Constants.NPPMSG + 88,
  413. /// <summary>
  414. /// VOID NPPM_DOCSWITCHERDISABLECOLUMN(0, BOOL disableOrNot)
  415. /// Disable or enable extension column of doc switcher
  416. /// </summary>
  417. NPPM_DOCSWITCHERDISABLECOLUMN = Constants.NPPMSG + 89,
  418. /// <summary>
  419. /// INT NPPM_GETEDITORDEFAULTFOREGROUNDCOLOR(0, 0)
  420. /// Return: current editor default foreground color. You should convert the returned value in COLORREF
  421. /// </summary>
  422. NPPM_GETEDITORDEFAULTFOREGROUNDCOLOR = Constants.NPPMSG + 90,
  423. /// <summary>
  424. /// INT NPPM_GETEDITORDEFAULTBACKGROUNDCOLOR(0, 0)
  425. /// Return: current editor default background color. You should convert the returned value in COLORREF
  426. /// </summary>
  427. NPPM_GETEDITORDEFAULTBACKGROUNDCOLOR = Constants.NPPMSG + 91,
  428. /// <summary>
  429. /// VOID NPPM_SETSMOOTHFONT(0, BOOL setSmoothFontOrNot)
  430. /// </summary>
  431. NPPM_SETSMOOTHFONT = Constants.NPPMSG + 92,
  432. /// <summary>
  433. /// VOID NPPM_SETEDITORBORDEREDGE(0, BOOL withEditorBorderEdgeOrNot)
  434. /// </summary>
  435. NPPM_SETEDITORBORDEREDGE = Constants.NPPMSG + 93,
  436. /// <summary>
  437. /// VOID NPPM_SAVEFILE(0, const TCHAR *fileNameToSave)
  438. /// </summary>
  439. NPPM_SAVEFILE = Constants.NPPMSG + 94,
  440. RUNCOMMAND_USER = Constants.WM_USER + 3000,
  441. NPPM_GETFULLCURRENTPATH = RUNCOMMAND_USER + FULL_CURRENT_PATH,
  442. NPPM_GETCURRENTDIRECTORY = RUNCOMMAND_USER + CURRENT_DIRECTORY,
  443. NPPM_GETFILENAME = RUNCOMMAND_USER + FILE_NAME,
  444. NPPM_GETNAMEPART = RUNCOMMAND_USER + NAME_PART,
  445. NPPM_GETEXTPART = RUNCOMMAND_USER + EXT_PART,
  446. NPPM_GETCURRENTWORD = RUNCOMMAND_USER + CURRENT_WORD,
  447. /// <summary>
  448. /// BOOL NPPM_GETXXXXXXXXXXXXXXXX(size_t strLen, TCHAR *str)
  449. /// where str is the allocated TCHAR array,
  450. /// strLen is the allocated array size
  451. /// The return value is TRUE when get generic_string operation success
  452. /// Otherwise (allocated array size is too small) FALSE
  453. /// </summary>
  454. NPPM_GETNPPDIRECTORY = RUNCOMMAND_USER + NPP_DIRECTORY,
  455. /// <summary>
  456. /// INT NPPM_GETCURRENTLINE(0, 0)
  457. /// return the caret current position line
  458. /// </summary>
  459. NPPM_GETCURRENTLINE = RUNCOMMAND_USER + CURRENT_LINE,
  460. /// <summary>
  461. /// INT NPPM_GETCURRENTCOLUMN(0, 0)
  462. /// return the caret current position column
  463. /// </summary>
  464. NPPM_GETCURRENTCOLUMN = RUNCOMMAND_USER + CURRENT_COLUMN,
  465. VAR_NOT_RECOGNIZED = 0,
  466. FULL_CURRENT_PATH = 1,
  467. CURRENT_DIRECTORY = 2,
  468. FILE_NAME = 3,
  469. NAME_PART = 4,
  470. EXT_PART = 5,
  471. CURRENT_WORD = 6,
  472. NPP_DIRECTORY = 7,
  473. CURRENT_LINE = 8,
  474. CURRENT_COLUMN = 9,
  475. /// <summary>
  476. /// To notify plugins that all the procedures of launchment of notepad++ are done.
  477. ///scnNotification->nmhdr.code = NPPN_READY;
  478. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  479. ///scnNotification->nmhdr.idFrom = 0;
  480. /// </summary>
  481. NPPN_FIRST = 1000,
  482. /// <summary>
  483. ///scnNotification->nmhdr.code = NPPN_READY;
  484. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  485. ///scnNotification->nmhdr.idFrom = 0;
  486. /// </summary>
  487. NPPN_READY = NPPN_FIRST + 1,
  488. /// <summary>
  489. ///scnNotification->nmhdr.code = NPPN_TB_MODIFICATION;
  490. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  491. ///scnNotification->nmhdr.idFrom = 0;
  492. /// </summary>
  493. NPPN_TBMODIFICATION = NPPN_FIRST + 2,
  494. /// <summary>
  495. ///scnNotification->nmhdr.code = NPPN_FILEBEFORECLOSE;
  496. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  497. ///scnNotification->nmhdr.idFrom = BufferID;
  498. /// </summary>
  499. NPPN_FILEBEFORECLOSE = NPPN_FIRST + 3,
  500. /// <summary>
  501. ///scnNotification->nmhdr.code = NPPN_FILEOPENED;
  502. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  503. ///scnNotification->nmhdr.idFrom = BufferID;
  504. /// </summary>
  505. NPPN_FILEOPENED = NPPN_FIRST + 4,
  506. /// <summary>
  507. ///scnNotification->nmhdr.code = NPPN_FILECLOSED;
  508. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  509. ///scnNotification->nmhdr.idFrom = BufferID;
  510. /// </summary>
  511. NPPN_FILECLOSED = NPPN_FIRST + 5,
  512. /// <summary>
  513. ///scnNotification->nmhdr.code = NPPN_FILEBEFOREOPEN;
  514. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  515. ///scnNotification->nmhdr.idFrom = BufferID;
  516. /// </summary>
  517. NPPN_FILEBEFOREOPEN = NPPN_FIRST + 6,
  518. /// <summary>
  519. ///scnNotification->nmhdr.code = NPPN_FILEBEFOREOPEN;
  520. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  521. ///scnNotification->nmhdr.idFrom = BufferID;
  522. /// </summary>
  523. NPPN_FILEBEFORESAVE = NPPN_FIRST + 7,
  524. /// <summary>
  525. ///scnNotification->nmhdr.code = NPPN_FILESAVED;
  526. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  527. ///scnNotification->nmhdr.idFrom = BufferID;
  528. /// </summary>
  529. NPPN_FILESAVED = NPPN_FIRST + 8,
  530. /// <summary>
  531. ///scnNotification->nmhdr.code = NPPN_SHUTDOWN;
  532. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  533. ///scnNotification->nmhdr.idFrom = 0;
  534. /// </summary>
  535. NPPN_SHUTDOWN = NPPN_FIRST + 9,
  536. /// <summary>
  537. ///scnNotification->nmhdr.code = NPPN_BUFFERACTIVATED;
  538. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  539. ///scnNotification->nmhdr.idFrom = activatedBufferID;
  540. /// </summary>
  541. NPPN_BUFFERACTIVATED = NPPN_FIRST + 10,
  542. /// <summary>
  543. ///scnNotification->nmhdr.code = NPPN_LANGCHANGED;
  544. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  545. ///scnNotification->nmhdr.idFrom = currentBufferID;
  546. /// </summary>
  547. NPPN_LANGCHANGED = NPPN_FIRST + 11,
  548. /// <summary>
  549. ///scnNotification->nmhdr.code = NPPN_WORDSTYLESUPDATED;
  550. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  551. ///scnNotification->nmhdr.idFrom = currentBufferID;
  552. /// </summary>
  553. NPPN_WORDSTYLESUPDATED = NPPN_FIRST + 12,
  554. /// <summary>
  555. ///scnNotification->nmhdr.code = NPPN_SHORTCUTSREMAPPED;
  556. ///scnNotification->nmhdr.hwndFrom = ShortcutKeyStructurePointer;
  557. ///scnNotification->nmhdr.idFrom = cmdID;
  558. ///where ShortcutKeyStructurePointer is pointer of struct ShortcutKey:
  559. ///struct ShortcutKey {
  560. /// bool _isCtrl;
  561. /// bool _isAlt;
  562. /// bool _isShift;
  563. /// UCHAR _key;
  564. ///};
  565. /// </summary>
  566. NPPN_SHORTCUTREMAPPED = NPPN_FIRST + 13,
  567. /// <summary>
  568. ///scnNotification->nmhdr.code = NPPN_FILEBEFOREOPEN;
  569. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  570. ///scnNotification->nmhdr.idFrom = NULL;
  571. /// </summary>
  572. NPPN_FILEBEFORELOAD = NPPN_FIRST + 14,
  573. /// <summary>
  574. ///scnNotification->nmhdr.code = NPPN_FILEOPENFAILED;
  575. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  576. ///scnNotification->nmhdr.idFrom = BufferID;
  577. /// </summary>
  578. NPPN_FILELOADFAILED = NPPN_FIRST + 15,
  579. /// <summary>
  580. ///scnNotification->nmhdr.code = NPPN_READONLYCHANGED;
  581. ///scnNotification->nmhdr.hwndFrom = bufferID;
  582. ///scnNotification->nmhdr.idFrom = docStatus;
  583. /// where bufferID is BufferID
  584. /// docStatus can be combined by DOCSTAUS_READONLY and DOCSTAUS_BUFFERDIRTY
  585. /// </summary>
  586. NPPN_READONLYCHANGED = NPPN_FIRST + 16,
  587. DOCSTAUS_READONLY = 1,
  588. DOCSTAUS_BUFFERDIRTY = 2,
  589. /// <summary>
  590. ///scnNotification->nmhdr.code = NPPN_DOCORDERCHANGED;
  591. ///scnNotification->nmhdr.hwndFrom = newIndex;
  592. ///scnNotification->nmhdr.idFrom = BufferID;
  593. /// </summary>
  594. NPPN_DOCORDERCHANGED = NPPN_FIRST + 17,
  595. /// <summary>
  596. ///scnNotification->nmhdr.code = NPPN_SNAPSHOTDIRTYFILELOADED;
  597. ///scnNotification->nmhdr.hwndFrom = NULL;
  598. ///scnNotification->nmhdr.idFrom = BufferID;
  599. /// </summary>
  600. NPPN_SNAPSHOTDIRTYFILELOADED = NPPN_FIRST + 18,
  601. /// <summary>
  602. ///scnNotification->nmhdr.code = NPPN_BEFORESHUTDOWN;
  603. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  604. ///scnNotification->nmhdr.idFrom = 0;
  605. /// </summary>
  606. NPPN_BEFORESHUTDOWN = NPPN_FIRST + 19,
  607. /// <summary>
  608. ///scnNotification->nmhdr.code = NPPN_CANCELSHUTDOWN;
  609. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  610. ///scnNotification->nmhdr.idFrom = 0;
  611. /// </summary>
  612. NPPN_CANCELSHUTDOWN = NPPN_FIRST + 20,
  613. /// <summary>
  614. ///scnNotification->nmhdr.code = NPPN_FILEBEFORERENAME;
  615. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  616. ///scnNotification->nmhdr.idFrom = BufferID;
  617. /// </summary>
  618. NPPN_FILEBEFORERENAME = NPPN_FIRST + 21,
  619. /// <summary>
  620. ///scnNotification->nmhdr.code = NPPN_FILERENAMECANCEL;
  621. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  622. ///scnNotification->nmhdr.idFrom = BufferID;
  623. /// </summary>
  624. NPPN_FILERENAMECANCEL = NPPN_FIRST + 22,
  625. /// <summary>
  626. ///scnNotification->nmhdr.code = NPPN_FILERENAMED;
  627. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  628. ///scnNotification->nmhdr.idFrom = BufferID;
  629. /// </summary>
  630. NPPN_FILERENAMED = NPPN_FIRST + 23,
  631. /// <summary>
  632. ///scnNotification->nmhdr.code = NPPN_FILEBEFOREDELETE;
  633. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  634. ///scnNotification->nmhdr.idFrom = BufferID;
  635. /// </summary>
  636. NPPN_FILEBEFOREDELETE = NPPN_FIRST + 24,
  637. /// <summary>
  638. ///scnNotification->nmhdr.code = NPPN_FILEDELETEFAILED;
  639. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  640. ///scnNotification->nmhdr.idFrom = BufferID;
  641. /// </summary>
  642. NPPN_FILEDELETEFAILED = NPPN_FIRST + 25,
  643. /// <summary>
  644. ///scnNotification->nmhdr.code = NPPN_FILEDELETED;
  645. ///scnNotification->nmhdr.hwndFrom = hwndNpp;
  646. ///scnNotification->nmhdr.idFrom = BufferID;
  647. /// </summary>
  648. NPPN_FILEDELETED = NPPN_FIRST + 26,
  649. /* --Autogenerated -- end of section automatically generated from notepad-plus-plus\PowerEditor\src\MISC\PluginsManager\Notepad_plus_msgs.h * */
  650. }
  651. }