#include "Lexer.h"
#include "MetricsInfo.h"
#include "OutputParams.h"
+#include "texstream.h"
#include "TextClass.h"
#include "support/docstream.h"
// draw the inset marker
drawMarkers(pi, x, y);
-
+
// draw the arrow(s)
static int const arrow_size = 4;
ColorCode const origcol = pi.base.font.color();
switch (cmd.action()) {
case LFUN_INSET_MODIFY:
- cur.recordUndoInset(ATOMIC_UNDO, this);
+ cur.recordUndoInset(this);
string2params(to_utf8(cmd.argument()), params_);
setButtonLabel();
cur.forceBufferUpdate();
void InsetPhantom::latex(otexstream & os, OutputParams const & runparams) const
{
if (runparams.moving_arg)
- os << "\\protect";
+ os << "\\protect";
switch (params_.type) {
case InsetPhantomParams::Phantom:
int InsetPhantom::docbook(odocstream & os, OutputParams const & runparams) const
{
- string cmdname;
+ docstring cmdname;
switch (params_.type) {
case InsetPhantomParams::Phantom:
case InsetPhantomParams::HPhantom:
case InsetPhantomParams::VPhantom:
default:
- cmdname = "phantom";
+ cmdname = from_ascii("phantom");
break;
}
os << "<" + cmdname + ">";