Update contrib.
2 * Copyright (c) 2006-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 * Abstract base class from which all shapers drive.
30 #include "LayoutEngine.h"
31 #include "SymbianFontInstance.h"
32 #include "IcuLayoutEngine.h"
33 #include <ecom/ecom.h>
34 #include <ecom/implementationproxy.h>
37 class CIcuShaperFactory: public CShaperFactory
40 static CIcuShaperFactory* NewL();
41 virtual ~CIcuShaperFactory();
44 Factory function to create an instance of shaper object
45 @param aBitmapFont The font that requires shaping
46 @param aScript Isic standard script code
47 @param aLanguage Isic standard language code
48 @param aHeap The heap to be used by the shaper
49 @return KErrNone if successful else a system wide error code
51 virtual CShaper* NewShaperL(CBitmapFont* aBitmapFont, TInt aScript, TInt aLanguage, RHeap* aHeap);
59 CIcuShaperFactory* CIcuShaperFactory::NewL()
61 CIcuShaperFactory* r = new(ELeave) CIcuShaperFactory;
65 CIcuShaperFactory::CIcuShaperFactory()
69 CIcuShaperFactory::~CIcuShaperFactory()
75 CShaper* CIcuShaperFactory::NewShaperL(CBitmapFont* aBitmapFont, TInt aScript, TInt aLanguage, RHeap* aHeap)
77 return CIcuLayoutEngine::NewL(aBitmapFont, aScript, aLanguage, aHeap);
80 void* CShaperFactory::ExtendedInterface(TUid /*aInterfaceId*/)
85 // Exported proxy for instantiation method resolution
86 // Define the interface UIDs
87 const TImplementationProxy ImplementationTable[] =
89 IMPLEMENTATION_PROXY_ENTRY(0x10279727, CIcuShaperFactory::NewL)
92 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
94 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
96 return ImplementationTable;