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 * ====================================================== */
22 #include <sigc++/signal_system.h>
26 class Counter : public SigC::Object {
41 SigC::Signal0<void> onstep;
48 /** This is a class of (La)TeX type counters. The counters is in a text
49 Style and can be reset by signals emitted from a single counter.
56 void newCounter(string const & newc);
58 void newCounter(string const & newc, string const & oldc);
60 void set(string const & ctr, int val);
62 void addto(string const & ctr, int val);
64 int value(string const & ctr) const;
66 void step(string const & ctr);
67 // string refstep(string const & cou);
70 typedef std::map<string, Counter*> CounterList;
72 CounterList counterList;