]> git.lyx.org Git - features.git/commit
* Lazy MathData to avoid unneeded interpretation of macro definitions
authorStefan Schimanski <sts@lyx.org>
Fri, 21 Dec 2007 20:42:46 +0000 (20:42 +0000)
committerStefan Schimanski <sts@lyx.org>
Fri, 21 Dec 2007 20:42:46 +0000 (20:42 +0000)
commit36dbec45069bf3d9db923200835e44f44d904eb8
treee5b113662b7368305e654c3f972e700986b2b81c
parent95146d3cf911230ee6c810e22d0243f83ce977a3
* Lazy MathData to avoid unneeded interpretation of macro definitions
* DocIterator as MacroPosition
* Iterative search for macro in scope until a visible one is found.
This include the ability to resolve macro inside nested text insets.
* Speed up macro lookups by factor 2: only getMacro(name) call, no
further hasMacro(name) call before
* Both way child/master support
* Correct macro scope for multi-paragraph environments
* Correct macro scope for multi-depth-paragraphs
* Buffer::updateMacros made const
* Update macros when loaded (of master and child)
* Do not remove too many braces when unfolding a macro. This could
lead to a data loss because the relationship between arguments of
macros can be mixed up if nested macros are unfold at once.
* Reduce dependencies to MetricsInfo in MathMacro
* Update macros when needed. Normally it's done just before doing
metrics. But in cases without a brace around some constructs (like
\left(bla\right)) there is some help needed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22241 a592a061-630c-0410-9148-cb99ea01b6c8
43 files changed:
src/Buffer.cpp
src/Buffer.h
src/BufferView.cpp
src/DocIterator.cpp
src/DocIterator.h
src/LyXFunc.cpp
src/Paragraph.cpp
src/Paragraph.h
src/Text.cpp
src/Text.h
src/Text3.cpp
src/TextMetrics.cpp
src/buffer_funcs.cpp
src/insets/InsetBox.cpp
src/insets/InsetBox.h
src/insets/InsetBranch.cpp
src/insets/InsetBranch.h
src/insets/InsetCaption.cpp
src/insets/InsetCollapsable.cpp
src/insets/InsetCollapsable.h
src/insets/InsetFloat.h
src/insets/InsetFootlike.h
src/insets/InsetInclude.cpp
src/insets/InsetInclude.h
src/insets/InsetListings.h
src/insets/InsetNote.cpp
src/insets/InsetNote.h
src/insets/InsetTabular.cpp
src/insets/InsetTabular.h
src/insets/InsetText.h
src/insets/InsetTheorem.h
src/insets/InsetWrap.h
src/lyxfind.cpp
src/mathed/InsetMathNest.cpp
src/mathed/MacroTable.cpp
src/mathed/MacroTable.h
src/mathed/MathData.cpp
src/mathed/MathData.h
src/mathed/MathMacro.cpp
src/mathed/MathMacro.h
src/mathed/MathMacroTemplate.cpp
src/mathed/MathMacroTemplate.h
src/mathed/MathParser.cpp