Stage 8: Paragraph styles and named styles

Paragraph styles

In stage 3 of SimplyHTML font manipulation was added to the application. Font settings are applied to individual parts of a document down to single characters with this functionality. With paragraph styles such settings can be applied to one or more paragraphs in one step too. As well paragraph styles allow to manipulate additional attributes such as alignment or margins.

Named styles

Named styles in turn are an elegant way to define styles that are frequently used and store them in a separate style sheet. Usage of style sheets was already part of application SimplyHTML since the first stage however this stage finally adds functionality to use style sheets to their original purpose.

Contents of this stage

Implementation of both paragraph styles and named styles is the subject of this stage and explained in detail in the follwoing chapters

- Styles in HTML and CSS
- Parts needed to implement style manipulation
- Approach to work with paragraph and named styles
- Class ParaStyleDialog
- Class StyleSelector
- Interaction between style components and style sheet
- Adding the new style components to the GUI
- Style sheet storage