1 // This file is part of Notepad++ project 2 // Copyright (C)2003 Don HO <don.h@free.fr> 3 // 4 // This program is free software; you can redistribute it and/or 5 // modify it under the terms of the GNU General Public License 6 // as published by the Free Software Foundation; either 7 // version 2 of the License, or (at your option) any later version. 8 // 9 // Note that the GPL places important restrictions on "derived works", yet 10 // it does not provide a detailed definition of that term. To avoid 11 // misunderstandings, we consider an application to constitute a 12 // "derivative work" for the purpose of this license if it does any of the 13 // following: 14 // 1. Integrates source code from Notepad++. 15 // 2. Integrates/includes/aggregates Notepad++ into a proprietary executable 16 // installer, such as those produced by InstallShield. 17 // 3. Links to a library or executes a program that does any of the above. 18 // 19 // This program is distributed in the hope that it will be useful, 20 // but WITHOUT ANY WARRANTY; without even the implied warranty of 21 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 // GNU General Public License for more details. 23 // 24 // You should have received a copy of the GNU General Public License 25 // along with this program; if not, write to the Free Software 26 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 27 /** 28 * notepad_plus_msgs wrapper 29 * 30 * See_Also: 31 * https://web.archive.org/web/20190325050754/http://docs.notepad-plus-plus.org/index.php/Messages_And_Notifications 32 * 33 * ToDo: recheck 34 * Author: dokutoku, https://twitter.com/dokutoku3 35 * License: GPL-2.0 or later 36 */ 37 module npp_api.pluginfunc.npp_msgs; 38 39 40 version (Windows): 41 42 pragma(lib, "user32.lib"); 43 44 private static import core.stdc.config; 45 private static import core.sys.windows.windef; 46 private static import core.sys.windows.winuser; 47 private static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 48 private static import npp_api.powereditor.misc.pluginsmanager.plugininterface; 49 50 pragma(inline, true): 51 nothrow @nogc: 52 53 /** 54 * NPPM_GETCURRENTSCINTILLA 55 */ 56 void send_NPPM_GETCURRENTSCINTILLA(core.sys.windows.windef.HWND _nppHandle, ref int currentEdit) 57 58 in 59 { 60 static import core.sys.windows.windef; 61 62 assert(_nppHandle != core.sys.windows.windef.NULL); 63 } 64 65 do 66 { 67 static import core.sys.windows.windef; 68 static import core.sys.windows.winuser; 69 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 70 71 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETCURRENTSCINTILLA, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(¤tEdit)); 72 } 73 74 /** 75 * NPPM_GETCURRENTLANGTYPE 76 */ 77 void send_NPPM_GETCURRENTLANGTYPE(core.sys.windows.windef.HWND _nppHandle, ref npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.LangType langType) 78 79 in 80 { 81 static import core.sys.windows.windef; 82 83 assert(_nppHandle != core.sys.windows.windef.NULL); 84 } 85 86 do 87 { 88 static import core.sys.windows.windef; 89 static import core.sys.windows.winuser; 90 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 91 92 int output_langType; 93 94 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETCURRENTLANGTYPE, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(&output_langType)); 95 96 langType = ((output_langType >= 0) && (cast(int)(npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.LangType.L_EXTERNAL) > output_langType)) ? (cast(npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.LangType)(output_langType)) : (npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.LangType.L_EXTERNAL); 97 } 98 99 /** 100 * NPPM_SETCURRENTLANGTYPE 101 */ 102 bool send_NPPM_SETCURRENTLANGTYPE(core.sys.windows.windef.HWND _nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.LangType langTypeToSet) 103 104 in 105 { 106 static import core.sys.windows.windef; 107 108 assert(_nppHandle != core.sys.windows.windef.NULL); 109 } 110 111 do 112 { 113 static import core.sys.windows.windef; 114 static import core.sys.windows.winuser; 115 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 116 117 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SETCURRENTLANGTYPE, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(cast(int)(langTypeToSet)))); 118 } 119 120 /** 121 * NPPM_GETNBOPENFILES 122 */ 123 size_t send_NPPM_GETNBOPENFILES(core.sys.windows.windef.HWND _nppHandle, int nbType) 124 125 in 126 { 127 static import core.sys.windows.windef; 128 129 assert(_nppHandle != core.sys.windows.windef.NULL); 130 } 131 132 do 133 { 134 static import core.sys.windows.windef; 135 static import core.sys.windows.winuser; 136 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 137 138 return cast(size_t)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETNBOPENFILES, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(nbType))); 139 } 140 141 /** 142 * NPPM_GETOPENFILENAMES 143 */ 144 size_t send_NPPM_GETOPENFILENAMES(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.winnt.WCHAR** fileNames, int nbFile) 145 146 in 147 { 148 static import core.sys.windows.windef; 149 150 assert(_nppHandle != core.sys.windows.windef.NULL); 151 assert(fileNames != null); 152 } 153 154 do 155 { 156 static import core.sys.windows.windef; 157 static import core.sys.windows.winuser; 158 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 159 160 return cast(size_t)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETOPENFILENAMES, cast(core.sys.windows.windef.WPARAM)(fileNames), cast(core.sys.windows.windef.LPARAM)(nbFile))); 161 } 162 163 /** 164 * NPPM_MODELESSDIALOG 165 */ 166 core.sys.windows.windef.HWND send_NPPM_MODELESSDIALOG(core.sys.windows.windef.HWND _nppHandle, int op, core.sys.windows.windef.HWND hDlg) 167 168 in 169 { 170 static import core.sys.windows.windef; 171 172 assert(_nppHandle != core.sys.windows.windef.NULL); 173 } 174 175 do 176 { 177 static import core.sys.windows.windef; 178 static import core.sys.windows.winuser; 179 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 180 181 return cast(core.sys.windows.windef.HWND)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_MODELESSDIALOG, cast(core.sys.windows.windef.WPARAM)(op), cast(core.sys.windows.windef.LPARAM)(hDlg))); 182 } 183 184 /** 185 * NPPM_GETNBSESSIONFILES 186 */ 187 size_t send_NPPM_GETNBSESSIONFILES(core.sys.windows.windef.HWND _nppHandle, scope const core.sys.windows.winnt.WCHAR* sessionFileName) 188 189 in 190 { 191 static import core.sys.windows.windef; 192 193 assert(_nppHandle != core.sys.windows.windef.NULL); 194 assert(sessionFileName != null); 195 } 196 197 do 198 { 199 static import core.sys.windows.windef; 200 static import core.sys.windows.winuser; 201 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 202 203 return cast(size_t)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETNBSESSIONFILES, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(sessionFileName))); 204 } 205 206 /** 207 * NPPM_GETSESSIONFILES 208 */ 209 bool send_NPPM_GETSESSIONFILES(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.winnt.WCHAR** sessionFileArray, scope const core.sys.windows.winnt.WCHAR* sessionFileName) 210 211 in 212 { 213 static import core.sys.windows.windef; 214 215 assert(_nppHandle != core.sys.windows.windef.NULL); 216 assert(sessionFileArray != null); 217 assert(sessionFileName != null); 218 } 219 220 do 221 { 222 static import core.sys.windows.windef; 223 static import core.sys.windows.winuser; 224 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 225 226 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETSESSIONFILES, cast(core.sys.windows.windef.WPARAM)(sessionFileArray), cast(core.sys.windows.windef.LPARAM)(sessionFileName))); 227 } 228 229 /** 230 * NPPM_SAVESESSION 231 * ToDo: pointer? sessionInfomation 232 */ 233 const (core.sys.windows.winnt.WCHAR)* send_NPPM_SAVESESSION(core.sys.windows.windef.HWND _nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.sessionInfo* sessionInfomation) 234 235 in 236 { 237 static import core.sys.windows.windef; 238 239 assert(_nppHandle != core.sys.windows.windef.NULL); 240 assert(sessionInfomation != null); 241 } 242 243 do 244 { 245 static import core.sys.windows.windef; 246 static import core.sys.windows.winuser; 247 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 248 249 return cast(const (core.sys.windows.winnt.WCHAR)*)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SAVESESSION, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(sessionInfomation))); 250 } 251 252 /** 253 * NPPM_SAVECURRENTSESSION 254 */ 255 const (core.sys.windows.winnt.WCHAR)* send_NPPM_SAVECURRENTSESSION(core.sys.windows.windef.HWND _nppHandle, scope const core.sys.windows.winnt.WCHAR* sessionFileName) 256 257 in 258 { 259 static import core.sys.windows.windef; 260 261 assert(_nppHandle != core.sys.windows.windef.NULL); 262 //assert(sessionFileName != null); 263 } 264 265 do 266 { 267 static import core.sys.windows.windef; 268 static import core.sys.windows.winuser; 269 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 270 271 return cast(const (core.sys.windows.winnt.WCHAR)*)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SAVECURRENTSESSION, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(sessionFileName))); 272 } 273 274 /** 275 * NPPM_GETOPENFILENAMESPRIMARY 276 */ 277 size_t send_NPPM_GETOPENFILENAMESPRIMARY(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.winnt.WCHAR** fileNames, int nbFile) 278 279 in 280 { 281 static import core.sys.windows.windef; 282 283 assert(_nppHandle != core.sys.windows.windef.NULL); 284 assert(fileNames != null); 285 } 286 287 do 288 { 289 static import core.sys.windows.windef; 290 static import core.sys.windows.winuser; 291 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 292 293 return cast(size_t)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETOPENFILENAMESPRIMARY, cast(core.sys.windows.windef.WPARAM)(fileNames), cast(core.sys.windows.windef.LPARAM)(nbFile))); 294 } 295 296 /** 297 * NPPM_GETOPENFILENAMESSECOND 298 */ 299 size_t send_NPPM_GETOPENFILENAMESSECOND(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.winnt.WCHAR** fileNames, int nbFile) 300 301 in 302 { 303 static import core.sys.windows.windef; 304 305 assert(_nppHandle != core.sys.windows.windef.NULL); 306 assert(fileNames != null); 307 } 308 309 do 310 { 311 static import core.sys.windows.windef; 312 static import core.sys.windows.winuser; 313 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 314 315 return cast(size_t)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETOPENFILENAMESSECOND, cast(core.sys.windows.windef.WPARAM)(fileNames), cast(core.sys.windows.windef.LPARAM)(nbFile))); 316 } 317 318 /** 319 * NPPM_CREATESCINTILLAHANDLE 320 */ 321 core.sys.windows.windef.HWND send_NPPM_CREATESCINTILLAHANDLE(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.HWND pluginWindowHandle) 322 323 in 324 { 325 static import core.sys.windows.windef; 326 327 assert(_nppHandle != core.sys.windows.windef.NULL); 328 } 329 330 do 331 { 332 static import core.sys.windows.windef; 333 static import core.sys.windows.winuser; 334 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 335 336 return cast(core.sys.windows.windef.HWND)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_CREATESCINTILLAHANDLE, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(pluginWindowHandle))); 337 } 338 339 /** 340 * NPPM_DESTROYSCINTILLAHANDLE 341 */ 342 bool send_NPPM_DESTROYSCINTILLAHANDLE(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.HWND scintillaHandle2Destroy) 343 344 in 345 { 346 static import core.sys.windows.windef; 347 348 assert(_nppHandle != core.sys.windows.windef.NULL); 349 } 350 351 do 352 { 353 static import core.sys.windows.windef; 354 static import core.sys.windows.winuser; 355 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 356 357 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_DESTROYSCINTILLAHANDLE, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(scintillaHandle2Destroy))); 358 } 359 360 /** 361 * NPPM_GETNBUSERLANG 362 */ 363 int send_NPPM_GETNBUSERLANG(core.sys.windows.windef.HWND _nppHandle, int* lParam) 364 365 in 366 { 367 static import core.sys.windows.windef; 368 369 assert(_nppHandle != core.sys.windows.windef.NULL); 370 assert(lParam != null); 371 } 372 373 do 374 { 375 static import core.sys.windows.windef; 376 static import core.sys.windows.winuser; 377 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 378 379 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETNBUSERLANG, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(lParam))); 380 } 381 382 /** 383 * NPPM_GETCURRENTDOCINDEX 384 */ 385 int send_NPPM_GETCURRENTDOCINDEX(core.sys.windows.windef.HWND _nppHandle, int iView) 386 387 in 388 { 389 static import core.sys.windows.windef; 390 391 assert(_nppHandle != core.sys.windows.windef.NULL); 392 } 393 394 do 395 { 396 static import core.sys.windows.windef; 397 static import core.sys.windows.winuser; 398 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 399 400 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETCURRENTDOCINDEX, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(iView))); 401 } 402 403 /** 404 * NPPM_SETSTATUSBAR 405 */ 406 bool send_NPPM_SETSTATUSBAR(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.winnt.WCHAR* wParam, int lParam) 407 408 in 409 { 410 static import core.sys.windows.windef; 411 412 assert(_nppHandle != core.sys.windows.windef.NULL); 413 assert(wParam != null); 414 } 415 416 do 417 { 418 static import core.sys.windows.windef; 419 static import core.sys.windows.winuser; 420 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 421 422 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SETSTATUSBAR, cast(core.sys.windows.windef.WPARAM)(wParam), cast(core.sys.windows.windef.LPARAM)(lParam))); 423 } 424 425 /** 426 * NPPM_GETMENUHANDLE 427 */ 428 core.sys.windows.windef.HMENU send_NPPM_GETMENUHANDLE(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.INT menuChoice) 429 430 in 431 { 432 static import core.sys.windows.windef; 433 434 assert(_nppHandle != core.sys.windows.windef.NULL); 435 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 436 437 assert((menuChoice == npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPPLUGINMENU) || (menuChoice == npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPMAINMENU)); 438 } 439 440 do 441 { 442 static import core.sys.windows.windef; 443 static import core.sys.windows.winuser; 444 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 445 446 return cast(core.sys.windows.windef.HMENU)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETMENUHANDLE, cast(core.sys.windows.windef.WPARAM)(menuChoice), cast(core.sys.windows.windef.LPARAM)(0))); 447 } 448 449 /** 450 * NPPM_ENCODESCI 451 */ 452 int send_NPPM_ENCODESCI(core.sys.windows.windef.HWND _nppHandle, int wParam) 453 454 in 455 { 456 static import core.sys.windows.windef; 457 458 assert(_nppHandle != core.sys.windows.windef.NULL); 459 assert((wParam == npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.MAIN_VIEW) || (wParam == npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.SUB_VIEW)); 460 } 461 462 do 463 { 464 static import core.sys.windows.windef; 465 static import core.sys.windows.winuser; 466 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 467 468 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_ENCODESCI, cast(core.sys.windows.windef.WPARAM)(wParam), cast(core.sys.windows.windef.LPARAM)(0))); 469 } 470 471 /** 472 * NPPM_DECODESCI 473 */ 474 int send_NPPM_DECODESCI(core.sys.windows.windef.HWND _nppHandle, int wParam) 475 476 in 477 { 478 static import core.sys.windows.windef; 479 480 assert(_nppHandle != core.sys.windows.windef.NULL); 481 assert((wParam == npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.MAIN_VIEW) || (wParam == npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.SUB_VIEW)); 482 } 483 484 do 485 { 486 static import core.sys.windows.windef; 487 static import core.sys.windows.winuser; 488 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 489 490 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_DECODESCI, cast(core.sys.windows.windef.WPARAM)(wParam), cast(core.sys.windows.windef.LPARAM)(0))); 491 } 492 493 /** 494 * NPPM_ACTIVATEDOC 495 */ 496 void send_NPPM_ACTIVATEDOC(core.sys.windows.windef.HWND _nppHandle, int view, int index2Activate) 497 498 in 499 { 500 static import core.sys.windows.windef; 501 502 assert(_nppHandle != core.sys.windows.windef.NULL); 503 } 504 505 do 506 { 507 static import core.sys.windows.windef; 508 static import core.sys.windows.winuser; 509 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 510 511 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_ACTIVATEDOC, cast(core.sys.windows.windef.WPARAM)(view), cast(core.sys.windows.windef.LPARAM)(index2Activate)); 512 } 513 514 /** 515 * NPPM_LAUNCHFINDINFILESDLG 516 */ 517 void send_NPPM_LAUNCHFINDINFILESDLG(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.winnt.WCHAR* dir2Search, core.sys.windows.winnt.WCHAR* filtre) 518 519 in 520 { 521 static import core.sys.windows.windef; 522 523 assert(_nppHandle != core.sys.windows.windef.NULL); 524 assert(dir2Search != null); 525 assert(filtre != null); 526 } 527 528 do 529 { 530 static import core.sys.windows.windef; 531 static import core.sys.windows.winuser; 532 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 533 534 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_LAUNCHFINDINFILESDLG, cast(core.sys.windows.windef.WPARAM)(dir2Search), cast(core.sys.windows.windef.LPARAM)(filtre)); 535 } 536 537 /** 538 * NPPM_DMMSHOW 539 */ 540 void send_NPPM_DMMSHOW(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.HWND lParam) 541 542 in 543 { 544 static import core.sys.windows.windef; 545 546 assert(_nppHandle != core.sys.windows.windef.NULL); 547 } 548 549 do 550 { 551 static import core.sys.windows.windef; 552 static import core.sys.windows.winuser; 553 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 554 555 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_DMMSHOW, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(lParam)); 556 } 557 558 /** 559 * NPPM_DMMHIDE 560 */ 561 void send_NPPM_DMMHIDE(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.HWND lParam) 562 563 in 564 { 565 static import core.sys.windows.windef; 566 567 assert(_nppHandle != core.sys.windows.windef.NULL); 568 } 569 570 do 571 { 572 static import core.sys.windows.windef; 573 static import core.sys.windows.winuser; 574 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 575 576 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_DMMHIDE, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(lParam)); 577 } 578 579 /** 580 * NPPM_DMMUPDATEDISPINFO 581 */ 582 void send_NPPM_DMMUPDATEDISPINFO(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.HWND lParam) 583 584 in 585 { 586 static import core.sys.windows.windef; 587 588 assert(_nppHandle != core.sys.windows.windef.NULL); 589 } 590 591 do 592 { 593 static import core.sys.windows.windef; 594 static import core.sys.windows.winuser; 595 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 596 597 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_DMMUPDATEDISPINFO, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(lParam)); 598 } 599 600 /** 601 * NPPM_DMMREGASDCKDLG 602 */ 603 void send_NPPM_DMMREGASDCKDLG(core.sys.windows.windef.HWND _nppHandle, npp_api.powereditor.wincontrols.dockingwnd.docking.tTbData* lParam) 604 605 in 606 { 607 static import core.sys.windows.windef; 608 609 assert(_nppHandle != core.sys.windows.windef.NULL); 610 } 611 612 do 613 { 614 static import core.sys.windows.windef; 615 static import core.sys.windows.winuser; 616 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 617 618 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_DMMREGASDCKDLG, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(lParam)); 619 } 620 621 /** 622 * NPPM_LOADSESSION 623 */ 624 void send_NPPM_LOADSESSION(core.sys.windows.windef.HWND _nppHandle, scope const core.sys.windows.winnt.WCHAR* file_name) 625 626 in 627 { 628 static import core.sys.windows.windef; 629 630 assert(_nppHandle != core.sys.windows.windef.NULL); 631 assert(file_name != null); 632 } 633 634 do 635 { 636 static import core.sys.windows.windef; 637 static import core.sys.windows.winuser; 638 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 639 640 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_LOADSESSION, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(file_name)); 641 } 642 643 /** 644 * NPPM_DMMVIEWOTHERTAB 645 */ 646 void send_NPPM_DMMVIEWOTHERTAB(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.winnt.WCHAR* lParam) 647 648 in 649 { 650 static import core.sys.windows.windef; 651 652 assert(_nppHandle != core.sys.windows.windef.NULL); 653 assert(lParam != null); 654 } 655 656 do 657 { 658 static import core.sys.windows.windef; 659 static import core.sys.windows.winuser; 660 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 661 662 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_DMMVIEWOTHERTAB, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(lParam)); 663 } 664 665 /** 666 * NPPM_RELOADFILE 667 */ 668 bool send_NPPM_RELOADFILE(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.BOOL withAlert, core.sys.windows.winnt.WCHAR* filePathName2Reload) 669 670 in 671 { 672 static import core.sys.windows.windef; 673 674 assert(_nppHandle != core.sys.windows.windef.NULL); 675 assert(filePathName2Reload != null); 676 } 677 678 do 679 { 680 static import core.sys.windows.windef; 681 static import core.sys.windows.winuser; 682 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 683 684 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_RELOADFILE, cast(core.sys.windows.windef.WPARAM)(withAlert), cast(core.sys.windows.windef.LPARAM)(filePathName2Reload))); 685 } 686 687 /** 688 * NPPM_SWITCHTOFILE 689 */ 690 bool send_NPPM_SWITCHTOFILE(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.winnt.WCHAR* filePathName2switch) 691 692 in 693 { 694 static import core.sys.windows.windef; 695 696 assert(_nppHandle != core.sys.windows.windef.NULL); 697 assert(filePathName2switch != null); 698 } 699 700 do 701 { 702 static import core.sys.windows.windef; 703 static import core.sys.windows.winuser; 704 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 705 706 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SWITCHTOFILE, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(filePathName2switch))); 707 } 708 709 /** 710 * NPPM_SAVECURRENTFILE 711 */ 712 bool send_NPPM_SAVECURRENTFILE(core.sys.windows.windef.HWND _nppHandle) 713 714 in 715 { 716 static import core.sys.windows.windef; 717 718 assert(_nppHandle != core.sys.windows.windef.NULL); 719 } 720 721 do 722 { 723 static import core.sys.windows.windef; 724 static import core.sys.windows.winuser; 725 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 726 727 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SAVECURRENTFILE, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 728 } 729 730 /** 731 * NPPM_SAVEALLFILES 732 */ 733 bool send_NPPM_SAVEALLFILES(core.sys.windows.windef.HWND _nppHandle) 734 735 in 736 { 737 static import core.sys.windows.windef; 738 739 assert(_nppHandle != core.sys.windows.windef.NULL); 740 } 741 742 do 743 { 744 static import core.sys.windows.windef; 745 static import core.sys.windows.winuser; 746 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 747 748 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SAVEALLFILES, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 749 } 750 751 /** 752 * NPPM_SETMENUITEMCHECK 753 */ 754 void send_NPPM_SETMENUITEMCHECK(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.UINT _cmdID, core.sys.windows.windef.BOOL check) 755 756 in 757 { 758 static import core.sys.windows.windef; 759 760 assert(_nppHandle != core.sys.windows.windef.NULL); 761 } 762 763 do 764 { 765 static import core.sys.windows.windef; 766 static import core.sys.windows.winuser; 767 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 768 769 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SETMENUITEMCHECK, cast(core.sys.windows.windef.WPARAM)(_cmdID), cast(core.sys.windows.windef.LPARAM)(check)); 770 } 771 772 /** 773 * NPPM_ADDTOOLBARICON 774 */ 775 bool send_NPPM_ADDTOOLBARICON(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.UINT _cmdID, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.toolbarIcons* icon) 776 777 in 778 { 779 static import core.sys.windows.windef; 780 781 assert(_nppHandle != core.sys.windows.windef.NULL); 782 assert(icon != null); 783 } 784 785 do 786 { 787 static import core.sys.windows.windef; 788 static import core.sys.windows.winuser; 789 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 790 791 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_ADDTOOLBARICON, cast(core.sys.windows.windef.WPARAM)(_cmdID), cast(core.sys.windows.windef.LPARAM)(icon))); 792 } 793 794 /** 795 * NPPM_GETWINDOWSVERSION 796 */ 797 npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.winVer send_NPPM_GETWINDOWSVERSION(core.sys.windows.windef.HWND _nppHandle) 798 799 in 800 { 801 static import core.sys.windows.windef; 802 803 assert(_nppHandle != core.sys.windows.windef.NULL); 804 } 805 806 do 807 { 808 static import core.sys.windows.windef; 809 static import core.sys.windows.winuser; 810 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 811 812 return cast(npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.winVer)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETWINDOWSVERSION, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 813 } 814 815 /** 816 * NPPM_DMMGETPLUGINHWNDBYNAME 817 */ 818 core.sys.windows.windef.HWND send_NPPM_DMMGETPLUGINHWNDBYNAME(core.sys.windows.windef.HWND _nppHandle, scope const core.sys.windows.winnt.WCHAR* windowName, scope const core.sys.windows.winnt.WCHAR* moduleName) 819 820 in 821 { 822 static import core.sys.windows.windef; 823 824 assert(_nppHandle != core.sys.windows.windef.NULL); 825 assert(windowName != null); 826 assert(moduleName != null); 827 } 828 829 do 830 { 831 static import core.sys.windows.windef; 832 static import core.sys.windows.winuser; 833 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 834 835 return cast(core.sys.windows.windef.HWND)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_DMMGETPLUGINHWNDBYNAME, cast(core.sys.windows.windef.WPARAM)(windowName), cast(core.sys.windows.windef.LPARAM)(moduleName))); 836 } 837 838 /** 839 * NPPM_MAKECURRENTBUFFERDIRTY 840 */ 841 bool send_NPPM_MAKECURRENTBUFFERDIRTY(core.sys.windows.windef.HWND _nppHandle) 842 843 in 844 { 845 static import core.sys.windows.windef; 846 847 assert(_nppHandle != core.sys.windows.windef.NULL); 848 } 849 850 do 851 { 852 static import core.sys.windows.windef; 853 static import core.sys.windows.winuser; 854 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 855 856 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_MAKECURRENTBUFFERDIRTY, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 857 } 858 859 /** 860 * NPPM_GETENABLETHEMETEXTUREFUNC 861 */ 862 bool send_NPPM_GETENABLETHEMETEXTUREFUNC(core.sys.windows.windef.HWND _nppHandle) 863 864 in 865 { 866 static import core.sys.windows.windef; 867 868 assert(_nppHandle != core.sys.windows.windef.NULL); 869 } 870 871 do 872 { 873 static import core.sys.windows.windef; 874 static import core.sys.windows.winuser; 875 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 876 877 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETENABLETHEMETEXTUREFUNC, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 878 } 879 880 /** 881 * NPPM_GETPLUGINSCONFIGDIR 882 */ 883 bool send_NPPM_GETPLUGINSCONFIGDIR(core.sys.windows.windef.HWND _nppHandle, size_t strLen, core.sys.windows.winnt.WCHAR* str) 884 885 in 886 { 887 static import core.sys.windows.windef; 888 889 assert(_nppHandle != core.sys.windows.windef.NULL); 890 assert(str != null); 891 } 892 893 do 894 { 895 static import core.sys.windows.windef; 896 static import core.sys.windows.winuser; 897 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 898 899 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETPLUGINSCONFIGDIR, cast(core.sys.windows.windef.WPARAM)(strLen), cast(core.sys.windows.windef.LPARAM)(str))); 900 } 901 902 /** 903 * NPPM_MSGTOPLUGIN 904 */ 905 bool send_NPPM_MSGTOPLUGIN(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.winnt.WCHAR* destModuleName, ref npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.CommunicationInfo info) 906 907 in 908 { 909 static import core.sys.windows.windef; 910 911 assert(_nppHandle != core.sys.windows.windef.NULL); 912 assert(destModuleName != null); 913 } 914 915 do 916 { 917 static import core.sys.windows.windef; 918 static import core.sys.windows.winuser; 919 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 920 921 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_MSGTOPLUGIN, cast(core.sys.windows.windef.WPARAM)(destModuleName), cast(core.sys.windows.windef.LPARAM)(&info))); 922 } 923 924 /** 925 * NPPM_MENUCOMMAND 926 */ 927 void send_NPPM_MENUCOMMAND(core.sys.windows.windef.HWND _nppHandle, int cmdID) 928 929 in 930 { 931 static import core.sys.windows.windef; 932 933 assert(_nppHandle != core.sys.windows.windef.NULL); 934 } 935 936 do 937 { 938 static import core.sys.windows.windef; 939 static import core.sys.windows.winuser; 940 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 941 942 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_MENUCOMMAND, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(cmdID)); 943 } 944 945 /** 946 * NPPM_TRIGGERTABBARCONTEXTMENU 947 */ 948 void send_NPPM_TRIGGERTABBARCONTEXTMENU(core.sys.windows.windef.HWND _nppHandle, int view, int index2Activate) 949 950 in 951 { 952 static import core.sys.windows.windef; 953 954 assert(_nppHandle != core.sys.windows.windef.NULL); 955 } 956 957 do 958 { 959 static import core.sys.windows.windef; 960 static import core.sys.windows.winuser; 961 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 962 963 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_TRIGGERTABBARCONTEXTMENU, cast(core.sys.windows.windef.WPARAM)(view), cast(core.sys.windows.windef.LPARAM)(index2Activate)); 964 } 965 966 /** 967 * NPPM_GETNPPVERSION 968 */ 969 int send_NPPM_GETNPPVERSION(core.sys.windows.windef.HWND _nppHandle) 970 971 in 972 { 973 static import core.sys.windows.windef; 974 975 assert(_nppHandle != core.sys.windows.windef.NULL); 976 } 977 978 do 979 { 980 static import core.sys.windows.windef; 981 static import core.sys.windows.winuser; 982 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 983 984 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETNPPVERSION, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 985 } 986 987 /** 988 * NPPM_HIDETABBAR 989 */ 990 bool send_NPPM_HIDETABBAR(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.BOOL hideOrNot) 991 992 in 993 { 994 static import core.sys.windows.windef; 995 996 assert(_nppHandle != core.sys.windows.windef.NULL); 997 } 998 999 do 1000 { 1001 static import core.sys.windows.windef; 1002 static import core.sys.windows.winuser; 1003 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1004 1005 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_HIDETABBAR, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(hideOrNot))); 1006 } 1007 1008 /** 1009 * NPPM_ISTABBARHIDDEN 1010 */ 1011 bool send_NPPM_ISTABBARHIDDEN(core.sys.windows.windef.HWND _nppHandle) 1012 1013 in 1014 { 1015 static import core.sys.windows.windef; 1016 1017 assert(_nppHandle != core.sys.windows.windef.NULL); 1018 } 1019 1020 do 1021 { 1022 static import core.sys.windows.windef; 1023 static import core.sys.windows.winuser; 1024 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1025 1026 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_ISTABBARHIDDEN, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 1027 } 1028 1029 /** 1030 * NPPM_GETPOSFROMBUFFERID 1031 */ 1032 int send_NPPM_GETPOSFROMBUFFERID(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.basetsd.UINT_PTR bufferID, core.sys.windows.windef.INT priorityView) 1033 1034 in 1035 { 1036 static import core.sys.windows.windef; 1037 1038 assert(_nppHandle != core.sys.windows.windef.NULL); 1039 } 1040 1041 do 1042 { 1043 static import core.sys.windows.windef; 1044 static import core.sys.windows.winuser; 1045 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1046 1047 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETPOSFROMBUFFERID, cast(core.sys.windows.windef.WPARAM)(bufferID), cast(core.sys.windows.windef.LPARAM)(priorityView))); 1048 } 1049 1050 /** 1051 * NPPM_GETFULLPATHFROMBUFFERID 1052 */ 1053 int send_NPPM_GETFULLPATHFROMBUFFERID(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.basetsd.UINT_PTR bufferID, core.sys.windows.winnt.WCHAR* fullFilePath) 1054 1055 in 1056 { 1057 static import core.sys.windows.windef; 1058 1059 assert(_nppHandle != core.sys.windows.windef.NULL); 1060 assert(fullFilePath != null); 1061 } 1062 1063 do 1064 { 1065 static import core.sys.windows.windef; 1066 static import core.sys.windows.winuser; 1067 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1068 1069 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETFULLPATHFROMBUFFERID, cast(core.sys.windows.windef.WPARAM)(bufferID), cast(core.sys.windows.windef.LPARAM)(fullFilePath))); 1070 } 1071 1072 /** 1073 * NPPM_GETBUFFERIDFROMPOS 1074 */ 1075 core.sys.windows.windef.LRESULT send_NPPM_GETBUFFERIDFROMPOS(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.INT index, core.sys.windows.windef.INT iView) 1076 1077 in 1078 { 1079 static import core.sys.windows.windef; 1080 1081 assert(_nppHandle != core.sys.windows.windef.NULL); 1082 } 1083 1084 do 1085 { 1086 static import core.sys.windows.windef; 1087 static import core.sys.windows.winuser; 1088 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1089 1090 return cast(core.sys.windows.windef.LRESULT)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETBUFFERIDFROMPOS, cast(core.sys.windows.windef.WPARAM)(index), cast(core.sys.windows.windef.LPARAM)(iView))); 1091 } 1092 1093 /** 1094 * NPPM_GETCURRENTBUFFERID 1095 */ 1096 core.sys.windows.windef.LRESULT send_NPPM_GETCURRENTBUFFERID(core.sys.windows.windef.HWND _nppHandle) 1097 1098 in 1099 { 1100 static import core.sys.windows.windef; 1101 1102 assert(_nppHandle != core.sys.windows.windef.NULL); 1103 } 1104 1105 do 1106 { 1107 static import core.sys.windows.windef; 1108 static import core.sys.windows.winuser; 1109 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1110 1111 return cast(core.sys.windows.windef.LRESULT)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETCURRENTBUFFERID, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 1112 } 1113 1114 /** 1115 * NPPM_RELOADBUFFERID 1116 */ 1117 void send_NPPM_RELOADBUFFERID(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.basetsd.UINT_PTR bufferID, core.sys.windows.windef.BOOL alert) 1118 1119 in 1120 { 1121 static import core.sys.windows.windef; 1122 1123 assert(_nppHandle != core.sys.windows.windef.NULL); 1124 } 1125 1126 do 1127 { 1128 static import core.sys.windows.windef; 1129 static import core.sys.windows.winuser; 1130 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1131 1132 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_RELOADBUFFERID, cast(core.sys.windows.windef.WPARAM)(bufferID), cast(core.sys.windows.windef.LPARAM)(alert)); 1133 } 1134 1135 /** 1136 * NPPM_GETBUFFERLANGTYPE 1137 */ 1138 npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.LangType send_NPPM_GETBUFFERLANGTYPE(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.basetsd.UINT_PTR bufferID) 1139 1140 in 1141 { 1142 static import core.sys.windows.windef; 1143 1144 assert(_nppHandle != core.sys.windows.windef.NULL); 1145 } 1146 1147 do 1148 { 1149 static import core.sys.windows.windef; 1150 static import core.sys.windows.winuser; 1151 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1152 1153 int output_langType; 1154 1155 output_langType = cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETBUFFERLANGTYPE, cast(core.sys.windows.windef.WPARAM)(bufferID), cast(core.sys.windows.windef.LPARAM)(0))); 1156 1157 return ((output_langType >= 0) && (cast(int)(npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.LangType.L_EXTERNAL) > output_langType)) ? (cast(npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.LangType)(output_langType)) : (npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.LangType.L_EXTERNAL); 1158 } 1159 1160 /** 1161 * NPPM_SETBUFFERLANGTYPE 1162 */ 1163 bool send_NPPM_SETBUFFERLANGTYPE(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.basetsd.UINT_PTR bufferID, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.LangType langType) 1164 1165 in 1166 { 1167 static import core.sys.windows.windef; 1168 1169 assert(_nppHandle != core.sys.windows.windef.NULL); 1170 } 1171 1172 do 1173 { 1174 static import core.sys.windows.windef; 1175 static import core.sys.windows.winuser; 1176 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1177 1178 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SETBUFFERLANGTYPE, cast(core.sys.windows.windef.WPARAM)(bufferID), cast(core.sys.windows.windef.LPARAM)(cast(int)(langType)))); 1179 } 1180 1181 /** 1182 * NPPM_GETBUFFERENCODING 1183 */ 1184 int send_NPPM_GETBUFFERENCODING(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.basetsd.UINT_PTR bufferID) 1185 1186 in 1187 { 1188 static import core.sys.windows.windef; 1189 1190 assert(_nppHandle != core.sys.windows.windef.NULL); 1191 } 1192 1193 do 1194 { 1195 static import core.sys.windows.windef; 1196 static import core.sys.windows.winuser; 1197 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1198 1199 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETBUFFERENCODING, cast(core.sys.windows.windef.WPARAM)(bufferID), cast(core.sys.windows.windef.LPARAM)(0))); 1200 } 1201 1202 /** 1203 * NPPM_SETBUFFERENCODING 1204 */ 1205 bool send_NPPM_SETBUFFERENCODING(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.basetsd.UINT_PTR bufferID, core.sys.windows.windef.INT encoding) 1206 1207 in 1208 { 1209 static import core.sys.windows.windef; 1210 1211 assert(_nppHandle != core.sys.windows.windef.NULL); 1212 } 1213 1214 do 1215 { 1216 static import core.sys.windows.windef; 1217 static import core.sys.windows.winuser; 1218 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1219 1220 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SETBUFFERENCODING, cast(core.sys.windows.windef.WPARAM)(bufferID), cast(core.sys.windows.windef.LPARAM)(encoding))); 1221 } 1222 1223 /** 1224 * NPPM_GETBUFFERFORMAT 1225 */ 1226 int send_NPPM_GETBUFFERFORMAT(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.basetsd.UINT_PTR bufferID) 1227 1228 in 1229 { 1230 static import core.sys.windows.windef; 1231 1232 assert(_nppHandle != core.sys.windows.windef.NULL); 1233 } 1234 1235 do 1236 { 1237 static import core.sys.windows.windef; 1238 static import core.sys.windows.winuser; 1239 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1240 1241 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETBUFFERFORMAT, cast(core.sys.windows.windef.WPARAM)(bufferID), cast(core.sys.windows.windef.LPARAM)(0))); 1242 } 1243 1244 /** 1245 * NPPM_SETBUFFERFORMAT 1246 */ 1247 bool send_NPPM_SETBUFFERFORMAT(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.basetsd.UINT_PTR bufferID, core.sys.windows.windef.INT format) 1248 1249 in 1250 { 1251 static import core.sys.windows.windef; 1252 1253 assert(_nppHandle != core.sys.windows.windef.NULL); 1254 } 1255 1256 do 1257 { 1258 static import core.sys.windows.windef; 1259 static import core.sys.windows.winuser; 1260 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1261 1262 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SETBUFFERFORMAT, cast(core.sys.windows.windef.WPARAM)(bufferID), cast(core.sys.windows.windef.LPARAM)(format))); 1263 } 1264 1265 /** 1266 * NPPM_HIDETOOLBAR 1267 */ 1268 bool send_NPPM_HIDETOOLBAR(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.BOOL hideOrNot) 1269 1270 in 1271 { 1272 static import core.sys.windows.windef; 1273 1274 assert(_nppHandle != core.sys.windows.windef.NULL); 1275 } 1276 1277 do 1278 { 1279 static import core.sys.windows.windef; 1280 static import core.sys.windows.winuser; 1281 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1282 1283 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_HIDETOOLBAR, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(hideOrNot))); 1284 } 1285 1286 /** 1287 * NPPM_ISTOOLBARHIDDEN 1288 */ 1289 bool send_NPPM_ISTOOLBARHIDDEN(core.sys.windows.windef.HWND _nppHandle) 1290 1291 in 1292 { 1293 static import core.sys.windows.windef; 1294 1295 assert(_nppHandle != core.sys.windows.windef.NULL); 1296 } 1297 1298 do 1299 { 1300 static import core.sys.windows.windef; 1301 static import core.sys.windows.winuser; 1302 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1303 1304 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_ISTOOLBARHIDDEN, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 1305 } 1306 1307 /** 1308 * NPPM_HIDEMENU 1309 */ 1310 bool send_NPPM_HIDEMENU(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.BOOL hideOrNot) 1311 1312 in 1313 { 1314 static import core.sys.windows.windef; 1315 1316 assert(_nppHandle != core.sys.windows.windef.NULL); 1317 } 1318 1319 do 1320 { 1321 static import core.sys.windows.windef; 1322 static import core.sys.windows.winuser; 1323 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1324 1325 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_HIDEMENU, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(hideOrNot))); 1326 } 1327 1328 /** 1329 * NPPM_ISMENUHIDDEN 1330 */ 1331 bool send_NPPM_ISMENUHIDDEN(core.sys.windows.windef.HWND _nppHandle) 1332 1333 in 1334 { 1335 static import core.sys.windows.windef; 1336 1337 assert(_nppHandle != core.sys.windows.windef.NULL); 1338 } 1339 1340 do 1341 { 1342 static import core.sys.windows.windef; 1343 static import core.sys.windows.winuser; 1344 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1345 1346 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_ISMENUHIDDEN, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 1347 } 1348 1349 /** 1350 * NPPM_HIDESTATUSBAR 1351 */ 1352 bool send_NPPM_HIDESTATUSBAR(core.sys.windows.windef.HWND _nppHandle) 1353 1354 in 1355 { 1356 static import core.sys.windows.windef; 1357 1358 assert(_nppHandle != core.sys.windows.windef.NULL); 1359 } 1360 1361 do 1362 { 1363 static import core.sys.windows.windef; 1364 static import core.sys.windows.winuser; 1365 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1366 1367 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_HIDESTATUSBAR, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 1368 } 1369 1370 /** 1371 * NPPM_ISSTATUSBARHIDDEN 1372 */ 1373 bool send_NPPM_ISSTATUSBARHIDDEN(core.sys.windows.windef.HWND _nppHandle) 1374 1375 in 1376 { 1377 static import core.sys.windows.windef; 1378 1379 assert(_nppHandle != core.sys.windows.windef.NULL); 1380 } 1381 1382 do 1383 { 1384 static import core.sys.windows.windef; 1385 static import core.sys.windows.winuser; 1386 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1387 1388 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_ISSTATUSBARHIDDEN, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 1389 } 1390 1391 /** 1392 * NPPM_GETSHORTCUTBYCMDID 1393 */ 1394 bool send_NPPM_GETSHORTCUTBYCMDID(core.sys.windows.windef.HWND _nppHandle, int cmdID, ref npp_api.powereditor.misc.pluginsmanager.plugininterface.ShortcutKey sk) 1395 1396 in 1397 { 1398 static import core.sys.windows.windef; 1399 1400 assert(_nppHandle != core.sys.windows.windef.NULL); 1401 } 1402 1403 do 1404 { 1405 static import core.sys.windows.windef; 1406 static import core.sys.windows.winuser; 1407 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1408 1409 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETSHORTCUTBYCMDID, cast(core.sys.windows.windef.WPARAM)(cmdID), cast(core.sys.windows.windef.LPARAM)(&sk))); 1410 } 1411 1412 /** 1413 * NPPM_DOOPEN 1414 */ 1415 bool send_NPPM_DOOPEN(core.sys.windows.windef.HWND _nppHandle, scope const core.sys.windows.winnt.WCHAR* fullPathName2Open) 1416 1417 in 1418 { 1419 static import core.sys.windows.windef; 1420 1421 assert(_nppHandle != core.sys.windows.windef.NULL); 1422 assert(fullPathName2Open != null); 1423 } 1424 1425 do 1426 { 1427 static import core.sys.windows.windef; 1428 static import core.sys.windows.winuser; 1429 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1430 1431 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_DOOPEN, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(fullPathName2Open))); 1432 } 1433 1434 /** 1435 * NPPM_SAVECURRENTFILEAS 1436 */ 1437 bool send_NPPM_SAVECURRENTFILEAS(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.BOOL asCopy, scope const core.sys.windows.winnt.WCHAR* filename) 1438 1439 in 1440 { 1441 static import core.sys.windows.windef; 1442 1443 assert(_nppHandle != core.sys.windows.windef.NULL); 1444 assert(filename != null); 1445 } 1446 1447 do 1448 { 1449 static import core.sys.windows.windef; 1450 static import core.sys.windows.winuser; 1451 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1452 1453 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SAVECURRENTFILEAS, cast(core.sys.windows.windef.WPARAM)(asCopy), cast(core.sys.windows.windef.LPARAM)(filename))); 1454 } 1455 1456 /** 1457 * NPPM_GETCURRENTNATIVELANGENCODING 1458 */ 1459 int send_NPPM_GETCURRENTNATIVELANGENCODING(core.sys.windows.windef.HWND _nppHandle) 1460 1461 in 1462 { 1463 static import core.sys.windows.windef; 1464 1465 assert(_nppHandle != core.sys.windows.windef.NULL); 1466 } 1467 1468 do 1469 { 1470 static import core.sys.windows.windef; 1471 static import core.sys.windows.winuser; 1472 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1473 1474 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETCURRENTNATIVELANGENCODING, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 1475 } 1476 1477 /** 1478 * NPPM_ALLOCATESUPPORTED 1479 */ 1480 bool send_NPPM_ALLOCATESUPPORTED(core.sys.windows.windef.HWND _nppHandle) 1481 1482 in 1483 { 1484 static import core.sys.windows.windef; 1485 1486 assert(_nppHandle != core.sys.windows.windef.NULL); 1487 } 1488 1489 do 1490 { 1491 static import core.sys.windows.windef; 1492 static import core.sys.windows.winuser; 1493 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1494 1495 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_ALLOCATESUPPORTED, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 1496 } 1497 1498 /** 1499 * NPPM_ALLOCATECMDID 1500 */ 1501 bool send_NPPM_ALLOCATECMDID(core.sys.windows.windef.HWND _nppHandle, int numberRequested, ref int startNumber) 1502 1503 in 1504 { 1505 static import core.sys.windows.windef; 1506 1507 assert(_nppHandle != core.sys.windows.windef.NULL); 1508 } 1509 1510 do 1511 { 1512 static import core.sys.windows.windef; 1513 static import core.sys.windows.winuser; 1514 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1515 1516 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_ALLOCATECMDID, cast(core.sys.windows.windef.WPARAM)(numberRequested), cast(core.sys.windows.windef.LPARAM)(&startNumber))); 1517 } 1518 1519 /** 1520 * NPPM_ALLOCATEMARKER 1521 */ 1522 bool send_NPPM_ALLOCATEMARKER(core.sys.windows.windef.HWND _nppHandle, int numberRequested, ref int startNumber) 1523 1524 in 1525 { 1526 static import core.sys.windows.windef; 1527 1528 assert(_nppHandle != core.sys.windows.windef.NULL); 1529 } 1530 1531 do 1532 { 1533 static import core.sys.windows.windef; 1534 static import core.sys.windows.winuser; 1535 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1536 1537 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_ALLOCATEMARKER, cast(core.sys.windows.windef.WPARAM)(numberRequested), cast(core.sys.windows.windef.LPARAM)(&startNumber))); 1538 } 1539 1540 /** 1541 * NPPM_GETLANGUAGENAME 1542 */ 1543 int send_NPPM_GETLANGUAGENAME(core.sys.windows.windef.HWND _nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.LangType langType, core.sys.windows.winnt.WCHAR* langName) 1544 1545 in 1546 { 1547 static import core.sys.windows.windef; 1548 1549 assert(_nppHandle != core.sys.windows.windef.NULL); 1550 assert(langName != null); 1551 } 1552 1553 do 1554 { 1555 static import core.sys.windows.windef; 1556 static import core.sys.windows.winuser; 1557 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1558 1559 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETLANGUAGENAME, cast(core.sys.windows.windef.WPARAM)(cast(int)(langType)), cast(core.sys.windows.windef.LPARAM)(langName))); 1560 } 1561 1562 /** 1563 * NPPM_GETLANGUAGEDESC 1564 */ 1565 int send_NPPM_GETLANGUAGEDESC(core.sys.windows.windef.HWND _nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.LangType langType, core.sys.windows.winnt.WCHAR* langDesc) 1566 1567 in 1568 { 1569 static import core.sys.windows.windef; 1570 1571 assert(_nppHandle != core.sys.windows.windef.NULL); 1572 assert(langDesc != null); 1573 } 1574 1575 do 1576 { 1577 static import core.sys.windows.windef; 1578 static import core.sys.windows.winuser; 1579 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1580 1581 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETLANGUAGEDESC, cast(core.sys.windows.windef.WPARAM)(cast(int)(langType)), cast(core.sys.windows.windef.LPARAM)(langDesc))); 1582 } 1583 1584 /** 1585 * NPPM_SHOWDOCSWITCHER 1586 */ 1587 void send_NPPM_SHOWDOCSWITCHER(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.BOOL toShowOrNot) 1588 1589 in 1590 { 1591 static import core.sys.windows.windef; 1592 1593 assert(_nppHandle != core.sys.windows.windef.NULL); 1594 } 1595 1596 do 1597 { 1598 static import core.sys.windows.windef; 1599 static import core.sys.windows.winuser; 1600 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1601 1602 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SHOWDOCSWITCHER, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(toShowOrNot)); 1603 } 1604 1605 /** 1606 * NPPM_ISDOCSWITCHERSHOWN 1607 */ 1608 bool send_NPPM_ISDOCSWITCHERSHOWN(core.sys.windows.windef.HWND _nppHandle) 1609 1610 in 1611 { 1612 static import core.sys.windows.windef; 1613 1614 assert(_nppHandle != core.sys.windows.windef.NULL); 1615 } 1616 1617 do 1618 { 1619 static import core.sys.windows.windef; 1620 static import core.sys.windows.winuser; 1621 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1622 1623 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_ISDOCSWITCHERSHOWN, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 1624 } 1625 1626 /** 1627 * NPPM_GETAPPDATAPLUGINSALLOWED 1628 */ 1629 bool send_NPPM_GETAPPDATAPLUGINSALLOWED(core.sys.windows.windef.HWND _nppHandle) 1630 1631 in 1632 { 1633 static import core.sys.windows.windef; 1634 1635 assert(_nppHandle != core.sys.windows.windef.NULL); 1636 } 1637 1638 do 1639 { 1640 static import core.sys.windows.windef; 1641 static import core.sys.windows.winuser; 1642 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1643 1644 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETAPPDATAPLUGINSALLOWED, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 1645 } 1646 1647 /** 1648 * NPPM_GETCURRENTVIEW 1649 */ 1650 int send_NPPM_GETCURRENTVIEW(core.sys.windows.windef.HWND _nppHandle) 1651 1652 in 1653 { 1654 static import core.sys.windows.windef; 1655 1656 assert(_nppHandle != core.sys.windows.windef.NULL); 1657 } 1658 1659 do 1660 { 1661 static import core.sys.windows.windef; 1662 static import core.sys.windows.winuser; 1663 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1664 1665 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETCURRENTVIEW, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 1666 } 1667 1668 /** 1669 * NPPM_DOCSWITCHERDISABLECOLUMN 1670 */ 1671 void send_NPPM_DOCSWITCHERDISABLECOLUMN(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.BOOL disableOrNot) 1672 1673 in 1674 { 1675 static import core.sys.windows.windef; 1676 1677 assert(_nppHandle != core.sys.windows.windef.NULL); 1678 } 1679 1680 do 1681 { 1682 static import core.sys.windows.windef; 1683 static import core.sys.windows.winuser; 1684 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1685 1686 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_DOCSWITCHERDISABLECOLUMN, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(disableOrNot)); 1687 } 1688 1689 /** 1690 * NPPM_GETEDITORDEFAULTFOREGROUNDCOLOR 1691 */ 1692 int send_NPPM_GETEDITORDEFAULTFOREGROUNDCOLOR(core.sys.windows.windef.HWND _nppHandle) 1693 1694 in 1695 { 1696 static import core.sys.windows.windef; 1697 1698 assert(_nppHandle != core.sys.windows.windef.NULL); 1699 } 1700 1701 do 1702 { 1703 static import core.sys.windows.windef; 1704 static import core.sys.windows.winuser; 1705 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1706 1707 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETEDITORDEFAULTFOREGROUNDCOLOR, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 1708 } 1709 1710 /** 1711 * NPPM_GETEDITORDEFAULTBACKGROUNDCOLOR 1712 */ 1713 int send_NPPM_GETEDITORDEFAULTBACKGROUNDCOLOR(core.sys.windows.windef.HWND _nppHandle) 1714 1715 in 1716 { 1717 static import core.sys.windows.windef; 1718 1719 assert(_nppHandle != core.sys.windows.windef.NULL); 1720 } 1721 1722 do 1723 { 1724 static import core.sys.windows.windef; 1725 static import core.sys.windows.winuser; 1726 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1727 1728 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETEDITORDEFAULTBACKGROUNDCOLOR, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 1729 } 1730 1731 /** 1732 * NPPM_SETSMOOTHFONT 1733 */ 1734 int send_NPPM_SETSMOOTHFONT(core.sys.windows.windef.HWND _nppHandle) 1735 1736 in 1737 { 1738 static import core.sys.windows.windef; 1739 1740 assert(_nppHandle != core.sys.windows.windef.NULL); 1741 } 1742 1743 do 1744 { 1745 static import core.sys.windows.windef; 1746 static import core.sys.windows.winuser; 1747 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1748 1749 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SETSMOOTHFONT, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 1750 } 1751 1752 /** 1753 * NPPM_SETEDITORBORDEREDGE 1754 */ 1755 void send_NPPM_SETEDITORBORDEREDGE(core.sys.windows.windef.HWND _nppHandle, core.sys.windows.windef.BOOL withEditorBorderEdgeOrNot) 1756 1757 in 1758 { 1759 static import core.sys.windows.windef; 1760 1761 assert(_nppHandle != core.sys.windows.windef.NULL); 1762 } 1763 1764 do 1765 { 1766 static import core.sys.windows.windef; 1767 static import core.sys.windows.winuser; 1768 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1769 1770 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SETEDITORBORDEREDGE, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(withEditorBorderEdgeOrNot)); 1771 } 1772 1773 /** 1774 * NPPM_SAVEFILE 1775 */ 1776 void send_NPPM_SAVEFILE(core.sys.windows.windef.HWND _nppHandle, scope const core.sys.windows.winnt.WCHAR* fileNameToSave) 1777 1778 in 1779 { 1780 static import core.sys.windows.windef; 1781 1782 assert(_nppHandle != core.sys.windows.windef.NULL); 1783 assert(fileNameToSave != null); 1784 } 1785 1786 do 1787 { 1788 static import core.sys.windows.windef; 1789 static import core.sys.windows.winuser; 1790 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1791 1792 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_SAVEFILE, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(fileNameToSave)); 1793 } 1794 1795 /** 1796 * NPPM_DISABLEAUTOUPDATE 1797 */ 1798 void send_NPPM_DISABLEAUTOUPDATE(core.sys.windows.windef.HWND _nppHandle) 1799 1800 in 1801 { 1802 static import core.sys.windows.windef; 1803 1804 assert(_nppHandle != core.sys.windows.windef.NULL); 1805 } 1806 1807 do 1808 { 1809 static import core.sys.windows.windef; 1810 static import core.sys.windows.winuser; 1811 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1812 1813 core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_DISABLEAUTOUPDATE, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0)); 1814 } 1815 1816 /** 1817 * NPPM_REMOVESHORTCUTBYCMDID 1818 */ 1819 core.stdc.config.c_long send_NPPM_REMOVESHORTCUTBYCMDID(core.sys.windows.windef.HWND _nppHandle, int cmdID) 1820 1821 in 1822 { 1823 static import core.sys.windows.windef; 1824 1825 assert(_nppHandle != core.sys.windows.windef.NULL); 1826 } 1827 1828 do 1829 { 1830 static import core.sys.windows.windef; 1831 static import core.sys.windows.winuser; 1832 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1833 1834 return cast(core.stdc.config.c_long)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_REMOVESHORTCUTBYCMDID, cast(core.sys.windows.windef.WPARAM)(cmdID), cast(core.sys.windows.windef.LPARAM)(0))); 1835 } 1836 1837 /** 1838 * NPPM_GETPLUGINHOMEPATH 1839 */ 1840 int send_NPPM_GETPLUGINHOMEPATH(core.sys.windows.windef.HWND _nppHandle, size_t strLen, core.sys.windows.winnt.WCHAR* pluginRootPath) 1841 1842 in 1843 { 1844 static import core.sys.windows.windef; 1845 1846 assert(_nppHandle != core.sys.windows.windef.NULL); 1847 assert(pluginRootPath != null); 1848 } 1849 1850 do 1851 { 1852 static import core.sys.windows.windef; 1853 static import core.sys.windows.winuser; 1854 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1855 1856 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETPLUGINHOMEPATH, cast(core.sys.windows.windef.WPARAM)(strLen), cast(core.sys.windows.windef.LPARAM)(pluginRootPath))); 1857 } 1858 1859 /** 1860 * NPPM_GETFULLCURRENTPATH 1861 */ 1862 bool send_NPPM_GETFULLCURRENTPATH(core.sys.windows.windef.HWND _nppHandle, size_t strLen, core.sys.windows.winnt.WCHAR* str) 1863 1864 in 1865 { 1866 static import core.sys.windows.windef; 1867 1868 assert(_nppHandle != core.sys.windows.windef.NULL); 1869 assert(str != null); 1870 } 1871 1872 do 1873 { 1874 static import core.sys.windows.windef; 1875 static import core.sys.windows.winuser; 1876 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1877 1878 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETFULLCURRENTPATH, cast(core.sys.windows.windef.WPARAM)(strLen), cast(core.sys.windows.windef.LPARAM)(str))); 1879 } 1880 1881 /** 1882 * NPPM_GETCURRENTDIRECTORY 1883 */ 1884 bool send_NPPM_GETCURRENTDIRECTORY(core.sys.windows.windef.HWND _nppHandle, size_t strLen, core.sys.windows.winnt.WCHAR* str) 1885 1886 in 1887 { 1888 static import core.sys.windows.windef; 1889 1890 assert(_nppHandle != core.sys.windows.windef.NULL); 1891 assert(str != null); 1892 } 1893 1894 do 1895 { 1896 static import core.sys.windows.windef; 1897 static import core.sys.windows.winuser; 1898 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1899 1900 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETCURRENTDIRECTORY, cast(core.sys.windows.windef.WPARAM)(strLen), cast(core.sys.windows.windef.LPARAM)(str))); 1901 } 1902 1903 /** 1904 * NPPM_GETFILENAME 1905 */ 1906 bool send_NPPM_GETFILENAME(core.sys.windows.windef.HWND _nppHandle, size_t strLen, core.sys.windows.winnt.WCHAR* str) 1907 1908 in 1909 { 1910 static import core.sys.windows.windef; 1911 1912 assert(_nppHandle != core.sys.windows.windef.NULL); 1913 assert(str != null); 1914 } 1915 1916 do 1917 { 1918 static import core.sys.windows.windef; 1919 static import core.sys.windows.winuser; 1920 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1921 1922 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETFILENAME, cast(core.sys.windows.windef.WPARAM)(strLen), cast(core.sys.windows.windef.LPARAM)(str))); 1923 } 1924 1925 /** 1926 * NPPM_GETNAMEPART 1927 */ 1928 bool send_NPPM_GETNAMEPART(core.sys.windows.windef.HWND _nppHandle, size_t strLen, core.sys.windows.winnt.WCHAR* str) 1929 1930 in 1931 { 1932 static import core.sys.windows.windef; 1933 1934 assert(_nppHandle != core.sys.windows.windef.NULL); 1935 assert(str != null); 1936 } 1937 1938 do 1939 { 1940 static import core.sys.windows.windef; 1941 static import core.sys.windows.winuser; 1942 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1943 1944 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETNAMEPART, cast(core.sys.windows.windef.WPARAM)(strLen), cast(core.sys.windows.windef.LPARAM)(str))); 1945 } 1946 1947 /** 1948 * NPPM_GETEXTPART 1949 */ 1950 bool send_NPPM_GETEXTPART(core.sys.windows.windef.HWND _nppHandle, size_t strLen, core.sys.windows.winnt.WCHAR* str) 1951 1952 in 1953 { 1954 static import core.sys.windows.windef; 1955 1956 assert(_nppHandle != core.sys.windows.windef.NULL); 1957 assert(str != null); 1958 } 1959 1960 do 1961 { 1962 static import core.sys.windows.windef; 1963 static import core.sys.windows.winuser; 1964 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1965 1966 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETEXTPART, cast(core.sys.windows.windef.WPARAM)(strLen), cast(core.sys.windows.windef.LPARAM)(str))); 1967 } 1968 1969 /** 1970 * NPPM_GETCURRENTWORD 1971 */ 1972 bool send_NPPM_GETCURRENTWORD(core.sys.windows.windef.HWND _nppHandle, size_t strLen, core.sys.windows.winnt.WCHAR* str) 1973 1974 in 1975 { 1976 static import core.sys.windows.windef; 1977 1978 assert(_nppHandle != core.sys.windows.windef.NULL); 1979 assert(str != null); 1980 } 1981 1982 do 1983 { 1984 static import core.sys.windows.windef; 1985 static import core.sys.windows.winuser; 1986 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 1987 1988 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETCURRENTWORD, cast(core.sys.windows.windef.WPARAM)(strLen), cast(core.sys.windows.windef.LPARAM)(str))); 1989 } 1990 1991 /** 1992 * NPPM_GETNPPDIRECTORY 1993 */ 1994 bool send_NPPM_GETNPPDIRECTORY(core.sys.windows.windef.HWND _nppHandle, size_t strLen, core.sys.windows.winnt.WCHAR* str) 1995 1996 in 1997 { 1998 static import core.sys.windows.windef; 1999 2000 assert(_nppHandle != core.sys.windows.windef.NULL); 2001 assert(str != null); 2002 } 2003 2004 do 2005 { 2006 static import core.sys.windows.windef; 2007 static import core.sys.windows.winuser; 2008 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 2009 2010 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETNPPDIRECTORY, cast(core.sys.windows.windef.WPARAM)(strLen), cast(core.sys.windows.windef.LPARAM)(str))); 2011 } 2012 2013 /** 2014 * NPPM_GETFILENAMEATCURSOR 2015 */ 2016 bool send_NPPM_GETFILENAMEATCURSOR(core.sys.windows.windef.HWND _nppHandle, size_t strLen, core.sys.windows.winnt.WCHAR* str) 2017 2018 in 2019 { 2020 static import core.sys.windows.windef; 2021 2022 assert(_nppHandle != core.sys.windows.windef.NULL); 2023 assert(str != null); 2024 } 2025 2026 do 2027 { 2028 static import core.sys.windows.windef; 2029 static import core.sys.windows.winuser; 2030 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 2031 2032 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETFILENAMEATCURSOR, cast(core.sys.windows.windef.WPARAM)(strLen), cast(core.sys.windows.windef.LPARAM)(str))); 2033 } 2034 2035 /** 2036 * NPPM_GETCURRENTLINE 2037 */ 2038 int send_NPPM_GETCURRENTLINE(core.sys.windows.windef.HWND _nppHandle) 2039 2040 in 2041 { 2042 static import core.sys.windows.windef; 2043 2044 assert(_nppHandle != core.sys.windows.windef.NULL); 2045 } 2046 2047 do 2048 { 2049 static import core.sys.windows.windef; 2050 static import core.sys.windows.winuser; 2051 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 2052 2053 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETCURRENTLINE, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 2054 } 2055 2056 /** 2057 * NPPM_GETCURRENTCOLUMN 2058 */ 2059 int send_NPPM_GETCURRENTCOLUMN(core.sys.windows.windef.HWND _nppHandle) 2060 2061 in 2062 { 2063 static import core.sys.windows.windef; 2064 2065 assert(_nppHandle != core.sys.windows.windef.NULL); 2066 } 2067 2068 do 2069 { 2070 static import core.sys.windows.windef; 2071 static import core.sys.windows.winuser; 2072 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 2073 2074 return cast(int)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETCURRENTCOLUMN, cast(core.sys.windows.windef.WPARAM)(0), cast(core.sys.windows.windef.LPARAM)(0))); 2075 } 2076 2077 /** 2078 * NPPM_GETNPPFULLFILEPATH 2079 */ 2080 bool send_NPPM_GETNPPFULLFILEPATH(core.sys.windows.windef.HWND _nppHandle, size_t strLen, core.sys.windows.winnt.WCHAR* str) 2081 2082 in 2083 { 2084 static import core.sys.windows.windef; 2085 2086 assert(_nppHandle != core.sys.windows.windef.NULL); 2087 assert(str != null); 2088 } 2089 2090 do 2091 { 2092 static import core.sys.windows.windef; 2093 static import core.sys.windows.winuser; 2094 static import npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs; 2095 2096 return cast(bool)(core.sys.windows.winuser.SendMessageW(_nppHandle, npp_api.powereditor.misc.pluginsmanager.notepad_plus_msgs.NPPM_GETNPPFULLFILEPATH, cast(core.sys.windows.windef.WPARAM)(strLen), cast(core.sys.windows.windef.LPARAM)(str))); 2097 }