2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
11 * ====================================================== */
22 #include <sigc++/signal_system.h>
25 #ifdef SIGC_CXX_NAMESPACES
32 class Counter : public Object {
54 /** This is a class of (La)TeX type counters. The counters is in a text
55 Style and can be reset by signals emitted from a single counter.
62 void newCounter(string const & newc);
64 void newCounter(string const & newc, string const & oldc);
66 void set(string const & ctr, int val);
68 void addto(string const & ctr, int val);
70 int value(string const & ctr) const;
72 void step(string const & ctr);
73 // string refstep(string const & cou);
76 typedef std::map<string, Counter*> CounterList;
78 CounterList counterList;