Subject: Re: pd_Document question
From: Hubert Figuiere (hfiguiere@teaser.fr)
Date: Tue Jun 05 2001 - 10:04:51 CDT
According to Dom Lachowicz <dominicl@seas.upenn.edu>:
>
> > The goal: insert the header or footer before the current section because
> > in
> > RTF the header and footer are defined within the section (which at this
> > time
> > have been append to the document).
>
> I don't think that you want to do exactly this, but there might be alternatives:
>
> 1) Add a header & footer tag to every created section. If no header/footer is
> defined, write in a blank header/footer section, else create the header/footer
> from the existing data (cache it maybe). Write out the header/footer after the
> current section.
>
> <section header="header1" footer="footer1">
> </section>
> <section name="header1">
> <p>foo bar</p>
> </section>
> <section name="footer1">
> <p/>
> </section>
The problem with this is that I do have to postpone the \header or \footer
group parsing which is not that easy given the current RTF importer
structure. I know to stuff RTF code to a buffer, but I'm stuck with it. I
considered using pasteFromBuffer, but I can't find a way to make it work as
I don't have a document position.
That's why I willing to look ahead the pd_Document and place the header
where it should be.
The current state is that each section get the correct header / footer (base
on their ID), but the header / footer do not get added to the document yet.
> 2) Use something like what fv_View does to get the current section & add a
> header/footer to it.
>
> create section 'a'
> create footer '1'
> create header '1'
>
> select section 'a'
> add the header & footer rules
I'll have a look at this, but I'm not sure I have a fv_View available at
this stage.
Hub
This archive was generated by hypermail 2b25 : Tue Jun 05 2001 - 10:05:09 CDT