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"
25 class InsetUrl : public InsetCommand {
29 InsetUrl(InsetCommandParams const &);
31 InsetBase::Code lyxCode() const { return InsetBase::URL_CODE; }
33 void validate(LaTeXFeatures &) const;
35 docstring const getScreenLabel(Buffer const &) const;
37 EDITABLE editable() const { return IS_EDITABLE; }
39 bool display() const { return false; }
41 int latex(Buffer const &, odocstream &,
42 OutputParams const &) const;
44 int plaintext(Buffer const &, odocstream &,
45 OutputParams const &) const;
47 int docbook(Buffer const &, odocstream &,
48 OutputParams const &) const;
49 /// the string that is passed to the TOC
50 virtual int textString(Buffer const &, odocstream &,
51 OutputParams const &) const;
53 virtual std::auto_ptr<InsetBase> doClone() const {
54 return std::auto_ptr<InsetBase>(new InsetUrl(params()));