highlight::PreFormatter Class Reference

Class which provides intelligent line wrapping. More...

List of all members.

Public Member Functions

 PreFormatter (bool wrap, bool replTabs)
bool hasMoreLines ()
void setLine (const std::string newline)
std::string getNextLine ()
bool indentCode ()
void setWrappingProperties (unsigned int maxlength=80, bool indentAfterOpenBraces=true)
void setNumberSpaces (unsigned int num)
bool isEnabled ()


Detailed Description

Class which provides intelligent line wrapping.

Author:
Andre Simon


Constructor & Destructor Documentation

highlight::PreFormatter::PreFormatter ( bool  wrap,
bool  replTabs 
)

Constructor


Member Function Documentation

bool highlight::PreFormatter::hasMoreLines (  ) 

Returns:
True if current line can be wrapped again

void highlight::PreFormatter::setLine ( const std::string  newline  ) 

Sets new line to be wrapped

Parameters:
newline New line

std::string highlight::PreFormatter::getNextLine (  ) 

The method will indent function calls and statements

Returns:
Next line

bool highlight::PreFormatter::indentCode (  ) 

Returns:
True if lines following open braces should be indented

void highlight::PreFormatter::setWrappingProperties ( unsigned int  maxlength = 80,
bool  indentAfterOpenBraces = true 
)

Parameters:
maxlength max. length of output lines
indentAfterOpenBraces set true if lines should be indented after braces

void highlight::PreFormatter::setNumberSpaces ( unsigned int  num  ) 

Parameters:
num number of spaces which replace a tab

bool highlight::PreFormatter::isEnabled (  )  [inline]

Returns:
true if preformatting is enabled


The documentation for this class was generated from the following files:
Generated on Fri Apr 27 13:12:36 2007 for Highlight Code Converter by  doxygen 1.5.2