Public Member Functions | |
| void | setWrap (bool wrap) |
| void | setReplaceTabs (bool replTabs) |
| bool | hasMoreLines () |
| void | setLine (const std::string &newline) |
| std::string | getNextLine () |
| bool | indentCode () |
| void | setWrapLineLength (unsigned int maxlength) |
| void | setWrapIndentBraces (bool indentAfterOpenBraces=true) |
| void | setNumberSpaces (unsigned int num) |
| bool | isEnabled () |
| void | reset () |
| bool | isWrappedLine (int lineNumber) |
| std::string highlight::PreFormatter::getNextLine | ( | ) |
The method will indent function calls and statements
| bool highlight::PreFormatter::hasMoreLines | ( | ) |
| bool highlight::PreFormatter::indentCode | ( | ) |
| bool highlight::PreFormatter::isEnabled | ( | ) | [inline] |
| bool highlight::PreFormatter::isWrappedLine | ( | int | lineNumber | ) | [inline] |
| lineNumber | line number |
| void highlight::PreFormatter::reset | ( | ) | [inline] |
reset preformatting state to use the object with new input data
| void highlight::PreFormatter::setLine | ( | const std::string & | newline | ) |
Sets new line to be wrapped
| newline | New line |
| void highlight::PreFormatter::setNumberSpaces | ( | unsigned int | num | ) |
Number of spaces
| num | number of spaces which replace a tab |
Referenced by highlight::CodeGenerator::setPreformatting().
| void highlight::PreFormatter::setReplaceTabs | ( | bool | replTabs | ) | [inline] |
Replace tabs by spaces
| replTabs | set to true if tabs should be replaced by spaces |
Referenced by highlight::CodeGenerator::setPreformatting().
| void highlight::PreFormatter::setWrap | ( | bool | wrap | ) | [inline] |
Set wrapping mode
| wrap | set to true if long lines should be wrapped |
Referenced by highlight::CodeGenerator::setPreformatting().
| void highlight::PreFormatter::setWrapIndentBraces | ( | bool | indentAfterOpenBraces = true |
) |
Indentation mode
| indentAfterOpenBraces | set true if lines should be indented after braces |
Referenced by highlight::CodeGenerator::setPreformatting().
| void highlight::PreFormatter::setWrapLineLength | ( | unsigned int | maxlength | ) |
Maximum line length
| maxlength | max. length of output lines |
Referenced by highlight::CodeGenerator::setPreformatting().
1.5.7.1