]> git.lyx.org Git - lyx.git/blob - src/insets/inseturl.h
756ec2402a825c7d438d2379250030b383255a59
[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 &);
27         ///
28         //explicit
29         //InsetUrl(InsetCommandParams const &, bool same_id);
30         ///
31         ~InsetUrl();
32         ///
33         virtual Inset * clone(Buffer const &) const {
34                 return new InsetUrl(params());
35         }
36         ///
37         //virtual Inset * clone(Buffer const &, bool same_id) const {
38         //      return new InsetUrl(params(), same_id);
39         //}
40         ///
41         dispatch_result localDispatch(FuncRequest const & cmd);
42         ///
43         Inset::Code lyxCode() const { return Inset::URL_CODE; }
44         ///
45         void validate(LaTeXFeatures &) const;
46         ///
47         string const getScreenLabel(Buffer const *) const;
48         ///
49         EDITABLE editable() const { return IS_EDITABLE; }
50         ///
51         bool display() const { return false; }
52         ///
53         int latex(Buffer const *, std::ostream &,
54                   LatexRunParams const &) const;
55         ///
56         int ascii(Buffer const *, std::ostream &, int linelen) const;
57         ///
58         int linuxdoc(Buffer const *, std::ostream &) const;
59         ///
60         int docbook(Buffer const *, std::ostream &, bool mixcont) const;
61 };
62
63 #endif