4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
16 #include "insetcommand.h"
22 class InsetUrl : public InsetCommand {
26 InsetUrl(InsetCommandParams const &);
28 InsetBase::Code lyxCode() const { return InsetBase::URL_CODE; }
30 void validate(LaTeXFeatures &) const;
32 lyx::docstring const getScreenLabel(Buffer const &) const;
34 EDITABLE editable() const { return IS_EDITABLE; }
36 bool display() const { return false; }
38 int latex(Buffer const &, lyx::odocstream &,
39 OutputParams const &) const;
41 int plaintext(Buffer const &, lyx::odocstream &,
42 OutputParams const &) const;
44 int docbook(Buffer const &, std::ostream &,
45 OutputParams const &) const;
46 /// the string that is passed to the TOC
47 virtual int textString(Buffer const &, lyx::odocstream &,
48 OutputParams const &) const;
50 virtual std::auto_ptr<InsetBase> doClone() const {
51 return std::auto_ptr<InsetBase>(new InsetUrl(params()));