[NEW_FEATURE] Add a new plugin message NPPM_MENUCOMMAND which allows plugins to execute all the npp available menu commands.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@9 f5eea248-9336-0410-98b8-ebc06183d4e3pull/343/head^2
parent
5357c64049
commit
1f83e269f4
@ -0,0 +1,267 @@
|
||||
//this file is part of notepad++
|
||||
//Copyright (C)2003 Don HO <donho@altern.org>
|
||||
//
|
||||
//This program is free software; you can redistribute it and/or
|
||||
//modify it under the terms of the GNU General Public License
|
||||
//as published by the Free Software Foundation; either
|
||||
//version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
//This program is distributed in the hope that it will be useful,
|
||||
//but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
//GNU General Public License for more details.
|
||||
//
|
||||
//You should have received a copy of the GNU General Public License
|
||||
//along with this program; if not, write to the Free Software
|
||||
//Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
#ifndef MENUCMDID_H
|
||||
#define MENUCMDID_H
|
||||
|
||||
#define IDM 40000
|
||||
|
||||
#define IDM_FILE (IDM + 1000)
|
||||
#define IDM_FILE_NEW (IDM_FILE + 1)
|
||||
#define IDM_FILE_OPEN (IDM_FILE + 2)
|
||||
#define IDM_FILE_CLOSE (IDM_FILE + 3)
|
||||
#define IDM_FILE_CLOSEALL (IDM_FILE + 4)
|
||||
#define IDM_FILE_CLOSEALL_BUT_CURRENT (IDM_FILE + 5)
|
||||
#define IDM_FILE_SAVE (IDM_FILE + 6)
|
||||
#define IDM_FILE_SAVEALL (IDM_FILE + 7)
|
||||
#define IDM_FILE_SAVEAS (IDM_FILE + 8)
|
||||
#define IDM_FILE_ASIAN_LANG (IDM_FILE + 9)
|
||||
#define IDM_FILE_PRINT (IDM_FILE + 10)
|
||||
#define IDM_FILE_PRINTNOW 1001
|
||||
#define IDM_FILE_EXIT (IDM_FILE + 11)
|
||||
#define IDM_FILE_LOADSESSION (IDM_FILE + 12)
|
||||
#define IDM_FILE_SAVESESSION (IDM_FILE + 13)
|
||||
#define IDM_FILE_RELOAD (IDM_FILE + 14)
|
||||
|
||||
// A mettre à jour si on ajoute nouveau menu item dans le menu "File"
|
||||
#define IDM_FILEMENU_LASTONE IDM_FILE_RELOAD
|
||||
|
||||
#define IDM_EDIT (IDM + 2000)
|
||||
#define IDM_EDIT_CUT (IDM_EDIT + 1)
|
||||
#define IDM_EDIT_COPY (IDM_EDIT + 2)
|
||||
#define IDM_EDIT_UNDO (IDM_EDIT + 3)
|
||||
#define IDM_EDIT_REDO (IDM_EDIT + 4)
|
||||
#define IDM_EDIT_PASTE (IDM_EDIT + 5)
|
||||
#define IDM_EDIT_DELETE (IDM_EDIT + 6)
|
||||
#define IDM_EDIT_SELECTALL (IDM_EDIT + 7)
|
||||
|
||||
#define IDM_EDIT_INS_TAB (IDM_EDIT + 8)
|
||||
#define IDM_EDIT_RMV_TAB (IDM_EDIT + 9)
|
||||
#define IDM_EDIT_DUP_LINE (IDM_EDIT + 10)
|
||||
#define IDM_EDIT_TRANSPOSE_LINE (IDM_EDIT + 11)
|
||||
#define IDM_EDIT_SPLIT_LINES (IDM_EDIT + 12)
|
||||
#define IDM_EDIT_JOIN_LINES (IDM_EDIT + 13)
|
||||
#define IDM_EDIT_LINE_UP (IDM_EDIT + 14)
|
||||
#define IDM_EDIT_LINE_DOWN (IDM_EDIT + 15)
|
||||
#define IDM_EDIT_UPPERCASE (IDM_EDIT + 16)
|
||||
#define IDM_EDIT_LOWERCASE (IDM_EDIT + 17)
|
||||
|
||||
#define IDM_EDIT_BLOCK_COMMENT (IDM_EDIT + 22)
|
||||
#define IDM_EDIT_STREAM_COMMENT (IDM_EDIT + 23)
|
||||
#define IDM_EDIT_TRIMTRAILING (IDM_EDIT + 24)
|
||||
|
||||
#define IDM_EDIT_RTL (IDM_EDIT+26)
|
||||
#define IDM_EDIT_LTR (IDM_EDIT+27)
|
||||
#define IDM_EDIT_SETREADONLY (IDM_EDIT+28)
|
||||
#define IDM_EDIT_FULLPATHTOCLIP (IDM_EDIT+29)
|
||||
#define IDM_EDIT_FILENAMETOCLIP (IDM_EDIT+30)
|
||||
#define IDM_EDIT_CURRENTDIRTOCLIP (IDM_EDIT+31)
|
||||
|
||||
#define IDM_EDIT_CLEARREADONLY (IDM_EDIT+33)
|
||||
#define IDM_EDIT_COLUMNMODE (IDM_EDIT+34)
|
||||
#define IDM_EDIT_AUTOCOMPLETE (50000+0)
|
||||
#define IDM_EDIT_AUTOCOMPLETE_CURRENTFILE (50000+1)
|
||||
|
||||
//Belong to MENU FILE
|
||||
#define IDM_OPEN_ALL_RECENT_FILE (IDM_EDIT + 40)
|
||||
|
||||
#define IDM_SEARCH (IDM + 3000)
|
||||
|
||||
#define IDM_SEARCH_FIND (IDM_SEARCH + 1)
|
||||
#define IDM_SEARCH_FINDNEXT (IDM_SEARCH + 2)
|
||||
#define IDM_SEARCH_REPLACE (IDM_SEARCH + 3)
|
||||
#define IDM_SEARCH_GOTOLINE (IDM_SEARCH + 4)
|
||||
#define IDM_SEARCH_TOGGLE_BOOKMARK (IDM_SEARCH + 5)
|
||||
#define IDM_SEARCH_NEXT_BOOKMARK (IDM_SEARCH + 6)
|
||||
#define IDM_SEARCH_PREV_BOOKMARK (IDM_SEARCH + 7)
|
||||
#define IDM_SEARCH_CLEAR_BOOKMARKS (IDM_SEARCH + 8)
|
||||
#define IDM_SEARCH_GOTOMATCHINGBRACE (IDM_SEARCH + 9)
|
||||
#define IDM_SEARCH_FINDPREV (IDM_SEARCH + 10)
|
||||
#define IDM_SEARCH_FINDINCREMENT (IDM_SEARCH + 11)
|
||||
#define IDM_SEARCH_FINDINFILES (IDM_SEARCH + 13)
|
||||
#define IDM_SEARCH_VOLATILE_FINDNEXT (IDM_SEARCH + 14)
|
||||
#define IDM_SEARCH_VOLATILE_FINDPREV (IDM_SEARCH + 15)
|
||||
#define IDM_SEARCH_MARKALL (IDM_SEARCH + 16)
|
||||
#define IDM_SEARCH_UNMARKALL (IDM_SEARCH + 17)
|
||||
|
||||
#define IDM_VIEW (IDM + 4000)
|
||||
#define IDM_VIEW_TOOLBAR_HIDE (IDM_VIEW + 1)
|
||||
#define IDM_VIEW_TOOLBAR_REDUCE (IDM_VIEW + 2)
|
||||
#define IDM_VIEW_TOOLBAR_ENLARGE (IDM_VIEW + 3)
|
||||
#define IDM_VIEW_TOOLBAR_STANDARD (IDM_VIEW + 4)
|
||||
#define IDM_VIEW_REDUCETABBAR (IDM_VIEW + 5)
|
||||
#define IDM_VIEW_LOCKTABBAR (IDM_VIEW + 6)
|
||||
#define IDM_VIEW_DRAWTABBAR_TOPBAR (IDM_VIEW + 7)
|
||||
#define IDM_VIEW_DRAWTABBAR_INACIVETAB (IDM_VIEW + 8)
|
||||
#define IDM_VIEW_STATUSBAR (IDM_VIEW + 9)
|
||||
#define IDM_VIEW_TOGGLE_FOLDALL (IDM_VIEW + 10)
|
||||
#define IDM_VIEW_USER_DLG (IDM_VIEW + 11)
|
||||
#define IDM_VIEW_LINENUMBER (IDM_VIEW + 12)
|
||||
#define IDM_VIEW_SYMBOLMARGIN (IDM_VIEW + 13)
|
||||
#define IDM_VIEW_FOLDERMAGIN (IDM_VIEW + 14)
|
||||
#define IDM_VIEW_FOLDERMAGIN_SIMPLE (IDM_VIEW + 15)
|
||||
#define IDM_VIEW_FOLDERMAGIN_ARROW (IDM_VIEW + 16)
|
||||
#define IDM_VIEW_FOLDERMAGIN_CIRCLE (IDM_VIEW + 17)
|
||||
#define IDM_VIEW_FOLDERMAGIN_BOX (IDM_VIEW + 18)
|
||||
#define IDM_VIEW_ALL_CHARACTERS (IDM_VIEW + 19)
|
||||
#define IDM_VIEW_INDENT_GUIDE (IDM_VIEW + 20)
|
||||
#define IDM_VIEW_CURLINE_HILITING (IDM_VIEW + 21)
|
||||
#define IDM_VIEW_WRAP (IDM_VIEW + 22)
|
||||
#define IDM_VIEW_ZOOMIN (IDM_VIEW + 23)
|
||||
#define IDM_VIEW_ZOOMOUT (IDM_VIEW + 24)
|
||||
#define IDM_VIEW_TAB_SPACE (IDM_VIEW + 25)
|
||||
#define IDM_VIEW_EOL (IDM_VIEW + 26)
|
||||
#define IDM_VIEW_EDGELINE (IDM_VIEW + 27)
|
||||
#define IDM_VIEW_EDGEBACKGROUND (IDM_VIEW + 28)
|
||||
#define IDM_VIEW_TOGGLE_UNFOLDALL (IDM_VIEW + 29)
|
||||
#define IDM_VIEW_FOLD_CURRENT (IDM_VIEW + 30)
|
||||
#define IDM_VIEW_UNFOLD_CURRENT (IDM_VIEW + 31)
|
||||
#define IDM_VIEW_FULLSCREENTOGGLE (IDM_VIEW + 32)
|
||||
#define IDM_VIEW_ZOOMRESTORE (IDM_VIEW + 33)
|
||||
#define IDM_VIEW_ALWAYSONTOP (IDM_VIEW + 34)
|
||||
#define IDM_VIEW_SYNSCROLLV (IDM_VIEW + 35)
|
||||
#define IDM_VIEW_SYNSCROLLH (IDM_VIEW + 36)
|
||||
#define IDM_VIEW_EDGENONE (IDM_VIEW + 37)
|
||||
#define IDM_VIEW_DRAWTABBAR_CLOSEBOTTUN (IDM_VIEW + 38)
|
||||
#define IDM_VIEW_DRAWTABBAR_DBCLK2CLOSE (IDM_VIEW + 39)
|
||||
#define IDM_VIEW_REFRESHTABAR (IDM_VIEW + 40)
|
||||
#define IDM_VIEW_WRAP_SYMBOL (IDM_VIEW + 41)
|
||||
|
||||
#define IDM_VIEW_FOLD (IDM_VIEW + 50)
|
||||
#define IDM_VIEW_FOLD_1 (IDM_VIEW_FOLD + 1)
|
||||
#define IDM_VIEW_FOLD_2 (IDM_VIEW_FOLD + 2)
|
||||
#define IDM_VIEW_FOLD_3 (IDM_VIEW_FOLD + 3)
|
||||
#define IDM_VIEW_FOLD_4 (IDM_VIEW_FOLD + 4)
|
||||
#define IDM_VIEW_FOLD_5 (IDM_VIEW_FOLD + 5)
|
||||
#define IDM_VIEW_FOLD_6 (IDM_VIEW_FOLD + 6)
|
||||
#define IDM_VIEW_FOLD_7 (IDM_VIEW_FOLD + 7)
|
||||
#define IDM_VIEW_FOLD_8 (IDM_VIEW_FOLD + 8)
|
||||
|
||||
#define IDM_VIEW_UNFOLD (IDM_VIEW + 60)
|
||||
#define IDM_VIEW_UNFOLD_1 (IDM_VIEW_UNFOLD + 1)
|
||||
#define IDM_VIEW_UNFOLD_2 (IDM_VIEW_UNFOLD + 2)
|
||||
#define IDM_VIEW_UNFOLD_3 (IDM_VIEW_UNFOLD + 3)
|
||||
#define IDM_VIEW_UNFOLD_4 (IDM_VIEW_UNFOLD + 4)
|
||||
#define IDM_VIEW_UNFOLD_5 (IDM_VIEW_UNFOLD + 5)
|
||||
#define IDM_VIEW_UNFOLD_6 (IDM_VIEW_UNFOLD + 6)
|
||||
#define IDM_VIEW_UNFOLD_7 (IDM_VIEW_UNFOLD + 7)
|
||||
#define IDM_VIEW_UNFOLD_8 (IDM_VIEW_UNFOLD + 8)
|
||||
|
||||
#define IDM_VIEW_GOTO_ANOTHER_VIEW 10001
|
||||
#define IDM_VIEW_CLONE_TO_ANOTHER_VIEW 10002
|
||||
|
||||
|
||||
#define IDM_FORMAT (IDM + 5000)
|
||||
#define IDM_FORMAT_TODOS (IDM_FORMAT + 1)
|
||||
#define IDM_FORMAT_TOUNIX (IDM_FORMAT + 2)
|
||||
#define IDM_FORMAT_TOMAC (IDM_FORMAT + 3)
|
||||
#define IDM_FORMAT_ANSI (IDM_FORMAT + 4)
|
||||
#define IDM_FORMAT_UTF_8 (IDM_FORMAT + 5)
|
||||
#define IDM_FORMAT_UCS_2BE (IDM_FORMAT + 6)
|
||||
#define IDM_FORMAT_UCS_2LE (IDM_FORMAT + 7)
|
||||
#define IDM_FORMAT_AS_UTF_8 (IDM_FORMAT + 8)
|
||||
|
||||
#define IDM_LANG (IDM + 6000)
|
||||
#define IDM_LANGSTYLE_CONFIG_DLG (IDM_LANG + 1)
|
||||
#define IDM_LANG_C (IDM_LANG + 2)
|
||||
#define IDM_LANG_CPP (IDM_LANG + 3)
|
||||
#define IDM_LANG_JAVA (IDM_LANG + 4)
|
||||
#define IDM_LANG_HTML (IDM_LANG + 5)
|
||||
#define IDM_LANG_XML (IDM_LANG + 6)
|
||||
#define IDM_LANG_JS (IDM_LANG + 7)
|
||||
#define IDM_LANG_PHP (IDM_LANG + 8)
|
||||
#define IDM_LANG_ASP (IDM_LANG + 9)
|
||||
#define IDM_LANG_CSS (IDM_LANG + 10)
|
||||
#define IDM_LANG_PASCAL (IDM_LANG + 11)
|
||||
#define IDM_LANG_PYTHON (IDM_LANG + 12)
|
||||
#define IDM_LANG_PERL (IDM_LANG + 13)
|
||||
#define IDM_LANG_OBJC (IDM_LANG + 14)
|
||||
#define IDM_LANG_ASCII (IDM_LANG + 15)
|
||||
#define IDM_LANG_TEXT (IDM_LANG + 16)
|
||||
#define IDM_LANG_RC (IDM_LANG + 17)
|
||||
#define IDM_LANG_MAKEFILE (IDM_LANG + 18)
|
||||
#define IDM_LANG_INI (IDM_LANG + 19)
|
||||
#define IDM_LANG_SQL (IDM_LANG + 20)
|
||||
#define IDM_LANG_VB (IDM_LANG + 21)
|
||||
#define IDM_LANG_BATCH (IDM_LANG + 22)
|
||||
#define IDM_LANG_CS (IDM_LANG + 23)
|
||||
#define IDM_LANG_LUA (IDM_LANG + 24)
|
||||
#define IDM_LANG_TEX (IDM_LANG + 25)
|
||||
#define IDM_LANG_FORTRAN (IDM_LANG + 26)
|
||||
#define IDM_LANG_SH (IDM_LANG + 27)
|
||||
#define IDM_LANG_FLASH (IDM_LANG + 28)
|
||||
#define IDM_LANG_NSIS (IDM_LANG + 29)
|
||||
#define IDM_LANG_TCL (IDM_LANG + 30)
|
||||
#define IDM_LANG_LISP (IDM_LANG + 31)
|
||||
#define IDM_LANG_SCHEME (IDM_LANG + 32)
|
||||
#define IDM_LANG_ASM (IDM_LANG + 33)
|
||||
#define IDM_LANG_DIFF (IDM_LANG + 34)
|
||||
#define IDM_LANG_PROPS (IDM_LANG + 35)
|
||||
#define IDM_LANG_PS (IDM_LANG + 36)
|
||||
#define IDM_LANG_RUBY (IDM_LANG + 37)
|
||||
#define IDM_LANG_SMALLTALK (IDM_LANG + 38)
|
||||
#define IDM_LANG_VHDL (IDM_LANG + 39)
|
||||
#define IDM_LANG_CAML (IDM_LANG + 40)
|
||||
#define IDM_LANG_KIX (IDM_LANG + 41)
|
||||
#define IDM_LANG_ADA (IDM_LANG + 42)
|
||||
#define IDM_LANG_VERILOG (IDM_LANG + 43)
|
||||
#define IDM_LANG_AU3 (IDM_LANG + 44)
|
||||
#define IDM_LANG_MATLAB (IDM_LANG + 45)
|
||||
#define IDM_LANG_HASKELL (IDM_LANG + 46)
|
||||
#define IDM_LANG_INNO (IDM_LANG + 47)
|
||||
#define IDM_LANG_CMAKE (IDM_LANG + 48)
|
||||
|
||||
#define IDM_LANG_USER (IDM_LANG + 50) //46050
|
||||
#define IDM_LANG_USER_LIMIT (IDM_LANG + 80) //46080
|
||||
|
||||
|
||||
#define IDM_ABOUT (IDM + 7000)
|
||||
#define IDM_HOMESWEETHOME (IDM_ABOUT + 1)
|
||||
#define IDM_PROJECTPAGE (IDM_ABOUT + 2)
|
||||
#define IDM_ONLINEHELP (IDM_ABOUT + 3)
|
||||
#define IDM_FORUM (IDM_ABOUT + 4)
|
||||
#define IDM_PLUGINSHOME (IDM_ABOUT + 5)
|
||||
|
||||
|
||||
|
||||
#define IDM_SETTING (IDM + 8000)
|
||||
#define IDM_SETTING_TAB_SIZE (IDM_SETTING + 1)
|
||||
#define IDM_SETTING_TAB_REPLCESPACE (IDM_SETTING + 2)
|
||||
#define IDM_SETTING_HISTORY_SIZE (IDM_SETTING + 3)
|
||||
#define IDM_SETTING_EDGE_SIZE (IDM_SETTING + 4)
|
||||
#define IDM_SETTING_FILEASSOCIATION_DLG (IDM_SETTING + 5)
|
||||
//#define IDM_SETTING_FILE_AUTODETECTION (IDM_SETTING + 6)
|
||||
#define IDM_SETTING_HISTORY_DONT_CHECK (IDM_SETTING + 7)
|
||||
#define IDM_SETTING_TRAYICON (IDM_SETTING + 8)
|
||||
#define IDM_SETTING_SHORTCUT_MAPPER (IDM_SETTING + 9)
|
||||
#define IDM_SETTING_REMEMBER_LAST_SESSION (IDM_SETTING + 10)
|
||||
#define IDM_SETTING_PREFERECE (IDM_SETTING + 11)
|
||||
|
||||
#define IDM_SETTING_FILE_AUTODETECTION_ENABLE (IDM_SETTING + 12)
|
||||
#define IDM_SETTING_FILE_AUTODETECTION_DISABLE (IDM_SETTING + 13)
|
||||
#define IDM_SETTING_FILE_AUTODETECTION_ENABLESILENTLY (IDM_SETTING + 14)
|
||||
|
||||
// Menu macro
|
||||
#define IDM_MACRO_STARTRECORDINGMACRO (IDM_EDIT + 18)
|
||||
#define IDM_MACRO_STOPRECORDINGMACRO (IDM_EDIT + 19)
|
||||
#define IDM_MACRO_PLAYBACKRECORDEDMACRO (IDM_EDIT + 21)
|
||||
#define IDM_MACRO_SAVECURRENTMACRO (IDM_EDIT + 25)
|
||||
#define IDM_MACRO_RUNMULTIMACRODLG (IDM_EDIT+32)
|
||||
|
||||
#define IDM_EXECUTE (IDM + 9000)
|
||||
|
||||
#endif //MENUCMDID_H
|
Loading…
Reference in new issue