buffer().undo().endUndoGroup();
// We need an update of the Buffer reference cache. This is achieved by
- // updateLabels().
- buffer().updateLabels();
+ // updateBuffer().
+ buffer().updateBuffer();
}
{
static ParamInfo param_info_;
if (param_info_.empty())
- param_info_.add("name", ParamInfo::LATEX_REQUIRED);
+ param_info_.add("name", ParamInfo::LATEX_REQUIRED,
+ ParamInfo::HANDLING_ESCAPE);
return param_info_;
}
}
-void InsetLabel::updateLabels(ParIterator const & par, UpdateType utype)
+void InsetLabel::updateBuffer(ParIterator const & par, UpdateType utype)
{
docstring const & label = getParam("name");
if (buffer().insetLabel(label)) {
FuncStatus & status) const
{
bool enabled;
- switch (cmd.action) {
+ switch (cmd.action()) {
case LFUN_LABEL_INSERT_AS_REF:
case LFUN_LABEL_COPY_AS_REF:
enabled = true;
void InsetLabel::doDispatch(Cursor & cur, FuncRequest & cmd)
{
- switch (cmd.action) {
+ switch (cmd.action()) {
case LFUN_INSET_MODIFY: {
InsetCommandParams p(LABEL_CODE);
}
-int InsetLabel::latex(odocstream & os, OutputParams const &) const
-{
- os << escape(getCommand());
- return 0;
-}
-
-
int InsetLabel::plaintext(odocstream & os, OutputParams const &) const
{
docstring const str = getParam("name");