]> git.lyx.org Git - lyx.git/blob - src/insets/insetindex.h
Remove a whole heap of redundant functions from classes derived from
[lyx.git] / src / insets / insetindex.h
1 // -*- C++ -*-
2 /**
3  * \file insetindex.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_INDEX_H
13 #define INSET_INDEX_H
14
15
16 #include "insetcommand.h"
17
18 struct LaTeXFeatures;
19
20 /** Used to insert index labels
21   */
22 class InsetIndex : public InsetCommand {
23 public:
24         ///
25         InsetIndex(InsetCommandParams const &);
26         ///
27         virtual std::auto_ptr<InsetBase> clone() const {
28                 return std::auto_ptr<InsetBase>(new InsetIndex(params()));
29         }
30         ///
31         std::string const getScreenLabel(Buffer const &) const;
32         ///
33         EDITABLE editable() const { return IS_EDITABLE; }
34         ///
35         InsetOld::Code lyxCode() const;
36         ///
37         int docbook(Buffer const &, std::ostream &,
38                     OutputParams const &) const;
39 };
40
41
42 class InsetPrintIndex : public InsetCommand {
43 public:
44         ///
45         InsetPrintIndex(InsetCommandParams const &);
46         ///
47         virtual std::auto_ptr<InsetBase> clone() const {
48                 return std::auto_ptr<InsetBase>(new InsetPrintIndex(params()));
49         }
50         /// Updates needed features for this inset.
51         void validate(LaTeXFeatures & features) const;
52         ///
53         EDITABLE editable() const { return NOT_EDITABLE; }
54         ///
55         InsetOld::Code lyxCode() const;
56         ///
57         bool display() const { return true; }
58         ///
59         std::string const getScreenLabel(Buffer const &) const;
60 };
61
62 #endif