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
19 #include "insetcommand.h"
25 class InsetUrl : public InsetCommand {
29 InsetUrl(InsetCommandParams const &, bool same_id = false);
31 virtual Inset * clone(Buffer const &, bool same_id = false) const {
32 return new InsetUrl(params(), same_id);
35 Inset::Code lyxCode() const { return Inset::URL_CODE; }
37 void validate(LaTeXFeatures &) const;
39 string const getScreenLabel(Buffer const *) const;
41 EDITABLE editable() const { return IS_EDITABLE; }
43 void edit(BufferView *, int, int, mouse_button::state);
45 void edit(BufferView * bv, bool front = true);
47 bool display() const { return false; }
49 int latex(Buffer const *, std::ostream &,
50 bool fragile, bool free_spc) const;
52 int ascii(Buffer const *, std::ostream &, int linelen) const;
54 int linuxdoc(Buffer const *, std::ostream &) const;
56 int docbook(Buffer const *, std::ostream &, bool mixcont) const;