equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
14 * Description: |
14 * Description: |
15 * Definitions for bidirectional text reordering. |
15 * Definitions for bidirectional text reordering. |
16 * |
16 * |
17 * |
17 * |
18 */ |
18 */ |
19 |
|
20 |
|
21 |
|
22 |
19 |
23 |
20 |
24 |
21 |
25 #ifndef BIDI_H_ |
22 #ifndef BIDI_H_ |
26 #define BIDI_H_ |
23 #define BIDI_H_ |
41 it is in its 'start of paragraph' state. |
38 it is in its 'start of paragraph' state. |
42 @publishedAll |
39 @publishedAll |
43 @released |
40 @released |
44 */ |
41 */ |
45 { |
42 { |
|
43 friend class CTBiDi; |
|
44 |
46 public: |
45 public: |
47 |
46 |
48 class TRunInfo |
47 class TRunInfo |
49 /** |
48 /** |
50 Information about a run of characters with the same bidirectional |
49 Information about a run of characters with the same bidirectional |
146 TUint8 iEmbeddingLevel; // embedding level |
145 TUint8 iEmbeddingLevel; // embedding level |
147 TOverrideState iOverrideState; // directional override state |
146 TOverrideState iOverrideState; // directional override state |
148 TCategory iStartCategory; // category that started this level; EOtherNeutral if none |
147 TCategory iStartCategory; // category that started this level; EOtherNeutral if none |
149 }; |
148 }; |
150 |
149 |
151 public: |
150 private: |
152 /** The information needed during line reordering. |
151 /** The information needed during line reordering. |
153 @internalComponent */ |
152 WARNING: Class for internal use ONLY. Compatibility is not guaranteed in future releases. |
|
153 */ |
154 class TReorderContext |
154 class TReorderContext |
155 { |
155 { |
156 public: |
156 public: |
157 void SetNextCategory(TChar::TBdCategory aCat); |
157 void SetNextCategory(TChar::TBdCategory aCat); |
158 void SetNextStrongCategory(TChar::TBdCategory aCat); |
158 void SetNextStrongCategory(TChar::TBdCategory aCat); |