]> git.lyx.org Git - lyx.git/blob - src/insets/insetlabel.h
dont use pragma impementation and interface anymore
[lyx.git] / src / insets / insetlabel.h
1 // -*- C++ -*-
2 /**
3  * \file insetlabel.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef INSET_LABEL_H
13 #define INSET_LABEL_H
14
15
16 #include "insetcommand.h"
17
18 class InsetLabel : public InsetCommand {
19 public:
20         ///
21         InsetLabel(InsetCommandParams const &, bool same_id = false);
22         ///
23         virtual Inset * clone(Buffer const &, bool same_id = false) const {
24                 return new InsetLabel(params(), same_id);
25         }
26         ///
27         string const getScreenLabel(Buffer const *) const { return getContents(); }
28         ///
29         EDITABLE editable() const { return IS_EDITABLE; }
30         ///
31         Inset::Code lyxCode() const { return Inset::LABEL_CODE; }
32         ///
33         void edit(BufferView *, int, int, mouse_button::state);
34         ///
35         void edit(BufferView * bv, bool front = true);
36         ///
37         std::vector<string> const getLabelList() const;
38         ///
39         int latex(Buffer const *, std::ostream &,
40                   bool fragile, bool free_spc) const;
41         ///
42         int ascii(Buffer const *, std::ostream &, int linelen) const;
43         ///
44         int linuxdoc(Buffer const *, std::ostream &) const;
45         ///
46         int docbook(Buffer const *, std::ostream &, bool mixcont) const;
47 };
48
49 #endif