Menu "context-toc-label"
Item "Copy Label as Reference|C" "copy-label-as-reference"
Item "Insert Reference at Cursor Position|I" "insert-label-as-reference"
+ Separator
+ Item "Settings...|S" "inset-settings"
+ End
+
+#
+# Toc Branches context menu
+#
+
+ Menu "context-toc-branch"
+ Item "Activate Branch|A" "branch-activate"
+ Item "Deactivate Branch|e" "branch-deactivate"
+ Item "Settings...|S" "inset-settings"
+ End
+
+#
+# Toc Graphics context menu
+#
+
+ Menu "context-toc-graphics"
+ Item "Settings...|S" "inset-settings"
+ Separator
+ Item "Edit externally...|x" "inset-edit"
+ End
+
+#
+# Toc Citation context menu
+#
+
+ Menu "context-toc-citation"
+ Item "Settings...|S" "inset-settings"
+ End
+
+#
+# Toc Figures context menu
+#
+
+ Menu "context-toc-figure"
+ Item "Settings...|S" "inset-settings"
+ End
+
+#
+# Toc Tables context menu
+#
+
+ Menu "context-toc-table"
+ Item "Settings...|S" "inset-settings"
End
End
DocIterator const & dit = item.dit();
Inset * inset = 0;
- if (current_type_ == "label")
+ if (current_type_ == "label"
+ || current_type_ == "graphics"
+ || current_type_ == "citation")
inset = dit.nextInset();
+ else if (current_type_ == "branch")
+ inset = &dit.inset();
+
+ else if (current_type_ == "table" || current_type_ == "figure") {
+ DocIterator tmp_dit(dit);
+ tmp_dit.pop_back();
+ inset = &tmp_dit.inset();
+ }
+
FuncRequest tmpcmd(cmd);
if (inset)
inset->dispatch(cur, tmpcmd);