X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetCaption.h;h=e8582b61fb1e6121b3dbe728bd9c8156be1194ab;hb=67e70c6c022fa445cd654937faeb87955e3bca7a;hp=669b979f6f8e69c978b803bebc090c9de97d0aa7;hpb=75999ba650ec5cb40ae31aae4ea1eb817929d09b;p=lyx.git diff --git a/src/insets/InsetCaption.h b/src/insets/InsetCaption.h index 669b979f6f..e8582b61fb 100644 --- a/src/insets/InsetCaption.h +++ b/src/insets/InsetCaption.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Lars Gullik Bjønnes + * \author Lars Gullik Bjønnes * * Full author contact details are available in file CREDITS. */ @@ -28,6 +28,8 @@ public: int getArgument(odocstream & os, OutputParams const &) const; /// return the optional argument(s) only int getOptArg(odocstream & os, OutputParams const &) const; + /// return the caption text + int getCaptionText(odocstream & os, OutputParams const &) const; private: /// void write(std::ostream & os) const; @@ -69,11 +71,11 @@ private: /// void setCustomLabel(docstring const & label); /// - void addToToc(ParConstIterator const &) const; + void addToToc(DocIterator const &); /// - bool forceEmptyLayout() const { return true; } + virtual bool forcePlainLayout(idx_type = 0) const { return true; } /// Captions don't accept alignment, spacing, etc. - bool allowParagraphCustomization(idx_type) const { return false; } + virtual bool allowParagraphCustomization(idx_type = 0) const { return false; } /// Inset * clone() const { return new InsetCaption(*this); } @@ -84,8 +86,6 @@ private: /// std::string type_; /// - bool in_subfloat_; - /// docstring custom_label_; };