2000-03-08 13:52:57 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-25 14:26:13 +00:00
|
|
|
/**
|
2007-04-25 01:24:38 +00:00
|
|
|
* \file InsetFoot.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 Jürgen Vigna
|
|
|
|
* \author Lars Gullik Bjønnes
|
2000-03-08 13:52:57 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2000-03-08 13:52:57 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INSETFOOT_H
|
|
|
|
#define INSETFOOT_H
|
|
|
|
|
2007-04-25 01:24:38 +00:00
|
|
|
#include "InsetFootlike.h"
|
2000-03-08 13:52:57 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
2000-03-08 13:52:57 +00:00
|
|
|
/** The footnote inset
|
2002-03-21 17:09:55 +00:00
|
|
|
|
2000-03-08 13:52:57 +00:00
|
|
|
*/
|
2008-03-05 00:21:05 +00:00
|
|
|
class InsetFoot : public InsetFootlike
|
|
|
|
{
|
2000-03-08 13:52:57 +00:00
|
|
|
public:
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
2009-11-08 15:53:21 +00:00
|
|
|
InsetFoot(Buffer *);
|
2008-03-05 00:21:05 +00:00
|
|
|
private:
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
2007-10-13 09:04:52 +00:00
|
|
|
InsetCode lyxCode() const { return FOOT_CODE; }
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
2014-11-14 13:53:11 +00:00
|
|
|
docstring layoutName() const;
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
2013-03-08 19:52:18 +00:00
|
|
|
int plaintext(odocstringstream & ods, OutputParams const & op,
|
|
|
|
size_t max_length = INT_MAX) const;
|
2007-02-15 16:07:36 +00:00
|
|
|
///
|
2008-02-27 20:43:16 +00:00
|
|
|
int docbook(odocstream &, OutputParams const &) const;
|
2007-08-13 20:29:33 +00:00
|
|
|
/// Update the counters of this inset and of its contents
|
2010-03-03 22:13:45 +00:00
|
|
|
void updateBuffer(ParIterator const &, UpdateType);
|
2008-02-11 13:06:01 +00:00
|
|
|
///
|
2015-09-27 06:05:00 +00:00
|
|
|
void addToToc(DocIterator const & di, bool output_active,
|
|
|
|
UpdateType utype) const;
|
2008-03-05 00:21:05 +00:00
|
|
|
///
|
2008-04-10 10:05:00 +00:00
|
|
|
docstring toolTip(BufferView const & bv, int x, int y) const;
|
|
|
|
///
|
2008-03-04 22:28:18 +00:00
|
|
|
Inset * clone() const { return new InsetFoot(*this); }
|
2008-04-10 10:05:00 +00:00
|
|
|
///
|
|
|
|
docstring custom_label_;
|
2014-11-14 13:53:11 +00:00
|
|
|
///
|
|
|
|
bool intitle_;
|
2000-03-08 13:52:57 +00:00
|
|
|
};
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
2000-03-08 13:52:57 +00:00
|
|
|
#endif
|