]> git.lyx.org Git - lyx.git/blob - src/insets/insetlabel.h
ws changes only
[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 #include <boost/weak_ptr.hpp>
18
19 class InsetLabel : public InsetCommand {
20 public:
21         ///
22         InsetLabel(InsetCommandParams const &);
23         ///
24         ~InsetLabel();
25         ///
26         std::auto_ptr<InsetBase> clone() const;
27         ///
28         virtual dispatch_result localDispatch(FuncRequest const & cmd);
29         ///
30         std::string const getScreenLabel(Buffer const &) const;
31         ///
32         EDITABLE editable() const { return IS_EDITABLE; }
33         ///
34         InsetOld::Code lyxCode() const { return InsetOld::LABEL_CODE; }
35         /// Appends \c list with this label
36         void getLabelList(Buffer const &, std::vector<std::string> & list) const;
37         ///
38         int latex(Buffer const &, std::ostream &,
39                   LatexRunParams const &) const;
40         ///
41         int ascii(Buffer const &, std::ostream &, int linelen) const;
42         ///
43         int linuxdoc(Buffer const &, std::ostream &) const;
44         ///
45         int docbook(Buffer const &, std::ostream &, bool mixcont) const;
46 };
47
48 #endif