1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/graphicsdeviceinterface/gdi/inc/BidiVisual.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,51 @@
1.4 +// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef BIDIVISUAL_H_
1.20 +#define BIDIVISUAL_H_
1.21 +
1.22 +#include <bidi.h>
1.23 +
1.24 +class TBidiLogicalToVisual
1.25 +/**
1.26 +This class is a low-level class for bi-directionally reordering text. It
1.27 +allows the re-ordering of text using no leaving functions at all, and provides
1.28 +a finer degree of control than TBidiText. However, it should not be used
1.29 +without understanding the basics of the Unicode Bi-directional Reordering
1.30 +Algorithm.
1.31 +@publishedAll
1.32 +@released
1.33 +*/
1.34 + {
1.35 +public:
1.36 + enum {KMinCharAvailable = 4};
1.37 +
1.38 + IMPORT_C TBidiLogicalToVisual(const TDesC& aText, TBool aRightToLeft,
1.39 + TBidirectionalState::TRunInfo* aRunInfoArray, TInt aRunInfoLength);
1.40 + IMPORT_C TBidiLogicalToVisual(const TDesC& aText,
1.41 + TBidirectionalState::TRunInfo* aRunInfoArray, TInt aRunInfoLength);
1.42 + IMPORT_C TInt Reorder();
1.43 + IMPORT_C void GetVisualLine(TDes& aLine, TInt aStart, TInt aEnd,
1.44 + TChar aTruncationChar);
1.45 +private:
1.46 + const TDesC& iText;
1.47 + TBool iRightToLeft;
1.48 + TBidirectionalState::TRunInfo* iRunInfoArray;
1.49 + TInt iRunInfoArrayLength;
1.50 + TInt iRuns;
1.51 + TUint32 iSpare2;
1.52 + };
1.53 +
1.54 +#endif