+2000-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * lib/ui/default.ui: Populate "edit_float" menu
+
+ * src/lyxfunc.C (Dispatch): implement LFUN_FLOATSOPERATE.
+
+ * src/LyXAction.C (init): add new entry LFUN_FLOATSOPERATE, name
+ "floats-operate". The name is ugly (and the func also), but this
+ is just a band-aid until we switch to new insets.
+
2000-11-03 Rob Lahaye <lahaye@postech.edu>
* lib/ui/default.ui: update again the menu layout (fix some
End
Menu "edit_floats"
- Item "? What should go here ?" ""
+ Item "Open/Close|O" "open-stuff"
+ Item "Melt|M" "melt"
+ Item "Open All Footnotes/Margin Notes|A" "floats-operate openfoot"
+ Item "Close All Footnotes/Margin Notes|C" "floats-operate closefoot"
+ Item "Open All Figures/Tables|F" "floats-operate openfig"
+ Item "Close All Figures/Tables|T" "floats-operate closefig"
+ Separator
+ Item "Remove all Error Boxes|R" "error-remove-all"
End
Menu "edit_tabular"
#endif
{ LFUN_INSET_MARGINAL, "marginalnote-insert",
N_("Insert Marginalnote"), Noop },
+ { LFUN_FLOATSOPERATE, "floats-operate", "", ReadOnly },
{ LFUN_RIGHTSEL, "forward-select", N_("Select next char"),
ReadOnly },
{ LFUN_HFILL, "hfill-insert",
LFUN_TEX,
LFUN_FOOTMELT, // schedule for deletion
LFUN_MARGINMELT, // schedule for deletion
+ LFUN_FLOATSOPERATE, //schedule for deletion?
LFUN_EMPH,
LFUN_BOLD,
LFUN_ROMAN,
Margin(owner->view());
owner->view()->setState();
break;
+#endif
+#ifndef NEW_INSETS
+ case LFUN_FLOATSOPERATE:
+ if (argument == "openfoot")
+ owner->view()->allFloats(1,0);
+ else if (argument == "closefoot")
+ owner->view()->allFloats(0,0);
+ else if (argument == "openfig")
+ owner->view()->allFloats(1,1);
+ else if (argument == "closefig")
+ owner->view()->allFloats(0,1);
+ break;
+#else
+#warning Find another implementation here (or another lyxfunc)!
#endif
case LFUN_HELP_COPYRIGHT:
owner->getDialogs()->showCopyright();