| 1 |
// Copyright (c) 1996 James Clark |
| 2 |
// See the file copying.txt for copying permission. |
| 3 |
|
| 4 |
#ifndef StyleEngine_INCLUDED |
| 5 |
#define StyleEngine_INCLUDED 1 |
| 6 |
|
| 7 |
#include <OpenSP/Boolean.h> |
| 8 |
#include "Node.h" |
| 9 |
#include <OpenSP/Message.h> |
| 10 |
#include <OpenSP/SgmlParser.h> |
| 11 |
#include "FOTBuilder.h" |
| 12 |
#include "GroveManager.h" |
| 13 |
#include "dsssl_ns.h" |
| 14 |
|
| 15 |
#ifdef SP_NAMESPACE |
| 16 |
namespace SP_NAMESPACE { |
| 17 |
#endif |
| 18 |
|
| 19 |
class CodingSystem; |
| 20 |
|
| 21 |
#ifdef SP_NAMESPACE |
| 22 |
} |
| 23 |
#endif |
| 24 |
|
| 25 |
#ifdef DSSSL_NAMESPACE |
| 26 |
namespace DSSSL_NAMESPACE { |
| 27 |
#endif |
| 28 |
|
| 29 |
class Interpreter; |
| 30 |
|
| 31 |
class STYLE_API StyleEngine { |
| 32 |
public: |
| 33 |
StyleEngine(Messenger &, GroveManager &, |
| 34 |
int unitsPerInch, bool debugMode, bool dsssl2, |
| 35 |
bool strictMode, const FOTBuilder::Description &, |
| 36 |
const CodingSystem *); |
| 37 |
void parseSpec(SgmlParser &specParser, |
| 38 |
const CharsetInfo &charset, |
| 39 |
const StringC &id, |
| 40 |
Messenger &mgr, |
| 41 |
const Vector<StringC> &defVars); |
| 42 |
void process(const NodePtr &, FOTBuilder &); |
| 43 |
~StyleEngine(); |
| 44 |
private: |
| 45 |
void defineVariable(const StringC &, StringC &); |
| 46 |
StyleEngine(const StyleEngine &); // undefined |
| 47 |
void operator=(const StyleEngine &); // undefined |
| 48 |
|
| 49 |
Interpreter *interpreter_; |
| 50 |
Messenger *mgr_; |
| 51 |
GroveManager *groveManager_; |
| 52 |
int unitsPerInch_; |
| 53 |
bool debugMode_; |
| 54 |
bool dsssl2_; |
| 55 |
bool strictMode_; |
| 56 |
const FOTBuilder::Description *fotbDescr_; |
| 57 |
const CodingSystem *outputCodingSystem_; |
| 58 |
}; |
| 59 |
|
| 60 |
#ifdef DSSSL_NAMESPACE |
| 61 |
} |
| 62 |
#endif |
| 63 |
|
| 64 |
#endif /* not StyleEngine_INCLUDED */ |