2003-08-22 10:37:26 +00:00
|
|
|
# -*- text -*-
|
|
|
|
|
2007-01-06 13:42:15 +00:00
|
|
|
# file stdmenus.inc
|
2003-08-22 10:37:26 +00:00
|
|
|
# This file is part of LyX, the document processor.
|
|
|
|
# Licence details can be found in the file COPYING.
|
|
|
|
|
|
|
|
# author Jean-Marc Lasgouttes
|
|
|
|
# author John Levon
|
2006-08-30 19:06:12 +00:00
|
|
|
# author Michael Gerz
|
2003-08-22 10:37:26 +00:00
|
|
|
|
|
|
|
# Full author contact details are available in file CREDITS.
|
|
|
|
|
2005-06-09 09:58:08 +00:00
|
|
|
# The interface is designed (partially) following the KDE Human Interface
|
2005-05-22 23:01:21 +00:00
|
|
|
# Guidelines (http://usability.kde.org/hig/)
|
|
|
|
|
2003-04-15 02:30:53 +00:00
|
|
|
Menuset
|
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menubar
|
2003-04-15 02:30:53 +00:00
|
|
|
# Make the first 4 menus be as much as expected as possible
|
2003-05-16 12:53:20 +00:00
|
|
|
Submenu "File|F" "file"
|
|
|
|
Submenu "Edit|E" "edit"
|
|
|
|
Submenu "View|V" "view"
|
|
|
|
Submenu "Insert|I" "insert"
|
|
|
|
Submenu "Navigate|N" "navigate"
|
|
|
|
Submenu "Document|D" "document"
|
|
|
|
Submenu "Tools|T" "tools"
|
|
|
|
Submenu "Help|H" "help"
|
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# FILE MENU
|
|
|
|
#
|
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "file"
|
|
|
|
Item "New|N" "buffer-new"
|
2003-07-10 13:41:58 +00:00
|
|
|
Item "New from Template...|m" "buffer-new-template"
|
2003-05-16 12:53:20 +00:00
|
|
|
Item "Open...|O" "file-open"
|
2006-11-07 20:23:54 +00:00
|
|
|
Submenu "Open Recent|t" "file_lastfiles"
|
2003-05-16 12:53:20 +00:00
|
|
|
Separator
|
|
|
|
Item "Close|C" "buffer-close"
|
|
|
|
Item "Save|S" "buffer-write"
|
|
|
|
Item "Save As...|A" "buffer-write-as"
|
|
|
|
Item "Revert|R" "buffer-reload"
|
|
|
|
Submenu "Version Control|V" "file_vc"
|
|
|
|
Separator
|
|
|
|
Submenu "Import|I" "file_import"
|
|
|
|
Submenu "Export|E" "file_export"
|
2003-06-19 16:49:45 +00:00
|
|
|
Item "Print...|P" "dialog-show print"
|
2003-05-16 12:53:20 +00:00
|
|
|
OptItem "Fax...|F" "buffer-export fax"
|
|
|
|
Separator
|
2006-10-24 20:57:29 +00:00
|
|
|
Item "New Window|W" "window-new"
|
|
|
|
Item "Close Window|d" "window-close"
|
|
|
|
Separator
|
2003-05-16 12:53:20 +00:00
|
|
|
Item "Exit|x" "lyx-quit"
|
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2006-09-06 11:33:06 +00:00
|
|
|
Menu "file_lastfiles"
|
2003-05-16 12:53:20 +00:00
|
|
|
Lastfiles
|
|
|
|
End
|
2003-10-13 09:50:10 +00:00
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "file_vc"
|
|
|
|
OptItem "Register...|R" "vc-register"
|
|
|
|
OptItem "Check In Changes...|I" "vc-check-in"
|
|
|
|
OptItem "Check Out for Edit|O" "vc-check-out"
|
|
|
|
OptItem "Revert to Last Version|L" "vc-revert"
|
|
|
|
OptItem "Undo Last Check In|U" "vc-undo-last"
|
2003-06-19 16:49:45 +00:00
|
|
|
OptItem "Show History|H" "dialog-show vclog"
|
2003-05-16 12:53:20 +00:00
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "file_import"
|
|
|
|
ImportFormats
|
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "file_export"
|
|
|
|
ExportFormats
|
|
|
|
Item "Custom...|C" "buffer-export custom"
|
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# EDIT MENU
|
|
|
|
#
|
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "edit"
|
|
|
|
Item "Undo|U" "undo"
|
|
|
|
Item "Redo|R" "redo"
|
|
|
|
Separator
|
|
|
|
Item "Cut" "cut"
|
|
|
|
Item "Copy" "copy"
|
|
|
|
Item "Paste" "paste"
|
2006-11-07 21:38:02 +00:00
|
|
|
Submenu "Paste Recent|e" "edit_pasterecent"
|
2007-01-04 20:08:22 +00:00
|
|
|
Submenu "Paste Special" "edit_paste"
|
2005-05-22 23:01:21 +00:00
|
|
|
Separator
|
2007-01-30 22:16:47 +00:00
|
|
|
Item "Select All" "command-sequence buffer-begin ; buffer-end-select"
|
|
|
|
Separator
|
2003-06-19 16:49:45 +00:00
|
|
|
Item "Find & Replace...|F" "dialog-show findreplace"
|
2003-05-16 12:53:20 +00:00
|
|
|
Separator
|
2006-09-01 16:39:35 +00:00
|
|
|
Item "Move Paragraph Up|o" "paragraph-move-up"
|
|
|
|
Item "Move Paragraph Down|v" "paragraph-move-down"
|
|
|
|
Separator
|
2006-09-13 15:33:26 +00:00
|
|
|
Submenu "Text Style|S" "edit_textstyles"
|
2003-05-16 12:53:20 +00:00
|
|
|
Item "Paragraph Settings...|P" "layout-paragraph"
|
|
|
|
Separator
|
2003-04-15 02:30:53 +00:00
|
|
|
# Mathed b0rkage means these don't work properly
|
2003-05-16 12:53:20 +00:00
|
|
|
OptSubmenu "Table|T" "edit_tabular"
|
|
|
|
OptSubmenu "Math|M" "edit_math"
|
2006-09-06 11:33:06 +00:00
|
|
|
OptSubmenu "Rows & Columns|C" "edit_tabular_features"
|
2003-05-16 12:53:20 +00:00
|
|
|
Separator
|
2003-04-15 02:30:53 +00:00
|
|
|
# This is where the context-specific stuff is supposed to go.
|
|
|
|
# The idea is that everything on here can disappear and should
|
|
|
|
# only appear when relevant (getStatus). Only stuff that needs
|
|
|
|
# a right-click to bring up the dialog should appear here (it is not
|
|
|
|
# obvious what the context is for the others)
|
2006-11-07 21:38:02 +00:00
|
|
|
OptItem "Increase List Depth|I" "depth-increment"
|
|
|
|
OptItem "Decrease List Depth|D" "depth-decrement"
|
|
|
|
OptItem "Dissolve Inset|l" "inset-dissolve"
|
2003-05-16 12:53:20 +00:00
|
|
|
OptItem "TeX Code Settings...|C" "inset-settings ert"
|
2003-04-26 17:30:13 +00:00
|
|
|
# 'a' shortcut to match Insert entry, shouldn't clash with Table Settings
|
2003-05-16 12:53:20 +00:00
|
|
|
OptItem "Float Settings...|a" "inset-settings float"
|
|
|
|
OptItem "Text Wrap Settings...|W" "inset-settings wrap"
|
2003-07-15 23:52:37 +00:00
|
|
|
OptItem "Note Settings...|N" "inset-settings note"
|
2003-08-17 11:28:23 +00:00
|
|
|
OptItem "Branch Settings...|B" "inset-settings branch"
|
2003-10-07 07:42:15 +00:00
|
|
|
OptItem "Box Settings...|x" "inset-settings box"
|
2003-04-26 19:01:33 +00:00
|
|
|
# Hey, guess what's broken ? Surprise surprise, it's tabular stuff
|
|
|
|
# This is in the Table submenu instead for now.
|
|
|
|
# OptItem "Table Settings...|a" "inset-settings tabular"
|
2003-05-16 12:53:20 +00:00
|
|
|
OptItem "Table Settings...|a" "layout-tabular"
|
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2005-05-22 23:01:21 +00:00
|
|
|
Menu "edit_paste"
|
2007-01-18 07:23:58 +00:00
|
|
|
Item "Plain Text|T" "clipboard-paste"
|
|
|
|
Item "Plain Text, Join Lines|J" "clipboard-paste paragraph"
|
2007-01-07 22:52:04 +00:00
|
|
|
Separator
|
2007-01-18 07:23:58 +00:00
|
|
|
Item "Selection|S" "primary-selection-paste"
|
|
|
|
Item "Selection, Join Lines|i" "primary-selection-paste paragraph"
|
2005-05-22 23:01:21 +00:00
|
|
|
End
|
|
|
|
|
2006-09-06 11:33:06 +00:00
|
|
|
Menu "edit_pasterecent"
|
2003-06-17 15:33:49 +00:00
|
|
|
PasteRecent
|
|
|
|
End
|
|
|
|
|
2006-09-13 15:33:26 +00:00
|
|
|
Menu "edit_textstyles"
|
|
|
|
CharStyles
|
|
|
|
Separator
|
|
|
|
Item "Customized...|C" "dialog-show character"
|
|
|
|
Separator
|
2006-09-13 16:13:41 +00:00
|
|
|
Item "Capitalize|a" "word-capitalize"
|
|
|
|
Item "Uppercase|U" "word-upcase"
|
|
|
|
Item "Lowercase|L" "word-lowcase"
|
2006-09-13 15:33:26 +00:00
|
|
|
End
|
|
|
|
|
2003-04-15 02:30:53 +00:00
|
|
|
# not much we can do to help here
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "edit_tabular"
|
|
|
|
Item "Multicolumn|M" "tabular-feature multicolumn"
|
|
|
|
Separator
|
|
|
|
Item "Top Line|T" "tabular-feature toggle-line-top"
|
|
|
|
Item "Bottom Line|B" "tabular-feature toggle-line-bottom"
|
|
|
|
Item "Left Line|L" "tabular-feature toggle-line-left"
|
|
|
|
Item "Right Line|R" "tabular-feature toggle-line-right"
|
|
|
|
Separator
|
2003-08-14 15:45:09 +00:00
|
|
|
End
|
|
|
|
|
2006-09-06 11:33:06 +00:00
|
|
|
Menu "edit_tabular_features"
|
2003-08-14 15:45:09 +00:00
|
|
|
Item "Left|L" "tabular-feature align-left"
|
|
|
|
Item "Center|C" "tabular-feature align-center"
|
|
|
|
Item "Right|R" "tabular-feature align-right"
|
|
|
|
Separator
|
|
|
|
Item "Top|T" "tabular-feature valign-top"
|
|
|
|
Item "Middle|M" "tabular-feature valign-middle"
|
|
|
|
Item "Bottom|B" "tabular-feature valign-bottom"
|
2005-04-25 14:10:10 +00:00
|
|
|
Separator
|
2006-11-07 21:38:02 +00:00
|
|
|
Item "Add Row|A" "tabular-feature append-row"
|
|
|
|
Item "Delete Row|D" "tabular-feature delete-row"
|
|
|
|
Item "Copy Row|o" "tabular-feature copy-row"
|
|
|
|
Item "Swap Rows|S" "tabular-feature swap-row"
|
2005-04-25 14:10:10 +00:00
|
|
|
Separator
|
2006-11-07 21:38:02 +00:00
|
|
|
Item "Add Column|u" "tabular-feature append-column"
|
|
|
|
Item "Delete Column|e" "tabular-feature delete-column"
|
|
|
|
Item "Copy Column|p" "tabular-feature copy-column"
|
|
|
|
Item "Swap Columns|w" "tabular-feature swap-column"
|
2003-05-16 12:53:20 +00:00
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "edit_math"
|
|
|
|
Item "Toggle Numbering|N" "math-number"
|
|
|
|
Item "Toggle Numbering of Line|u" "math-nonumber"
|
|
|
|
Submenu "Change Limits Type|L" "edit_math_limits"
|
|
|
|
Separator
|
|
|
|
Submenu "Change Formula Type|F" "edit_math_mutate"
|
|
|
|
Separator
|
2006-10-04 19:29:15 +00:00
|
|
|
Submenu "Text Style|T" "edit_math_textstyles"
|
|
|
|
Separator
|
2003-05-16 12:53:20 +00:00
|
|
|
Submenu "Use Computer Algebra System|S" "edit_math_extern"
|
|
|
|
Separator
|
2006-09-01 16:39:35 +00:00
|
|
|
Item "Split Cell|C" "cell-split"
|
|
|
|
Separator
|
2006-11-07 21:38:02 +00:00
|
|
|
Item "Add Line Above|A" "tabular-feature add-hline-above"
|
|
|
|
Item "Add Line Below|B" "tabular-feature add-hline-below"
|
|
|
|
Item "Delete Line Above|D" "tabular-feature delete-hline-above"
|
|
|
|
Item "Delete Line Below|e" "tabular-feature delete-hline-below"
|
2003-05-16 12:53:20 +00:00
|
|
|
Separator
|
2005-02-09 18:56:01 +00:00
|
|
|
Item "Add Line to Left" "tabular-feature add-vline-left"
|
2005-02-14 14:25:18 +00:00
|
|
|
Item "Add Line to Right" "tabular-feature add-vline-right"
|
2005-02-09 18:56:01 +00:00
|
|
|
Item "Delete Line to Left" "tabular-feature delete-vline-left"
|
2005-02-14 14:25:18 +00:00
|
|
|
Item "Delete Line to Right" "tabular-feature delete-vline-right"
|
2003-05-16 12:53:20 +00:00
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "edit_math_limits"
|
|
|
|
Item "Default|t" "math-limits empty"
|
|
|
|
Item "Display|D" "math-limits limits"
|
|
|
|
Item "Inline|I" "math-limits nolimits"
|
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2006-10-04 19:29:15 +00:00
|
|
|
Menu "edit_math_textstyles"
|
2006-11-07 21:38:02 +00:00
|
|
|
Item "Math Normal Font|N" "math-insert \mathnormal"
|
2006-10-04 19:29:15 +00:00
|
|
|
Separator
|
2006-11-07 21:38:02 +00:00
|
|
|
Item "Math Calligraphic Family|C" "math-insert \mathcal"
|
|
|
|
Item "Math Fraktur Family|F" "math-insert \mathfrak"
|
|
|
|
Item "Math Roman Family|R" "math-insert \mathrm"
|
|
|
|
Item "Math Sans Serif Family|S" "math-insert \mathsf"
|
2006-10-04 19:29:15 +00:00
|
|
|
Separator
|
2006-11-07 21:38:02 +00:00
|
|
|
Item "Math Bold Series|B" "math-insert \mathbf"
|
2006-10-04 19:29:15 +00:00
|
|
|
Separator
|
2006-11-07 21:38:02 +00:00
|
|
|
Item "Text Normal Font|T" "math-insert \textnormal"
|
2006-10-04 19:29:15 +00:00
|
|
|
Separator
|
|
|
|
Item "Text Roman Family" "math-insert \textrm"
|
|
|
|
Item "Text Sans Serif Family" "math-insert \textsf"
|
|
|
|
Item "Text Typewriter Family" "math-insert \texttt"
|
|
|
|
Separator
|
|
|
|
Item "Text Bold Series" "math-insert \textbf"
|
|
|
|
Item "Text Medium Series" "math-insert \textmd"
|
|
|
|
Separator
|
|
|
|
Item "Text Italic Shape" "math-insert \textit"
|
|
|
|
Item "Text Small Caps Shape" "math-insert \textsc"
|
|
|
|
Item "Text Slanted Shape" "math-insert \textsl"
|
|
|
|
Item "Text Upright Shape" "math-insert \textup"
|
|
|
|
End
|
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "edit_math_extern"
|
2006-11-07 21:38:02 +00:00
|
|
|
Item "Octave|O" "math-extern octave"
|
|
|
|
Item "Maxima|M" "math-extern maxima"
|
|
|
|
Item "Mathematica|a" "math-extern mathematica"
|
|
|
|
Separator
|
|
|
|
Item "Maple, simplify|s" "math-extern maple simplify"
|
|
|
|
Item "Maple, factor|f" "math-extern maple factor"
|
|
|
|
Item "Maple, evalm|e" "math-extern maple evalm"
|
|
|
|
Item "Maple, evalf|v" "math-extern maple evalf"
|
2003-05-16 12:53:20 +00:00
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "edit_math_mutate"
|
|
|
|
Item "Inline Formula|I" "math-mutate simple"
|
|
|
|
Item "Displayed Formula|D" "math-mutate equation"
|
2006-11-12 09:50:57 +00:00
|
|
|
Item "Eqnarray Environment|E" "math-mutate eqnarray"
|
2005-05-22 23:01:21 +00:00
|
|
|
Item "AMS align Environment|a" "math-mutate align"
|
2003-07-22 15:24:01 +00:00
|
|
|
Item "AMS alignat Environment|t" "math-mutate alignat"
|
|
|
|
Item "AMS flalign Environment|f" "math-mutate flalign"
|
|
|
|
Item "AMS gather Environment|g" "math-mutate gather"
|
|
|
|
Item "AMS multline Environment|m" "math-mutate multline"
|
2003-05-16 12:53:20 +00:00
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# VIEW MENU
|
|
|
|
#
|
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "view"
|
2006-09-01 16:39:35 +00:00
|
|
|
Item "Open All Insets|O" "all-insets-toggle open"
|
|
|
|
Item "Close All Insets|C" "all-insets-toggle close"
|
|
|
|
Separator
|
2007-04-30 14:29:49 +00:00
|
|
|
Item "View Source|S" "dialog-toggle view-source"
|
2006-09-06 11:33:06 +00:00
|
|
|
Submenu "Update|U" "view_update"
|
2003-05-16 12:53:20 +00:00
|
|
|
ViewFormats
|
|
|
|
Separator
|
2006-11-02 16:01:36 +00:00
|
|
|
Submenu "Toolbars|b" "toolbars"
|
|
|
|
Separator
|
2003-05-16 12:53:20 +00:00
|
|
|
Documents
|
|
|
|
End
|
2003-10-13 09:50:10 +00:00
|
|
|
|
2006-09-06 11:33:06 +00:00
|
|
|
Menu "view_update"
|
2003-05-16 12:53:20 +00:00
|
|
|
UpdateFormats
|
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2006-11-02 16:01:36 +00:00
|
|
|
Menu "toolbars"
|
|
|
|
Toolbars
|
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
#
|
|
|
|
# INSERT MENU
|
|
|
|
#
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "insert"
|
2003-04-15 02:30:53 +00:00
|
|
|
# Try and group things a little better, and percolate the most
|
|
|
|
# commonly used to good positions (exception being mathed, but
|
|
|
|
# most people using mathed learn key shortcuts quite quickly anyway)
|
2003-05-16 12:53:20 +00:00
|
|
|
Submenu "Math|h" "insert_math"
|
2006-11-07 20:23:54 +00:00
|
|
|
Submenu "Special Character|p" "insert_special"
|
2006-11-25 17:03:30 +00:00
|
|
|
Submenu "Formatting|o" "insert_formatting"
|
2003-07-29 17:44:44 +00:00
|
|
|
Submenu "List / TOC|i" "insert_toc"
|
2003-08-14 15:47:20 +00:00
|
|
|
Submenu "Float|a" "insert_float"
|
2003-08-17 11:28:23 +00:00
|
|
|
Submenu "Note|N" "insert_note"
|
2007-05-31 12:07:48 +00:00
|
|
|
Submenu "Branch|B" "insert_branches"
|
2003-05-16 12:53:20 +00:00
|
|
|
Submenu "File|e" "insert_file"
|
2004-09-21 09:32:21 +00:00
|
|
|
Item "Box" "box-insert Frameless"
|
2003-05-16 12:53:20 +00:00
|
|
|
Separator
|
2005-05-08 10:02:38 +00:00
|
|
|
Item "Citation...|C" "dialog-show-new-inset citation"
|
2006-11-07 20:23:54 +00:00
|
|
|
Item "Cross-Reference...|R" "dialog-show-new-inset ref"
|
2003-05-16 12:53:20 +00:00
|
|
|
Item "Label...|L" "label-insert"
|
2007-01-30 22:01:35 +00:00
|
|
|
Item "Caption" "caption-insert"
|
2003-07-29 17:44:44 +00:00
|
|
|
Item "Index Entry|d" "index-insert"
|
2007-04-29 22:21:00 +00:00
|
|
|
Item "Nomenclature Entry...|y" "nomencl-insert"
|
2003-05-16 12:53:20 +00:00
|
|
|
Separator
|
|
|
|
Item "Table...|T" "tabular-insert"
|
|
|
|
Item "Graphics...|G" "dialog-show-new-inset graphics"
|
|
|
|
Item "URL...|U" "url-insert"
|
|
|
|
Item "Footnote|F" "footnote-insert"
|
|
|
|
Item "Marginal Note|M" "marginalnote-insert"
|
2006-11-07 20:23:54 +00:00
|
|
|
Item "Short Title|S" "optional-insert"
|
2005-05-08 10:02:38 +00:00
|
|
|
Item "TeX Code|X" "ert-insert"
|
Add support for listings package. Two listings command \lstinline, \lstinputlisting and an environment \lstlisting are supported, along with preamble \lstset. \lstinputlisting is implemented through Include dialog, and the other two are implemented with a new inset listings, along with its dialog.
* src/LyXAction.cpp: listing-insert action
* src/insets/Inset.h,cpp: LISTINGS_CODE
* src/insets/InsetInclude.cpp: handle \lstinputlisting
* src/insets/InsetListings.h,cpp: new listings inset
* src/insets/InsetListingsParams.h,cpp: parameters from listings package
* src/insets/InsetCommandParams.h,cpp: handle lstinputlisting option
* src/Bidi.cpp: handle LISTINGS_CODE
* src/frontends/qt4/ui/TextLayoutUi.ui: update UI
* src/frontends/qt4/ui/ListingsUi.ui: new dialog
* src/frontends/qt4/ui/IncludeUi.ui: update UI
* src/frontends/qt4/QInclude.h,cpp: add lstinputlisting
* src/frontends/qt4/QDocument.h,cpp: add textedit for preamble listings_params
* src/frontends/qt4/QListings.h,cpp: new listings inset
* src/frontends/qt4/Dialogs.cpp: new listings dialog
* src/frontends/controllers/ControlInclude.h,cpp: add lstinputlisting
* src/frontends/controllers/ControlListings.h,cpp: new listings inset
* src/LyXFunc.cpp: handle LISTING_CODE
* src/Paragraph.cpp: handle LISTING_CODE
* src/factory.cpp: new listings inset
* src/CutAndPaste.cpp: handle LISTINGS_CODE
* src/LaTeXFeatures.cpp: require listings
* src/Text3.cpp: Handle LISTINGS_CODE
* src/lfuns.h: add LFUN_LISTING_INSERT
* src/Buffer.cpp: change lyx file format to 269
* src/BufferParams.h,cpp: add listings_params to preamble
* lib/lyx2lyx/LyX.py: lyx2lyx
* lib/lyx2lyx/lyx_1_5.py: lyx2lyx
* lib/ui/stdmenus.inc: new menu item (no shortcut!)
* src/insets/Makefile.am: update autotools
* src/frontends/controllers/Makefile.am
* src/frontends/qt4/Makefile.dialogs
* src/frontends/qt4/Makefile.am
* po/POTFILES.in: a few more translatable files.
* development/scons/scons_manifest.py: scons build system
* development/FORMAT: document format changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18243 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-09 19:11:42 +00:00
|
|
|
Item "Program Listing" "listing-insert"
|
2006-11-07 20:23:54 +00:00
|
|
|
Item "Date" "date-insert"
|
2003-05-16 12:53:20 +00:00
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "insert_special"
|
2003-07-29 17:44:44 +00:00
|
|
|
Item "Ellipsis|i" "dots-insert"
|
|
|
|
Item "End of Sentence|E" "end-of-sentence-period-insert"
|
|
|
|
Item "Ordinary Quote|Q" "self-insert \""
|
2004-02-20 10:32:44 +00:00
|
|
|
Item "Single Quote|S" "quote-insert single"
|
2003-07-29 17:44:44 +00:00
|
|
|
Item "Menu Separator|M" "menu-separator-insert"
|
2006-08-30 19:06:12 +00:00
|
|
|
Item "Phonetic Symbols|y" "command-sequence math-mode on; math-insert \text\textipa ; char-forward ;"
|
2003-07-29 17:44:44 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Menu "insert_formatting"
|
2005-06-24 10:14:33 +00:00
|
|
|
Item "Superscript|S" "command-sequence math-mode on; math-superscript; math-insert \text;"
|
|
|
|
Item "Subscript|u" "command-sequence math-mode on; math-subscript; math-insert \text;"
|
2003-07-29 17:44:44 +00:00
|
|
|
Separator
|
2006-11-07 21:38:02 +00:00
|
|
|
Item "Protected Space|P" "space-insert protected"
|
2003-05-30 12:44:23 +00:00
|
|
|
Item "Inter-word Space|w" "space-insert normal"
|
2003-05-22 10:40:57 +00:00
|
|
|
Item "Thin Space|T" "space-insert thin"
|
2006-11-07 21:38:02 +00:00
|
|
|
Item "Horizontal Fill|F" "hfill-insert"
|
|
|
|
Item "Horizontal Line|L" "line-insert"
|
|
|
|
Item "Vertical Space...|V" "dialog-show-new-inset vspace"
|
2003-07-29 17:44:44 +00:00
|
|
|
Separator
|
2006-11-07 21:38:02 +00:00
|
|
|
Item "Hyphenation Point|H" "hyphenation-point-insert"
|
2003-07-29 17:44:44 +00:00
|
|
|
Item "Ligature Break|k" "ligature-break-insert"
|
2006-11-07 21:38:02 +00:00
|
|
|
Item "Line Break|B" "break-line"
|
2006-11-25 17:03:30 +00:00
|
|
|
Separator
|
2006-11-07 21:38:02 +00:00
|
|
|
Item "Page Break|a" "pagebreak-insert"
|
2006-11-25 17:03:30 +00:00
|
|
|
Item "Clear Page|C" "clearpage-insert"
|
|
|
|
Item "Clear Double Page|D" "cleardoublepage-insert"
|
2003-05-16 12:53:20 +00:00
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "insert_math"
|
2004-11-07 09:39:34 +00:00
|
|
|
Item "Inline Formula|I" "math-mode on"
|
2003-05-16 12:53:20 +00:00
|
|
|
Item "Display Formula|D" "math-display"
|
2006-10-12 14:49:19 +00:00
|
|
|
Item "Numbered Formula|N" "command-sequence math-display; math-number;"
|
2004-11-07 09:39:34 +00:00
|
|
|
Item "Eqnarray Environment|E" "command-sequence math-mode on; math-mutate eqnarray;"
|
|
|
|
Item "AMS align Environment|a" "command-sequence math-mode on; math-mutate align;"
|
|
|
|
Item "AMS alignat Environment|t" "command-sequence math-mode on; math-mutate alignat;"
|
|
|
|
Item "AMS flalign Environment|f" "command-sequence math-mode on; math-mutate flalign;"
|
|
|
|
Item "AMS gather Environment|g" "command-sequence math-mode on; math-mutate gather;"
|
|
|
|
Item "AMS multline Environment|m" "command-sequence math-mode on; math-mutate multline;"
|
2003-05-16 12:53:20 +00:00
|
|
|
Separator
|
|
|
|
Item "Array Environment|y" "math-matrix 2 2"
|
2006-10-04 19:29:15 +00:00
|
|
|
Item "Cases Environment|C" "command-sequence math-mode on; math-insert \cases"
|
2006-11-07 21:38:02 +00:00
|
|
|
Item "Aligned Environment|l" "command-sequence math-mode on; math-insert \aligned; tabular-feature append-column"
|
|
|
|
Item "AlignedAt Environment|v" "command-sequence math-mode on; math-insert \alignedat; tabular-feature append-column"
|
|
|
|
Item "Gathered Environment|h" "command-sequence math-mode on; math-insert \gathered"
|
2006-10-04 19:29:15 +00:00
|
|
|
Item "Split Environment|S" "command-sequence math-mode on; math-insert \split; tabular-feature append-column"
|
2003-05-16 12:53:20 +00:00
|
|
|
Separator
|
2007-04-14 16:29:01 +00:00
|
|
|
Item "Delimiters|r" "dialog-show mathdelimiter"
|
|
|
|
Item "Matrix|x" "dialog-show mathmatrix"
|
2007-05-23 22:08:07 +00:00
|
|
|
Separator
|
|
|
|
Item "Toggle Math Panels" "toolbar-toggle math_panels"
|
2003-05-16 12:53:20 +00:00
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "insert_float"
|
|
|
|
FloatInsert
|
2003-04-15 02:30:53 +00:00
|
|
|
# This has got to be better than "Wrap", anyway
|
2003-05-16 12:53:20 +00:00
|
|
|
Item "Text Wrap Float|W" "wrap-insert figure"
|
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "insert_toc"
|
|
|
|
Item "Table of Contents|C" "toc-insert"
|
|
|
|
FloatListInsert
|
|
|
|
Item "Index List|I" "index-print"
|
2007-04-29 22:21:00 +00:00
|
|
|
Item "Nomenclature|N" "nomencl-print"
|
2005-05-08 10:02:38 +00:00
|
|
|
Item "BibTeX Bibliography...|B" "dialog-show-new-inset bibtex"
|
2003-05-16 12:53:20 +00:00
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "insert_file"
|
|
|
|
Item "LyX Document...|X" "file-insert"
|
2007-01-18 07:23:58 +00:00
|
|
|
Item "Plain Text...|T" "file-insert-plaintext"
|
|
|
|
Item "Plain Text, Join Lines...|J" "file-insert-plaintext-para"
|
2003-07-29 17:44:44 +00:00
|
|
|
Separator
|
2005-05-22 23:01:21 +00:00
|
|
|
Item "External Material...|M" "dialog-show-new-inset external"
|
2003-07-29 17:44:44 +00:00
|
|
|
Item "Child Document...|d" "dialog-show-new-inset include"
|
2003-05-16 12:53:20 +00:00
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2003-07-30 11:39:36 +00:00
|
|
|
Menu "insert_note"
|
2003-07-30 13:08:12 +00:00
|
|
|
Item "LyX Note|N" "note-insert Note"
|
|
|
|
Item "Comment|C" "note-insert Comment"
|
|
|
|
Item "Greyed Out|G" "note-insert Greyedout"
|
2003-07-30 11:39:36 +00:00
|
|
|
End
|
|
|
|
|
2006-09-06 11:33:06 +00:00
|
|
|
Menu "insert_branches"
|
2003-08-17 11:28:23 +00:00
|
|
|
Branches
|
|
|
|
End
|
2003-11-12 14:38:26 +00:00
|
|
|
|
2003-04-15 02:30:53 +00:00
|
|
|
#
|
|
|
|
# DOCUMENT MENU
|
|
|
|
#
|
2003-10-13 09:50:10 +00:00
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "document"
|
2006-09-06 11:33:06 +00:00
|
|
|
Submenu "Change Tracking|C" "document_change"
|
2003-05-16 12:53:20 +00:00
|
|
|
OptItem "Build Program|B" "build-program"
|
2005-05-22 23:01:21 +00:00
|
|
|
Item "LaTeX Log|L" "dialog-show latexlog"
|
2007-05-26 12:41:39 +00:00
|
|
|
Item "Outline|O" "dialog-toggle toc"
|
2003-05-16 12:53:20 +00:00
|
|
|
Item "Start Appendix Here|A" "appendix"
|
2003-05-24 15:06:22 +00:00
|
|
|
Separator
|
2007-05-26 12:41:39 +00:00
|
|
|
Item "Compressed|m" "buffer-toggle-compression"
|
2003-06-19 16:49:45 +00:00
|
|
|
Item "Settings...|S" "dialog-show document"
|
2003-05-16 12:53:20 +00:00
|
|
|
End
|
2003-10-13 09:50:10 +00:00
|
|
|
|
2006-09-06 11:33:06 +00:00
|
|
|
Menu "document_change"
|
2006-05-08 18:09:19 +00:00
|
|
|
Item "Track Changes|T" "changes-track"
|
|
|
|
Item "Merge Changes...|M" "changes-merge"
|
2006-08-30 19:06:12 +00:00
|
|
|
Item "Accept Change|A" "change-accept"
|
|
|
|
Item "Reject Change|R" "change-reject"
|
|
|
|
Item "Accept All Changes|c" "all-changes-accept"
|
|
|
|
Item "Reject All Changes|e" "all-changes-reject"
|
2006-05-08 18:09:19 +00:00
|
|
|
Item "Show Changes in Output|S" "changes-output"
|
2003-05-16 12:53:20 +00:00
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# NAVIGATE MENU
|
|
|
|
#
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "navigate"
|
|
|
|
Submenu "Bookmarks|B" "navigate_bookmarks"
|
2005-03-30 17:33:32 +00:00
|
|
|
Item "Next Note|N" "note-next"
|
2006-10-04 21:43:40 +00:00
|
|
|
Item "Next Change|C" "change-next"
|
2006-11-07 20:23:54 +00:00
|
|
|
Item "Next Cross-Reference|R" "reference-next"
|
2005-05-22 23:01:21 +00:00
|
|
|
Item "Go to Label|L" "label-goto"
|
2003-05-16 12:53:20 +00:00
|
|
|
Separator
|
|
|
|
Toc
|
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "navigate_bookmarks"
|
2007-03-29 03:41:55 +00:00
|
|
|
Item "Save Bookmark 1|S" "bookmark-save 1"
|
|
|
|
Item "Save Bookmark 2" "bookmark-save 2"
|
|
|
|
Item "Save Bookmark 3" "bookmark-save 3"
|
|
|
|
Item "Save Bookmark 4" "bookmark-save 4"
|
|
|
|
Item "Save Bookmark 5" "bookmark-save 5"
|
2006-11-01 15:55:17 +00:00
|
|
|
Item "Clear Bookmarks|C" "bookmark-clear"
|
|
|
|
Separator
|
|
|
|
Bookmarks
|
2003-05-16 12:53:20 +00:00
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# TOOLS MENU
|
|
|
|
#
|
2003-10-13 09:50:10 +00:00
|
|
|
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "tools"
|
2003-06-19 16:49:45 +00:00
|
|
|
Item "Spellchecker...|S" "dialog-show spellchecker"
|
2003-05-16 12:53:20 +00:00
|
|
|
OptItem "Thesaurus...|T" "thesaurus-entry"
|
2004-12-27 16:30:27 +00:00
|
|
|
Item "Count Words|W" "words-count"
|
2003-05-16 12:53:20 +00:00
|
|
|
OptItem "Check TeX|h" "buffer-chktex"
|
2005-05-22 23:01:21 +00:00
|
|
|
Item "TeX Information|I" "dialog-show texinfo"
|
2003-05-16 12:53:20 +00:00
|
|
|
Separator
|
2003-04-15 02:30:53 +00:00
|
|
|
# A LOT of applications have Tools->Prefs. Remember this
|
|
|
|
# should be rarely used - Edit menu is not a good place to
|
|
|
|
# have it.
|
2003-05-16 12:53:20 +00:00
|
|
|
Item "Reconfigure|R" "reconfigure"
|
2004-03-31 18:51:11 +00:00
|
|
|
Item "Preferences...|P" "dialog-show prefs"
|
2003-05-16 12:53:20 +00:00
|
|
|
End
|
2003-10-13 09:50:10 +00:00
|
|
|
|
2003-04-15 02:30:53 +00:00
|
|
|
#
|
|
|
|
# HELP MENU
|
|
|
|
#
|
2003-05-16 12:53:20 +00:00
|
|
|
Menu "help"
|
|
|
|
Item "Introduction|I" "help-open Intro"
|
|
|
|
Item "Tutorial|T" "help-open Tutorial"
|
|
|
|
Item "User's Guide|U" "help-open UserGuide"
|
|
|
|
Item "Extended Features|E" "help-open Extended"
|
2007-01-31 00:05:50 +00:00
|
|
|
Item "Embedded Objects|m" "help-open EmbeddedObjects"
|
2003-05-16 12:53:20 +00:00
|
|
|
Item "Customization|C" "help-open Customization"
|
|
|
|
Item "FAQ|F" "help-open FAQ"
|
|
|
|
Item "Table of Contents|a" "help-open TOC"
|
|
|
|
Item "LaTeX Configuration|L" "help-open LaTeXConfig"
|
|
|
|
Separator
|
2005-05-22 23:01:21 +00:00
|
|
|
Item "About LyX|X" "dialog-show aboutlyx"
|
2003-05-16 12:53:20 +00:00
|
|
|
End
|
2003-04-15 02:30:53 +00:00
|
|
|
|
|
|
|
End
|