]> git.lyx.org Git - lyx.git/blob - src/insets/inseturl.h
The speed patch: redraw only rows that have changed
[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 class LaTeXFeatures;
19
20 /** The url inset
21  */
22 class InsetUrl : public InsetCommand {
23 public:
24         ///
25         explicit
26         InsetUrl(InsetCommandParams const &);
27         ///
28         InsetBase::Code lyxCode() const { return InsetBase::URL_CODE; }
29         ///
30         void validate(LaTeXFeatures &) const;
31         ///
32         std::string const getScreenLabel(Buffer const &) const;
33         ///
34         EDITABLE editable() const { return IS_EDITABLE; }
35         ///
36         bool display() const { return false; }
37         ///
38         int latex(Buffer const &, std::ostream &,
39                   OutputParams const &) const;
40         ///
41         int plaintext(Buffer const &, std::ostream &,
42                   OutputParams const &) const;
43         ///
44         int linuxdoc(Buffer const &, std::ostream &,
45                      OutputParams const &) const;
46         ///
47         int docbook(Buffer const &, std::ostream &,
48                     OutputParams const &) const;
49         /// the string that is passed to the TOC
50         virtual int textString(Buffer const &, std::ostream & os,
51                 OutputParams const &) const;
52 private:
53         virtual std::auto_ptr<InsetBase> doClone() const {
54                 return std::auto_ptr<InsetBase>(new InsetUrl(params()));
55         }
56 };
57
58 #endif