2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1997-2001 The LyX Team.
9 * ====================================================== */
18 #include "insetcommand.h"
24 class InsetUrl : public InsetCommand {
28 InsetUrl(InsetCommandParams const &, bool same_id = false);
30 virtual Inset * clone(Buffer const &, bool same_id = false) const {
31 return new InsetUrl(params(), same_id);
34 Inset::Code lyxCode() const { return Inset::URL_CODE; }
36 void validate(LaTeXFeatures &) const;
38 string const getScreenLabel(Buffer const *) const;
40 EDITABLE editable() const { return IS_EDITABLE; }
42 void edit(BufferView *, int, int, mouse_button::state);
44 void edit(BufferView * bv, bool front = true);
46 bool display() const { return false; }
48 int latex(Buffer const *, std::ostream &,
49 bool fragile, bool free_spc) const;
51 int ascii(Buffer const *, std::ostream &, int linelen) const;
53 int linuxdoc(Buffer const *, std::ostream &) const;
55 int docbook(Buffer const *, std::ostream &, bool mixcont) const;