00001 00002 /* 00003 * @(#)ThaiLayoutEngine.h 1.3 00/03/15 00004 * 00005 * (C) Copyright IBM Corp. 1998, 1999, 2000 - All Rights Reserved 00006 * 00007 */ 00008 00009 #ifndef __THAILAYOUTENGINE_H 00010 #define __THAILAYOUTENGINE_H 00011 00012 #include "LETypes.h" 00013 #include "LEFontInstance.h" 00014 #include "LayoutEngine.h" 00015 00016 #include "ThaiShaping.h" 00017 00018 U_NAMESPACE_BEGIN 00019 00026 class ThaiLayoutEngine : public LayoutEngine 00027 { 00028 public: 00041 ThaiLayoutEngine(const LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode); 00042 00046 virtual ~ThaiLayoutEngine(); 00047 00048 protected: 00055 le_uint8 fGlyphSet; 00056 00065 LEUnicode fErrorChar; 00066 00088 virtual le_int32 computeGlyphs(const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft, 00089 LEGlyphID *&glyphs, le_int32 *&charIndices, LEErrorCode &success); 00090 }; 00091 00092 U_NAMESPACE_END 00093 #endif 00094