2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright (C) 1997 LyX Team (this file was created this year)
9 * ====================================================== */
18 #include "insetcommand.h"
26 class InsetUrl : public InsetCommand {
37 InsetUrl() : InsetCommand("url"), fd_form_url(0) {
41 InsetUrl(string const &);
43 InsetUrl(InsetCommand const &);
45 InsetUrl(string const &, string const &, string const &);
49 Inset * Clone() const { return new InsetUrl(getCommand()); }
51 Inset::Code LyxCode() const { return Inset::URL_CODE; }
53 void Validate(LaTeXFeatures &) const;
57 unsigned char Editable() const {
61 char const * EditMessage() const {return _("Opened Url");}
63 bool display() const { return false; }
65 string getScreenLabel() const;
67 InsetUrl::Url_Flags getFlag() const { return flag; }
69 void setFlag(InsetUrl::Url_Flags f) { flag = f; }
73 int Latex(FILE * file, signed char fragile);
75 int Latex(string & file, signed char fragile);
77 int Linuxdoc(string & file);
79 int DocBook(string & file);
81 static void CloseUrlCB(FL_OBJECT *, long data);
86 FD_form_url * fd_form_url;