mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-29 15:26:05 +00:00
684d27c0fb
This inset allows counters to be set, reset, saved, restored, etc, both in the LyX GUI and in the output; optionally, the effect can be limited to the GUI. Of course, LaTeX provides means for doing all of these things, so they could previously be done with ERT, as far as the output is concerned. But there was no mechanism for manipulating counters in the GUI and none for other output formats.
34 lines
780 B
C++
34 lines
780 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file counter_reps.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Lars Gullik Bjønnes
|
|
* \author Richard Kimberly Heck (roman numerals)
|
|
* \author Jean-Marc Lasgouttes
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*
|
|
* A collection of helper functions to convert counters to different
|
|
* formats.
|
|
*/
|
|
|
|
#ifndef COUNTER_REPS_H
|
|
#define COUNTER_REPS_H
|
|
|
|
#include "support/strfwd.h"
|
|
|
|
namespace lyx {
|
|
|
|
char loweralphaCounter(int const n);
|
|
char alphaCounter(int const n);
|
|
char hebrewCounter(int const n);
|
|
docstring const romanCounter(int const n);
|
|
docstring const lowerromanCounter(int const n);
|
|
docstring const fnsymbolCounter(int const n);
|
|
|
|
} // namespace lyx
|
|
|
|
#endif
|