File: StyleEngine.h

package info (click to toggle)
openjade 1.4devel1-20.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 6,636 kB
  • sloc: cpp: 90,082; sh: 10,847; ansic: 2,365; lisp: 894; perl: 604; makefile: 443; sed: 93
file content (64 lines) | stat: -rw-r--r-- 1,447 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Copyright (c) 1996 James Clark
// See the file copying.txt for copying permission.

#ifndef StyleEngine_INCLUDED
#define StyleEngine_INCLUDED 1

#include <OpenSP/Boolean.h>
#include "Node.h"
#include <OpenSP/Message.h>
#include <OpenSP/SgmlParser.h>
#include "FOTBuilder.h"
#include "GroveManager.h"
#include "dsssl_ns.h"

#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif

class CodingSystem;

#ifdef SP_NAMESPACE
}
#endif

#ifdef DSSSL_NAMESPACE
namespace DSSSL_NAMESPACE {
#endif

class Interpreter;

class STYLE_API StyleEngine {
public:
  StyleEngine(Messenger &, GroveManager &,
	      int unitsPerInch, bool debugMode, bool dsssl2,
	      bool strictMode, const FOTBuilder::Description &,
              const CodingSystem *);
  void parseSpec(SgmlParser &specParser,
		 const CharsetInfo &charset,
		 const StringC &id,
		 Messenger &mgr,
                 const Vector<StringC> &defVars);
  void process(const NodePtr &, FOTBuilder &);
  ~StyleEngine();
private:
  void defineVariable(const StringC &, StringC &);
  StyleEngine(const StyleEngine &);  // undefined
  void operator=(const StyleEngine &); // undefined

  Interpreter *interpreter_;
  Messenger *mgr_;
  GroveManager *groveManager_;
  int unitsPerInch_;
  bool debugMode_;
  bool dsssl2_;
  bool strictMode_;
  const FOTBuilder::Description *fotbDescr_;
  const CodingSystem *outputCodingSystem_;
};

#ifdef DSSSL_NAMESPACE
}
#endif

#endif /* not StyleEngine_INCLUDED */