]> git.lyx.org Git - features.git/blobdiff - src/insets/insetcaption.h
The caption inset patch by Georg, Martin and myself.
[features.git] / src / insets / insetcaption.h
index 310b0e0fd1958cb33ee45ed44e01253dd09615af..0640bea9d69caf13ecb5f2270fd137d19dcb92dd 100644 (file)
@@ -12,7 +12,6 @@
 #ifndef INSETCAPTION_H
 #define INSETCAPTION_H
 
-
 #include "insettext.h"
 #include "lyxtextclass.h"
 
@@ -26,6 +25,8 @@ public:
        ///
        InsetCaption(BufferParams const &);
        ///
+       virtual ~InsetCaption() {}
+       ///
        void write(Buffer const & buf, std::ostream & os) const;
        ///
        void read(Buffer const & buf, LyXLex & lex);
@@ -51,6 +52,10 @@ public:
        ///
        virtual InsetBase * editXY(LCursor & cur, int x, int y);
        ///
+       virtual bool getStatus(LCursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+       ///
+       virtual bool wide() const { return false; }
+       ///
        virtual int latex(Buffer const & buf, odocstream & os,
                          OutputParams const &) const;
        ///
@@ -61,17 +66,20 @@ public:
                    OutputParams const & runparams) const;
        ///
        void setCount(int c) { counter_ = c; }
-private:
        ///
-       void setLabel(LCursor & cur) const;
+       void setLabel(docstring const & label);
+
+private:
        ///
        virtual std::auto_ptr<InsetBase> doClone() const;
        ///
-       mutable docstring label;
+       mutable docstring full_label_;
        ///
        mutable int labelwidth_;
        ///
-       mutable int counter_;
+       docstring label_;
+       ///
+       int counter_;
        ///
        LyXTextClass const & textclass_;
 };