Have you ever been frustrated that when opening the Toc, you have to
look for the section where the cursor is?
This patch fixes this for the qt4 version (the qt2 version should not be
complicated to do). The non-qt4 changes are straight forward, OK to apply?
IMHO, the toc interface is very inefficient. We should transform that to
a proper class that contains the TocList. Later, I think the toc and
layout labelling support function should be merged in a single class.
Log:
* Toc.[Ch]: new function getCurrentTocItem()
* ControlToc.[Ch]: new function getCurrentTocItem()
* QToc.[Ch]: new function getCurrentIndex()
* QTocDialog.C
- QTocDialog::update() calls QToc::getCurrentIndex()