* stdmenus.inc:

* src/insets/InsetCollapsable.inc:
	- specific context menu for conglomerate insets

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23940 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-03-25 06:17:18 +00:00
parent e7e67bb9e9
commit 4b1cfb9852
2 changed files with 14 additions and 3 deletions

View File

@ -578,6 +578,12 @@ Menuset
OptItem "Settings...|S" "inset-settings"
End
Menu "context-conglomerate"
Item "Toggle Label|L" "next-inset-toggle"
Separator
OptItem "Settings...|S" "inset-settings"
End
#
# InsetBox context menu
#

View File

@ -45,6 +45,8 @@ namespace lyx {
InsetCollapsable::CollapseStatus InsetCollapsable::status() const
{
if (decoration() == InsetLayout::Conglomerate)
return status_;
return autoOpen_ ? Open : status_;
}
@ -882,6 +884,9 @@ bool InsetCollapsable::undefined() const
docstring InsetCollapsable::contextMenu(BufferView const & bv, int x,
int y) const
{
if (decoration() == InsetLayout::Conglomerate)
return from_ascii("context-conglomerate");
if (geometry() == NoButton)
return from_ascii("context-collapsable");