
Some thoughts on style sheets as I go through the document...
At any point, I'm going to want the 'current style' that's easily accessible. So what I'm going to need is a style object that says what the:
style number is
current style formatting options are
That'll take care of 'basedon', 'additive', 'pard', 'sectd', 'plain' and will also revert back when the current group ends.
This shouldn't be all that hard. To do this, I need an idea of what the paragraph formatting options are and the section ones, so I can easily clear them, encountering a new style should work out what to do next.
These should be implemented as style methods, as far as possible. 'basedon' is irrelevant to us, as we're going to be shown the styling anyway. 'additive' is important, because it lets us know if we should clear other formatting first ... is that right? It must be. So when we come across a style that isn't additive, presumably we nuke our current style defs with the style specified, when it additive, we just cycle through the keys.
So to implement this, I need a list of paragraph formatting commands and section formatting commands.