]> git.lyx.org Git - lyx.git/blob - src/insets/insetlabel.h
Part of IU.
[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 #include "insetcommand.h"
16
17 class InsetLabel : public InsetCommand {
18 public:
19         ///
20         InsetLabel(InsetCommandParams const &);
21         ///
22         std::auto_ptr<InsetBase> clone() const;
23         ///
24         std::string const getScreenLabel(Buffer const &) const;
25         ///
26         EDITABLE editable() const { return IS_EDITABLE; }
27         ///
28         InsetOld::Code lyxCode() const { return InsetOld::LABEL_CODE; }
29         /// Appends \c list with this label
30         void getLabelList(Buffer const &, std::vector<std::string> & list) const;
31         ///
32         int latex(Buffer const &, std::ostream &,
33                   OutputParams const &) const;
34         ///
35         int plaintext(Buffer const &, std::ostream &,
36                   OutputParams const &) const;
37         ///
38         int linuxdoc(Buffer const &, std::ostream &,
39                      OutputParams const &) const;
40         ///
41         int docbook(Buffer const &, std::ostream &,
42                     OutputParams const &) const;
43 protected:
44         ///
45         virtual
46         DispatchResult
47         priv_dispatch(LCursor & cur, FuncRequest const & cmd);
48 };
49
50 #endif