*
* \author José Matos
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "support/lstrings.h"
#include "gettext.h"
+using namespace lyx::support;
+
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();
}
-string const InsetUrl::getScreenLabel(Buffer const *) const
+string const InsetUrl::getScreenLabel(Buffer const &) const
{
string temp;
if (getCmdName() == "url")
}
-int InsetUrl::latex(Buffer const *, ostream & os,
+int InsetUrl::latex(Buffer const &, ostream & os,
LatexRunParams const & runparams) const
{
if (!getOptions().empty())
}
-int InsetUrl::ascii(Buffer const *, ostream & os, int) const
+int InsetUrl::ascii(Buffer const &, ostream & os, int) const
{
if (getOptions().empty())
os << '[' << getContents() << ']';
}
-int InsetUrl::linuxdoc(Buffer const *, ostream & os) const
+int InsetUrl::linuxdoc(Buffer const &, ostream & os) const
{
os << '<' << getCmdName()
<< " url=\"" << getContents() << "\""
}
-int InsetUrl::docbook(Buffer const *, ostream & os, bool) const
+int InsetUrl::docbook(Buffer const &, ostream & os, bool) const
{
os << "<ulink url=\"" << subst(getContents(),"&","&")
<< "\">" << getOptions() << "</ulink>";