#ifndef INSETCAPTION_H
#define INSETCAPTION_H
-
#include "insettext.h"
#include "lyxtextclass.h"
///
InsetCaption(BufferParams const &);
///
+ virtual ~InsetCaption() {}
+ ///
void write(Buffer const & buf, std::ostream & os) const;
///
void read(Buffer const & buf, LyXLex & lex);
///
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;
///
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_;
};