]> git.lyx.org Git - lyx.git/blob - src/insets/insetlabel.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[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
18 namespace lyx {
19
20 class InsetLabel : public InsetCommand {
21 public:
22         ///
23         InsetLabel(InsetCommandParams const &);
24         ///
25         docstring const getScreenLabel(Buffer const &) const;
26         ///
27         EDITABLE editable() const { return IS_EDITABLE; }
28         ///
29         InsetBase::Code lyxCode() const { return InsetBase::LABEL_CODE; }
30         /// Appends \c list with this label
31         void getLabelList(Buffer const &, std::vector<docstring> & list) const;
32         ///
33         int latex(Buffer const &, odocstream &, OutputParams const &) const;
34         ///
35         int plaintext(Buffer const &, odocstream &, OutputParams const &) const;
36         ///
37         int docbook(Buffer const &, odocstream &, 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
45 } // namespace lyx
46
47 #endif