2000-11-28 20:56:52 +00:00
|
|
|
/*
|
|
|
|
* @(#)StateTableProcessor.h 1.6 00/03/15
|
|
|
|
*
|
2001-01-19 00:30:17 +00:00
|
|
|
* (C) Copyright IBM Corp. 1998, 1999, 2000, 2001 - All Rights Reserved
|
2000-11-28 20:56:52 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __STATETABLEPROCESSOR_H
|
|
|
|
#define __STATETABLEPROCESSOR_H
|
|
|
|
|
2003-01-13 23:15:11 +00:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
* \internal
|
|
|
|
*/
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
#include "LETypes.h"
|
|
|
|
#include "MorphTables.h"
|
|
|
|
#include "MorphStateTables.h"
|
|
|
|
#include "SubtableProcessor.h"
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
class StateTableProcessor : public SubtableProcessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void process(LEGlyphID *glyphs, le_int32 *charIndices, le_int32 glyph);
|
|
|
|
|
|
|
|
virtual void beginStateTable() = 0;
|
|
|
|
|
|
|
|
virtual ByteOffset processStateEntry(LEGlyphID *glyphs, le_int32 *charIndices, le_int32 &currGlyph,
|
|
|
|
le_int32 glyphCount, EntryTableIndex index) = 0;
|
|
|
|
|
|
|
|
virtual void endStateTable() = 0;
|
|
|
|
|
|
|
|
protected:
|
2001-01-19 00:30:17 +00:00
|
|
|
StateTableProcessor(const MorphSubtableHeader *morphSubtableHeader);
|
2000-11-28 20:56:52 +00:00
|
|
|
virtual ~StateTableProcessor();
|
|
|
|
|
|
|
|
StateTableProcessor();
|
|
|
|
|
|
|
|
le_int16 stateSize;
|
|
|
|
ByteOffset classTableOffset;
|
|
|
|
ByteOffset stateArrayOffset;
|
|
|
|
ByteOffset entryTableOffset;
|
|
|
|
|
2001-01-19 00:30:17 +00:00
|
|
|
const ClassTable *classTable;
|
2003-02-05 00:05:40 +00:00
|
|
|
TTGlyphID firstGlyph;
|
|
|
|
TTGlyphID lastGlyph;
|
2000-11-28 20:56:52 +00:00
|
|
|
|
2001-01-19 00:30:17 +00:00
|
|
|
const MorphStateTableHeader *stateTableHeader;
|
2002-10-04 19:27:01 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
StateTableProcessor(const StateTableProcessor &other); // forbid copying of this class
|
|
|
|
StateTableProcessor &operator=(const StateTableProcessor &other); // forbid copying of this class
|
2000-11-28 20:56:52 +00:00
|
|
|
};
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_END
|
2000-11-28 20:56:52 +00:00
|
|
|
#endif
|