Source-highlight Library
srchilite::StyleFileParser Class Reference

A utility class with static methods to parse style files. More...

#include <stylefileparser.h>

List of all members.

Static Public Member Functions

static void parseStyleFile (const std::string &name, FormatterFactory *formatterFactory, std::string &bodyBgColor)
 Parses the specified style file, and creates the corresponding formatters, using the passed FormatterFactory.
static void parseCssStyleFile (const std::string &name, FormatterFactory *formatterFactory, std::string &bodyBgColor)
 Parses the specified css style file, and creates the corresponding formatters, using the passed FormatterFactory.
static void parseStyleFile (const std::string &path, const std::string &name, FormatterFactory *formatterFactory, std::string &bodyBgColor)
 Parses the specified style file, in the specified path, and creates the corresponding formatters, using the passed FormatterFactory.
static void parseCssStyleFile (const std::string &path, const std::string &name, FormatterFactory *formatterFactory, std::string &bodyBgColor)
 Parses the specified css style file, in the specified path, and creates the corresponding formatters, using the passed FormatterFactory.

Detailed Description

A utility class with static methods to parse style files.


Member Function Documentation

void srchilite::StyleFileParser::parseCssStyleFile ( const std::string &  name,
FormatterFactory formatterFactory,
std::string &  bodyBgColor 
) [static]

Parses the specified css style file, and creates the corresponding formatters, using the passed FormatterFactory.

(For the default searching path, it uses the hardcoded data dir).

Parameters:
namethe css style file name
formatterFactory
bodyBgColorthe background color for the document (output parameter)
Exceptions:
ParserExceptionin case of parsing error
void srchilite::StyleFileParser::parseCssStyleFile ( const std::string &  path,
const std::string &  name,
FormatterFactory formatterFactory,
std::string &  bodyBgColor 
) [static]

Parses the specified css style file, in the specified path, and creates the corresponding formatters, using the passed FormatterFactory.

Parameters:
pathwhere to look for the file
namethe css style file name
formatterFactory
bodyBgColorthe background color for the document (output parameter)
Exceptions:
ParserExceptionin case of parsing error
void srchilite::StyleFileParser::parseStyleFile ( const std::string &  name,
FormatterFactory formatterFactory,
std::string &  bodyBgColor 
) [static]

Parses the specified style file, and creates the corresponding formatters, using the passed FormatterFactory.

(For the default searching path, it uses the hardcoded data dir).

Parameters:
namethe style file name
formatterFactory
bodyBgColorthe background color for the document (output parameter)
Exceptions:
ParserExceptionin case of parsing error
void srchilite::StyleFileParser::parseStyleFile ( const std::string &  path,
const std::string &  name,
FormatterFactory formatterFactory,
std::string &  bodyBgColor 
) [static]

Parses the specified style file, in the specified path, and creates the corresponding formatters, using the passed FormatterFactory.

Parameters:
pathwhere to look for the file
namethe style file name
formatterFactory
bodyBgColorthe background color for the document (output parameter)
Exceptions:
ParserExceptionin case of parsing error

The documentation for this class was generated from the following files: