mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
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:
parent
9ef3f928a5
commit
a9cd48f40e
@ -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>
|
||||
|
||||
|
@ -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(), """, "\"");
|
||||
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_;
|
||||
|
@ -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_;
|
||||
|
Loading…
Reference in New Issue
Block a user