Item "Edit externally...|x" "graphics-edit"
End
+#
+# InsetTabular context menu
+#
+
+ Menu "context-tabular"
+ Item "Multicolumn|M" "tabular-feature multicolumn"\r
+ Separator\r
+ Item "Top Line|T" "tabular-feature toggle-line-top"\r
+ Item "Bottom Line|B" "tabular-feature toggle-line-bottom"\r
+ Item "Left Line|L" "tabular-feature toggle-line-left"\r
+ Item "Right Line|R" "tabular-feature toggle-line-right"\r
+ Separator\r
+ Item "Left|L" "tabular-feature align-left"\r
+ Item "Center|C" "tabular-feature align-center"\r
+ Item "Right|R" "tabular-feature align-right"\r
+ Separator\r
+ Item "Top|T" "tabular-feature valign-top"\r
+ Item "Middle|M" "tabular-feature valign-middle"\r
+ Item "Bottom|B" "tabular-feature valign-bottom"\r
+ Separator\r
+ Item "Add Row|A" "tabular-feature append-row"\r
+ Item "Delete Row|D" "tabular-feature delete-row"\r
+ Item "Copy Row|o" "tabular-feature copy-row"\r
+ # Item "Swap Rows|S" "tabular-feature swap-row" # currently broken\r
+ Separator\r
+ Item "Add Column|u" "tabular-feature append-column"\r
+ Item "Delete Column|e" "tabular-feature delete-column"\r
+ Item "Copy Column|p" "tabular-feature copy-column"\r
+ # Item "Swap Columns|w" "tabular-feature swap-column" # currently broken\r
+ Separator
+ Item "Settings...|S" "inset-settings listings"
+ End
+
End
}
+docstring InsetTabular::contextMenu(BufferView const &, int, int) const
+{
+ // FIXME: depending on the selection state, we could offer a different menu.
+ return from_ascii("context-tabular");
+}
+
+
void InsetTabular::read(Lexer & lex)
{
bool const old_format = (lex.getString() == "\\LyXTable");
void validate(LaTeXFeatures & features) const;
///
InsetCode lyxCode() const { return TABULAR_CODE; }
+ ///
+ docstring contextMenu(BufferView const & bv, int x, int y) const;
/// get offset of this cursor slice relative to our upper left corner
void cursorPos(BufferView const & bv, CursorSlice const & sl,
bool boundary, int & x, int & y) const;