]> git.lyx.org Git - lyx.git/blob - src/insets/inseturl.h
Remove a whole heap of redundant functions from classes derived from
[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         virtual std::auto_ptr<InsetBase> clone() const {
29                 return std::auto_ptr<InsetBase>(new InsetUrl(params()));
30         }
31         ///
32         InsetOld::Code lyxCode() const { return InsetOld::URL_CODE; }
33         ///
34         void validate(LaTeXFeatures &) const;
35         ///
36         std::string const getScreenLabel(Buffer const &) const;
37         ///
38         EDITABLE editable() const { return IS_EDITABLE; }
39         ///
40         bool display() const { return false; }
41         ///
42         int latex(Buffer const &, std::ostream &,
43                   OutputParams const &) const;
44         ///
45         int plaintext(Buffer const &, std::ostream &,
46                   OutputParams const &) const;
47         ///
48         int linuxdoc(Buffer const &, std::ostream &,
49                      OutputParams const &) const;
50         ///
51         int docbook(Buffer const &, std::ostream &,
52                     OutputParams const &) const;
53 };
54
55 #endif