2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1997-2000 The LyX Team.
9 * ====================================================== */
18 #include "insetcommand.h"
26 class InsetUrl : public InsetCommand {
37 InsetUrl() : InsetCommand("url"), fd_form_url(0) {
42 InsetUrl(string const &);
45 InsetUrl(InsetCommand const &);
47 InsetUrl(string const &, string const &, string const &);
51 Inset * Clone() const { return new InsetUrl(getCommand()); }
53 Inset::Code LyxCode() const { return Inset::URL_CODE; }
55 void Validate(LaTeXFeatures &) const;
57 void Edit(BufferView *, int, int, unsigned int);
59 EDITABLE Editable() const {
63 char const * EditMessage() const;
65 bool display() const { return false; }
67 string getScreenLabel() const;
69 InsetUrl::Url_Flags getFlag() const { return flag; }
71 void setFlag(InsetUrl::Url_Flags f) { flag = f; }
75 int Latex(std::ostream &, bool fragile, bool free_spc) const;
77 int Ascii(std::ostream &) const;
79 int Linuxdoc(std::ostream &) const;
81 int DocBook(std::ostream &) const;
83 static void CloseUrlCB(FL_OBJECT *, long data);
96 FD_form_url * fd_form_url;