On Thu, Nov 27, 2003 at 07:30:03AM +0000, Jose' Matos spake thusly:
 
> On Wednesday 26 November 2003 20:18, Martin Vermeer wrote:
> > On Wed, Nov 26, 2003 at 04:01:59PM +0000, Jose' Matos spake thusly:
> > > > Patch attached.
> > >
> > >   That is perfect. :-)
> > >   As I have told you linuxdoc can be changed to use the same scheme, that
> > > will be easy to change. :-)
> >
> > In principle. Doing so now would break all insets that are different
> > for linuxdoc and docbook (and that's most of them!)
> 
>   Hold on, not so fast. ;-)
>   I was talking about linuxdoc using class header. :=)

Ah.

Yes, near-trivial. Like attached. Shall I do it?
 
> > - Martin
> 
> -- 
> José Abílio
 
- Martin 

Index: src/buffer.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/buffer.C,v
retrieving revision 1.543
diff -u -p -r1.543 buffer.C
--- src/buffer.C        25 Nov 2003 17:23:32 -0000      1.543
+++ src/buffer.C        27 Nov 2003 09:07:00 -0000
@@ -1059,7 +1059,7 @@ void Buffer::makeLinuxDocFile(string con
        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")
Index: lib/layouts/linuxdoc.layout
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/layouts/linuxdoc.layout,v
retrieving revision 1.13
diff -u -p -r1.13 linuxdoc.layout
--- lib/layouts/linuxdoc.layout 13 Oct 2003 09:50:10 -0000      1.13
+++ lib/layouts/linuxdoc.layout 27 Nov 2003 09:07:00 -0000
@@ -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

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to