X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetCaption.h;h=70894e164d717cfa2a52272c904f5d3e35749e5d;hb=0362c6aae73c293d1c20277c12d362acfe0b2ef6;hp=fed32649e85806a1cc460ef542634e20a0fef872;hpb=11a6b3c4c7a031fd3776f53c9c43f62116933cea;p=lyx.git diff --git a/src/insets/InsetCaption.h b/src/insets/InsetCaption.h index fed32649e8..70894e164d 100644 --- a/src/insets/InsetCaption.h +++ b/src/insets/InsetCaption.h @@ -49,7 +49,7 @@ public: /// virtual void draw(PainterInfo & pi, int x, int y) const; /// - virtual void edit(Cursor & cur, bool front, EntryDirectionType entry_from); + 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: ///