]> git.lyx.org Git - lyx.git/blob - src/insets/insetlabel.h
unify API for insets export
[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         ~InsetLabel();
23         ///
24         std::auto_ptr<InsetBase> clone() const;
25         ///
26         std::string const getScreenLabel(Buffer const &) const;
27         ///
28         EDITABLE editable() const { return IS_EDITABLE; }
29         ///
30         InsetOld::Code lyxCode() const { return InsetOld::LABEL_CODE; }
31         /// Appends \c list with this label
32         void getLabelList(Buffer const &, std::vector<std::string> & list) const;
33         ///
34         int latex(Buffer const &, std::ostream &,
35                   LatexRunParams const &) const;
36         ///
37         int ascii(Buffer const &, std::ostream &,
38                   LatexRunParams const &) const;
39         ///
40         int linuxdoc(Buffer const &, std::ostream &,
41                      LatexRunParams const &) const;
42         ///
43         int docbook(Buffer const &, std::ostream &,
44                     LatexRunParams const &) const;
45 protected:
46         ///
47         virtual
48         DispatchResult
49         priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);
50 };
51
52 #endif