]> git.lyx.org Git - features.git/commit
This commit creates a error_lists map member inside the Buffer class.
authorAbdelrazak Younes <younes@lyx.org>
Sun, 13 Aug 2006 16:16:43 +0000 (16:16 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 13 Aug 2006 16:16:43 +0000 (16:16 +0000)
commitc5a4f61f3377997a4b793481bd30a1a8e0627b86
treecc8e077b51e425ab7ab2efbd2ae7a3a138fd746f
parentf01c7f59838fca1b75c1f641946b93ef68c170ea
This commit creates a error_lists map member inside the Buffer class.
I had no choice but to use string for the map key. This is
because the only information that could be passed to the controller is a
string.

With this new architecture, persistent error lists are now possible.

* Buffer
  - errorList_, addError(),  : deleted
  - std::map<std::string, ErrorList> errorLists_ : new member
  - errorList(std::string const & type): associated accessors

* buffer_funcs.C
  - bufferErrors(Buffer const & buf, TeXErrors const & terr): now needs a third errorList argument
  - bufferErrors(Buffer const & buf, ErrorList const & el): deleted.

* Converter
  - convert(): now needs an ErrorList argument instead of filling the Buffer errorList member directly.
  - runLaTeX(): ditto
  - scanLog(): ditto

* CutAndPaste.C
  - pasteParagraphList(): ditto
  - pasteSelection(): ditto

* lyxtext.h/text.C
  - readParagraph(): ditto
  - LyXText::read(): ditto

* importer:
  - Importer::Import(): ditto

* BufferView_pimpl.C
  - loadLyXFile(): send the Buffer::errors() signal instead of calling LyXView::showErrorList() directly.

* exporter.C
  - Export(): send the Buffer::errors() signal instead of calling LyXView::showErrorList() directly in lyxfunc.C

* ControlErrorList.C
  - initialiseParams(): translation operation transfered here from LyXView::showErrorList().

* LyXView.C
  - LoadLyXFile(): add a showErrorList("Parse") call.
  - showErrorList(): simplified due to code transferred to the ControlErrorList.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14652 a592a061-630c-0410-9148-cb99ea01b6c8
22 files changed:
src/BufferView_pimpl.C
src/CutAndPaste.C
src/CutAndPaste.h
src/buffer.C
src/buffer.h
src/buffer_funcs.C
src/buffer_funcs.h
src/converter.C
src/converter.h
src/exporter.C
src/frontends/LyXView.C
src/frontends/controllers/ControlErrorList.C
src/importer.C
src/importer.h
src/insets/ExternalSupport.C
src/insets/insetgraphics.C
src/insets/insettext.C
src/lyx_main.C
src/lyxfunc.C
src/lyxtext.h
src/text.C
src/text3.C