mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
c466baaa5b
The current spelling is not strictly wrong, but flagged as unusual or historical by some authorities. It is also found fault with many spell checkers. Thus we decided to move to the more standard "-ible" form once and for all. See #10678 for discussion This part covers the most tricky part: the internal naming. Translations and layouts will follow. This will all also all be backported to 2.3.x, for the sake of backwards compatibility (cherry-picking).
60 lines
1.5 KiB
C++
60 lines
1.5 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file InsetCaptionable.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Alejandro Aguilar Sierra
|
|
* \author Jürgen Vigna
|
|
* \author Lars Gullik Bjønnes
|
|
* \author Guillaume Munch
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef INSET_CAPTIONABLE_H
|
|
#define INSET_CAPTIONABLE_H
|
|
|
|
#include "InsetCollapsible.h"
|
|
|
|
|
|
namespace lyx {
|
|
|
|
class InsetCaptionable : public InsetCollapsible
|
|
{
|
|
public:
|
|
InsetCaptionable(Buffer * buffer, std::string const & type = "senseless")
|
|
: InsetCollapsible(buffer), caption_type_(type) {}
|
|
///
|
|
std::string const & captionType() const { return caption_type_; }
|
|
///
|
|
docstring floatName(std::string const & type) const;
|
|
///
|
|
protected:
|
|
///
|
|
InsetCaption const * getCaptionInset() const;
|
|
///
|
|
docstring getCaptionText(OutputParams const &) const;
|
|
///
|
|
docstring getCaptionHTML(OutputParams const &) const;
|
|
///
|
|
virtual void setCaptionType(std::string const & type);
|
|
/// are our captions subcaptions?
|
|
virtual bool hasSubCaptions(ParIterator const &) const { return false; }
|
|
///
|
|
void addToToc(DocIterator const & di, bool output_active,
|
|
UpdateType utype, TocBackend & backend) const;
|
|
/// Update the counters of this inset and of its contents
|
|
void updateBuffer(ParIterator const &, UpdateType);
|
|
///
|
|
bool insetAllowed(InsetCode) const;
|
|
private:
|
|
///
|
|
std::string caption_type_;
|
|
};
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
#endif // INSET_CAPTIONABLE_H
|