X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetCaption.h;h=70894e164d717cfa2a52272c904f5d3e35749e5d;hb=0362c6aae73c293d1c20277c12d362acfe0b2ef6;hp=0ad098399eefe5d64e196b7d9a07fef43003a49e;hpb=f7b1c86393d890d5d473279d88e26bb78f8c1275;p=lyx.git diff --git a/src/insets/InsetCaption.h b/src/insets/InsetCaption.h index 0ad098399e..70894e164d 100644 --- a/src/insets/InsetCaption.h +++ b/src/insets/InsetCaption.h @@ -13,11 +13,11 @@ #define INSETCAPTION_H #include "InsetText.h" -#include "TextClass.h" - namespace lyx { +class TextClass; + /** A caption inset */ class InsetCaption : public InsetText { @@ -49,7 +49,7 @@ public: /// virtual void draw(PainterInfo & pi, int x, int y) const; /// - virtual void edit(Cursor & cur, bool left); + virtual void edit(Cursor & cur, bool front, EntryDirection entry_from); /// virtual Inset * editXY(Cursor & cur, int x, int y); /// @@ -76,13 +76,13 @@ public: /// 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 &, ParConstIterator const &) const; + void addToToc(Buffer const &, ParConstIterator const &) const; + /// + virtual bool forceEmptyLayout() const { return true; } /// Captions don't accept alignment, spacing, etc. - bool forceDefaultParagraphs(idx_type) const { return true; } + virtual bool allowParagraphCustomization(idx_type) const { return false; } private: ///