#include "FuncStatus.h"
#include "InsetIterator.h"
#include "Language.h"
-#include "LyXFunc.h"
+#include "LyX.h"
#include "output_xhtml.h"
#include "ParIterator.h"
#include "sgml.h"
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)) {
}
-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");