highlight::StyleColour Class Reference

Stores colours and returns red, green and blue values in different formats. More...

List of all members.

Public Member Functions

 StyleColour (const string &r_hex, const string &g_hex, const string &b_hex)
 StyleColour (const string &styleColourString)
void setRGBValues (const string &styleColourString)
void setRedValue (const string &r_hex)
void setGreenValue (const string &g_hex)
void setBlueValue (const string &b_hex)
string & getHexRedValue ()
string & getHexGreenValue ()
string & getHexBlueValue ()
string getLatexRedValue ()
string getLatexGreenValue ()
string getLatexBlueValue ()
string getTexRedValue ()
string getTexGreenValue ()
string getTexBlueValue ()
string getRTFRedValue ()
string getRTFGreenValue ()
string getRTFBlueValue ()


Detailed Description

Stores colours and returns red, green and blue values in different formats.

Author:
Andre Simon


Constructor & Destructor Documentation

highlight::StyleColour::StyleColour ( const string &  r_hex,
const string &  g_hex,
const string &  b_hex 
)

Constructor

Parameters:
r_hex Red value in hex notation
g_hex Blue value in hex notation
b_hex Green value in hex notation

highlight::StyleColour::StyleColour ( const string &  styleColourString  ) 

Constructor

Parameters:
styleColourString String with rgb values


Member Function Documentation

void highlight::StyleColour::setRGBValues ( const string &  styleColourString  ) 

Sets red, green and blue values

Parameters:
styleColourString String containing colour attributes

void highlight::StyleColour::setRedValue ( const string &  r_hex  ) 

Sets red value

Parameters:
r_hex New red value

void highlight::StyleColour::setGreenValue ( const string &  g_hex  ) 

Sets green value

Parameters:
g_hex New green value

void highlight::StyleColour::setBlueValue ( const string &  b_hex  ) 

Sets blue value

Parameters:
b_hex New blue value

string & highlight::StyleColour::getHexRedValue (  ) 

Returns:
Red value in hex format

string & highlight::StyleColour::getHexGreenValue (  ) 

Returns:
Green value in hex format

string & highlight::StyleColour::getHexBlueValue (  ) 

Returns:
Blue value in hex format

string highlight::StyleColour::getLatexRedValue (  ) 

Returns:
Red value in latex format

string highlight::StyleColour::getLatexGreenValue (  ) 

Returns:
Green value in latex format

string highlight::StyleColour::getLatexBlueValue (  ) 

Returns:
Blue value in latex format

string highlight::StyleColour::getTexRedValue (  ) 

Returns:
Red value in tex format

string highlight::StyleColour::getTexGreenValue (  ) 

Returns:
Green value in tex format

string highlight::StyleColour::getTexBlueValue (  ) 

Returns:
Blue value in tex format

string highlight::StyleColour::getRTFRedValue (  ) 

Returns:
Red value in RTF format

string highlight::StyleColour::getRTFGreenValue (  ) 

Returns:
Green value in RTF format

string highlight::StyleColour::getRTFBlueValue (  ) 

Returns:
Blue value in RTF format


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