Inheritance diagram for highlight::HtmlGenerator:
Public Member Functions | |
virtual | ~HtmlGenerator () |
virtual void | insertLineNumber (bool insertNewLine=true) |
string | getHeader (const string &title) |
void | printBody () |
string | getFooter () |
bool | printExternalStyle (const string &outFile) |
bool | printIndexFile (const vector< string > &fileList, const string &outPath) |
void | setAttachAnchors (bool b) |
void | setOrderedList (bool b) |
Protected Member Functions | |
string | getStyleDefinition () |
string | readUserStyleDef () |
virtual string | getHeaderStart (const string &title) |
string | getGeneratorComment () |
Protected Attributes | |
string | brTag |
string | hrTag |
string | idAttr |
string | fileSuffix |
string | styleDefinitionCache |
bool | orderedList |
It contains information about the resulting document structure (document header and footer), the colour system, white space handling and text formatting attributes.
virtual highlight::HtmlGenerator::~HtmlGenerator | ( | ) | [inline, virtual] |
Destructor
void highlight::HtmlGenerator::insertLineNumber | ( | bool | insertNewLine = true |
) | [virtual] |
insert line number in the beginning of the new line
Reimplemented from highlight::CodeGenerator.
string highlight::HtmlGenerator::getHeader | ( | const string & | title | ) | [virtual] |
void highlight::HtmlGenerator::printBody | ( | ) | [virtual] |
Print document body
Implements highlight::CodeGenerator.
string highlight::HtmlGenerator::getFooter | ( | ) | [virtual] |
Print document footer
Implements highlight::CodeGenerator.
bool highlight::HtmlGenerator::printExternalStyle | ( | const string & | outFile | ) |
Print style definitions to external file
outFile | Path of external style definition |
Reimplemented from highlight::CodeGenerator.
bool highlight::HtmlGenerator::printIndexFile | ( | const vector< string > & | fileList, | |
const string & | outPath | |||
) | [virtual] |
Print index file with all input file names
fileList | List of output file names | |
outPath | Output path |
Reimplemented from highlight::CodeGenerator.
void highlight::HtmlGenerator::setAttachAnchors | ( | bool | b | ) | [inline] |
b | set true if anchors should be attached to line numbers |
void highlight::HtmlGenerator::setOrderedList | ( | bool | b | ) | [inline] |
b | set true line numbers should be replaced by list items |
string highlight::HtmlGenerator::getStyleDefinition | ( | ) | [protected, virtual] |
string highlight::HtmlGenerator::readUserStyleDef | ( | ) | [protected] |
string highlight::HtmlGenerator::getHeaderStart | ( | const string & | title | ) | [protected, virtual] |
title | Dociment title |
string highlight::HtmlGenerator::brTag [protected] |
some strings which are similar in HTML and XHTML
string highlight::HtmlGenerator::styleDefinitionCache [protected] |
caches style definition
bool highlight::HtmlGenerator::orderedList [protected] |
test if line count should be replaced by ordered list