Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
// $XConsortium: StyleSheet.cc /main/3 1996/06/11 17:09:10 cde-hal $
#include "StyleSheet.h"
#include "Types.h"
#include "Feature.h"
PathTable* gPathTab;
VariableTable* gVariableTable;
SymbolTable* gSymTab;
SymbolTable* gElemSymTab;
unsigned int gGI_CASE_SENSITIVE;
const Element *gCurrentElement ;
const FeatureSet *gCurrentLocalSet;
const FeatureSet *gParentCompleteSet;
StyleSheet::StyleSheet(const char* nm)
: f_GI_CASE_SENSITIVE(false),
f_TopOfStack(0,new FeatureSet(),new FeatureSet())
{
if (nm==0) {
f_name = new char[1];
f_name[0] = 0;
} else
f_name = strdup(nm);
use();
}
StyleSheet::~StyleSheet()
{
delete f_name;
}
void
StyleSheet::use()
{
gSymTab = &f_SymTab;
gVariableTable = &f_VarTab;
gPathTab = &f_PathTab;
gElemSymTab = &f_ElemSymTab;
gGI_CASE_SENSITIVE = f_GI_CASE_SENSITIVE;
}