]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.h
Well, it turns out that we need a different return value for the xhtml
[lyx.git] / src / insets / InsetCaption.h
index 669b979f6f8e69c978b803bebc090c9de97d0aa7..e8582b61fb1e6121b3dbe728bd9c8156be1194ab 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -28,6 +28,8 @@ public:
        int getArgument(odocstream & os, OutputParams const &) const;
        /// return the optional argument(s) only
        int getOptArg(odocstream & os, OutputParams const &) const;
+       /// return the caption text
+       int getCaptionText(odocstream & os, OutputParams const &) const;
 private:
        ///
        void write(std::ostream & os) const;
@@ -69,11 +71,11 @@ private:
        ///
        void setCustomLabel(docstring const & label);
        ///
-       void addToToc(ParConstIterator const &) const;
+       void addToToc(DocIterator const &);
        /// 
-       bool forceEmptyLayout() const { return true; }
+       virtual bool forcePlainLayout(idx_type = 0) const { return true; }
        /// Captions don't accept alignment, spacing, etc.
-       bool allowParagraphCustomization(idx_type) const { return false; }
+       virtual bool allowParagraphCustomization(idx_type = 0) const { return false; }
        ///
        Inset * clone() const { return new InsetCaption(*this); }
 
@@ -84,8 +86,6 @@ private:
        ///
        std::string type_;
        ///
-       bool in_subfloat_;
-       ///
        docstring custom_label_;
 };