]> git.lyx.org Git - lyx.git/blob - src/insets/InsetUrl.h
Make listings dialog translatable (mostly strings from InsetListingsParams), fix...
[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
19 namespace lyx {
20
21 class LaTeXFeatures;
22
23 /** The url inset
24  */
25 class InsetUrl : public InsetCommand {
26 public:
27         ///
28         explicit
29         InsetUrl(InsetCommandParams const &);
30         ///
31         Inset::Code lyxCode() const { return Inset::URL_CODE; }
32         ///
33         void validate(LaTeXFeatures &) const;
34         ///
35         docstring const getScreenLabel(Buffer const &) const;
36         ///
37         EDITABLE editable() const { return IS_EDITABLE; }
38         ///
39         DisplayType display() const { return Inline; }
40         ///
41         int latex(Buffer const &, odocstream &,
42                   OutputParams const &) const;
43         ///
44         int plaintext(Buffer const &, odocstream &,
45                       OutputParams const &) const;
46         ///
47         int docbook(Buffer const &, odocstream &,
48                     OutputParams const &) const;
49         /// the string that is passed to the TOC
50         virtual int textString(Buffer const &, odocstream &,
51                 OutputParams const &) const;
52 private:
53         virtual std::auto_ptr<Inset> doClone() const {
54                 return std::auto_ptr<Inset>(new InsetUrl(params()));
55         }
56 };
57
58
59 } // namespace lyx
60
61 #endif