]> git.lyx.org Git - lyx.git/blob - src/insets/inseturl.h
fix #832
[lyx.git] / src / insets / inseturl.h
1 // -*- C++ -*-
2 /**
3  * \file inseturl.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author José Matos
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef INSET_URL_H
13 #define INSET_URL_H
14
15
16 #include "insetcommand.h"
17
18 struct LaTeXFeatures;
19
20 /** The url inset
21  */
22 class InsetUrl : public InsetCommand {
23 public:
24         ///
25         explicit
26         InsetUrl(InsetCommandParams const &, bool same_id = false);
27         ///
28         ~InsetUrl();
29         ///
30         virtual Inset * clone(Buffer const &, bool same_id = false) const {
31                 return new InsetUrl(params(), same_id);
32         }
33         ///
34         dispatch_result localDispatch(FuncRequest const & cmd);
35         ///
36         Inset::Code lyxCode() const { return Inset::URL_CODE; }
37         ///
38         void validate(LaTeXFeatures &) const;
39         ///
40         string const getScreenLabel(Buffer const *) const;
41         ///
42         EDITABLE editable() const { return IS_EDITABLE; }
43         ///
44         bool display() const { return false; }
45         ///
46         int latex(Buffer const *, std::ostream &,
47                   bool fragile, bool free_spc) const;
48         ///
49         int ascii(Buffer const *, std::ostream &, int linelen) const;
50         ///
51         int linuxdoc(Buffer const *, std::ostream &) const;
52         ///
53         int docbook(Buffer const *, std::ostream &, bool mixcont) const;
54 };
55
56 #endif