#include "funcrequest.h"
#include "BufferView.h"
#include "LaTeXFeatures.h"
+#include "latexrunparams.h"
#include "frontends/LyXView.h"
#include "debug.h"
#include "frontends/Dialogs.h"
using std::ostream;
-InsetUrl::InsetUrl(InsetCommandParams const & p, bool)
+InsetUrl::InsetUrl(InsetCommandParams const & p)
: InsetCommand(p)
{}
+// InsetUrl::InsetUrl(InsetCommandParams const & p, bool)
+// : InsetCommand(p, false)
+// {}
+
+
InsetUrl::~InsetUrl()
{
InsetCommandMailer("url", *this).hideDialog();
}
-int InsetUrl::latex(Buffer const *, ostream & os, LatexRunParams const &,
- bool fragile, bool /*free_spc*/) const
+int InsetUrl::latex(Buffer const *, ostream & os,
+ LatexRunParams const & runparams) const
{
if (!getOptions().empty())
os << getOptions() + ' ';
- if (fragile)
+ if (runparams.moving_arg)
os << "\\protect";
os << "\\url{" << getContents() << '}';
return 0;