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
|
|
|
|
2007-04-25 01:24:38 +00:00
|
|
|
#include "InsetCollapsable.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
|
2000-07-04 19:16:35 +00:00
|
|
|
class InsetFootlike : public InsetCollapsable {
|
|
|
|
public:
|
|
|
|
///
|
2008-03-04 22:28:18 +00:00
|
|
|
InsetFootlike(Buffer const &);
|
2009-04-22 20:55:13 +00:00
|
|
|
///
|
|
|
|
bool hasSettings() const { return false; }
|
2008-03-05 00:21:05 +00:00
|
|
|
private:
|
2003-05-26 09:13:55 +00:00
|
|
|
///
|
2007-09-21 20:39:47 +00:00
|
|
|
void metrics(MetricsInfo &, Dimension &) const;
|
2005-04-10 14:07:33 +00:00
|
|
|
///
|
|
|
|
void draw(PainterInfo & pi, int x, int y) const;
|
|
|
|
///
|
2008-02-27 20:43:16 +00:00
|
|
|
void write(std::ostream & os) const;
|
2001-07-12 14:35:38 +00:00
|
|
|
///
|
2007-10-13 09:04:52 +00:00
|
|
|
bool insetAllowed(InsetCode) const;
|
2002-07-23 21:03:38 +00:00
|
|
|
/** returns true if, when outputing 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 */
|
2002-07-23 21:03:38 +00:00
|
|
|
bool noFontChange() const { return true; }
|
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
|