4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * Full author contact details are available in file CREDITS.
9 * To add a new function:
10 * - add a new enum constant immediately before LFUN_LASTACTION
11 * - add an appropriate line and documentation in LyXAction.cpp
12 * - add a branch to a suitable ::doDispatch() method
13 * - add correct test to the corresponding ::getStatus() method
21 /** These are all the lyx functions, the main mechanism
22 * through which the frontends communicate with the core.
24 * They are managed in LyXAction.cpp and handled in various
25 * ::dispatch() functions, starting with LyXFunc.C:dispatch(),
26 * BufferView::dispatch(), Cursor::dispatch() and
27 * Inset*::doDispatch();
31 LFUN_UNKNOWN_ACTION
= -1,
45 LFUN_BUFFER_AUTO_SAVE
,
49 LFUN_PRIMARY_SELECTION_PASTE
,
59 LFUN_TEXTSTYLE_UPDATE
,
85 LFUN_CHAR_FORWARD_SELECT
,
87 LFUN_CHAR_BACKWARD_SELECT
,
90 LFUN_SCREEN_UP_SELECT
,
91 LFUN_SCREEN_DOWN_SELECT
,
93 LFUN_LINE_BEGIN_SELECT
,
95 LFUN_WORD_FORWARD_SELECT
,
96 LFUN_WORD_BACKWARD_SELECT
,
99 LFUN_BUFFER_BEGIN_SELECT
,
100 LFUN_BUFFER_END_SELECT
,
101 LFUN_SPACE_INSERT
, // JSpitzm 20030520
102 LFUN_SPECIALCHAR_INSERT
, // JSpitzm, 20071206
105 LFUN_CHAR_DELETE_FORWARD
,
106 LFUN_CHAR_DELETE_BACKWARD
,
107 LFUN_NEWLINE_INSERT
, // renamed: JSpitzm, 20080325
108 LFUN_BREAK_PARAGRAPH
,
111 LFUN_ACCENT_CIRCUMFLEX
,
113 LFUN_MATH_SUPERSCRIPT
,
120 LFUN_ACCENT_UNDERBAR
,
121 LFUN_ACCENT_UNDERDOT
,
127 LFUN_ACCENT_HUNGARIAN_UMLAUT
,
139 LFUN_SERVER_GET_LAYOUT
,
141 LFUN_SERVER_GET_FILENAME
,
143 LFUN_SERVER_GOTO_FILE_ROW
,
149 LFUN_KEYMAP_SECONDARY
,
155 LFUN_MATH_DELIM
, // Alejandro 180696
156 LFUN_MATH_DISPLAY
, // Alejandro 180696
157 LFUN_MATH_MODE
, // Alejandro 040696
159 LFUN_MATH_NUMBER_TOGGLE
,
160 LFUN_MATH_NUMBER_LINE_TOGGLE
,
161 LFUN_MATH_SIZE
, // Alejandro 150896
162 LFUN_MATH_MACRO
, // ale970510
163 LFUN_MATH_EXTERN
, // Andre' 20010424
165 LFUN_MATH_MUTATE
, // Andre' 20010523
166 LFUN_MATH_SPACE
, // Andre' 20010725
167 LFUN_WORD_DELETE_FORWARD
,
168 LFUN_WORD_DELETE_BACKWARD
,
175 LFUN_LAYOUT_PARAGRAPH
,
177 LFUN_DROP_LAYOUTS_CHOICE
, // used in bindings as of 20071228
178 LFUN_FONT_TYPEWRITER
, // changed from FONT_CODE 20070920
187 LFUN_WORD_CAPITALIZE
,
190 LFUN_DEPTH_DECREMENT
,
191 LFUN_DEPTH_INCREMENT
,
192 LFUN_MENU_OPEN
, // used in bindings as of 20060905
196 LFUN_COMMAND_EXECUTE
,
198 LFUN_FILE_INSERT_PLAINTEXT
, // CFO-G 1997-11-19
199 LFUN_FILE_INSERT_PLAINTEXT_PARA
,// Levon 2001-02-14
202 LFUN_PARAGRAPH_UP
, // Asger 1996-10-01
203 LFUN_PARAGRAPH_UP_SELECT
, // Asger 1996-10-01
204 LFUN_PARAGRAPH_DOWN
, // Asger 1996-10-01
205 LFUN_PARAGRAPH_DOWN_SELECT
, // Asger 1996-10-01
207 LFUN_NEXT_INSET_MODIFY
, // JSpitzm 20080323
208 LFUN_BUFFER_NEW_TEMPLATE
, // Asger 1997-02-02
209 LFUN_BUFFER_RELOAD
, // Asger 1997-02-02
211 LFUN_BRANCH_ACTIVATE
,
213 LFUN_BRANCH_DEACTIVATE
,
214 LFUN_INDEX_PRINT
, // Lgb 97-02-27
216 LFUN_BUFFER_CHILD_OPEN
, // Ale 970528
217 LFUN_TOC_INSERT
, // Lgb 97-05-27
219 LFUN_FLOAT_LIST_INSERT
, // Lgb 20010503
220 LFUN_BUFFER_TOGGLE_READ_ONLY
, // Lgb 97-05-27
221 LFUN_VC_REGISTER
, // Lgb 97-07-01
222 LFUN_VC_CHECK_IN
, // Lgb 97-07-01
223 LFUN_VC_CHECK_OUT
, // Lgb 97-07-01
225 LFUN_VC_REVERT
, // Lgb 97-07-01
226 LFUN_VC_UNDO_LAST
, // Lgb 97-07-01
227 LFUN_BUFFER_EXPORT
, // Lgb 97-07-29
228 LFUN_LABEL_GOTO
, // Ale 970806
229 LFUN_CURSOR_FOLLOWS_SCROLLBAR_TOGGLE
, // ARRae 971202
231 LFUN_BUFFER_CHKTEX
, // Asger 971030
232 LFUN_HYPERLINK_INSERT
, // CFO-G 971121
233 LFUN_WORD_FIND_FORWARD
, // Etienne 980216
234 LFUN_WORD_FIND_BACKWARD
, // Etienne 980220
235 LFUN_APPENDIX
, // ettrich 980505
237 LFUN_BUFFER_IMPORT
, // Asger 980724
238 LFUN_COMMAND_SEQUENCE
, // Andre' 991111
239 LFUN_PREFERENCES_SAVE
,
240 LFUN_HELP_OPEN
, // Jug 990627
241 LFUN_DATE_INSERT
, // jdblair 20000131
243 LFUN_LANGUAGE
, // Dekel 20000203
244 LFUN_ERT_INSERT
, // Jug 20000218
245 LFUN_FOOTNOTE_INSERT
, // Jug 20000307
246 LFUN_PARAGRAPH_SPACING
, // Lgb 20000411
247 LFUN_TABULAR_INSERT
, // Jug 20000412
249 LFUN_LOFVIEW
, // Dekel 20000519
250 LFUN_LOTVIEW
, // Dekel 20000519
251 LFUN_LOAVIEW
, // Dekel 20000519
252 LFUN_SET_COLOR
, // SLior 20000611
253 LFUN_MARGINALNOTE_INSERT
, // Lgb 20000626
255 LFUN_FLOAT_INSERT
, // Lgb 20000627
256 LFUN_FLOAT_WIDE_INSERT
, // Lgb 20010531
257 LFUN_CAPTION_INSERT
, // Lgb 20000718; inactive as of 20060905
259 LFUN_TABULAR_FEATURE
, // Jug 20000728
261 LFUN_LAYOUT_TABULAR
, // Jug 20000731
262 LFUN_BUFFER_UPDATE
, // Dekel 20000805
263 LFUN_INDEX_INSERT
, // Angus 20000803
264 LFUN_SCREEN_FONT_UPDATE
, // ARRae 20000813
265 LFUN_PARAGRAPH_GOTO
, // Dekel 20000826
267 LFUN_REFERENCE_NEXT
, // Dekel 20010114
270 LFUN_SELECT_FILE_SYNC
, // Levon 20010214
271 LFUN_MESSAGE
, // Lgb 20010408; for scripting purposes, output in minibuffer
273 LFUN_CHARS_TRANSPOSE
, // Lgb 20010425
274 LFUN_ESCAPE
, // Lgb 20010517
275 LFUN_THESAURUS_ENTRY
, // Levon 20010720
276 LFUN_OPTIONAL_INSERT
, // Martin 12 Aug 2002
277 LFUN_MOUSE_PRESS
, // André 9 Aug 2002
279 LFUN_MOUSE_MOTION
, // André 9 Aug 2002
280 LFUN_MOUSE_RELEASE
, // André 9 Aug 2002
281 LFUN_MOUSE_DOUBLE
, // André 9 Aug 2002
282 LFUN_MOUSE_TRIPLE
, // André 9 Aug 2002
283 LFUN_WRAP_INSERT
, // Dekel 7 Apr 2002
285 LFUN_CHANGES_TRACK
, // Levon 20021001 (cool date !)
286 LFUN_CHANGES_MERGE
, // Levon 20021016
287 LFUN_CHANGE_ACCEPT
, // Levon 20021016
288 LFUN_CHANGE_REJECT
, // Levon 20021016
289 LFUN_ALL_CHANGES_ACCEPT
, // Levon 20021016
291 LFUN_ALL_CHANGES_REJECT
, // Levon 20021016
294 LFUN_DIALOG_SHOW_NEW_INSET
,
298 LFUN_DIALOG_TOGGLE
, // JSpitzm 20070430
299 LFUN_DIALOG_DISCONNECT_INSET
,
304 LFUN_INSET_DIALOG_UPDATE
,
306 LFUN_PARAGRAPH_PARAMS_APPLY
,
307 LFUN_PARAGRAPH_UPDATE
,
309 LFUN_INSET_EDIT
, // JSpitzm 20080427
313 LFUN_NEWPAGE_INSERT
, // uwestoehr, 20071124
322 LFUN_BUFFER_EXPORT_CUSTOM
,
324 LFUN_NEXT_INSET_TOGGLE
,
325 LFUN_ALL_INSETS_TOGGLE
,
327 LFUN_BUFFER_LANGUAGE
,
328 LFUN_TEXTCLASS_APPLY
,
330 LFUN_BUFFER_SAVE_AS_DEFAULT
,
331 LFUN_BUFFER_PARAMS_APPLY
,
335 LFUN_BUFFER_PREVIOUS
,
337 LFUN_CHANGES_OUTPUT
, // jspitzm 20050121
339 LFUN_BIBTEX_DATABASE_ADD
,
340 LFUN_BIBTEX_DATABASE_DEL
,
341 LFUN_CITATION_INSERT
,
347 LFUN_PARAGRAPH_MOVE_DOWN
,
348 LFUN_PARAGRAPH_MOVE_UP
,
349 LFUN_BUFFER_TOGGLE_COMPRESSION
, // bpeng 20060427
352 LFUN_CLIPBOARD_PASTE
,
353 LFUN_INSET_DISSOLVE
, // jspitzm 20060807
355 LFUN_WINDOW_NEW
, // Abdel 20061021
357 LFUN_WINDOW_CLOSE
, // Abdel 20061023
358 LFUN_UNICODE_INSERT
, // Lgb 20061022
359 LFUN_BOOKMARK_CLEAR
, // bpeng 20061031
360 LFUN_NOMENCL_INSERT
, // Ugras
361 LFUN_NOMENCL_PRINT
, // Ugras
363 LFUN_LISTING_INSERT
, // Herbert 20011110, bpeng 20070502
364 LFUN_TOOLBAR_TOGGLE
, // Edwin 20070521
365 LFUN_BUFFER_WRITE_ALL
, // rgh, gpothier 200707XX
366 LFUN_PARAGRAPH_PARAMS
,
367 LFUN_LAYOUT_MODULES_CLEAR
,
369 LFUN_LAYOUT_MODULE_ADD
,
371 LFUN_MASTER_BUFFER_VIEW
, // Tommaso, 20070920
372 LFUN_MASTER_BUFFER_UPDATE
, // Tommaso, 20070920
373 LFUN_INFO_INSERT
, // bpeng, 20071007
375 LFUN_CALL
, // broider, 20071002
376 LFUN_CHAR_LEFT
, // dov, 20071022
377 LFUN_CHAR_LEFT_SELECT
, // dov, 20071022
378 LFUN_CHAR_RIGHT
, // dov, 20071022
379 LFUN_CHAR_RIGHT_SELECT
, // dov, 20071022
381 LFUN_FINISHED_BACKWARD
, // dov, 20071022
382 LFUN_FINISHED_FORWARD
, // dov, 20071022
383 LFUN_WORD_LEFT
, // dov, 20071028
384 LFUN_WORD_LEFT_SELECT
, // dov, 20071028
385 LFUN_WORD_RIGHT
, // dov, 20071028
387 LFUN_WORD_RIGHT_SELECT
, // dov, 20071028
388 LFUN_MATH_MACRO_FOLD
,
389 LFUN_MATH_MACRO_UNFOLD
,
390 LFUN_MATH_MACRO_ADD_PARAM
,
391 LFUN_MATH_MACRO_REMOVE_PARAM
,
393 LFUN_MATH_MACRO_APPEND_GREEDY_PARAM
,
394 LFUN_MATH_MACRO_REMOVE_GREEDY_PARAM
,
395 LFUN_MATH_MACRO_MAKE_OPTIONAL
,
396 LFUN_MATH_MACRO_MAKE_NONOPTIONAL
,
397 LFUN_MATH_MACRO_ADD_OPTIONAL_PARAM
,
399 LFUN_MATH_MACRO_REMOVE_OPTIONAL_PARAM
,
400 LFUN_MATH_MACRO_ADD_GREEDY_OPTIONAL_PARAM
,
401 LFUN_IN_MATHMACROTEMPLATE
,
402 LFUN_COMPLETION_POPUP
,
403 LFUN_COMPLETION_INLINE
,
405 LFUN_COMPLETION_COMPLETE
,
406 LFUN_SET_GRAPHICS_GROUP
,
407 LFUN_COMPLETION_CANCEL
,
408 LFUN_COMPLETION_ACCEPT
,
409 LFUN_COMMAND_ALTERNATIVES
,
411 LFUN_LASTACTION
// end of the table