Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Side by Side Diff: core/include/fxcrt/fx_ucd.h

Issue 1409223002: fxcrt convergence - XFA side. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: GN. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | core/src/fxcrt/fx_arabic.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_INCLUDE_FXCRT_FX_UCD_H_ 7 #ifndef CORE_INCLUDE_FXCRT_FX_UCD_H_
8 #define CORE_INCLUDE_FXCRT_FX_UCD_H_ 8 #define CORE_INCLUDE_FXCRT_FX_UCD_H_
9 9
10 #include "fx_basic.h" 10 #include "fx_basic.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 FX_CBP_CB = 32, 46 FX_CBP_CB = 32,
47 FX_CBP_XX = 33, 47 FX_CBP_XX = 33,
48 FX_CBP_AI = 34, 48 FX_CBP_AI = 34,
49 FX_CBP_SP = 35, 49 FX_CBP_SP = 35,
50 FX_CBP_TB = 37, 50 FX_CBP_TB = 37,
51 FX_CBP_NONE = 36, 51 FX_CBP_NONE = 36,
52 }; 52 };
53 #define FX_BIDICLASSBITS 6 53 #define FX_BIDICLASSBITS 6
54 #define FX_BIDICLASSBITSMASK (31 << FX_BIDICLASSBITS) 54 #define FX_BIDICLASSBITSMASK (31 << FX_BIDICLASSBITS)
55 enum FX_BIDICLASS { 55 enum FX_BIDICLASS {
56 FX_BIDICLASS_ON = 0, 56 FX_BIDICLASS_ON = 0, // Other Neutral
57 FX_BIDICLASS_L = 1, 57 FX_BIDICLASS_L = 1, // Left Letter
58 FX_BIDICLASS_R = 2, 58 FX_BIDICLASS_R = 2, // Right Letter
59 FX_BIDICLASS_AN = 3, 59 FX_BIDICLASS_AN = 3, // Arabic Number
60 FX_BIDICLASS_EN = 4, 60 FX_BIDICLASS_EN = 4, // European Number
61 FX_BIDICLASS_AL = 5, 61 FX_BIDICLASS_AL = 5, // Arabic Letter
62 FX_BIDICLASS_NSM = 6, 62 FX_BIDICLASS_NSM = 6, // Non-spacing Mark
63 FX_BIDICLASS_CS = 7, 63 FX_BIDICLASS_CS = 7, // Common Number Separator
64 FX_BIDICLASS_ES = 8, 64 FX_BIDICLASS_ES = 8, // European Separator
65 FX_BIDICLASS_ET = 9, 65 FX_BIDICLASS_ET = 9, // European Number Terminator
66 FX_BIDICLASS_BN = 10, 66 FX_BIDICLASS_BN = 10, // Boundary Neutral
67 FX_BIDICLASS_S = 11, 67 FX_BIDICLASS_S = 11, // Segment Separator
68 FX_BIDICLASS_WS = 12, 68 FX_BIDICLASS_WS = 12, // Whitespace
69 FX_BIDICLASS_B = 13, 69 FX_BIDICLASS_B = 13, // Paragraph Separator
70 FX_BIDICLASS_RLO = 14, 70 FX_BIDICLASS_RLO = 14, // Right-to-Left Override
71 FX_BIDICLASS_RLE = 15, 71 FX_BIDICLASS_RLE = 15, // Right-to-Left Embedding
72 FX_BIDICLASS_LRO = 16, 72 FX_BIDICLASS_LRO = 16, // Left-to-Right Override
73 FX_BIDICLASS_LRE = 17, 73 FX_BIDICLASS_LRE = 17, // Left-to-Right Embedding
74 FX_BIDICLASS_PDF = 18, 74 FX_BIDICLASS_PDF = 18, // Pop Directional Format
75 FX_BIDICLASS_N = FX_BIDICLASS_ON, 75 FX_BIDICLASS_N = FX_BIDICLASS_ON,
76 }; 76 };
77
78 extern const FX_DWORD kTextLayoutCodeProperties[];
79 extern const size_t kTextLayoutCodePropertiesSize;
80
81 extern const FX_WCHAR kFXTextLayoutVerticalMirror[];
82 extern const size_t kFXTextLayoutVerticalMirrorSize;
83
84 extern const FX_WCHAR kFXTextLayoutBidiMirror[];
85 extern const size_t kFXTextLayoutBidiMirrorSize;
86
77 #define FX_CHARTYPEBITS 11 87 #define FX_CHARTYPEBITS 11
78 #define FX_CHARTYPEBITSMASK (15 << FX_CHARTYPEBITS) 88 #define FX_CHARTYPEBITSMASK (15 << FX_CHARTYPEBITS)
79 enum FX_CHARTYPE { 89 enum FX_CHARTYPE {
80 FX_CHARTYPE_Unknown = 0, 90 FX_CHARTYPE_Unknown = 0,
81 FX_CHARTYPE_Tab = (1 << FX_CHARTYPEBITS), 91 FX_CHARTYPE_Tab = (1 << FX_CHARTYPEBITS),
82 FX_CHARTYPE_Space = (2 << FX_CHARTYPEBITS), 92 FX_CHARTYPE_Space = (2 << FX_CHARTYPEBITS),
83 FX_CHARTYPE_Control = (3 << FX_CHARTYPEBITS), 93 FX_CHARTYPE_Control = (3 << FX_CHARTYPEBITS),
84 FX_CHARTYPE_Combination = (4 << FX_CHARTYPEBITS), 94 FX_CHARTYPE_Combination = (4 << FX_CHARTYPEBITS),
85 FX_CHARTYPE_Numeric = (5 << FX_CHARTYPEBITS), 95 FX_CHARTYPE_Numeric = (5 << FX_CHARTYPEBITS),
86 FX_CHARTYPE_Normal = (6 << FX_CHARTYPEBITS), 96 FX_CHARTYPE_Normal = (6 << FX_CHARTYPEBITS),
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 int16_t m_iBidiLevel; 194 int16_t m_iBidiLevel;
185 int16_t m_iBidiPos; 195 int16_t m_iBidiPos;
186 int16_t m_iBidiOrder; 196 int16_t m_iBidiOrder;
187 FX_DWORD m_dwLayoutStyles; 197 FX_DWORD m_dwLayoutStyles;
188 FX_DWORD m_dwIdentity; 198 FX_DWORD m_dwIdentity;
189 IFX_Unknown* m_pUserData; 199 IFX_Unknown* m_pUserData;
190 }; 200 };
191 typedef CFX_ArrayTemplate<CFX_RTFChar> CFX_RTFCharArray; 201 typedef CFX_ArrayTemplate<CFX_RTFChar> CFX_RTFCharArray;
192 202
193 #endif // CORE_INCLUDE_FXCRT_FX_UCD_H_ 203 #endif // CORE_INCLUDE_FXCRT_FX_UCD_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | core/src/fxcrt/fx_arabic.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698