sl@0: // Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef BIDIVISUAL_H_ sl@0: #define BIDIVISUAL_H_ sl@0: sl@0: #include sl@0: sl@0: class TBidiLogicalToVisual sl@0: /** sl@0: This class is a low-level class for bi-directionally reordering text. It sl@0: allows the re-ordering of text using no leaving functions at all, and provides sl@0: a finer degree of control than TBidiText. However, it should not be used sl@0: without understanding the basics of the Unicode Bi-directional Reordering sl@0: Algorithm. sl@0: @publishedAll sl@0: @released sl@0: */ sl@0: { sl@0: public: sl@0: enum {KMinCharAvailable = 4}; sl@0: sl@0: IMPORT_C TBidiLogicalToVisual(const TDesC& aText, TBool aRightToLeft, sl@0: TBidirectionalState::TRunInfo* aRunInfoArray, TInt aRunInfoLength); sl@0: IMPORT_C TBidiLogicalToVisual(const TDesC& aText, sl@0: TBidirectionalState::TRunInfo* aRunInfoArray, TInt aRunInfoLength); sl@0: IMPORT_C TInt Reorder(); sl@0: IMPORT_C void GetVisualLine(TDes& aLine, TInt aStart, TInt aEnd, sl@0: TChar aTruncationChar); sl@0: private: sl@0: const TDesC& iText; sl@0: TBool iRightToLeft; sl@0: TBidirectionalState::TRunInfo* iRunInfoArray; sl@0: TInt iRunInfoArrayLength; sl@0: TInt iRuns; sl@0: TUint32 iSpare2; sl@0: }; sl@0: sl@0: #endif