Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

C_Style_Sheet Class Reference

Class for data storage of the style. More...

#include <C_Style_Sheet.h>


Public Member Functions

 C_Style_Sheet (void)
 The constructor.

 ~C_Style_Sheet (void)
 The destructor.

char * MarginTostring (void)
 Convert Margins value to a string.

void ParseMargin (char *Line)
 Parse a string into margin value.

void Parse_Style (char *line, char *format)
 Parse a line from a .ssa file.

void Parse_Style_Format (char *line, char *Source)
 Parse the Style format.

C_Style_Sheet * FindStyle (char *Style)
 Find a style into the list.

char * Tostring (char *format)
 Transform the class to a string.


Data Fields

char * Name
 Name of the Style.

char * Fontname
 Style's font name.

int Alignment
 Style's alignment (sub/mid title, left/right).

int Fontsize
 Size of the font.

long Primary_Color
 First color of the text (the center I think).

long Secondary_Color
 Second color of the text (maybe the border).

long Tertiary_Color
 Tertiary color of the text (might be the shadows).

long Backcolor
 Uuuuuh, I don't remember, (september, what it's stupid?) :).

int Encoding
 I don't know what it is, only in .ssa file.

int MarginL
 Left Margin of the style.

int MarginR
 Right Margin of the style.

int MarginV
 Vertical Margin of the style.

int Outline
 Size of the border, maybe in pixel.

int Shadow
 Size of the Shadow, maybe in pixel.

int AlphaLevel
 Transparacy level (between 0 and 255 ?).

bool Bold
 If the text is in bold.

bool Italic
 If the text is in Italic.

C_Style_Sheet * Next
 For the liste, next element.


Detailed Description

Class for data storage of the style.

This class is used to stock Styles wich are used by the events

See also:
C_SSA

C_Events_List


Constructor & Destructor Documentation

C_Style_Sheet::C_Style_Sheet void   ) 
 

The constructor.

Set to 0 all the class (memset my friend)

C_Style_Sheet::~C_Style_Sheet void   ) 
 

The destructor.

Desalouate the Style's name and fontname


Member Function Documentation

C_Style_Sheet * C_Style_Sheet::FindStyle char *  Style  ) 
 

Find a style into the list.

You should use this members with the first element of the style list

Parameters:
Style The name of the style that you want to find.
Returns:
The style wich correspond to the string

char * C_Style_Sheet::MarginTostring void   ) 
 

Convert Margins value to a string.

Convert the MarginL, MarginR and MarginV value to a string to be displayed You MUST delete[] the data when finish

See also:
MarginL

MarginR

MarginV

void C_Style_Sheet::Parse_Style char *  line,
char *  format
 

Parse a line from a .ssa file.

Parameters:
line The text line wich is going to be parsed
format Pointer to a string initialized by Parse_Style_Format()

void C_Style_Sheet::Parse_Style_Format char *  line,
char *  Source
 

Parse the Style format.

Parse the first line of the style part

Parameters:
line The line to analyse
Source Pointer to an initialized string wich'll receive the data

void C_Style_Sheet::ParseMargin char *  Line  ) 
 

Parse a string into margin value.

Parse a string formated like MarginTostring() Line char to parse

See also:
MarginTostring()

char * C_Style_Sheet::Tostring char *  format  ) 
 

Transform the class to a string.

Create a string for saving data in a .ssa file

Parameters:
format Pointer to a string initialized by Parse_Style_Format()
Returns:
A string wich can be writen in a .ssa file normaly


Field Documentation

int C_Style_Sheet::Alignment
 

Style's alignment (sub/mid title, left/right).

int C_Style_Sheet::AlphaLevel
 

Transparacy level (between 0 and 255 ?).

long C_Style_Sheet::Backcolor
 

Uuuuuh, I don't remember, (september, what it's stupid?) :).

bool C_Style_Sheet::Bold
 

If the text is in bold.

int C_Style_Sheet::Encoding
 

I don't know what it is, only in .ssa file.

char* C_Style_Sheet::Fontname
 

Style's font name.

int C_Style_Sheet::Fontsize
 

Size of the font.

bool C_Style_Sheet::Italic
 

If the text is in Italic.

int C_Style_Sheet::MarginL
 

Left Margin of the style.

int C_Style_Sheet::MarginR
 

Right Margin of the style.

int C_Style_Sheet::MarginV
 

Vertical Margin of the style.

char* C_Style_Sheet::Name
 

Name of the Style.

C_Style_Sheet* C_Style_Sheet::Next
 

For the liste, next element.

int C_Style_Sheet::Outline
 

Size of the border, maybe in pixel.

long C_Style_Sheet::Primary_Color
 

First color of the text (the center I think).

long C_Style_Sheet::Secondary_Color
 

Second color of the text (maybe the border).

int C_Style_Sheet::Shadow
 

Size of the Shadow, maybe in pixel.

long C_Style_Sheet::Tertiary_Color
 

Tertiary color of the text (might be the shadows).


The documentation for this class was generated from the following files:
Generated on Thu Jul 3 15:19:54 2003 for Sub Station Beta by doxygen1.3