Implement lists...though there are problems.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29977 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-06-06 01:27:06 +00:00
parent da3668dd98
commit 9001dddf80

View File

@ -235,7 +235,7 @@ ParagraphList::const_iterator makeEnvironment(Buffer const & buf,
switch (style.latextype) {
case LATEX_ENVIRONMENT:
// case LATEX_LIST_ENVIRONMENT??
case LATEX_LIST_ENVIRONMENT:
case LATEX_ITEM_ENVIRONMENT: {
// There are two possiblities in this case.
// One is that we are still in the environment in which we
@ -352,6 +352,7 @@ void xhtmlParagraphs(ParagraphList const & paragraphs,
ParagraphList::const_iterator pend = paragraphs.end();
while (par != pend) {
LYXERR0(par->id());
Layout const & style = par->layout();
ParagraphList::const_iterator lastpar = par;
ParagraphList::const_iterator send;
@ -365,6 +366,7 @@ void xhtmlParagraphs(ParagraphList const & paragraphs,
break;
}
case LATEX_ENVIRONMENT:
case LATEX_LIST_ENVIRONMENT:
case LATEX_ITEM_ENVIRONMENT: {
send = searchEnvironment(par, pend);
par = makeEnvironment(buf, os, runparams, paragraphs, par,send);
@ -374,9 +376,12 @@ void xhtmlParagraphs(ParagraphList const & paragraphs,
send = searchParagraph(par, pend);
par = makeParagraphs(buf, os, runparams, paragraphs, par,send);
break;
default:
case LATEX_BIB_ENVIRONMENT:
// FIXME
++par;
break;
}
// FIXME??
// makeEnvironment may process more than one paragraphs and bypass pend
if (distance(lastpar, par) >= distance(lastpar, pend))
break;