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_basic.h" |
| 12 |
| 13 class CFX_BidiChar; |
| 14 class CPDF_DocProgressiveSearch; |
| 15 class CPDF_FormObject; |
10 class CPDF_LinkExtract; | 16 class CPDF_LinkExtract; |
11 class CPDF_TextPageFind; | 17 class CPDF_TextPageFind; |
12 class CPDF_DocProgressiveSearch; | 18 |
13 #define FPDFTEXT_CHAR_ERROR -1 | 19 #define FPDFTEXT_CHAR_ERROR -1 |
14 #define FPDFTEXT_CHAR_NORMAL 0 | 20 #define FPDFTEXT_CHAR_NORMAL 0 |
15 #define FPDFTEXT_CHAR_GENERATED 1 | 21 #define FPDFTEXT_CHAR_GENERATED 1 |
16 #define FPDFTEXT_CHAR_UNUNICODE 2 | 22 #define FPDFTEXT_CHAR_UNUNICODE 2 |
17 #define FPDFTEXT_CHAR_HYPHEN 3 | 23 #define FPDFTEXT_CHAR_HYPHEN 3 |
18 #define FPDFTEXT_CHAR_PIECE 4 | 24 #define FPDFTEXT_CHAR_PIECE 4 |
19 #define FPDFTEXT_MC_PASS 0 | 25 #define FPDFTEXT_MC_PASS 0 |
20 #define FPDFTEXT_MC_DONE 1 | 26 #define FPDFTEXT_MC_DONE 1 |
21 #define FPDFTEXT_MC_DELAY 2 | 27 #define FPDFTEXT_MC_DELAY 2 |
| 28 |
22 typedef struct _PAGECHAR_INFO { | 29 typedef struct _PAGECHAR_INFO { |
23 int m_CharCode; | 30 int m_CharCode; |
24 FX_WCHAR m_Unicode; | 31 FX_WCHAR m_Unicode; |
25 FX_FLOAT m_OriginX; | 32 FX_FLOAT m_OriginX; |
26 FX_FLOAT m_OriginY; | 33 FX_FLOAT m_OriginY; |
27 int32_t m_Flag; | 34 int32_t m_Flag; |
28 CFX_FloatRect m_CharBox; | 35 CFX_FloatRect m_CharBox; |
29 CPDF_TextObject* m_pTextObj; | 36 CPDF_TextObject* m_pTextObj; |
30 CFX_AffineMatrix m_Matrix; | 37 CFX_AffineMatrix m_Matrix; |
31 int m_Index; | 38 int m_Index; |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 private: | 235 private: |
229 LINK_InfoArray m_LinkList; | 236 LINK_InfoArray m_LinkList; |
230 const CPDF_TextPage* m_pTextPage; | 237 const CPDF_TextPage* m_pTextPage; |
231 CFX_WideString m_strPageText; | 238 CFX_WideString m_strPageText; |
232 FX_BOOL m_IsParserd; | 239 FX_BOOL m_IsParserd; |
233 }; | 240 }; |
234 | 241 |
235 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); | 242 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); |
236 void NormalizeString(CFX_WideString& str); | 243 void NormalizeString(CFX_WideString& str); |
237 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); | 244 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); |
| 245 void GetTextStream_Unicode(CFX_WideTextBuf& buffer, |
| 246 CPDF_PageObjects* pPage, |
| 247 FX_BOOL bUseLF, |
| 248 CFX_PtrArray* pObjArray); |
238 | 249 |
239 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ | 250 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ |
OLD | NEW |