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