#include "insets/InsetExternal.h"
#include "insets/InsetFloat.h"
#include "insets/InsetGraphics.h"
+#include "insets/InsetIndex.h"
#include "insets/InsetLine.h"
#include "insets/InsetListings.h"
#include "insets/InsetNote.h"
}
-int InsetCommand::latex(odocstream & os, OutputParams const & runparams_in) const
+void InsetCommand::latex(otexstream & os, OutputParams const & runparams_in) const
{
OutputParams runparams = runparams_in;
os << getCommand(runparams);
- return 0;
}
switch (cmd.action()) {
case LFUN_INSET_MODIFY: {
if (cmd.getArg(0) == "changetype") {
+ cur.recordUndo();
p_.setCmdName(cmd.getArg(1));
cur.forceBufferUpdate();
initView();
InsetCommand::string2params(to_utf8(cmd.argument()), p);
if (p.getCmdName().empty())
cur.noScreenUpdate();
- else
+ else {
+ cur.recordUndo();
setParams(p);
+ }
// FIXME We might also want to check here if this one is in the TOC.
// But I think most of those are labeled.
if (isLabeled())
}
-docstring InsetCommand::contextMenu(BufferView const &, int, int) const
+docstring InsetCommand::contextMenuName() const
{
return from_ascii("context-") + from_ascii(insetName(p_.code()));
}
switch (code) {
case BIBITEM_CODE:
case BIBTEX_CODE:
- case INDEX_CODE:
+ case INDEX_PRINT_CODE:
case LABEL_CODE:
case LINE_CODE:
case NOMENCL_CODE:
data = InsetFloat::params2string(p);
break;
}
+ case INDEX_CODE: {
+ InsetIndexParams p;
+ data = InsetIndex::params2string(p);
+ break;
+ }
case LISTINGS_CODE: {
InsetListingsParams p;
data = InsetListings::params2string(p);