]> git.lyx.org Git - lyx.git/blob - src/insets/inseturl.h
simplificatons
[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-2001 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 &, bool same_id = false);
29         ///
30         virtual Inset * clone(Buffer const &, bool same_id = false) const {
31                 return new InsetUrl(params(), same_id);
32         }
33         ///
34         Inset::Code lyxCode() const { return Inset::URL_CODE; }
35         ///
36         void validate(LaTeXFeatures &) const;
37         ///
38         string const getScreenLabel() const;
39         ///
40         EDITABLE editable() const { return IS_EDITABLE; }
41         ///
42         void edit(BufferView *, int, int, unsigned int);
43         ///
44         void edit(BufferView * bv, bool front = true);
45         ///
46         bool display() const { return false; }
47         ///
48         int latex(Buffer const *, std::ostream &,
49                   bool fragile, bool free_spc) const;
50         ///
51         int ascii(Buffer const *, std::ostream &, int linelen) const;
52         ///
53         int linuxdoc(Buffer const *, std::ostream &) const;
54         ///
55         int DocBook(Buffer const *, std::ostream &) const;
56 };
57
58 #endif