1: /* webcpp - theme.h
2: * Copyright (C)2001-2003 Jeffrey Bakker
3:
4: * This program is free software; you can redistribute it and/or modify
5: * it under the terms of the GNU General Public License as published by
6: * the Free Software Foundation; either version 2 of the License, or
7: * (at your option) any later version.
8:
9: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13:
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17: ___________________________________ .. .
18: */
19:
20:
21: #ifndef _THEME_H_
22: #define _THEME_H_
23:
24: #define BGCOLOR 0
25: #define PREPROC 1
26: #define NORTEXT 2
27: #define SYMBOLS 3
28: #define KEYWORD 4
29: #define KEYTYPE 5
30: #define INTEGER 6
31: #define FLOATPT 7
32: #define DBLQUOT 8
33: #define SINQUOT 9
34: #define COMMENT 10
35:
36: // use Cfour engines
37: #include "cffile.h"
38: #include "cfdatapair.h"
39:
40: #include <vector>
41: using namespace std;
42:
43: class Theme : public CFfile {
44:
45: public:
46: Theme();
47: ~Theme();
48:
49: void typical();
50: bool setFile(string filename);
51: void setPicture(string picture);
52: void setColour(string hexcode,int num);
53: bool verifyFormat(string data);
54:
55: string getColour(string name);
56: string getThemeName();
57: string getImageFile();
58: string getCSSdata();
59:
60: bool writeCSS(string cssfile);
61: bool load();
62:
63: protected:
64: vector<CFdatapair> ScsVec;
65: string Colours2[11];
66: string SCSfile;
67: string Picture;
68: bool format2;
69: };
70:
71: #endif // _THEME_H_
72:
| w | e | b | c | p | p |
|
| |||||