Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
61
cde/programs/dtinfo/DtMmdb/StyleSheet/Resolver.h
Normal file
61
cde/programs/dtinfo/DtMmdb/StyleSheet/Resolver.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/* $XConsortium: Resolver.h /main/4 1996/06/11 17:08:28 cde-hal $ */
|
||||
#ifndef _Resolver_h
|
||||
#define _Resolver_h
|
||||
|
||||
class Element;
|
||||
class Symbol;
|
||||
class FeatureSet;
|
||||
class PathTable;
|
||||
class Renderer;
|
||||
class ResolverStack;
|
||||
|
||||
#include "SSPath.h"
|
||||
#include "ResolverStack.h"
|
||||
#include "Exceptions.hh"
|
||||
|
||||
|
||||
/* **************************************************************
|
||||
|
||||
the Resolver is responsible for taking input from the NodeParser,
|
||||
getting a feature set from the Style Sheet and passing it on to a
|
||||
Renderer
|
||||
|
||||
- get Element input from NodeParser
|
||||
- consult Style Sheet PathTable to get raw FeatureSet
|
||||
- evaluate feature set to resolve variables and expressions
|
||||
- merge with parent complete feature set to get complete feature
|
||||
set
|
||||
- pass data to Renderer (Element, localFeatures, completeFeatures)
|
||||
|
||||
* ************************************************************** */
|
||||
|
||||
|
||||
|
||||
class Resolver : public Destructable
|
||||
{
|
||||
public:
|
||||
Resolver(PathTable& pTable, Renderer& r);
|
||||
~Resolver();
|
||||
|
||||
// beginElement returns a non-zero value if element is to be ignored
|
||||
unsigned int beginElement(Element*);
|
||||
void data(const char* data, unsigned int data_length);
|
||||
void endElement(const Symbol&);
|
||||
|
||||
// called before any data
|
||||
virtual void Begin();
|
||||
// called after all data
|
||||
virtual void End();
|
||||
|
||||
private:
|
||||
SSPath f_path ;
|
||||
ResolverStack f_resolverStack;
|
||||
PathTable &f_pathTable;
|
||||
|
||||
// NOTE: this one could be a pointer so we can change them on the fly
|
||||
Renderer &f_Renderer;
|
||||
|
||||
};
|
||||
|
||||
#endif /* _Resolver_h */
|
||||
/* DO NOT ADD ANY LINES AFTER THIS #endif */
|
||||
Reference in New Issue
Block a user