Re: Multi-Paragraph Headers and footers?


Subject: Re: Multi-Paragraph Headers and footers?
From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Wed Mar 07 2001 - 16:24:25 CST


On Tue, 6 Mar 2001, Paul Rohr wrote:

> At 06:27 PM 3/6/01 +1100, Martin Sevior wrote:
> >I think to make further progress with fixing the various bugs associated
> >with this I will have to format the overall hdrftrSectionLayout. Since
> >this SectionLayout does not have an associated fp_Container this in turn
> >will require lots of surgury and bug squashing. I think this could
> >eventually be made to work.
>
> Maybe this is obvious, but *why* isn't there an associated fp_Container?
> Would it simplify your bug squashing to have one?

Yes, you're exactly right Paul. We independently discovered it :-) I've
just implemented a "fp_VirtualContainer" for the overall
hdrftrSectionLayout which has nops for the draw and clearscreen methods.
Thanks to everyone who told me about the right way to C++ design earlier.

I'll commit some code with a some big advances in the
editable header/footer code soon. We will have editable multi-paragraph
headers/footers in V 0.90.

>
> I must admit that I never grokked the whole shadow concept, but all the
> troubles you're running into suggest that Eric's original classes may not
> have been designed with editing in mind. You'll know you've gotten the
> refactoring right when the design makes it easy to do everything you want.

Yes. I think you're right. I guess Eric had not got around to doing this
before he left to run SourceGear. I've had to write a lot of code. Still
the overall idea of shadwo sections for headers/footers works with a bit
of shoehoring I think.

>
> Conceptually, headers and footers should just be another kind of container
> that the layout algorithms use when constructing pages. Their contents
> don't reflow to other pages -- instead, they expand to allow their contents
> to fit, stealing space from the body of the page.

I don't know if I will do this. I might just clip them and let the user
change the margins via pagesetup. Actually we should put some handles on
the left ruler so the user can interactively change margins like the top
ruler.

Anyone interested?

> >So what does you think? Is it worth the time and potential instablities to
> >do multi-paragraph headers and footers?
>
> Yes. That's what people expect.
>

I agree and it wasn't too bad to do.

Cheers

Martin



This archive was generated by hypermail 2b25 : Wed Mar 07 2001 - 16:24:33 CST