Exemple #1
0
 public NotepadPPGateway FileExit()
 {
     Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)NppMsg.NPPM_MENUCOMMAND, Unused, NppMenuCmd.IDM_FILE_EXIT);
     return(this);
 }
Exemple #2
0
 public NotepadPPGateway SaveAllOpenedDocuments()
 {
     Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)NppMsg.NPPM_SAVEALLFILES, Unused, Unused);
     return(this);
 }
Exemple #3
0
 public NotepadPPGateway ReloadFile(string file, bool showAlert)
 {
     Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)NppMsg.NPPM_RELOADFILE, showAlert ? 1 : 0, file);
     return(this);
 }
Exemple #4
0
 private IntPtr Send(NppMsg command, IntPtr wParam, IntPtr lParam)
 {
     return(Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)command, wParam, lParam));
 }
Exemple #5
0
 public LangType GetCurrentLanguage()
 {
     Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)NppMsg.NPPM_GETCURRENTLANGTYPE, Unused, out int language);
     return((LangType)language);
 }
Exemple #6
0
 public NotepadPPGateway SetCurrentLanguage(int language)
 {
     Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)NppMsg.NPPM_SETCURRENTLANGTYPE, Unused, language);
     return(this);
 }