parametrize SGML document header

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8142 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2003-11-27 16:52:07 +00:00
parent 3dfe7a4734
commit 9ef3f928a5
6 changed files with 29 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2003-11-27 Martin Vermeer <martin.vermeer@hut.fi>
* layouts/db_stdclass.inc:
* layouts/agu_stdclass.inc:
* layouts/linuxdoc.layout: parametrize SGML document header
2003-11-25 Martin Vermeer <martin.vermeer@hut.fi>

View File

@ -14,6 +14,9 @@ SecNumDepth 3
TocDepth 3
DefaultStyle Standard
ClassOptions
Header "<!DOCTYPE # PUBLIC &quot;-//AGU//DTD article American Geophysical Union DTD version 3.42//EN&quot; &quot;AGU-Article-3.42.dtd&quot; "
End
Style Standard
Margin Static

View File

@ -13,6 +13,9 @@ SecNumDepth 3
TocDepth 3
DefaultStyle Standard
ClassOptions
Header "<!DOCTYPE # PUBLIC &quot;-//OASIS//DTD DocBook V4.1//EN&quot;"
End
Style Standard
Margin Static

View File

@ -10,6 +10,11 @@ PageStyle Plain
OutputType linuxdoc
DefaultStyle Standard
ClassOptions
Header "<!doctype linuxdoc system"
End
Input stdcounters.inc
Input stdfloats.inc
Input numarticle.inc

View File

@ -1,4 +1,14 @@
2003-11-27 Martin Vermeer <martin.vermeer@hut.fi>
* buffer.C: parametrize SGML document header
2003-11-27 Martin Vermeer <martin.vermeer@hut.fi>
* converter.[Ch]:
* exporter.C: replace bool-valued Pdflatex() by FLAVOR-valued
getFlavor().
2003-11-27 Alfredo Braunstein <abraunst@lyx.org>
* text2.C (setFont): rework using PosIterator (no more recursive)

View File

@ -1059,7 +1059,7 @@ void Buffer::makeLinuxDocFile(string const & fname,
string top_element = tclass.latexname();
if (!body_only) {
ofs << "<!doctype linuxdoc system";
ofs << tclass.class_header();
string preamble = params().preamble;
string const name = runparams.nice ? ChangeExtension(pimpl_->filename, ".sgml")
@ -1120,8 +1120,7 @@ void Buffer::makeDocBookFile(string const & fname,
string top_element = tclass.latexname();
if (!only_body) {
ofs << "<!DOCTYPE " << top_element
<< " PUBLIC \"-//OASIS//DTD DocBook V4.1//EN\"";
ofs << subst(tclass.class_header(), "#", top_element);
string preamble = params().preamble;
string const name = runparams.nice ? ChangeExtension(pimpl_->filename, ".sgml")
@ -1146,7 +1145,7 @@ void Buffer::makeDocBookFile(string const & fname,
}
sgml::openTag(ofs, 0, false, top);
ofs << "<!-- DocBook file was created by LyX " << lyx_version
ofs << "<!-- SGML/XML file was created by LyX " << lyx_version
<< "\n See http://www.lyx.org/ for more information -->\n";
params().getLyXTextClass().counters().reset();