1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/layout/LigatureSubstProc.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,71 @@
1.4 +/*
1.5 + *
1.6 + * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
1.7 + *
1.8 + */
1.9 +
1.10 +#ifndef __LIGATURESUBSTITUTIONPROCESSOR_H
1.11 +#define __LIGATURESUBSTITUTIONPROCESSOR_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 "SubtableProcessor.h"
1.21 +#include "StateTableProcessor.h"
1.22 +#include "LigatureSubstitution.h"
1.23 +
1.24 +U_NAMESPACE_BEGIN
1.25 +
1.26 +class LEGlyphStorage;
1.27 +
1.28 +#define nComponents 16
1.29 +
1.30 +class LigatureSubstitutionProcessor : public StateTableProcessor
1.31 +{
1.32 +public:
1.33 + virtual void beginStateTable();
1.34 +
1.35 + virtual ByteOffset processStateEntry(LEGlyphStorage &glyphStorage, le_int32 &currGlyph, EntryTableIndex index);
1.36 +
1.37 + virtual void endStateTable();
1.38 +
1.39 + LigatureSubstitutionProcessor(const MorphSubtableHeader *morphSubtableHeader);
1.40 + virtual ~LigatureSubstitutionProcessor();
1.41 +
1.42 + /**
1.43 + * ICU "poor man's RTTI", returns a UClassID for the actual class.
1.44 + *
1.45 + * @stable ICU 2.8
1.46 + */
1.47 + virtual UClassID getDynamicClassID() const;
1.48 +
1.49 + /**
1.50 + * ICU "poor man's RTTI", returns a UClassID for this class.
1.51 + *
1.52 + * @stable ICU 2.8
1.53 + */
1.54 + static UClassID getStaticClassID();
1.55 +
1.56 +private:
1.57 + LigatureSubstitutionProcessor();
1.58 +
1.59 +protected:
1.60 + ByteOffset ligatureActionTableOffset;
1.61 + ByteOffset componentTableOffset;
1.62 + ByteOffset ligatureTableOffset;
1.63 +
1.64 + const LigatureSubstitutionStateEntry *entryTable;
1.65 +
1.66 + le_int32 componentStack[nComponents];
1.67 + le_int16 m;
1.68 +
1.69 + const LigatureSubstitutionHeader *ligatureSubstitutionHeader;
1.70 +
1.71 +};
1.72 +
1.73 +U_NAMESPACE_END
1.74 +#endif