#include "InsetBibitem.h"
#include "InsetBibtex.h"
#include "InsetCitation.h"
+#include "InsetCounter.h"
#include "InsetFloatList.h"
#include "InsetHyperlink.h"
#include "InsetInclude.h"
return InsetBibtex::findInfo(cmdName);
case CITE_CODE:
return InsetCitation::findInfo(cmdName);
+ case COUNTER_CODE:
+ return InsetCounter::findInfo(cmdName);
case FLOAT_LIST_CODE:
return InsetFloatList::findInfo(cmdName);
case HYPERLINK_CODE:
return InsetBibtex::defaultCommand();
case CITE_CODE:
return InsetCitation::defaultCommand();
+ case COUNTER_CODE:
+ return InsetCounter::defaultCommand();
case FLOAT_LIST_CODE:
return InsetFloatList::defaultCommand();
case HYPERLINK_CODE:
return InsetBibtex::isCompatibleCommand(s);
case CITE_CODE:
return InsetCitation::isCompatibleCommand(s);
+ case COUNTER_CODE:
+ return InsetCounter::isCompatibleCommand(s);
case FLOAT_LIST_CODE:
return InsetFloatList::isCompatibleCommand(s);
case HYPERLINK_CODE:
void InsetCommandParams::read(Lexer & lex)
{
- Read(lex, 0);
+ Read(lex, nullptr);
}
void InsetCommandParams::write(ostream & os) const
{
- Write(os, 0);
+ Write(os, nullptr);
}
// FIXME: should be passed to the error dialog
frontend::Alert::warning(_("Uncodable characters in inset"),
bformat(_("The following characters in one of the insets are\n"
- "not representable in the current encoding and have been omitted:\n%1$s."),
+ "not representable in the current encoding and have been omitted: %1$s.\n"
+ "Unchecking 'Literal' in the respective inset dialog might help."),
uncodable));
}
}
void InsetCommandParams::clear()
{
params_.clear();
+ preview(false);
}