]> git.lyx.org Git - lyx.git/blob - src/insets/insetlabel.h
Use UTF8 for LaTeX 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         lyx::docstring const getScreenLabel(Buffer const &) const;
23         ///
24         EDITABLE editable() const { return IS_EDITABLE; }
25         ///
26         InsetBase::Code lyxCode() const { return InsetBase::LABEL_CODE; }
27         /// Appends \c list with this label
28         void getLabelList(Buffer const &, std::vector<lyx::docstring> & list) const;
29         ///
30         int latex(Buffer const &, lyx::odocstream &,
31                   OutputParams const &) const;
32         ///
33         int plaintext(Buffer const &, lyx::odocstream &,
34                   OutputParams const &) const;
35         ///
36         int docbook(Buffer const &, std::ostream &,
37                     OutputParams const &) const;
38 protected:
39         virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
40 private:
41         virtual std::auto_ptr<InsetBase> doClone() const;
42 };
43
44 #endif