]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCaptionable.h
DocBook, InsetFloat: avoid a potential nullptr dereference when detecting the type...
[features.git] / src / insets / InsetCaptionable.h
index 3190c9a01c6441cfb69a90d6fb37608acdcbc4ce..ac11f55ca20a661b52640122b3bba828f3801f73 100644 (file)
@@ -20,6 +20,9 @@
 
 namespace lyx {
 
+class InsetCaption;
+class InsetLabel;
+
 class InsetCaptionable : public InsetCollapsible
 {
 public:
@@ -34,6 +37,8 @@ protected:
        ///
        InsetCaption const * getCaptionInset() const;
        ///
+       InsetLabel const * getLabelInset() const;
+       ///
        docstring getCaptionText(OutputParams const &) const;
        ///
        docstring getCaptionHTML(OutputParams const &) const;
@@ -45,11 +50,11 @@ protected:
        virtual bool hasSubCaptions(ParIterator const &) const { return false; }
        ///
        void addToToc(DocIterator const & di, bool output_active,
-                                 UpdateType utype, TocBackend & backend) const;
+                                 UpdateType utype, TocBackend & backend) const override;
        /// Update the counters of this inset and of its contents
-       void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+       void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
        ///
-       bool insetAllowed(InsetCode) const;
+       bool insetAllowed(InsetCode) const override;
 private:
        ///
        std::string caption_type_;