]> git.lyx.org Git - lyx.git/blob - src/insets/inseturl.h
reformatting and remove using delc
[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
20 struct LaTeXFeatures;
21
22 /** The url inset  
23  */
24 class InsetUrl : public InsetCommand {
25 public:
26         ///
27         explicit
28         InsetUrl(InsetCommandParams const &);
29         ///
30         Inset * Clone(Buffer const &) const { return new InsetUrl(params()); }
31         ///
32         Inset::Code LyxCode() const { return Inset::URL_CODE; }
33         ///
34         void Validate(LaTeXFeatures &) const;
35         ///
36         string const getScreenLabel() const;
37         ///
38         EDITABLE Editable() const { return IS_EDITABLE; }
39         ///
40         void Edit(BufferView *, int, int, unsigned int);
41         ///
42         bool display() const { return false; }
43         ///
44         int Latex(Buffer const *, std::ostream &,
45                   bool fragile, bool free_spc) const;
46         ///
47         int Ascii(Buffer const *, std::ostream &, int linelen) const;
48         ///
49         int Linuxdoc(Buffer const *, std::ostream &) const;
50         ///
51         int DocBook(Buffer const *, std::ostream &) const;
52 };
53
54 #endif