Re: Table Of Contents


Subject: Re: Table Of Contents
From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Thu Aug 10 2000 - 18:22:43 CDT


On Thu, 10 Aug 2000, Yohanes Nugroho wrote:

> On Sat, 22 Jul 2000, Martin Sevior wrote:
>
> > Just a thought, have you considered doing the "Page Setup" dialog? It
> > might be a bit easier and will give you some practice on how the dialog
> > system works.
>
>
> I've tried to make the page setup dialog, but I found it not as easy
> as it seems. I've joined this mailing list for about a month and tried
> real hard to understand the abiword source, but there are a lot of things
> that i haven't understand yet.
>
> I've finished creating the dialog box, but i haven't implemented the any
> of the functionality. I want to know how can I change the margins
> for the whole document for "apply to whole document" option, for the "apply
> from this point forward" option I think I can copy the code from the
> top ruler. And how can I set the option only for odd/even pages only so I
> can implement the mirror margins functionality.
>

Thanks very much for your work so far. I hope we can can get it finished.
I can well understand your difficulties. I've been coding in abiword for 7
months and I'm just starting to understand lots of things I thought were
obscure originally. There's no cure but to work, code and read. Its hard
work but I've found it extremely rewarding. I also look forward to when my
work is used by 100 million people :-) You might want to browse
Sam's collections of documents at:

http://www.abisource.com/sam

I can not tell you the answer as I have not looked at that code yet. It
may not be possible to change the margins "from this point on", I don't
know. However I suggest you look through the the

abi/src/text/fmt/xp/fl_DocLayout.cpp,h

code to see what member variables are present to describe the page
margins. Also check the

abi/src/wp/ap/xp/ap_Prefs.cpp

code to see if there are predefined preferences for setting margins.

You might also browse through the:

abi/src/text/ptbl/xp/*.cpp,*.h

directory to find out what Piece Table Properties and attributes (if
any) are used to describe the page margins.

Finally Bruce Pearson appears to have taken an interest in the margin
code. You might want to check with him about his intentions.

Good Luck!

Martin



This archive was generated by hypermail 2b25 : Thu Aug 10 2000 - 18:23:09 CDT