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 &);
29 //InsetUrl(InsetCommandParams const &, bool same_id);
33 virtual Inset * clone(Buffer const &) const {
34 return new InsetUrl(params());
37 //virtual Inset * clone(Buffer const &, bool same_id) const {
38 // return new InsetUrl(params(), same_id);
41 dispatch_result localDispatch(FuncRequest const & cmd);
43 Inset::Code lyxCode() const { return Inset::URL_CODE; }
45 void validate(LaTeXFeatures &) const;
47 string const getScreenLabel(Buffer const *) const;
49 EDITABLE editable() const { return IS_EDITABLE; }
51 bool display() const { return false; }
53 int latex(Buffer const *, std::ostream &,
54 LatexRunParams const &) const;
56 int ascii(Buffer const *, std::ostream &, int linelen) const;
58 int linuxdoc(Buffer const *, std::ostream &) const;
60 int docbook(Buffer const *, std::ostream &, bool mixcont) const;