os/textandloc/fontservices/textshaperplugin/IcuSource/layout/ContextualGlyphSubstProc.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/layout/ContextualGlyphSubstProc.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,65 @@
     1.4 +/*
     1.5 + *
     1.6 + * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
     1.7 + *
     1.8 + */
     1.9 +
    1.10 +#ifndef __CONTEXTUALGLYPHSUBSTITUTIONPROCESSOR_H
    1.11 +#define __CONTEXTUALGLYPHSUBSTITUTIONPROCESSOR_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 "ContextualGlyphSubstitution.h"
    1.23 +
    1.24 +U_NAMESPACE_BEGIN
    1.25 +
    1.26 +class LEGlyphStorage;
    1.27 +
    1.28 +class ContextualGlyphSubstitutionProcessor : public StateTableProcessor
    1.29 +{
    1.30 +public:
    1.31 +    virtual void beginStateTable();
    1.32 +
    1.33 +    virtual ByteOffset processStateEntry(LEGlyphStorage &glyphStorage, le_int32 &currGlyph, EntryTableIndex index);
    1.34 +
    1.35 +    virtual void endStateTable();
    1.36 +
    1.37 +    ContextualGlyphSubstitutionProcessor(const MorphSubtableHeader *morphSubtableHeader);
    1.38 +    virtual ~ContextualGlyphSubstitutionProcessor();
    1.39 +
    1.40 +    /**
    1.41 +     * ICU "poor man's RTTI", returns a UClassID for the actual class.
    1.42 +     *
    1.43 +     * @stable ICU 2.8
    1.44 +     */
    1.45 +    virtual UClassID getDynamicClassID() const;
    1.46 +
    1.47 +    /**
    1.48 +     * ICU "poor man's RTTI", returns a UClassID for this class.
    1.49 +     *
    1.50 +     * @stable ICU 2.8
    1.51 +     */
    1.52 +    static UClassID getStaticClassID();
    1.53 +
    1.54 +private:
    1.55 +    ContextualGlyphSubstitutionProcessor();
    1.56 +
    1.57 +protected:
    1.58 +    ByteOffset substitutionTableOffset;
    1.59 +    const ContextualGlyphSubstitutionStateEntry *entryTable;
    1.60 +
    1.61 +    le_int32 markGlyph;
    1.62 +
    1.63 +    const ContextualGlyphSubstitutionHeader *contextualGlyphSubstitutionHeader;
    1.64 +
    1.65 +};
    1.66 +
    1.67 +U_NAMESPACE_END
    1.68 +#endif