2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1997-2000 The LyX Team.
9 * ====================================================== */
18 #include "insetcommand.h"
28 class InsetUrl : public InsetCommand {
39 InsetUrl() : InsetCommand("url"), fd_form_url(0) {
43 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 const char * EditMessage() const {return _("Opened Url");}
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(ostream &, signed char fragile, bool free_spc) const;
77 int Linuxdoc(ostream &) const;
79 int DocBook(ostream &) const;
81 static void CloseUrlCB(FL_OBJECT *, long data);
94 FD_form_url * fd_form_url;