]> git.lyx.org Git - lyx.git/blob - src/insets/insetlabel.h
Don't remove cell selections after fontchange.
[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 &, bool same_id = false);
25         ///
26         virtual Inset * clone(Buffer const &, bool same_id = false) const {
27                 return new InsetLabel(params(), same_id);
28         }
29         ///
30         string const getScreenLabel(Buffer const *) const { return getContents(); }
31         ///
32         EDITABLE editable() const { return IS_EDITABLE; }
33         ///
34         Inset::Code lyxCode() const { return Inset::LABEL_CODE; }
35         ///
36         void edit(BufferView *, int, int, unsigned int);
37         ///
38         void edit(BufferView * bv, bool front = true);
39         ///
40         std::vector<string> const getLabelList() const;
41         ///
42         int latex(Buffer const *, std::ostream &,
43                   bool fragile, bool free_spc) const;
44         ///
45         int ascii(Buffer const *, std::ostream &, int linelen) const;
46         ///
47         int linuxdoc(Buffer const *, std::ostream &) const;
48         ///
49         int docbook(Buffer const *, std::ostream &) const;
50 };
51
52 #endif