]> git.lyx.org Git - lyx.git/blob - src/insets/InsetLabel.h
* InsetCollapsable:
[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         InsetCode lyxCode() const { return 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         ///
39         static CommandInfo const * findInfo(std::string const &);
40         ///
41         static std::string defaultCommand() { return "label"; };
42         ///
43         static bool isCompatibleCommand(std::string const & s) 
44                 { return s == "label"; }
45 protected:
46         virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
47 private:
48         virtual Inset * clone() const;
49 };
50
51
52 } // namespace lyx
53
54 #endif