| 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 _PDF_TEXT_INT_H_ | 7 #ifndef _PDF_TEXT_INT_H_ |
| 8 #define _PDF_TEXT_INT_H_ | 8 #define _PDF_TEXT_INT_H_ |
| 9 class CPDF_TextParseOptions : public CFX_Object | 9 class CPDF_TextParseOptions |
| 10 { | 10 { |
| 11 public: | 11 public: |
| 12 CPDF_TextParseOptions(); | 12 CPDF_TextParseOptions(); |
| 13 FX_BOOL m_bCheckObjectOrder; | 13 FX_BOOL m_bCheckObjectOrder; |
| 14 FX_BOOL m_bCheckDirection; | 14 FX_BOOL m_bCheckDirection; |
| 15 int m_nCheckSameObject; | 15 int m_nCheckSameObject; |
| 16 }; | 16 }; |
| 17 class CPDF_TextPage; | 17 class CPDF_TextPage; |
| 18 class CPDF_LinkExtract; | 18 class CPDF_LinkExtract; |
| 19 class CPDF_TextPageFind; | 19 class CPDF_TextPageFind; |
| 20 class CPDF_DocProgressiveSearch; | 20 class CPDF_DocProgressiveSearch; |
| 21 #define FPDFTEXT_CHAR_ERROR -1 | 21 #define FPDFTEXT_CHAR_ERROR -1 |
| 22 #define FPDFTEXT_CHAR_NORMAL 0 | 22 #define FPDFTEXT_CHAR_NORMAL 0 |
| 23 #define FPDFTEXT_CHAR_GENERATED 1 | 23 #define FPDFTEXT_CHAR_GENERATED 1 |
| 24 #define FPDFTEXT_CHAR_UNUNICODE 2 | 24 #define FPDFTEXT_CHAR_UNUNICODE 2 |
| 25 #define FPDFTEXT_CHAR_HYPHEN 3 | 25 #define FPDFTEXT_CHAR_HYPHEN 3 |
| 26 #define FPDFTEXT_CHAR_PIECE 4 | 26 #define FPDFTEXT_CHAR_PIECE 4 |
| 27 #define FPDFTEXT_MC_PASS 0 | 27 #define FPDFTEXT_MC_PASS 0 |
| 28 #define FPDFTEXT_MC_DONE 1 | 28 #define FPDFTEXT_MC_DONE 1 |
| 29 #define FPDFTEXT_MC_DELAY 2 | 29 #define FPDFTEXT_MC_DELAY 2 |
| 30 typedef struct _PAGECHAR_INFO: public CFX_Object { | 30 typedef struct _PAGECHAR_INFO { |
| 31 int m_CharCode; | 31 int m_CharCode; |
| 32 FX_WCHAR m_Unicode; | 32 FX_WCHAR m_Unicode; |
| 33 FX_FLOAT m_OriginX; | 33 FX_FLOAT m_OriginX; |
| 34 FX_FLOAT m_OriginY; | 34 FX_FLOAT m_OriginY; |
| 35 FX_INT32 m_Flag; | 35 FX_INT32 m_Flag; |
| 36 CFX_FloatRect m_CharBox; | 36 CFX_FloatRect m_CharBox; |
| 37 CPDF_TextObject* m_pTextObj; | 37 CPDF_TextObject* m_pTextObj; |
| 38 CFX_AffineMatrix m_Matrix; | 38 CFX_AffineMatrix m_Matrix; |
| 39 int m_Index; | 39 int m_Index; |
| 40 } PAGECHAR_INFO; | 40 } PAGECHAR_INFO; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 CFX_WideStringArray m_csFindWhatArray; | 165 CFX_WideStringArray m_csFindWhatArray; |
| 166 int m_findNextStart; | 166 int m_findNextStart; |
| 167 int m_findPreStart; | 167 int m_findPreStart; |
| 168 FX_BOOL m_bMatchCase; | 168 FX_BOOL m_bMatchCase; |
| 169 FX_BOOL m_bMatchWholeWor
d; | 169 FX_BOOL m_bMatchWholeWor
d; |
| 170 int m_resStart; | 170 int m_resStart; |
| 171 int m_resEnd; | 171 int m_resEnd; |
| 172 CFX_RectArray m_resArray; | 172 CFX_RectArray m_resArray; |
| 173 FX_BOOL m_IsFind; | 173 FX_BOOL m_IsFind; |
| 174 }; | 174 }; |
| 175 class CPDF_LinkExt: public CFX_Object | 175 class CPDF_LinkExt |
| 176 { | 176 { |
| 177 public: | 177 public: |
| 178 CPDF_LinkExt() {}; | 178 CPDF_LinkExt() {}; |
| 179 int m_Start; | 179 int m_Start; |
| 180 int m_Count; | 180 int m_Count; |
| 181 CFX_WideString m_strUrl; | 181 CFX_WideString m_strUrl; |
| 182 virtual ~CPDF_LinkExt()
{}; | 182 virtual ~CPDF_LinkExt()
{}; |
| 183 }; | 183 }; |
| 184 typedef CFX_ArrayTemplate<CPDF_LinkExt*> LINK_InfoArray; | 184 typedef CFX_ArrayTemplate<CPDF_LinkExt*> LINK_InfoArray; |
| 185 class CPDF_LinkExtract: public IPDF_LinkExtract | 185 class CPDF_LinkExtract: public IPDF_LinkExtract |
| (...skipping 20 matching lines...) Expand all Loading... |
| 206 private: | 206 private: |
| 207 LINK_InfoArray m_LinkList; | 207 LINK_InfoArray m_LinkList; |
| 208 const CPDF_TextPage* m_pTextPage; | 208 const CPDF_TextPage* m_pTextPage; |
| 209 CFX_WideString m_strPageText; | 209 CFX_WideString m_strPageText; |
| 210 FX_BOOL m_IsParserd; | 210 FX_BOOL m_IsParserd; |
| 211 }; | 211 }; |
| 212 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_LPWSTR pDst); | 212 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_LPWSTR pDst); |
| 213 void NormalizeString(CFX_WideString& str); | 213 void NormalizeString(CFX_WideString& str); |
| 214 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); | 214 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); |
| 215 #endif | 215 #endif |
| OLD | NEW |