Re: On A4 paper and AbiWord


Subject: Re: On A4 paper and AbiWord
From: Daniel Thompson (d.thompson@gmx.net)
Date: Mon Nov 27 2000 - 09:38:21 CST


Hi again!

Blame evolution for this! I had this sitting in my draft box but it has been
sent out now so I had better write the other half!

> Hi Folks.
>
> I have been sitting on this mailing list for about two weeks now getting
> my bearings and trying to figure out exactly what adding A4 (and other
> sizes) support to AbiWord really entails.
>
> A4 support is double pronged.
>
> Firstly the obvious Page Setup dialog. The dialog itself should be
> fairly easy in GTK+ (gnumeric included a glade description of such a
> dialog) although gnumeric does have custom code to draw the preview of
> the margins.

I can easily see how to add the XP and GTK+ dialog code however I am
completely unsure about what changes (if any) need to be made to the file
format and drawing/rendering engine. Since this appears to be high on many
peoples todo list I'm tempted to leave this to people with more
experience/time.

However secondly it would be useful to provide the facility to set the
default paper size from the options menu.

There is a call in the fl_DocLayout class named _getDefaultPageSize which is
hardcoded to use Letter together with a TODO regarding added a PageSize
preference.

Firstly would implementing this facility be useful?
Secondly is it as easy as I think it is?

BTW I think its roughly like this
 - Add default page size to the preferences hash table and return it in
   _getDefaultPageSize.
 - Add XP code to set the prefence when the options dialog is closed.
 - Add code to each port directory to support changing that preference.

How does one allow the build to keep working on other platforms (I run only
unix)?

    Cheers

    Daniel
    --xx--

-- 
Daniel Thompson (Merlin) <d.thompson@gmx.net>

How many dull people does it take to change a light bulb? One.



This archive was generated by hypermail 2b25 : Mon Nov 27 2000 - 09:39:30 CST