mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 18:43:37 +00:00
9b530e59c2
This allows to address two main issues * \thanks does only accept one paragraph, while \footnote allows several (ticket #2666) * footnotes in titling environments were not numbered on screen. Moreover, the code reduces hardcoding of features, which is always a good thing. There are several pieces in this commit: * new numbering type \fnsymbol for counters * the Foot inset changes its layoutName() to Foot:InTitle when inside a paragraph with InTitle property. This is set when running updateBuffer. * Foot:intitle uses the \thanks command, does not allow multiple paragraphs and marks its contents as moving argument. * The InsetLayouts for Foot now have properLaTeXName/Type, so that InsetFoot::latex can be removed; further code simplification is probably possible. Fixes: #2666
57 lines
1.1 KiB
C++
57 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 layoutName() const;
|
|
///
|
|
int plaintext(odocstringstream & ods, OutputParams const & op,
|
|
size_t max_length = INT_MAX) const;
|
|
///
|
|
int docbook(odocstream &, OutputParams const &) const;
|
|
/// Update the counters of this inset and of its contents
|
|
void updateBuffer(ParIterator const &, UpdateType);
|
|
///
|
|
void addToToc(DocIterator const & di, bool output_active) const;
|
|
///
|
|
docstring toolTip(BufferView const & bv, int x, int y) const;
|
|
///
|
|
Inset * clone() const { return new InsetFoot(*this); }
|
|
///
|
|
docstring custom_label_;
|
|
///
|
|
bool intitle_;
|
|
};
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
#endif
|