os/textandloc/fontservices/textshaperplugin/IcuSource/layout/StateTableProcessor.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/layout/StateTableProcessor.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,58 @@
1.4 +/*
1.5 + *
1.6 + * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
1.7 + *
1.8 + */
1.9 +
1.10 +#ifndef __STATETABLEPROCESSOR_H
1.11 +#define __STATETABLEPROCESSOR_H
1.12 +
1.13 +/**
1.14 + * \file
1.15 + * \internal
1.16 + */
1.17 +
1.18 +#include "LETypes.h"
1.19 +#include "MorphTables.h"
1.20 +#include "MorphStateTables.h"
1.21 +#include "SubtableProcessor.h"
1.22 +
1.23 +U_NAMESPACE_BEGIN
1.24 +
1.25 +class LEGlyphStorage;
1.26 +
1.27 +class StateTableProcessor : public SubtableProcessor
1.28 +{
1.29 +public:
1.30 + void process(LEGlyphStorage &glyphStorage);
1.31 +
1.32 + virtual void beginStateTable() = 0;
1.33 +
1.34 + virtual ByteOffset processStateEntry(LEGlyphStorage &glyphStorage, le_int32 &currGlyph, EntryTableIndex index) = 0;
1.35 +
1.36 + virtual void endStateTable() = 0;
1.37 +
1.38 +protected:
1.39 + StateTableProcessor(const MorphSubtableHeader *morphSubtableHeader);
1.40 + virtual ~StateTableProcessor();
1.41 +
1.42 + StateTableProcessor();
1.43 +
1.44 + le_int16 stateSize;
1.45 + ByteOffset classTableOffset;
1.46 + ByteOffset stateArrayOffset;
1.47 + ByteOffset entryTableOffset;
1.48 +
1.49 + const ClassTable *classTable;
1.50 + TTGlyphID firstGlyph;
1.51 + TTGlyphID lastGlyph;
1.52 +
1.53 + const MorphStateTableHeader *stateTableHeader;
1.54 +
1.55 +private:
1.56 + StateTableProcessor(const StateTableProcessor &other); // forbid copying of this class
1.57 + StateTableProcessor &operator=(const StateTableProcessor &other); // forbid copying of this class
1.58 +};
1.59 +
1.60 +U_NAMESPACE_END
1.61 +#endif