]> git.lyx.org Git - features.git/blob - src/insets/InsetCaptionable.h
Remove unused forward declarations
[features.git] / src / insets / InsetCaptionable.h
1 // -*- C++ -*-
2 /**
3  * \file InsetCaptionable.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Alejandro Aguilar Sierra
8  * \author Jürgen Vigna
9  * \author Lars Gullik Bjønnes
10  * \author Guillaume Munch
11  *
12  * Full author contact details are available in file CREDITS.
13  */
14
15 #ifndef INSET_CAPTIONABLE_H
16 #define INSET_CAPTIONABLE_H
17
18 #include "InsetCollapsible.h"
19
20
21 namespace lyx {
22
23 class InsetCaption;
24
25 class InsetCaptionable : public InsetCollapsible
26 {
27 public:
28         InsetCaptionable(Buffer * buffer, std::string const & type = "senseless")
29                 : InsetCollapsible(buffer), caption_type_(type) {}
30         ///
31         std::string const & captionType() const { return caption_type_; }
32         ///
33         docstring floatName(std::string const & type) const;
34         ///
35 protected:
36         ///
37         InsetCaption const * getCaptionInset() const;
38         ///
39         docstring getCaptionText(OutputParams const &) const;
40         ///
41         docstring getCaptionHTML(OutputParams const &) const;
42         ///
43         docstring getCaptionDocBook(OutputParams const &) const;
44         ///
45         virtual void setCaptionType(std::string const & type);
46         /// are our captions subcaptions?
47         virtual bool hasSubCaptions(ParIterator const &) const { return false; }
48         ///
49         void addToToc(DocIterator const & di, bool output_active,
50                                   UpdateType utype, TocBackend & backend) const override;
51         /// Update the counters of this inset and of its contents
52         void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
53         ///
54         bool insetAllowed(InsetCode) const override;
55 private:
56         ///
57         std::string caption_type_;
58 };
59
60
61 } // namespace lyx
62
63 #endif // INSET_CAPTIONABLE_H