mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
996505c2ae
as to allow us to call the routine when we are preparing for output and so to do certain things we might not want to do every time. This is an abuse of updateLabels(), in a way, but updateLabels() long ago became the general recurse-through-the-Buffer routine, and to implement the sort of thing I want to do here in validate(), say, much of the code in updateLabels()---in particular, the counter-update code---would have to be duplicated. So I believe this is the best, and easiest, way to go. Actual use of the new argument will follow. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32318 a592a061-630c-0410-9148-cb99ea01b6c8
56 lines
1.1 KiB
C++
56 lines
1.1 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file InsetFoot.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Jürgen Vigna
|
|
* \author Lars Gullik Bjønnes
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef INSETFOOT_H
|
|
#define INSETFOOT_H
|
|
|
|
#include "InsetFootlike.h"
|
|
|
|
|
|
namespace lyx {
|
|
|
|
/** The footnote inset
|
|
|
|
*/
|
|
class InsetFoot : public InsetFootlike
|
|
{
|
|
public:
|
|
///
|
|
InsetFoot(Buffer *);
|
|
private:
|
|
///
|
|
InsetCode lyxCode() const { return FOOT_CODE; }
|
|
///
|
|
docstring name() const { return from_ascii("Foot"); }
|
|
///
|
|
int latex(odocstream &, OutputParams const &) const;
|
|
///
|
|
int plaintext(odocstream &, OutputParams const &) const;
|
|
///
|
|
int docbook(odocstream &, OutputParams const &) const;
|
|
/// Update the counters of this inset and of its contents
|
|
void updateLabels(ParIterator const &, bool);
|
|
///
|
|
void addToToc(DocIterator const &);
|
|
///
|
|
docstring toolTip(BufferView const & bv, int x, int y) const;
|
|
///
|
|
Inset * clone() const { return new InsetFoot(*this); }
|
|
///
|
|
docstring custom_label_;
|
|
};
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
#endif
|