]> git.lyx.org Git - lyx.git/blob - lib/ui/stdcontext.inc
* implement "inset-edit" in InsetInclude.
[lyx.git] / lib / ui / stdcontext.inc
1 # -*- text -*-
2
3 # file stdcontext.inc
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
6
7 # author The LyX Team
8
9 # Full author contact details are available in file CREDITS.
10
11 # The interface is designed (partially) following the KDE Human Interface
12 # Guidelines (http://usability.kde.org/hig/)
13
14 Menuset
15
16 #
17 # InsetMath context menu
18 #
19         Menu "insert_math_context"
20                 Item "Array Environment|y" "math-matrix 2 2"
21                 Item "Cases Environment|C" "command-sequence math-mode on; math-insert \cases"
22                 Item "Aligned Environment|l" "command-sequence math-mode on; math-insert \aligned; tabular-feature append-column"
23                 Item "AlignedAt Environment|v" "command-sequence math-mode on; math-insert \alignedat; tabular-feature append-column"
24                 Item "Gathered Environment|h" "command-sequence math-mode on; math-insert \gathered"
25                 Item "Split Environment|S" "command-sequence math-mode on; math-insert \split; tabular-feature append-column"
26                 Separator
27                 Item "Delimiters|r" "dialog-show mathdelimiter"
28                 Item "Matrix|x" "dialog-show mathmatrix"
29                 Item "Macro|o" "math-macro newmacroname newcommand"
30         End
31
32         Menu "ams_environment"
33                 Item "AMS align Environment|a" "math-mutate align"
34                 Item "AMS alignat Environment|t" "math-mutate alignat"
35                 Item "AMS flalign Environment|f" "math-mutate flalign"
36                 Item "AMS gather Environment|g" "math-mutate gather"
37                 Item "AMS multline Environment|m" "math-mutate multline"
38         End
39         
40         Menu "context-math"
41                 Item "Inline Formula|I" "math-mutate simple"
42                 Item "Displayed Formula|D" "math-mutate equation"
43                 Item "Eqnarray Environment|E" "math-mutate eqnarray"
44                 SubMenu "AMS Environment|A" "ams_environment"
45                 Separator               
46                 OptItem "Equation Label|L" "label-insert"
47                 OptItem "Toggle Labeling/Numbering|T" "math-number-toggle"
48                 Separator
49                 Item "Split Cell|C" "cell-split"
50                 Separator
51                 Submenu "Insert|n" "insert_math_context"
52                 Separator
53                 OptItem "Add Line Above|o" "tabular-feature add-hline-above"
54                 OptItem "Add Line Below|B" "tabular-feature add-hline-below"
55                 OptItem "Delete Line Above|D" "tabular-feature delete-hline-above"
56                 OptItem "Delete Line Below|e" "tabular-feature delete-hline-below"
57                 Separator
58                 OptItem "Add Line to Left" "tabular-feature add-vline-left"
59                 OptItem "Add Line to Right" "tabular-feature add-vline-right"
60                 OptItem "Delete Line to Left" "tabular-feature delete-vline-left"
61                 OptItem "Delete Line to Right" "tabular-feature delete-vline-right"
62                 Separator
63                 Item "Toggle Math Toolbar" "toolbar-toggle math toggle"
64                 Item "Toggle Math-Panels Toolbar" "toolbar-toggle math_panels toggle"
65                 Item "Toggle Table Toolbar" "toolbar-toggle table toggle"
66         End
67
68
69 #
70 # InsetRef context menu
71 #
72         Menu "context-ref"
73                 Item "Next Cross-Reference|N" "reference-next"
74                 Item "Go to Label|G" "label-goto"
75                 Separator
76                 Item "<reference>|r" "next-inset-modify changetype ref"
77                 Item "(<reference>)|e" "next-inset-modify changetype eqref"
78                 Item "<page>|p" "next-inset-modify changetype pageref"
79                 Item "on page <page>|o" "next-inset-modify changetype vpageref"
80                 Item "<reference> on page <page>|f" "next-inset-modify changetype vref"
81                 Item "Formatted reference|t" "next-inset-modify changetype prettyref"
82                 Separator
83                 Item "Settings...|S" "next-inset-toggle"
84         End
85
86         Menu "edit_reftype"
87                 
88         End
89
90 #
91 # InsetLabel context menu
92 #
93         Menu "context-label"
94                 Item "Next Cross-Reference|N" "reference-next"
95                 Item "Go back to Reference|G" "bookmark-goto 0"
96                 Separator
97                 Item "Settings...|S" "next-inset-toggle"
98         End
99
100 #
101 # InsetCollapsable context menu
102 #
103         Menu "context-collapsable"
104                 OptItem "Open Inset|O" "next-inset-toggle open"
105                 OptItem "Close Inset|C" "next-inset-toggle close"
106                 Separator
107                 Item "Dissolve Inset|D" "inset-dissolve"
108                 OptItem "Settings...|S" "inset-settings"
109         End
110
111         Menu "context-conglomerate"
112                 Item "Toggle Label|L" "next-inset-toggle"
113                 Item "Dissolve Inset|D" "inset-dissolve charstyle"
114                 Separator
115                 OptItem "Settings...|S" "inset-settings"
116         End
117
118 #
119 # InsetBox context menu
120 #
121
122         Menu "context-box"
123                 Item "Frameless|l" "next-inset-modify changetype Frameless"
124                 Item "Simple frame|f" "next-inset-modify changetype Boxed"
125                 Item "Simple frame, page breaks|p" "next-inset-modify changetype Framed"
126                 Item "Oval, thin|O" "next-inset-modify changetype ovalbox"
127                 Item "Oval, thick|v" "next-inset-modify changetype Ovalbox"
128                 Item "Drop Shadow|w" "next-inset-modify changetype Shadowbox"
129                 Item "Shaded background|b" "next-inset-modify changetype Shaded"
130                 Item "Double frame|D" "next-inset-modify changetype Doublebox"
131                 Separator
132                 Item "Dissolve Inset|D" "inset-dissolve"
133                 Item "Settings...|S" "inset-settings box"
134         End
135
136 #
137 # InsetNote context menu
138 #
139
140         Menu "context-note"
141                 Item "LyX Note|N" "next-inset-modify note Note Note"
142                 Item "Comment|C" "next-inset-modify note Note Comment"
143                 Item "Greyed Out|G" "next-inset-modify note Note Greyedout"
144                 Separator
145                 Item "Dissolve Inset|D" "inset-dissolve"
146         End
147
148
149 #
150 # InsetSpace context menu
151 #
152         Menu "context-space"
153                 Item "Interword Space|w" "next-inset-modify space \space{}"
154                 Item "Protected Space|o" "next-inset-modify space ~"
155                 Item "Thin Space|T" "next-inset-modify space \thinspace{}"
156                 Item "Negative Thin Space|N" "next-inset-modify space \negthinspace{}"
157                 Item "Half Quad Space (Enskip)|k" "next-inset-modify space \enskip{}"
158                 Item "Protected Half Quad Space (Enspace)|E" "next-inset-modify space \enspace{}"
159                 Item "Quad Space|Q" "next-inset-modify space \quad{}"
160                 Item "Double Quad Space|u" "next-inset-modify space \qquad{}"
161                 Item "Horizontal Fill|F" "next-inset-modify space \hfill{}"
162                 Item "Protected Horizontal Fill|i" "next-inset-modify space \hspace*{\fill}"
163                 Item "Horizontal Fill (Dots)|D" "next-inset-modify space \dotfill{}"
164                 Item "Horizontal Fill (Rule)|R" "next-inset-modify space \hrulefill{}"
165                 Item "Custom Length|C" "command-sequence next-inset-modify space \hspace{} \length 1in; next-inset-toggle"
166                 Separator
167                 Item "Settings...|S" "next-inset-toggle"
168         End
169
170 #
171 # InsetVSpace context menu
172 #
173         Menu "context-vspace"
174                 Item "DefSkip|D" "next-inset-modify vspace defskip"
175                 Item "SmallSkip|S" "next-inset-modify vspace smallskip"
176                 Item "MedSkip|M" "next-inset-modify vspace medskip"
177                 Item "BigSkip|B" "next-inset-modify vspace bigskip"
178                 Item "VFill|F" "next-inset-modify vspace vfill"
179                 Item "Custom|C" "command-sequence next-inset-modify vspace 1in; next-inset-toggle"
180                 Separator
181                 Item "Settings...|S" "next-inset-toggle"
182         End
183
184 #
185 # InsetInclude context menu
186 #
187         Menu "context-include"
188                 Item "Include|c" "next-inset-modify changetype include"
189                 Item "Input|p" "next-inset-modify changetype input"
190                 Item "Verbatim|V" "next-inset-modify changetype verbatiminput"
191                 Item "Verbatim (marked blanks)|b" "next-inset-modify changetype verbatiminput*"
192                 Item "Listing|L" "next-inset-modify changetype lstinputlisting"
193                 Separator
194                 Item "Settings...|S" "next-inset-toggle"
195                 Separator
196                 Item "Edit included file...|E" "inset-edit"
197         End
198
199 #
200 # InsetNewpage context menu
201 #
202         Menu "context-newpage"
203                 Item "New Page|N" "next-inset-modify newpage newpage"
204                 Item "Page Break|a" "next-inset-modify newpage pagebreak"
205                 Item "Clear Page|C" "next-inset-modify newpage clearpage"
206                 Item "Clear Double Page|D" "next-inset-modify newpage cleardoublepage"
207         End
208
209 #
210 # InsetNewline context menu
211 #
212         Menu "context-newline"
213                 Item "Ragged Line Break|R" "next-inset-modify newline newline"
214                 Item "Justified Line Break|J" "next-inset-modify newline linebreak"
215         End
216
217 #
218 # Edit context menu
219 #
220         Menu "context-edit"
221                 Item "Cut" "cut"
222                 Item "Copy" "copy"
223                 Item "Paste" "paste"
224                 Submenu "Paste Recent|e" "edit_pasterecent"
225                 Separator
226                 Item "Jump to Saved Bookmark|B" "bookmark-goto 0"
227                 Separator
228                 Item "Move Paragraph Up|o" "paragraph-move-up"
229                 Item "Move Paragraph Down|v" "paragraph-move-down"
230                 Separator
231                 Item "Apply Last Text Style|A" "font-free-apply"
232                 Submenu "Text Style|S" "edit_textstyles"
233                 Item "Paragraph Settings...|P" "layout-paragraph"
234                 Separator
235                 Item "Fullscreen Mode" "ui-toggle fullscreen"
236         End
237
238 #
239 # Math Macro context menu
240 #
241
242         Menu "context-math-macro-definition"
243                 Item "Append Parameter" "math-macro-add-param"
244                 Item "Remove Last Parameter" "math-macro-remove-param"
245                 Separator
246                 Item "Make First Non-Optional into Optional Parameter" "math-macro-make-optional"
247                 Item "Make Last Optional into Non-Optional Parameter" "math-macro-make-nonoptional"
248                 Item "Insert Optional Parameter" "math-macro-add-optional-param"
249                 Item "Remove Optional Parameter" "math-macro-remove-optional-param"
250                 Separator
251                 Item "Append Parameter Eating From The Right" "math-macro-append-greedy-param"
252                 Item "Append Optional Parameter Eating From The Right" "math-macro-add-greedy-optional-param"
253                 Item "Remove Last Parameter Spitting Out To The Right" "math-macro-remove-greedy-param"
254         End
255
256 #
257 # InsetListing context menu
258 #
259
260         Menu "context-listings"
261                 Item "Cut" "cut"
262                 Item "Copy" "copy"
263                 Item "Paste" "paste"
264                 Submenu "Paste Recent|e" "edit_pasterecent"
265                 Separator
266                 Item "Settings...|S" "inset-settings listings"
267         End
268
269 #
270 # InsetGraphics context menu
271 #
272
273         Menu "context-graphics"
274                 Item "Settings...|S" "next-inset-toggle"
275                 Separator
276                 Item "Edit externally...|x" "inset-edit"
277         End
278
279 #
280 # InsetTabular context menu
281 #
282
283         Menu "context-tabular"
284                 Item "Multicolumn|M" "tabular-feature multicolumn"
285                 Separator
286                 Item "Top Line|T" "tabular-feature toggle-line-top"
287                 Item "Bottom Line|B" "tabular-feature toggle-line-bottom"
288                 Item "Left Line|L" "tabular-feature toggle-line-left"
289                 Item "Right Line|R" "tabular-feature toggle-line-right"
290                 Separator
291                 Item "Left|L" "tabular-feature align-left"
292                 Item "Center|C" "tabular-feature align-center"
293                 Item "Right|R" "tabular-feature align-right"
294                 Separator
295                 Item "Top|T" "tabular-feature valign-top"
296                 Item "Middle|M" "tabular-feature valign-middle"
297                 Item "Bottom|B" "tabular-feature valign-bottom"
298                 Separator
299                 Item "Add Row|A" "tabular-feature append-row"
300                 Item "Delete Row|D" "tabular-feature delete-row"
301                 Item "Copy Row|o" "tabular-feature copy-row"
302                 # Item "Swap Rows|S" "tabular-feature swap-row" # currently broken
303                 Separator
304                 Item "Add Column|u" "tabular-feature append-column"
305                 Item "Delete Column|e" "tabular-feature delete-column"
306                 Item "Copy Column|p" "tabular-feature copy-column"
307                 # Item "Swap Columns|w" "tabular-feature swap-column" # currently broken
308                 Separator
309                 Item "Settings...|S" "inset-settings tabular"
310         End
311
312 End