]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCaptionable.h
XHTML/DocBook: merge code duplicates for vertical alignment.
[features.git] / src / insets / InsetCaptionable.h
index 005c371ea2b99448cad45ee437b636ff0f3a3260..ac11f55ca20a661b52640122b3bba828f3801f73 100644 (file)
 #ifndef INSET_CAPTIONABLE_H
 #define INSET_CAPTIONABLE_H
 
-#include "InsetCollapsable.h"
+#include "InsetCollapsible.h"
 
 
 namespace lyx {
 
-class InsetCaptionable : public InsetCollapsable
+class InsetCaption;
+class InsetLabel;
+
+class InsetCaptionable : public InsetCollapsible
 {
 public:
        InsetCaptionable(Buffer * buffer, std::string const & type = "senseless")
-               : InsetCollapsable(buffer), caption_type_(type) {}
+               : InsetCollapsible(buffer), caption_type_(type) {}
        ///
        std::string const & captionType() const { return caption_type_; }
        ///
@@ -34,20 +37,24 @@ protected:
        ///
        InsetCaption const * getCaptionInset() const;
        ///
+       InsetLabel const * getLabelInset() const;
+       ///
        docstring getCaptionText(OutputParams const &) const;
        ///
        docstring getCaptionHTML(OutputParams const &) const;
        ///
+       docstring getCaptionDocBook(OutputParams const &) const;
+       ///
        virtual void setCaptionType(std::string const & type);
        /// are our captions subcaptions?
        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);
+       void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
        ///
-       bool insetAllowed(InsetCode) const;
+       bool insetAllowed(InsetCode) const override;
 private:
        ///
        std::string caption_type_;