00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
#ifndef UCSS_HPP
00013
#define UCSS_HPP
00014
00015
#include "ufo/uobject.hpp"
00016
00017
#include <iostream>
00018
#include <map>
00019
00020
namespace ufo {
00021
00022
class UStyleHints;
00023
00031 class UFO_EXPORT UCss :
public UObject {
00032
public:
00033 UCss();
00034 UCss(
const std::string & filename);
00036
virtual ~UCss();
00037
00038
void load(
const std::string & filename);
00039
void load(std::istream & stream);
00040
00041
UStyleHints * getStyleHints(
const std::string & key);
00042 std::map<std::string, UStyleHints*> getStyleHints();
00043
00044
public:
00045
static UStyleHints * parseBlock(std::istream & stream,
UStyleHints * hints = NULL);
00046
00047
private:
00048 std::map<std::string, UStyleHints*> m_hints;
00049 };
00050
00051 }
00052
00053
#endif // UCSS_HPP