int y) const
{
if (decoration() == InsetLayout::CONGLOMERATE)
- return contextMenuName();
+ return contextMenuName() + ";" + InsetText::contextMenuName();
if (geometry(bv) == NoButton)
- return contextMenuName();
+ return contextMenuName() + ";" + InsetText::contextMenuName();
Dimension dim = dimensionCollapsed(bv);
if (x < xo(bv) + dim.wid && y < yo(bv) + dim.des)
}
+docstring InsetInfo::contextMenuName() const
+{
+ //FIXME: We override the implementation of InsetCollapsable,
+ //because this inset is not a collapsable inset.
+ return contextMenuName();
+}
+
+
docstring InsetInfo::contextMenuName() const
{
return from_ascii("context-info");
docstring toolTip(BufferView const & bv, int x, int y) const;
///
docstring contextMenuName() const;
+ ///
+ docstring contextMenuName() const;
/// should paragraph indendation be ommitted in any case?
bool neverIndent() const { return true; }
docstring InsetTabular::contextMenuName() const
{
- // FIXME: depending on the selection state, we could offer a different menu.
+ // FIXME: depending on the selection state,
+ // we could offer a different menu.
+ return cell(0)->contextMenuName() + ";" + contextMenuName();
+}
+
+
+docstring InsetTabular::contextMenuName() const
+{
return from_ascii("context-tabular");
}
///
InsetCode lyxCode() const { return TABULAR_CODE; }
///
+ docstring contextMenu(BufferView const &, int, int) const;
+ ///
docstring contextMenuName() const;
/// get offset of this cursor slice relative to our upper left corner
void cursorPos(BufferView const & bv, CursorSlice const & sl,
}
+docstring InsetText::contextMenuName() const
+{
+ docstring context_menu = contextMenuName();
+ if (context_menu != InsetText::contextMenuName())
+ context_menu += ";" + InsetText::contextMenuName();
+ return context_menu;
+}
+
+
docstring InsetText::contextMenuName() const
{
return from_ascii("context-edit");
/// e.g., "Index: ".
docstring toolTipText(docstring prefix = empty_docstring()) const;
+ ///
+ docstring contextMenu(BufferView const &, int, int) const;
///
docstring contextMenuName() const;
///