]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcaption.h
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insetcaption.h
index dc87c293243de19e99835669aaa25b6742c8bb8f..45adb74e8789a3c5d4ea64d5428f5b46be3774c9 100644 (file)
@@ -60,24 +60,30 @@ public:
        ///
        virtual bool wide() const { return false; }
        ///
-       virtual int latex(Buffer const & buf, odocstream & os,
-                         OutputParams const &) const;
+       int latex(Buffer const & buf, odocstream & os,
+                 OutputParams const &) const;
        ///
        int plaintext(Buffer const & buf, odocstream & os,
-                 OutputParams const & runparams) const;
+                     OutputParams const & runparams) const;
        ///
        int docbook(Buffer const & buf, odocstream & os,
-                   OutputParams const & runparams) const;
+                   OutputParams const & runparams) const;
        ///
        void setCount(int c) { counter_ = c; }
        ///
+       std::string const & type() const { return type_; }
+       ///
        void setType(std::string const & type) { type_ = type; }
        ///
        void setCustomLabel(docstring const & label);
        ///
        void addToToc(TocList &, Buffer const &) const;
+       /// Captions don't accept alignment, spacing, etc.
+       bool forceDefaultParagraphs(idx_type) const { return true; }
 
 private:
+       ///
+       void computeFullLabel() const;
        ///
        virtual std::auto_ptr<InsetBase> doClone() const;
        ///