summaryrefslogtreecommitdiff
path: root/support/lametex/src/Environment.h
blob: f9c913ac4beae20c57ad4f43418436700d9f17ae (plain)
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
/* Environment.h
 *
 * The environment is the current set up of the page in terms of font type,
 * page number, and many other general numbers to keep track of.
 *
 * Copyright 1992 Jonathan Monsarrat. Permission given to freely distribute,
 * edit and use as long as this copyright statement remains intact.
 *
 */

#include "Parameter.h"

class Environment {
 public:
   // MAKE SURE TO UPDATE THE parms[] array initialization
   // in Environment::Environment
   enum ParamTypes {     //  "Counter" must be first so it "reverts" first.
      PCounter, PDocument, PFont, PJustify, PLength, LastType
   };

   Environment();
   Environment(Environment *);
   ~Environment();
   void set(int, int, float, char *);
   void revert(Environment *);
   Param* get_param(int);

   float get(int, int, char *);
 private:
   // Same order as enumerator ParamTypes
   Param *params[LastType];
};