]> git.lyx.org Git - features.git/commit
* TocBackend.[Ch]: new files defining class TocBackend. This class contains adapted...
authorAbdelrazak Younes <younes@lyx.org>
Sat, 22 Apr 2006 18:48:28 +0000 (18:48 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 22 Apr 2006 18:48:28 +0000 (18:48 +0000)
commit8c0bd3a77b521f356a406ffef056e518869f19bc
tree1f72f07d07e81105133296fa8b9e501682e5d97e
parent39de58c7a755c47ff98b259500ecefcc951cfe83
* TocBackend.[Ch]: new files defining class TocBackend. This class contains adapted code from former toc.C

* toc.[Ch]:
    - rewritten to take advantage of new TocBackend class. The toc
    cache is implemented as a static variable:
    static map<Buffer const *, lyx::TocBackend> toc_backend_;

* buffer_funcs.C:
    updateLabels(Buffer const & buf) now calls
    "lyx::toc::updateToc(buf);"

* pariterator.h: added default constructor
    ParConstIterator(): DocIterator() {}

* insetfloat.C: added pit parameter to TocItem construction

* insetwrap.C: added pit parameter to TocItem construction

* MenuBackend.C: use a const ref instead of a copy of TocList

* ControlToc.[Ch]: optimisation of the API by using const reference instead of copy.

* qt4/TocPanel.[Ch]:
    - optimisation of the API by using const reference instead of
    copy
    - directly use of TocBackend::TocIterator instead of identification by paragraph contents.

* qt4/QToc.C:
    - optimisation of the API by using const reference instead of
    copy
    - makes use of TocBackend::Item::uid()

* qt2/QToc.C:
    - use TocItem::depth() and TocItem::str() instead of public member access.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13713 a592a061-630c-0410-9148-cb99ea01b6c8
19 files changed:
src/Makefile.am
src/MenuBackend.C
src/TocBackend.C [new file with mode: 0644]
src/TocBackend.h [new file with mode: 0644]
src/buffer_funcs.C
src/frontends/controllers/ControlToc.C
src/frontends/controllers/ControlToc.h
src/frontends/qt2/QToc.C
src/frontends/qt4/QToc.C
src/frontends/qt4/QToc.h
src/frontends/qt4/QTocDialog.C
src/frontends/qt4/QTocDialog.h
src/frontends/qt4/TocModel.C
src/frontends/qt4/TocModel.h
src/insets/insetfloat.C
src/insets/insetwrap.C
src/pariterator.h
src/toc.C
src/toc.h