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) {
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;
55 void Edit(BufferView *, int, int, unsigned int);
57 EDITABLE Editable() const {
61 const char * 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(ostream &, signed char fragile) const;
74 #ifndef USE_OSTREAM_ONLY
76 int Latex(string & file, signed char fragile) const;
78 int Linuxdoc(string & file) const;
80 int DocBook(string & file) const;
83 int Linuxdoc(ostream &) const;
85 int DocBook(ostream &) const;
88 static void CloseUrlCB(FL_OBJECT *, long data);
101 FD_form_url * fd_form_url;