Source-highlight Library
stylefileparser.h
1 /*
2  * stylefileparser.h
3  *
4  * Created on: Dec 9, 2008
5  * Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2008
6  * Copyright: See COPYING file that comes with this distribution
7  */
8 
9 #ifndef STYLEFILEPARSER_H_
10 #define STYLEFILEPARSER_H_
11 
12 #include <string>
13 
14 #include "formatterfactory.h"
15 
16 namespace srchilite {
17 
22 public:
33  static void parseStyleFile(const std::string &name,
34  FormatterFactory *formatterFactory, std::string &bodyBgColor);
35 
46  static void parseCssStyleFile(const std::string &name,
47  FormatterFactory *formatterFactory, std::string &bodyBgColor);
48 
59  static void parseStyleFile(const std::string &path, const std::string &name,
60  FormatterFactory *formatterFactory, std::string &bodyBgColor);
61 
72  static void parseCssStyleFile(const std::string &path, const std::string &name,
73  FormatterFactory *formatterFactory, std::string &bodyBgColor);
74 };
75 
76 }
77 
78 #endif /* STYLEFILEPARSER_H_ */
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
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 Forma...
Definition: stylefileparser.cpp:24
A utility class with static methods to parse style files.
Definition: stylefileparser.h:21
The generic abstract factory to create Formatter objects, during the parsing of style files...
Definition: formatterfactory.h:44
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 Formatter...
Definition: stylefileparser.cpp:19