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) { flag = InsetUrl::URL; }
39 InsetUrl(string const &);
41 InsetUrl(InsetCommand const&);
43 InsetUrl(string const &,string const &,string const &);
47 Inset* Clone() { return new InsetUrl(getCommand()); }
49 Inset::Code LyxCode() const { return Inset::URL_CODE; }
51 void Validate(LaTeXFeatures &) const;
55 unsigned char Editable() const {
59 char const* EditMessage() {return "Opened Url";}
61 bool Display() const { return false; }
63 string getScreenLabel() const;
65 InsetUrl::Url_Flags getFlag() { return flag; }
67 void setFlag(InsetUrl::Url_Flags f) { flag = f; }
71 int Latex(FILE *file, signed char fragile);
73 int Latex(string &file, signed char fragile);
75 int Linuxdoc(string &file);
77 int DocBook(string &file);
79 static void CloseUrlCB(FL_OBJECT *, long data);
84 FD_form_url *fd_form_url;