summaryrefslogtreecommitdiff
path: root/Build/source/libs/graphite-engine/src/segment/Main.h
blob: def3d771c7b81d5dbbe604e63dc4125e6f50b579 (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
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/*--------------------------------------------------------------------*//*:Ignore this sentence.
Copyright (C) 1999, 2001 SIL International. All rights reserved.

Distributable under the terms of either the Common Public License or the
GNU Lesser General Public License, as specified in the LICENSING.txt file.

File: Main.h
Responsibility: Sharon Correll
Last reviewed: Not yet.

Description:
	Main.header file for the Graphite engine.
----------------------------------------------------------------------------------------------*/
#ifdef _MSC_VER
#pragma once
#endif
#ifndef GRAPHITE_H
#define GRAPHITE_H 1

//:End Ignore

#define NO_EXCEPTIONS 1

// It's okay to use functions that were declared deprecated by VS 2005:
#define _CRT_SECURE_NO_DEPRECATE
#pragma warning(disable: 4996) // warning: function was declared deprecated
#pragma warning(disable: 4702) // unreachable code

#include "GrCommon.h"

//:>********************************************************************************************
//:>	Interfaces.
//:>********************************************************************************************
#include "GrData.h"

//:>********************************************************************************************
//:>	Implementations.
//:>********************************************************************************************

#ifndef _WIN32
#include "GrMstypes.h"
#endif
#include "GrDebug.h"

// For reading the font (FieldWorks's approach) and transduction logging:
#include <fstream>
#include <iostream>

#include <vector>
////#include <algorithm>
#include <string>

// gAssert should be used for any kind of assertions that can be caused by a corrupted font,
// particularly those that won't be caught when loading the tables.
#define gAssert(x) Assert(x)
// When testing the error mechanism (because the process of bringing up the assertion dialog
// interferes with FW repainting the invalid window:
////#define gAssert(x) if (!(x)) Warn("corrupted font?")

// Internal headers.
#include "FileInput.h"

// Public headers.
#include "GrResult.h"
//////#include "IGrGraphics.h"
#include "ITextSource.h"
#include "IGrJustifier.h"
#include "IGrEngine.h"
#include "GrConstants.h"
#include "GrFeature.h"

// External helper classes.
#include "GrExt.h"


// Forward declarations.
namespace gr
{
    class GrTableManager;
	class Segment;
	class GrEngine;
}

// Define after GrExt.h to avoid conflict with FW Rect class.
namespace gr
{
/*
struct Point
{
	float x;
	float y;

	Point()
	{
		x = y = 0;
	}

	Point(POINT & p)
	{
		x = (float)p.x;
		y = (float)p.y;
	}
};


struct Rect
{
	float top;
	float bottom;
	float left;
	float right;

	Rect()
	{
		top = bottom = left = right = 0;
	};

	Rect(RECT & r)
	{
		top = (float)r.top;
		bottom = (float)r.bottom;
		left = (float)r.left;
		right = (float)r.right;
	};
};
*/
}; // namespace gr

#include "GrFeatureValues.h"
#include "GrSlotState.h"

#include "SegmentAux.h"

// Internal headers
#include "GrCharStream.h"
#include "GrGlyphTable.h"
#include "GrClassTable.h"
#include "GrPseudoMap.h"
#include "GrSlotStream.h"
#include "GrFSM.h"
#include "GrPass.h"
#include "GrTableManager.h"
#include "FontCache.h"


// Public headers
#include "Font.h"
#include "GraphiteProcess.h"
#include "GrEngine.h"
#include "FontFace.h"
#include "Segment.h"
#include "SegmentPainter.h"
#ifdef _WIN32
#include <hash_map>
#include "WinFont.h"
#include "WinSegmentPainter.h"
#endif

// Internal headers
#include "TtfUtil.h"
//#include "GrUtil.h"

#include "GrWrappers.h"

//#include "IGrDebug.h"
//#include "GrSegmentDebug.h"
//#include "GrEngineDebug.h"

/////<<<<<<< .mine
// clashes with non gr stuff
// using namespace gr;
///////>>>>>>> .r98

#endif // GRAPHITE_H