]> git.lyx.org Git - lyx.git/commit
Bug: 1025
authorLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 8 Oct 2003 17:44:32 +0000 (17:44 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 8 Oct 2003 17:44:32 +0000 (17:44 +0000)
commitfc1437e74ea488d6a70eb846eb9bef7e84c8e82f
treec192160314d09685dc7bfdddd4d58a8776daabff
parent49d09f876fc5ab001d5dfd40cecbc2eaf5ca30be
Bug: 1025

2003-10-08  Lars Gullik Bj�nnes  <larsbj@gullik.net>

* text2.C (incrementItemDepth): new function, use a backtracking
algorithm to discover the correct item depth.
(resetEnumCounterIfNeeded): new function, use a backtracking
algorithm to discover if counter reset is needed.
(setCounter): use them. Simplify a bit. Add different labels for
different item depths for itemize.

* paragraph.C (Paragraph): remove initialization of enumdepth
(operator=): ditto

* paragraph.h: get rid of enumdepth, and use itemdepth both for
enumerate and itemize. Change the type of itemdepth to signed char.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7882 a592a061-630c-0410-9148-cb99ea01b6c8
po/POTFILES.in
src/ChangeLog
src/paragraph.C
src/paragraph.h
src/text2.C