First public contribution.
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * This wraps the ICU layout Engine in a CBase class
16 * and maps the Symbian structures to ICU structures
21 #ifndef __CICULAYOUTENGINE_H__
22 #define __CICULAYOUTENGINE_H__
28 #include <shapeinfo.h>
29 #include <graphics/shapeimpl.h>
30 #include "ScriptAndLanguageTags.h"
32 class SymbianFontInstance;
34 // if ICU headers not used define
35 #ifndef U_NAMESPACE_USE
40 Encapsulates the ICU Layout Engine in a CShaper class
41 and maps the Symbian objects to ICU objects
44 class CIcuLayoutEngine : public CShaper
48 static CShaper* NewL(CBitmapFont* aBitmapFont, TInt aScript, TInt aLanguage, RHeap* aHeap);
51 virtual TInt ShapeText(TShapeHeader*& aOutput, const TInput& aInput, RHeap* aHeapForOutput);
52 virtual void* ExtendedInterface (TUid aInterfaceId);
55 CIcuLayoutEngine(TUint32 aScript, TUint32 aLanguage);
56 TInt ConstructL(CBitmapFont*, TInt aScript, TInt aLanguage, RHeap* iHeap);
58 // leaving version of shaping method
59 void IcuShapeTextL(TShapeHeader*& aOutput, const TInput& aInput, RHeap* aHeapForOutput);
61 // the client heap pointer passed in during construction
64 // Open source Icu layout engine
65 LayoutEngine* iEngine;
68 SymbianFontInstance* iFontInstance;
70 // The script which this shaper will shape
73 //The language which this shaper will shape