lyx_mirror/src/insets/InsetFoot.h
Richard Heck 996505c2ae This patch introduces an optional argument to Buffer::updateLabels(), so
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
2009-12-04 03:03:38 +00:00

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