2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team.
11 * ====================================================== */
41 string master() const;
43 void setMaster(string const & m);
53 /** This is a class of (La)TeX type counters. The counters is in a text
54 Style and can be reset by signals emitted from a single counter.
63 void newCounter(string const & newc);
65 void newCounter(string const & newc, string const & oldc);
67 void set(string const & ctr, int val);
69 void addto(string const & ctr, int val);
71 int value(string const & ctr) const;
73 void step(string const & ctr);
75 void reset(string const & match = "");
77 void copy(Counters & from, Counters & to, string const & match = "");
79 string labelItem(string const & ctr,
80 string const & labeltype,
81 string const & langtype = "latin",
84 string numberLabel(string const & ctr,
85 string const & labeltype,
86 string const & langtype = "latin",
89 std::vector<string> enums, sects;
93 typedef std::map<string, Counter> CounterList;
95 CounterList counterList;