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
|
|
|
|
*
|
2002-09-25 14:26:13 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>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:
|
|
|
|
|
///
|
2002-03-03 20:25:07 +00:00
|
|
|
|
InsetFootlike(BufferParams const &);
|
2000-07-04 19:16:35 +00:00
|
|
|
|
///
|
2003-05-26 09:13:55 +00:00
|
|
|
|
InsetFootlike(InsetFootlike const &);
|
|
|
|
|
///
|
2006-11-28 15:15:49 +00:00
|
|
|
|
bool metrics(MetricsInfo &, Dimension &) const;
|
2005-04-10 14:07:33 +00:00
|
|
|
|
///
|
|
|
|
|
void draw(PainterInfo & pi, int x, int y) const;
|
|
|
|
|
///
|
2003-08-28 07:41:31 +00:00
|
|
|
|
void write(Buffer const & buf, std::ostream & os) const;
|
2001-07-12 14:35:38 +00:00
|
|
|
|
///
|
2007-04-29 13:39:47 +00:00
|
|
|
|
bool insetAllowed(Inset::Code) 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
|