]> git.lyx.org Git - lyx.git/blob - src/insets/insetlabel.h
a9eccd361302e8e4a658d2ddd409e69bf2f05e50
[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 &);
22         ///
23         //InsetLabel(InsetCommandParams const &, bool same_id);
24         ///
25         ~InsetLabel();
26         ///
27         virtual Inset * clone(Buffer const &) const {
28                 return new InsetLabel(params());
29         }
30         ///
31         //virtual Inset * clone(Buffer const &, bool same_id) const {
32         //      return new InsetLabel(params(), same_id);
33         //}
34         ///
35         virtual dispatch_result localDispatch(FuncRequest const & cmd);
36         ///
37         string const getScreenLabel(Buffer const *) const { return getContents(); }
38         ///
39         EDITABLE editable() const { return IS_EDITABLE; }
40         ///
41         Inset::Code lyxCode() const { return Inset::LABEL_CODE; }
42         ///
43         std::vector<string> const getLabelList() const;
44         ///
45         int latex(Buffer const *, std::ostream &,
46                   LatexRunParams const &) const;
47         ///
48         int ascii(Buffer const *, std::ostream &, int linelen) const;
49         ///
50         int linuxdoc(Buffer const *, std::ostream &) const;
51         ///
52         int docbook(Buffer const *, std::ostream &, bool mixcont) const;
53 };
54
55 #endif