read latexheader and latexfooter tags

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6499 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-03-14 10:45:12 +00:00
parent a50233d64b
commit 013af42fd6
2 changed files with 15 additions and 0 deletions

View File

@ -2,6 +2,7 @@
2003-03-14 André Pönitz <poenitz@gmx.net>
* textclass.h: prepare for environment handling, ws changes
* lyxlauout.C: read latexheader and latexfooter tags
2003-03-14 John Levon <levon@movementarian.org>

View File

@ -57,6 +57,8 @@ enum LayoutTags {
LT_LATEXPARAM,
LT_OPTARGS,
LT_LATEXTYPE,
LT_LATEXHEADER,
LT_LATEXFOOTER,
LT_LEFTMARGIN,
LT_NEED_PROTECT,
LT_NEWLINE,
@ -135,6 +137,8 @@ bool LyXLayout::Read (LyXLex & lexrc, LyXTextClass const & tclass)
{ "labelstring", LT_LABELSTRING },
{ "labelstringappendix", LT_LABELSTRING_APPENDIX },
{ "labeltype", LT_LABELTYPE },
{ "latexfooter", LT_LATEXFOOTER },
{ "latexheader", LT_LATEXHEADER },
{ "latexname", LT_LATEXNAME },
{ "latexparam", LT_LATEXPARAM },
{ "latextype", LT_LATEXTYPE },
@ -240,6 +244,16 @@ bool LyXLayout::Read (LyXLex & lexrc, LyXTextClass const & tclass)
readLatexType(lexrc);
break;
case LT_LATEXHEADER: // Latex style definition.
lexrc.next();
latexheader = lexrc.getString();
break;
case LT_LATEXFOOTER: // Latex style definition.
lexrc.next();
latexfooter = lexrc.getString();
break;
case LT_INTITLE:
intitle = lexrc.next() && lexrc.getInteger();
break;