]> git.lyx.org Git - features.git/commit
This patch introduces an optional argument to Buffer::updateLabels(), so
authorRichard Heck <rgheck@comcast.net>
Fri, 4 Dec 2009 03:03:38 +0000 (03:03 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 4 Dec 2009 03:03:38 +0000 (03:03 +0000)
commit996505c2ae981187d34580633fca410972c2493d
treee3793ecef2cbfccf5cbf0f5ee76398bc8bd1d32e
parent55b61a0c9f20dac497f3f9967440212a18b20d1a
This patch introduces an optional argument to Buffer::updateLabels(), so
as to allow us to call the routine when we are preparing for output and
so to do certain things we might not want to do every time.

This is an abuse of updateLabels(), in a way, but updateLabels() long
ago became the general recurse-through-the-Buffer routine, and to
implement the sort of thing I want to do here in validate(), say, much
of the code in updateLabels()---in particular, the counter-update
code---would have to be duplicated. So I believe this is the best, and
easiest, way to go.

Actual use of the new argument will follow.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32318 a592a061-630c-0410-9148-cb99ea01b6c8
29 files changed:
src/Buffer.cpp
src/Buffer.h
src/insets/Inset.h
src/insets/InsetBibitem.cpp
src/insets/InsetBibitem.h
src/insets/InsetCaption.cpp
src/insets/InsetCaption.h
src/insets/InsetCitation.cpp
src/insets/InsetCitation.h
src/insets/InsetFloat.cpp
src/insets/InsetFloat.h
src/insets/InsetFoot.cpp
src/insets/InsetFoot.h
src/insets/InsetInclude.cpp
src/insets/InsetInclude.h
src/insets/InsetLabel.cpp
src/insets/InsetLabel.h
src/insets/InsetListings.cpp
src/insets/InsetListings.h
src/insets/InsetRef.cpp
src/insets/InsetRef.h
src/insets/InsetTabular.cpp
src/insets/InsetTabular.h
src/insets/InsetText.cpp
src/insets/InsetText.h
src/insets/InsetWrap.cpp
src/insets/InsetWrap.h
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathHull.h