X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fui%2Fstdcontext.inc;h=0b0d32f49b5434ce62bc6dfe922b46bf8121729d;hb=7f1cb306f942709601314f3e396f0e01defdc45d;hp=a8cf62ec149970cecad999889ae9a56a0a4e6549;hpb=034a03b0f5c62fb89f312eda52b122150c1256a7;p=lyx.git diff --git a/lib/ui/stdcontext.inc b/lib/ui/stdcontext.inc index a8cf62ec14..0b0d32f49b 100644 --- a/lib/ui/stdcontext.inc +++ b/lib/ui/stdcontext.inc @@ -13,13 +13,13 @@ # Casing Rules: # Capitalize all words in the element, with the following exceptions: -# * Articles: a, an, the. -# * Conjunctions: and, but, for, not, so, yet ... +# * Articles: a, an, the. +# * Conjunctions: and, but, for, not, so, yet ... # * Prepositions of three or fewer letters: at, for, by, in, to ... # (except when the preposition is part of a verb phrase, such as "Check In") # (http://library.gnome.org/devel/hig-book/stable/design-text-labels.html.en) -Format 1 +Format 5 Menuset @@ -29,10 +29,10 @@ Menuset Menu "insert_math_context" Item "Array Environment|y" "math-matrix 2 2" Item "Cases Environment|C" "math-insert \cases" - Item "Aligned Environment|l" "command-sequence math-insert \aligned; inset-modify tabular append-column" - Item "AlignedAt Environment|v" "command-sequence math-insert \alignedat; inset-modify tabular append-column" + Item "Aligned Environment|l" "command-sequence math-insert \aligned; tabular-feature append-column" + Item "AlignedAt Environment|v" "command-sequence math-insert \alignedat; tabular-feature append-column" Item "Gathered Environment|h" "math-insert \gathered" - Item "Split Environment|S" "command-sequence math-insert \split; inset-modify tabular append-column" + Item "Split Environment|S" "command-sequence math-insert \split; tabular-feature append-column" Separator Item "Delimiters...|r" "dialog-show mathdelimiter" Item "Matrix...|x" "dialog-show mathmatrix" @@ -56,21 +56,26 @@ Menuset OptItem "Number Whole Formula|N" "math-number-toggle" OptItem "Number This Line|u" "math-number-line-toggle" OptItem "Equation Label|L" "label-insert" - OptItem "Copy as Reference|R" "copy-label-as-reference" + OptItem "Copy as Reference|R" "label-copy-as-reference" Separator - Item "Split Cell|C" "cell-split" + OptItem "Cut" "cut" + OptItem "Copy" "copy" + OptItem "Paste" "paste" + OptSubmenu "Paste Recent|e" "edit_pasterecent" Separator Submenu "Insert|s" "insert_math_context" Separator - OptItem "Add Line Above|o" "inset-modify tabular add-hline-above" - OptItem "Add Line Below|B" "inset-modify tabular add-hline-below" - OptItem "Delete Line Above|v" "inset-modify tabular delete-hline-above" - OptItem "Delete Line Below|w" "inset-modify tabular delete-hline-below" + Item "Split Cell|C" "cell-split" + OptSubmenu "Rows & Columns| " "edit_tabular_features" + OptItem "Add Line Above|o" "tabular-feature add-hline-above" + OptItem "Add Line Below|B" "tabular-feature add-hline-below" + OptItem "Delete Line Above|v" "tabular-feature delete-hline-above" + OptItem "Delete Line Below|w" "tabular-feature delete-hline-below" Separator - OptItem "Add Line to Left" "inset-modify tabular add-vline-left" - OptItem "Add Line to Right" "inset-modify tabular add-vline-right" - OptItem "Delete Line to Left" "inset-modify tabular delete-vline-left" - OptItem "Delete Line to Right" "inset-modify tabular delete-vline-right" + OptItem "Add Line to Left" "tabular-feature add-vline-left" + OptItem "Add Line to Right" "tabular-feature add-vline-right" + OptItem "Delete Line to Left" "tabular-feature delete-vline-left" + OptItem "Delete Line to Right" "tabular-feature delete-vline-right" Separator Item "Show Math Toolbar" "toolbar-toggle math toggle" Item "Show Math-Panels Toolbar" "toolbar-toggle math_panels toggle" @@ -80,6 +85,26 @@ Menuset End +# +# InsetMathRef context menu +# + Menu "context-mathref" + Item "Next Cross-Reference|N" "reference-next" + Item "Go to Label|G" "label-goto" + Separator + Item "|R" "inset-modify changetype ref" + Item "()|e" "inset-modify changetype eqref" + Item "|P" "inset-modify changetype pageref" + Item "On Page |O" "inset-modify changetype vpageref" + Item " on Page |f" "inset-modify changetype vref" + Item "Formatted Reference|t" "inset-modify changetype formatted" + Item "Textual Reference|x" "inset-modify changetype nameref" + Item "Label Only|L" "inset-modify changetype labelonly" + Separator + Item "Settings...|S" "inset-settings" + End + + # # InsetRef context menu # @@ -94,6 +119,12 @@ Menuset Item " on Page |f" "inset-modify changetype vref" Item "Formatted Reference|t" "inset-modify changetype formatted" Item "Textual Reference|x" "inset-modify changetype nameref" + Item "Label Only|L" "inset-modify changetype labelonly" + Separator + OptItem "Plural|a" "inset-modify ref toggle-plural" + OptItem "Capitalize|C" "inset-modify ref toggle-caps" + OptItem "No Prefix" "inset-modify ref toggle-noprefix" + OptItem "No Hyperlink" "inset-modify ref toggle-nolink" Separator Item "Settings...|S" "inset-settings" End @@ -105,7 +136,7 @@ Menuset Item "Next Cross-Reference|N" "reference-next" Item "Go Back|G" "bookmark-goto 0" Separator - Item "Copy as Reference|C" "copy-label-as-reference" + Item "Copy as Reference|C" "label-copy-as-reference" Separator Item "Settings...|S" "inset-settings" End @@ -118,6 +149,7 @@ Menuset CiteStyles Separator Item "Settings...|S" "inset-settings" + OptItem "Try to Open Citation Content...|O" "inset-edit" End @@ -138,9 +170,9 @@ Menuset End # -# InsetCollapsable context menu +# InsetCollapsible context menu # - Menu "context-collapsable" + Menu "context-collapsible" OptItem "Open Inset|O" "inset-toggle open" OptItem "Close Inset|C" "inset-toggle close" Separator @@ -155,6 +187,22 @@ Menuset OptItem "Settings...|S" "inset-settings" End +# +# InsetArgument context menu +# + + Menu "context-argument" + Separator + SwitchArguments + End + + Menu "context-argument-conglomerate" + Item "Show Label|L" "inset-toggle" + Item "Dissolve Inset|D" "inset-dissolve" + Separator + SwitchArguments + End + # # InsetBox context menu # @@ -170,6 +218,15 @@ Menuset Item "Double Frame|u" "inset-modify changetype Doublebox" End + +# +# InsetCaption context menu +# + Menu "context-caption" + SwitchCaptions + End + + # # InsetNote context menu # @@ -193,27 +250,40 @@ Menuset Item "Vertical Phantom|V" "inset-modify phantom Phantom VPhantom" End + +# +# InsetQuotes context menu +# + Menu "context-quote" + SwitchQuotes + End + # # InsetSpace context menu # Menu "context-space" - Item "Interword Space|w" "inset-modify space \space{}" - Item "Protected Space|o" "inset-modify space ~" - Item "Thin Space|T" "inset-modify space \thinspace{}" - Item "Negative Thin Space|N" "inset-modify space \negthinspace{}" - Item "Half Quad Space (Enskip)|k" "inset-modify space \enskip{}" - Item "Protected Half Quad Space (Enspace)|E" "inset-modify space \enspace{}" - Item "Quad Space|Q" "inset-modify space \quad{}" - Item "Double Quad Space|u" "inset-modify space \qquad{}" + Item "Normal Space|e" "inset-modify space \space{}" + Item "Non-Breaking Normal Space|o" "inset-modify space ~" + Item "Visible Space|a" "inset-modify space \textvisiblespace{}" + Item "Non-Breaking Thin Space (1/6 em)|T" "inset-modify space \thinspace{}" + Item "Non-Breaking Medium Space (3/9 em)|M" "inset-modify space \medspace{}" + Item "Non-Breaking Thick Space (5/18 em)|i" "inset-modify space \thickspace{}" + Item "Non-Breaking Negative Thin Space (-1/6 em)|N" "inset-modify space \negthinspace{}" + Item "Non-Breaking Negative Medium Space (-2/9 em)|v" "inset-modify space \negmedspace{}" + Item "Non-Breaking Negative Thick Space (-5/18 em)|h" "inset-modify space \negthickspace{}" + Item "Half Quad Space (1/2 em)|l" "inset-modify space \enskip{}" + Item "Non-Breaking Half Quad Space (1/2 em)|k" "inset-modify space \enspace{}" + Item "Quad Space (1 em)|Q" "inset-modify space \quad{}" + Item "Double Quad Space (2 em)|u" "inset-modify space \qquad{}" Item "Horizontal Fill|F" "inset-modify space \hfill{}" - Item "Protected Horizontal Fill|i" "inset-modify space \hspace*{\fill}" + Item "Non-Breaking Horizontal Fill|z" "inset-modify space \hspace*{\fill}" Item "Horizontal Fill (Dots)|D" "inset-modify space \dotfill{}" Item "Horizontal Fill (Rule)|R" "inset-modify space \hrulefill{}" - Item "Horizontal Fill (Left Arrow)|L" "inset-modify space \leftarrowfill{}" + Item "Horizontal Fill (Left Arrow)|w" "inset-modify space \leftarrowfill{}" Item "Horizontal Fill (Right Arrow)|g" "inset-modify space \rightarrowfill{}" Item "Horizontal Fill (Up Brace)|p" "inset-modify space \upbracefill{}" Item "Horizontal Fill (Down Brace)|B" "inset-modify space \downbracefill{}" - Item "Custom Length|C" "command-sequence inset-modify space \hspace{} \length 1in; inset-settings" + Item "Custom Length|C" "command-sequence inset-modify space \hspace{}; inset-settings" Separator Item "Settings...|S" "inset-settings" End @@ -224,10 +294,10 @@ Menuset Menu "context-mathspace" Item "Thin Space|T" "inset-modify mathspace \thinspace{}" Item "Medium Space|M" "inset-modify mathspace \medspace{}" - Item "Thick Space|h" "inset-modify mathspace \thickspace{}" + Item "Thick Space|i" "inset-modify mathspace \thickspace{}" Item "Negative Thin Space|N" "inset-modify mathspace \negthinspace{}" - Item "Negative Medium Space|u" "inset-modify mathspace \negmedspace{}" - Item "Negative Thick Space|i" "inset-modify mathspace \negthickspace{}" + Item "Negative Medium Space|v" "inset-modify mathspace \negmedspace{}" + Item "Negative Thick Space|h" "inset-modify mathspace \negthickspace{}" Item "Half Quad Space (Enskip)|k" "inset-modify mathspace \enskip{}" Item "Quad Space|Q" "inset-modify mathspace \quad{}" Item "Double Quad Space|u" "inset-modify mathspace \qquad{}" @@ -240,12 +310,14 @@ Menuset # InsetVSpace context menu # Menu "context-vspace" - Item "DefSkip|D" "inset-modify vspace defskip" - Item "SmallSkip|S" "inset-modify vspace smallskip" - Item "MedSkip|M" "inset-modify vspace medskip" - Item "BigSkip|B" "inset-modify vspace bigskip" - Item "VFill|F" "inset-modify vspace vfill" - Item "Custom|C" "command-sequence inset-modify vspace 1in; inset-settings" + Item "Default Skip|D" "inset-modify vspace defskip" + Item "Small Skip|S" "inset-modify vspace smallskip" + Item "Medium Skip|M" "inset-modify vspace medskip" + Item "Big Skip|B" "inset-modify vspace bigskip" + Item "Half line height|H" "inset-modify vspace halfline" + Item "Line height|L" "inset-modify vspace fullline" + Item "Vertical Fill|F" "inset-modify vspace vfill" + Item "Custom|C" "command-sequence inset-modify vspace custom; inset-settings" Separator Item "Settings...|e" "inset-settings" End @@ -271,6 +343,7 @@ Menuset Menu "context-newpage" Item "New Page|N" "inset-modify newpage newpage" Item "Page Break|a" "inset-modify newpage pagebreak" + Item "No Page Break|g" "inset-modify newpage nopagebreak" Item "Clear Page|C" "inset-modify newpage clearpage" Item "Clear Double Page|D" "inset-modify newpage cleardoublepage" End @@ -283,39 +356,56 @@ Menuset Item "Justified Line Break|J" "inset-modify newline linebreak" End +# +# InsetNewline context menu +# + Menu "context-separator" + Item "Plain Separator|P" "inset-modify separator plain" + Item "Paragraph Break|B" "inset-modify separator parbreak" + End + # # Edit context menu # Menu "context-edit" spellingsuggestions Separator + OptItem "Edit Externally..." "inset-edit" + OptItem "End Editing Externally..." "inset-end-edit" + Separator Item "Cut" "cut" Item "Copy" "copy" Item "Paste" "paste" Submenu "Paste Recent|e" "edit_pasterecent" Separator + OptItem "Split Inset|t" "inset-split" + Separator Item "Jump Back to Saved Bookmark|B" "bookmark-goto 0" - OptItem "Forward search|F" "forward-search" + OptItem "Forward Search|F" "forward-search" Separator Item "Move Paragraph Up|o" "paragraph-move-up" Item "Move Paragraph Down|v" "paragraph-move-down" Separator + EnvironmentSeparatorsContext + Separator OptItem "Promote Section|r" "outline-out" OptItem "Demote Section|m" "outline-in" OptItem "Move Section Down|D" "outline-down" OptItem "Move Section Up|U" "outline-up" - OptItem "Insert Short Title|T" "argument-insert" + Arguments OptSubmenu "Insert Regular Expression" "context-edit-regexp" Separator OptItem "Accept Change|c" "change-accept" OptItem "Reject Change|j" "change-reject" Separator - Item "Apply Last Text Style|A" "textstyle-apply" - Submenu "Text Style|S" "edit_textstyles" + Submenu "Text Properties|x" "edit_textprops" + OptSubmenu "Custom Text Styles|S" "edit_textstyles" Item "Paragraph Settings...|P" "layout-paragraph" + OptItem "Unify Graphics Groups|U" "graphics-unify" LanguageSelector Separator Item "Fullscreen Mode" "ui-toggle fullscreen" + OptItem "Close Current View" "tab-group-close" End @@ -325,7 +415,7 @@ Menuset Menu "context-edit-regexp" Item "Anything|A" "command-sequence regexp-mode; self-insert .*" Item "Anything Non-Empty|o" "command-sequence regexp-mode; self-insert .+" - Item "Any Word|W" "command-sequence regexp-mode; self-insert [a-z]+" + Item "Any Word|W" "command-sequence regexp-mode; self-insert \w+" Item "Any Number|N" "command-sequence regexp-mode; self-insert [0-9]+" Item "User Defined|U" "regexp-mode" End @@ -376,58 +466,61 @@ Menuset # InsetTabular context menu # - Menu "context-tabular" - Item "Multicolumn|u" "inset-modify tabular multicolumn" - Item "Multirow|w" "inset-modify tabular multirow" - Separator - Item "Top Line|n" "inset-modify tabular toggle-line-top" - Item "Bottom Line|i" "inset-modify tabular toggle-line-bottom" - Item "Left Line|L" "inset-modify tabular toggle-line-left" - Item "Right Line|R" "inset-modify tabular toggle-line-right" + Menu "table-borders" + Item "Top|T" "tabular-feature toggle-line-top" + Item "Bottom|B" "tabular-feature toggle-line-bottom" + Item "Left|L" "tabular-feature toggle-line-left" + Item "Right|R" "tabular-feature toggle-line-right" + OptItem "Reset Formal Defaults|F" "tabular-feature reset-formal-default" + End + + Menu "table-alignment" + Item "Left|f" "command-alternatives tabular-feature m-align-left;tabular-feature align-left" + Item "Center|C" "command-alternatives tabular-feature m-align-center;tabular-feature align-center" + Item "Right|h" "command-alternatives tabular-feature m-align-right;tabular-feature align-right" + Item "Decimal" "tabular-feature align-decimal" Separator - Item "Left|f" "command-alternatives inset-modify tabular m-align-left;inset-modify tabular align-left" - Item "Center|C" "command-alternatives inset-modify tabular m-align-center;inset-modify tabular align-center" - Item "Right|h" "command-alternatives inset-modify tabular m-align-right;inset-modify tabular align-right" - Item "Decimal" "inset-modify tabular align-decimal" + Item "Top" "tabular-feature valign-top" + Item "Middle" "tabular-feature valign-middle" + Item "Bottom" "tabular-feature valign-bottom" + End + + Menu "table-cols-rows" + Item "Multicolumn|u" "tabular-feature multicolumn" + Item "Multirow|w" "tabular-feature multirow" Separator - Item "Top|T" "inset-modify tabular valign-top" - Item "Middle|M" "inset-modify tabular valign-middle" - Item "Bottom|B" "inset-modify tabular valign-bottom" + Item "Append Row|A" "tabular-feature append-row" + Item "Delete Row|D" "tabular-feature delete-row" + Item "Copy Row|o" "tabular-feature copy-row" + Item "Move Row Up" "tabular-feature move-row-up" + Item "Move Row Down" "tabular-feature move-row-down" Separator - Item "Append Row|A" "inset-modify tabular append-row" - Item "Delete Row|D" "inset-modify tabular delete-row" - Item "Copy Row|o" "inset-modify tabular copy-row" - # Item "Swap Rows|S" "inset-modify tabular swap-row" # currently broken + Item "Append Column|p" "tabular-feature append-column" + Item "Delete Column|e" "tabular-feature delete-column" + Item "Copy Column|y" "tabular-feature copy-column" + Item "Move Column Right|v" "tabular-feature move-column-right" + Item "Move Column Left" "tabular-feature move-column-left" + End + + Menu "context-tabular" + Item "Multi-page Table|g" "tabular-feature toggle-longtabular" + Item "Formal Style|m" "tabular-feature toggle-booktabs" Separator - Item "Append Column|p" "inset-modify tabular append-column" - Item "Delete Column|e" "inset-modify tabular delete-column" - Item "Copy Column|y" "inset-modify tabular copy-column" - # Item "Swap Columns|w" "inset-modify tabular swap-column" # currently broken + Submenu "Borders|d" "table-borders" + Submenu "Alignment|i" "table-alignment" + Submenu "Columns/Rows|C" "table-cols-rows" Separator - Item "Settings...|g" "inset-settings tabular" + Item "Settings...|S" "inset-settings tabular" End # # InsetInfo context menu # - Menu "buffer-info" - Item "File|F" "inset-modify buffer name" - Item "Path|P" "inset-modify buffer path" - Item "Class|C" "inset-modify buffer class" - Separator - Item "File Revision|R" "inset-modify buffer vcs-revision" - Item "Tree Revision|T" "inset-modify buffer vcs-tree-revision" - Item "Revision Author|A" "inset-modify buffer vcs-author" - Item "Revision Date|D" "inset-modify buffer vcs-date" - Item "Revision Time|i" "inset-modify buffer vcs-time" - Separator - Item "LyX Version|X" "inset-modify lyxinfo version" - End - Menu "context-info" - Submenu "Document Info|D" "buffer-info" + InfoArguments Separator + Item "Transform Field to Static Text|T" "inset-dissolve" Item "Copy Text|o" "inset-copy-as" Item "Settings...|S" "inset-settings info" End @@ -439,6 +532,10 @@ Menuset Menu "context-branch" OptItem "Activate Branch|A" "branch-activate" OptItem "Deactivate Branch|e" "branch-deactivate" + OptItem "Activate Branch in Master|M" "branch-master-activate" + OptItem "Deactivate Branch in Master|v" "branch-master-deactivate" + OptItem "Invert Inset|I" "branch-invert" + OptItem "Add Unknown Branch|w" "branch-add" End # @@ -446,7 +543,7 @@ Menuset # Menu "context-toc-label" - OptItem "Copy as Reference|C" "copy-label-as-reference" + OptItem "Copy as Reference|C" "label-copy-as-reference" OptItem "Insert Reference at Cursor Position|I" "label-insert-as-reference" Separator Item "Settings...|S" "inset-settings" @@ -525,6 +622,8 @@ Menuset # Menu "context-toc-index" + OptItem "Insert Copy at Cursor Position|I" "inset-insert-copy" + Separator OptItem "Settings...|S" "inset-settings" End @@ -534,8 +633,37 @@ Menuset Menu "context-index" IndicesContext + Separator + Item "Index All Occurrences of this Word|W" "index-tag-all" + Separator + OptItem "Single Page (No Page Range)|P" "inset-modify changeparam range none" + OptItem "Start Page Range|t" "inset-modify changeparam range start" + OptItem "End Page Range|E" "inset-modify changeparam range end" + Separator + OptItem "No Page Formatting|N" "inset-modify changeparam pagefmt default" + OptItem "Bold Page Formatting|B" "inset-modify changeparam pagefmt textbf" + OptItem "Italic Page Formatting|I" "inset-modify changeparam pagefmt textit" + OptItem "Emphasized Page Formatting|z" "inset-modify changeparam pagefmt emph" + OptItem "Custom Page Formatting|u" "inset-modify changeparam pagefmt custom" + End + + Menu "context-edit-index" + OptItem "Insert Subentry|b" "indexmacro-insert subentry" + OptItem "Insert Sortkey|k" "indexmacro-insert sortkey" + OptItem "Insert See Reference|e" "indexmacro-insert see" + OptItem "Insert See also Reference|a" "indexmacro-insert seealso" End +# +# IndexMacro context menu +# + + Menu "context-indexmacro" + OptItem "See|e" "inset-modify changetype see" + OptItem "See also|a" "inset-modify changetype seealso" + End + + # # Index Lists context menu # @@ -573,7 +701,7 @@ Menuset Menu "context-toc-change" Item "Accept Change|c" "change-accept" Item "Reject Change|R" "change-reject" - End + End # # Toc Table of Context context menu @@ -586,14 +714,14 @@ Menuset Item "Move Section Down|w" "outline-down" Separator Item "Select Section|S" "section-select" - End + End # # InsetERT context menu # Menu "context-ert" # repeat 1 is added as a work-around to not indicate this action as toggable - Item "Wrap by Preview|P" "command-sequence repeat 1;inset-toggle;char-forward;char-backward;char-forward-select;preview-insert;char-backward;char-backward;inset-toggle" + Item "Wrap by Preview|y" "command-sequence repeat 1;inset-toggle;char-forward;char-backward;char-forward-select;preview-insert;char-backward;char-backward;inset-toggle" End # @@ -601,6 +729,49 @@ Menuset # Menu "context-hyperlink" Item "Settings...|S" "inset-settings" + Separator + Item "Open Target...|O" "inset-edit" + End + +# +# InsetCounter context menu +# + Menu "context-counter" + Item "Settings...|S" "inset-settings" + End + +# +# Toolbar context menu +# + Menu "context-toolbars" + Toolbars + Separator + Item "Lock Toolbars|L" "toolbar-movable *" + Separator + Item "Small-sized Icons" "icon-size small" + Item "Normal-sized Icons" "icon-size normal" + Item "Big-sized Icons" "icon-size big" + Item "Huge-sized Icons" "icon-size huge" + Item "Giant-sized Icons" "icon-size giant" + End + +# +# Status bar zoom context menu +# + Menu "context-zoom" + ZoomOptions + End + +# +# Status bar context menu +# + Menu "context-statusbar" + Item "Zoom Level|Z" "ui-toggle zoomlevel" + Item "Zoom Slider|S" "ui-toggle zoomslider" + Separator + Item "Word Count|W" "ui-toggle statistics-w" + Item "Character Count|C" "ui-toggle statistics-cb" + Item "Character Count (No Blanks)|h" "ui-toggle statistics-c" End End