]> git.lyx.org Git - lyx.git/blob - src/insets/inseturl.h
Make it compile when USE_BOOST_FORMAT is unset
[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 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "insetcommand.h"
20
21 struct LaTeXFeatures;
22
23 /** The url inset
24  */
25 class InsetUrl : public InsetCommand {
26 public:
27         ///
28         explicit
29         InsetUrl(InsetCommandParams const &, bool same_id = false);
30         ///
31         virtual Inset * clone(Buffer const &, bool same_id = false) const {
32                 return new InsetUrl(params(), same_id);
33         }
34         ///
35         Inset::Code lyxCode() const { return Inset::URL_CODE; }
36         ///
37         void validate(LaTeXFeatures &) const;
38         ///
39         string const getScreenLabel(Buffer const *) const;
40         ///
41         EDITABLE editable() const { return IS_EDITABLE; }
42         ///
43         void edit(BufferView *, int, int, mouse_button::state);
44         ///
45         void edit(BufferView * bv, bool front = true);
46         ///
47         bool display() const { return false; }
48         ///
49         int latex(Buffer const *, std::ostream &,
50                   bool fragile, bool free_spc) const;
51         ///
52         int ascii(Buffer const *, std::ostream &, int linelen) const;
53         ///
54         int linuxdoc(Buffer const *, std::ostream &) const;
55         ///
56         int docbook(Buffer const *, std::ostream &, bool mixcont) const;
57 };
58
59 #endif