This was forgotten

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8143 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2003-11-27 16:57:12 +00:00
parent 9ef3f928a5
commit a9cd48f40e
3 changed files with 18 additions and 1 deletions

View File

@ -1,7 +1,8 @@
2003-11-27 Martin Vermeer <martin.vermeer@hut.fi>
* buffer.C: parametrize SGML document header
* buffer.C:
* lyxtextclass.[Ch]: parametrize SGML document header
2003-11-27 Martin Vermeer <martin.vermeer@hut.fi>

View File

@ -470,6 +470,7 @@ enum ClassOptionsTags {
CO_FONTSIZE = 1,
CO_PAGESTYLE,
CO_OTHER,
CO_HEADER,
CO_END
};
@ -479,6 +480,7 @@ void LyXTextClass::readClassOptions(LyXLex & lexrc)
keyword_item classOptionsTags[] = {
{"end", CO_END },
{"fontsize", CO_FONTSIZE },
{"header", CO_HEADER },
{"other", CO_OTHER },
{"pagestyle", CO_PAGESTYLE }
};
@ -506,6 +508,10 @@ void LyXTextClass::readClassOptions(LyXLex & lexrc)
lexrc.next();
options_ = lexrc.getString();
break;
case CO_HEADER:
lexrc.next();
class_header_ = subst(lexrc.getString(), "&quot;", "\"");
break;
case CO_END:
getout = true;
break;
@ -926,6 +932,12 @@ string const & LyXTextClass::options() const
}
string const & LyXTextClass::class_header() const
{
return class_header_;
}
string const & LyXTextClass::pagestyle() const
{
return pagestyle_;

View File

@ -111,6 +111,8 @@ public:
///
std::string const & options() const;
///
std::string const & class_header() const;
///
std::string const & pagestyle() const;
///
std::string const & preamble() const;
@ -186,6 +188,8 @@ private:
///
std::string pagestyle_;
///
std::string class_header_;
///
std::string defaultlayout_;
/// preamble text to support layout styles
std::string preamble_;