+2002-09-06 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * text2.C (init): update counters after init
+ (insertParagraph): no need to set counter on idividual paragraphs.
+ (setCounter): access the counters object in the textclass object
+ on in the buffer object.
+ (updateCounters): ditto
+
+ * lyxtextclass.C: include counters.h, add variable ctrs_ as
+ shared_ptr<Counters> to avoid loading counters.h in all
+ compilation units.
+ (LyXTextClass): initialize ctrs_
+ (TextClassTags): add TC_COUNTER, and ...
+ (Read): use it here.
+ (CounterTags): new tags
+ (readCounter): new function
+ (counters): new funtion
+ (defaultLayoutName): return a const reference
+
+ * counters.C (Counters): remove contructor
+ (newCounter): remove a couple of unneeded statements.
+ (newCounter): simplify a bit.
+ (numberLabel): some small formatting changes.
+
+ * buffer.[Ch]: remove all traces of counters, move the Counters
+ object to the LyXTextClass.
+