mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 00:38:01 +00:00
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:
parent
a50233d64b
commit
013af42fd6
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user