]> git.lyx.org Git - lyx.git/commit
Fix bug 3750: this code is a kludge and should be removed when tex2lyx is
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 2 Jul 2007 16:02:41 +0000 (16:02 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 2 Jul 2007 16:02:41 +0000 (16:02 +0000)
commita6f32927ea9d05a997d41057b368b6ae60c51165
treea635e2c46a02c6569432322809053327dfd53c2a
parentca339eb1991efcab02a5f1b7f33387b35df2a416
Fix bug 3750: this code is a kludge and should be removed when tex2lyx is
updated to support format >= 257 (with InsetCaption).

* src/Layout.cpp (forCaption): new method. Returns a pointer to a newly
allocated Layout suitable for representing a caption.

* src/tex2lyx/tex2lyx.cpp (tex2lyx): allocate a captionlayout object

* src/tex2lyx/text.cpp: use the captionlayout object to recognize the
\caption command.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18962 a592a061-630c-0410-9148-cb99ea01b6c8
src/Layout.cpp
src/Layout.h
src/tex2lyx/tex2lyx.cpp
src/tex2lyx/tex2lyx.h
src/tex2lyx/text.cpp