2000-07-04 19:16:35 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-25 14:26:13 +00:00
|
|
|
/**
|
2007-04-25 01:24:38 +00:00
|
|
|
* \file InsetFootlike.h
|
2002-09-25 14:26:13 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 17:09:55 +00:00
|
|
|
*
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author Lars Gullik Bjønnes
|
2000-07-04 19:16:35 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2000-07-04 19:16:35 +00:00
|
|
|
*/
|
|
|
|
|
2002-08-28 16:32:18 +00:00
|
|
|
#ifndef INSETFOOTLIKE_H
|
|
|
|
#define INSETFOOTLIKE_H
|
2000-07-04 19:16:35 +00:00
|
|
|
|
2017-10-16 08:12:21 +00:00
|
|
|
#include "InsetCollapsible.h"
|
2000-07-04 19:16:35 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
2000-07-15 23:51:46 +00:00
|
|
|
// To have this class is probably a bit overkill... (Lgb)
|
|
|
|
|
2003-05-19 17:03:12 +00:00
|
|
|
// The footnote inset
|
2017-10-16 08:12:21 +00:00
|
|
|
class InsetFootlike : public InsetCollapsible {
|
2000-07-04 19:16:35 +00:00
|
|
|
public:
|
|
|
|
///
|
2019-09-17 21:06:18 +00:00
|
|
|
explicit InsetFootlike(Buffer *);
|
2009-04-22 20:55:13 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
bool hasSettings() const override { return false; }
|
2008-03-05 00:21:05 +00:00
|
|
|
private:
|
2003-05-26 09:13:55 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void metrics(MetricsInfo &, Dimension &) const override;
|
2005-04-10 14:07:33 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void draw(PainterInfo & pi, int x, int y) const override;
|
2005-04-10 14:07:33 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void write(std::ostream & os) const override;
|
2001-07-12 14:35:38 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
bool insetAllowed(InsetCode) const override;
|
Run codespell on src/insets
Command was
codespell -w -i 3 -S Makefile.in -L mathed,afe,tthe,ue,fro,uint,larg,alph,te,thes,alle,Claus,pres,pass-thru src/insets/
2020-06-25 21:46:16 +00:00
|
|
|
/** returns false if, when outputting LaTeX, font changes should
|
2002-12-01 22:59:25 +00:00
|
|
|
be closed before generating this inset. This is needed for
|
|
|
|
insets that may contain several paragraphs */
|
2020-10-01 07:42:11 +00:00
|
|
|
bool inheritFont() const override { return false; }
|
2000-07-04 19:16:35 +00:00
|
|
|
};
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
2000-07-04 19:16:35 +00:00
|
|
|
#endif
|