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"
25 class InsetUrl: public InsetCommand {
36 InsetUrl(): InsetCommand("url"), form(0) { flag = InsetUrl::URL; }
38 InsetUrl(string const &);
40 InsetUrl(InsetCommand const&);
42 InsetUrl(string const &,string const &,string const &);
46 Inset* Clone() { return new InsetUrl(getCommand()); }
48 Inset::Code LyxCode() const { return Inset::URL_CODE; }
50 void Validate(LaTeXFeatures &) const;
54 unsigned char Editable() const {
58 char const* EditMessage() {return "Opened Url";}
60 bool Display() const { return false; }
62 string getScreenLabel() const;
64 InsetUrl::Url_Flags getFlag() { return flag; }
66 void setFlag(InsetUrl::Url_Flags f) { flag = f; }
70 int Latex(FILE *file, signed char fragile);
72 int Latex(string &file, signed char fragile);
74 int Linuxdoc(string &file);
76 int DocBook(string &file);
78 static void CloseUrlCB(FL_OBJECT *, long data);
89 FL_OBJECT *radio_html;