]> git.lyx.org Git - lyx.git/blob - src/insets/insetlabel.h
update copyright year
[lyx.git] / src / insets / insetlabel.h
1 // -*- C++ -*-
2 /* This file is part of*
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *       
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1995-2001 The LyX Team
9  *
10  * ====================================================== */
11
12 #ifndef INSET_LABEL_H
13 #define INSET_LABEL_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "insetcommand.h"
20
21 class InsetLabel : public InsetCommand {
22 public:
23         ///
24         InsetLabel(InsetCommandParams const &);
25         ///
26         Inset * Clone(Buffer const &) const { return new InsetLabel(params()); }
27         ///
28         string const getScreenLabel() const { return getContents(); }
29         ///
30         EDITABLE Editable() const { return IS_EDITABLE; }
31         ///
32         Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
33         ///
34         void Edit(BufferView *, int, int, unsigned int);
35         ///
36         std::vector<string> const getLabelList() const;
37         ///
38         int Latex(Buffer const *, std::ostream &,
39                   bool fragile, bool free_spc) const;
40         ///
41         int Ascii(Buffer const *, std::ostream &, int linelen) const;
42         ///
43         int Linuxdoc(Buffer const *, std::ostream &) const;
44         ///
45         int DocBook(Buffer const *, std::ostream &) const;
46 private:
47         /// This function escapes 8-bit characters
48         string const escape(string const &) const;
49 };
50
51 #endif