7 #ifndef TEXTSTYLEFORMATTERFACTORY_H_
8 #define TEXTSTYLEFORMATTERFACTORY_H_
12 #include <boost/shared_ptr.hpp>
14 #include "formatterfactory.h"
15 #include "textstyles.h"
16 #include "textstyleformattercollection.h"
24 class FormatterManager;
25 class TextStyleFormatter;
bool createMissingFormatter(const string &key1, const string &key2)
Creates a formatter for key1, if not already present, that has the same style as the formatter for ke...
Definition: textstyleformatterfactory.cpp:126
TextStylesPtr textStyles
contains all the styles for formatting
Definition: textstyleformatterfactory.h:32
boost::shared_ptr< TextStyles > TextStylesPtr
shared pointer
Definition: textstyles.h:77
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
TextStyleFormatterCollection formatterCollection
all the formatters that are created by this factory
Definition: textstyleformatterfactory.h:44
void addDefaultFormatter()
Adds the formatter for the normal style if not already present.
Definition: textstyleformatterfactory.cpp:144
boost::shared_ptr< StyleConstants > StyleConstantsPtr
shared pointer for StyleConstants
Definition: formatterfactory.h:32
CTagsFormatter * ctagsFormatter
for ctgas reference generation (can be null)
Definition: textstyleformatterfactory.h:38
PreFormatter * preformatter
to preformat text
Definition: textstyleformatterfactory.h:35
std::list< TextStyleFormatter * > TextStyleFormatterCollection
Collection of TextStyleFormatter objects.
Definition: textstyleformattercollection.h:8
FormatterManager * formatterManager
the formatter manager (associating a formatter to an element)
Definition: textstyleformatterfactory.h:41
Generates TextStyleFormatters based on TextStyles.
Definition: textstyleformatterfactory.h:30
string preprocessColor(const string &color)
Check whether the color must be translated with the color map or left as it is (in that case...
Definition: textstyleformatterfactory.cpp:119
bool createFormatter(const string &key, const string &color, const string &bgcolor, StyleConstantsPtr styleconstants)
Creates a formatter for the specific language element (identified by key) with the passed style param...
Definition: textstyleformatterfactory.cpp:30