]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.h
Improve handling of top and bottom margin
[lyx.git] / src / insets / InsetCaption.h
index a1d14659fbf387c143ce747e6aa26b2aca03b52d..1fb1022faadc02e58c28f855165514a953cd2839 100644 (file)
@@ -30,15 +30,17 @@ public:
        void getArgument(otexstream & os, OutputParams const &) const;
        /// return the caption text
        int getCaptionAsPlaintext(odocstream & os, OutputParams const &) const;
+       /// write the caption text as DocBook in os
+       void getCaptionAsDocBook(XMLStream & os, OutputParams const &) const;
        /// return the caption text as HTML
-       docstring getCaptionAsHTML(XHTMLStream & os, OutputParams const &) const;
+       docstring getCaptionAsHTML(XMLStream & os, OutputParams const &) const;
        ///
        std::string contextMenuName() const;
 private:
        ///
        void write(std::ostream & os) const;
        ///
-       DisplayType display() const { return AlignCenter; }
+       RowFlags rowFlags() const { return Display; }
        ///
        bool neverIndent() const { return true; }
        ///
@@ -76,9 +78,9 @@ private:
        int plaintext(odocstringstream & ods, OutputParams const & op,
                      size_t max_length = INT_MAX) const;
        ///
-       int docbook(odocstream & os, OutputParams const & runparams) const;
+       void docbook(XMLStream &, OutputParams const &) const;
        ///
-       docstring xhtml(XHTMLStream & os, OutputParams const & runparams) const;
+       docstring xhtml(XMLStream & os, OutputParams const & runparams) const;
        ///
        void addToToc(DocIterator const & di, bool output_active, UpdateType utype,
                      TocBackend & backend) const;
@@ -98,6 +100,8 @@ private:
        ///
        bool is_subfloat_;
        ///
+       bool is_deleted_;
+       ///
        std::string type_;
 };