OLD | NEW |
---|---|
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_SRC_FPDFTEXT_TEXT_INT_H_ | 7 #ifndef CORE_SRC_FPDFTEXT_TEXT_INT_H_ |
8 #define CORE_SRC_FPDFTEXT_TEXT_INT_H_ | 8 #define CORE_SRC_FPDFTEXT_TEXT_INT_H_ |
9 | 9 |
10 #include "../../include/fpdftext/fpdf_text.h" | |
11 #include "../../include/fxcrt/fx_arb.h" | |
Lei Zhang
2015/08/19 20:59:30
Don't worry about this. I'll fix it when I merge t
| |
12 #include "../../include/fxcrt/fx_basic.h" | |
13 | |
14 class CFX_BidiChar; | |
15 class CPDF_DocProgressiveSearch; | |
16 class CPDF_FormObject; | |
10 class CPDF_LinkExtract; | 17 class CPDF_LinkExtract; |
11 class CPDF_TextPageFind; | 18 class CPDF_TextPageFind; |
12 class CPDF_DocProgressiveSearch; | 19 |
13 #define FPDFTEXT_CHAR_ERROR -1 | 20 #define FPDFTEXT_CHAR_ERROR -1 |
14 #define FPDFTEXT_CHAR_NORMAL 0 | 21 #define FPDFTEXT_CHAR_NORMAL 0 |
15 #define FPDFTEXT_CHAR_GENERATED 1 | 22 #define FPDFTEXT_CHAR_GENERATED 1 |
16 #define FPDFTEXT_CHAR_UNUNICODE 2 | 23 #define FPDFTEXT_CHAR_UNUNICODE 2 |
17 #define FPDFTEXT_CHAR_HYPHEN 3 | 24 #define FPDFTEXT_CHAR_HYPHEN 3 |
18 #define FPDFTEXT_CHAR_PIECE 4 | 25 #define FPDFTEXT_CHAR_PIECE 4 |
19 #define FPDFTEXT_MC_PASS 0 | 26 #define FPDFTEXT_MC_PASS 0 |
20 #define FPDFTEXT_MC_DONE 1 | 27 #define FPDFTEXT_MC_DONE 1 |
21 #define FPDFTEXT_MC_DELAY 2 | 28 #define FPDFTEXT_MC_DELAY 2 |
29 | |
22 typedef struct _PAGECHAR_INFO { | 30 typedef struct _PAGECHAR_INFO { |
23 int m_CharCode; | 31 int m_CharCode; |
24 FX_WCHAR m_Unicode; | 32 FX_WCHAR m_Unicode; |
25 FX_FLOAT m_OriginX; | 33 FX_FLOAT m_OriginX; |
26 FX_FLOAT m_OriginY; | 34 FX_FLOAT m_OriginY; |
27 int32_t m_Flag; | 35 int32_t m_Flag; |
28 CFX_FloatRect m_CharBox; | 36 CFX_FloatRect m_CharBox; |
29 CPDF_TextObject* m_pTextObj; | 37 CPDF_TextObject* m_pTextObj; |
30 CFX_AffineMatrix m_Matrix; | 38 CFX_AffineMatrix m_Matrix; |
31 int m_Index; | 39 int m_Index; |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
224 private: | 232 private: |
225 LINK_InfoArray m_LinkList; | 233 LINK_InfoArray m_LinkList; |
226 const CPDF_TextPage* m_pTextPage; | 234 const CPDF_TextPage* m_pTextPage; |
227 CFX_WideString m_strPageText; | 235 CFX_WideString m_strPageText; |
228 FX_BOOL m_IsParserd; | 236 FX_BOOL m_IsParserd; |
229 }; | 237 }; |
230 | 238 |
231 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); | 239 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); |
232 void NormalizeString(CFX_WideString& str); | 240 void NormalizeString(CFX_WideString& str); |
233 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); | 241 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); |
242 void GetTextStream_Unicode(CFX_WideTextBuf& buffer, | |
243 CPDF_PageObjects* pPage, | |
244 FX_BOOL bUseLF, | |
245 CFX_PtrArray* pObjArray); | |
234 | 246 |
235 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ | 247 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ |
OLD | NEW |