The generic abstract factory to create Formatter objects, during the parsing of style files. More...
#include <formatterfactory.h>
Inherited by srchilite::TextStyleFormatterFactory.
Public Member Functions | |
| virtual bool | createFormatter (const string &key, const string &color, const string &bgcolor, StyleConstantsPtr styleconstants)=0 |
| Creates a formatter for the specific language element (identified by key) with the passed style parameters. | |
The generic abstract factory to create Formatter objects, during the parsing of style files.
Note that creation methods do not return a specific object, so that the implementation of where to store the Formatter objects themselves is left completely to the programmer (and does not couple the factory to a specific collection).
| virtual bool srchilite::FormatterFactory::createFormatter | ( | const string & | key, | |
| const string & | color, | |||
| const string & | bgcolor, | |||
| StyleConstantsPtr | styleconstants | |||
| ) | [pure virtual] |
Creates a formatter for the specific language element (identified by key) with the passed style parameters.
| key | the language element represented | |
| color | the color | |
| bgcolor | the background color | |
| styleconstants | additional formatting information (e.g., bold, italics, etc.) |
Implemented in srchilite::TextStyleFormatterFactory.
1.6.2