lyx_mirror/src/insets/InsetFootlike.h
Jean-Marc Lasgouttes 81e35bc396 Replace hardcoded inheritFont() with InheritFont InsetLayout tag
Each removed inheritFont method is replaced by a 'InheritFont false'
line in the relevant InsetLayout entry.

Add code to layout2layout that does this automatically when the entry
is missing.

The case of InsetScript is special, since the inheritFont() was not
needed here: the default is indeed true.

Fixes bug #12238.
2023-07-22 23:38:53 +02:00

40 lines
732 B
C++

// -*- C++ -*-
/**
* \file InsetFootlike.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Lars Gullik Bjønnes
*
* Full author contact details are available in file CREDITS.
*/
#ifndef INSETFOOTLIKE_H
#define INSETFOOTLIKE_H
#include "InsetCollapsible.h"
namespace lyx {
// To have this class is probably a bit overkill... (Lgb)
// The footnote inset
class InsetFootlike : public InsetCollapsible {
public:
///
explicit InsetFootlike(Buffer *);
///
bool hasSettings() const override { return false; }
private:
///
void write(std::ostream & os) const override;
///
bool insetAllowed(InsetCode) const override;
};
} // namespace lyx
#endif