]> git.lyx.org Git - lyx.git/blob - src/insets/inseturl.h
Angus insetindex patch + protect patch from Dekel
[lyx.git] / src / insets / inseturl.h
1 // -*- C++ -*-
2 /* This file is part of*
3  * ====================================================== 
4  *
5  *           LyX, The Document Processor
6  *       
7  *          Copyright 1997-2000 The LyX Team.
8  * 
9  * ====================================================== */
10
11 #ifndef INSET_URL_H
12 #define INSET_URL_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "insetcommand.h"
19 #include "support/utility.hpp"
20
21 struct LaTeXFeatures;
22
23 /** The url inset  
24  */
25 class InsetUrl : public InsetCommand, public noncopyable {
26 public:
27         ///
28         explicit
29         InsetUrl(InsetCommandParams const &);
30         ///
31         Inset * Clone() const { return new InsetUrl(params()); }
32         ///
33         Inset::Code LyxCode() const { return Inset::URL_CODE; }
34         ///
35         void Validate(LaTeXFeatures &) const;
36         ///
37         string getScreenLabel() const;
38         ///
39         EDITABLE Editable() const { return IS_EDITABLE; }
40         ///
41         void Edit(BufferView *, int, int, unsigned int);
42         ///
43         bool display() const { return false; }
44         ///
45         int Latex(Buffer const *, std::ostream &,
46                   bool fragile, bool free_spc) const;
47         ///
48         int Ascii(Buffer const *, std::ostream &) const;
49         ///
50         int Linuxdoc(Buffer const *, std::ostream &) const;
51         ///
52         int DocBook(Buffer const *, std::ostream &) const;
53 };
54
55 #endif