Implementation of TextFormatterFactory to create Qt3 TextFormatter objects to format text in a TextEdit.
More...
#include <Qt3TextFormatterFactory.h>
|
virtual bool | createFormatter (const string &key, const string &color, const string &bgcolor, srchilite::StyleConstantsPtr styleconstants) |
| Creates a formatter for the specific language element (identified by key) with the passed style parameters. More...
|
|
bool | hasFormatter (const string &key) const |
| Checks whether a formatter for the given key is already present. More...
|
|
TextFormatterPtr | getFormatter (const string &key) const |
| Returns the formatter for the given key. More...
|
|
void | addFormatter (const string &key, TextFormatterPtr formatter) |
| Adds the formatter for the given key. More...
|
|
const TextFormatterMap & | getTextFormatterMap () const |
|
bool | isDefaultToMonospace () const |
|
void | setDefaultToMonospace (bool d) |
| Whether the created formatters should use monospace font by default if nothing is specified about the font family. More...
|
|
|
static QtColorMap | colorMap |
| the color map for source-highlight colors into RGB #RRGGBB values
|
|
|
TextFormatterMap | textFormatterMap |
|
bool | defaultToMonospace |
| whether to default font to monospace (default true)
|
|
Implementation of TextFormatterFactory to create Qt3 TextFormatter objects to format text in a TextEdit.
void srchiliteqt::TextFormatterFactory::addFormatter |
( |
const string & |
key, |
|
|
TextFormatterPtr |
formatter |
|
) |
| |
|
inherited |
Adds the formatter for the given key.
- Parameters
-
bool srchiliteqt::Qt3TextFormatterFactory::createFormatter |
( |
const string & |
key, |
|
|
const string & |
color, |
|
|
const string & |
bgcolor, |
|
|
srchilite::StyleConstantsPtr |
styleconstants |
|
) |
| |
|
virtual |
Creates a formatter for the specific language element (identified by key) with the passed style parameters.
- Parameters
-
key | |
color | |
bgcolor | |
styleconstants | |
- Returns
- false if a formatter for the specific key is already present
TextFormatterPtr srchiliteqt::TextFormatterFactory::getFormatter |
( |
const string & |
key | ) |
const |
|
inherited |
Returns the formatter for the given key.
- Parameters
-
- Returns
- the formatter for the given key is already present
const TextFormatterMap& srchiliteqt::TextFormatterFactory::getTextFormatterMap |
( |
| ) |
const |
|
inlineinherited |
- Returns
- the TextFormatterMap
bool srchiliteqt::TextFormatterFactory::hasFormatter |
( |
const string & |
key | ) |
const |
|
inherited |
Checks whether a formatter for the given key is already present.
If not found, then it returns an empty TextFormatterPtr
- Parameters
-
- Returns
- whether a formatter for the given key is already present
void srchiliteqt::TextFormatterFactory::setDefaultToMonospace |
( |
bool |
d | ) |
|
|
inlineinherited |
Whether the created formatters should use monospace font by default if nothing is specified about the font family.
- Parameters
-
The documentation for this class was generated from the following files: