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 class CPDF_TextPage; | 10 class CPDF_TextPage; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 public: | 55 public: |
56 virtual int CharIndexFromTextIndex(int TextIndex) const; | 56 virtual int CharIndexFromTextIndex(int TextIndex) const; |
57 virtual int TextIndexFromCharIndex(int CharIndex) const; | 57 virtual int TextIndexFromCharIndex(int CharIndex) const; |
58 virtual int CountChars() const; | 58 virtual int CountChars() const; |
59 virtual void GetCharInfo(int index, FPDF_CHAR_INFO& info) const; | 59 virtual void GetCharInfo(int index, FPDF_CHAR_INFO& info) const; |
60 virtual void GetRectArray(int start, | 60 virtual void GetRectArray(int start, |
61 int nCount, | 61 int nCount, |
62 CFX_RectArray& rectArray) const; | 62 CFX_RectArray& rectArray) const; |
63 virtual int GetIndexAtPos(CPDF_Point point, | 63 virtual int GetIndexAtPos(CPDF_Point point, |
64 FX_FLOAT xTorelance, | 64 FX_FLOAT xTolerance, |
65 FX_FLOAT yTorelance) const; | 65 FX_FLOAT yTolerance) const; |
66 virtual int GetIndexAtPos(FX_FLOAT x, | 66 virtual int GetIndexAtPos(FX_FLOAT x, |
67 FX_FLOAT y, | 67 FX_FLOAT y, |
68 FX_FLOAT xTorelance, | 68 FX_FLOAT xTolerance, |
69 FX_FLOAT yTorelance) const; | 69 FX_FLOAT yTolerance) const; |
70 virtual CFX_WideString GetTextByRect(const CFX_FloatRect& rect) const; | 70 virtual CFX_WideString GetTextByRect(const CFX_FloatRect& rect) const; |
71 virtual void GetRectsArrayByRect(const CFX_FloatRect& rect, | 71 virtual void GetRectsArrayByRect(const CFX_FloatRect& rect, |
72 CFX_RectArray& resRectArray) const; | 72 CFX_RectArray& resRectArray) const; |
73 virtual CFX_WideString GetPageText(int start = 0, int nCount = -1) const; | 73 virtual CFX_WideString GetPageText(int start = 0, int nCount = -1) const; |
74 | 74 |
75 virtual int CountRects(int start, int nCount); | 75 virtual int CountRects(int start, int nCount); |
76 virtual void GetRect(int rectIndex, | 76 virtual void GetRect(int rectIndex, |
77 FX_FLOAT& left, | 77 FX_FLOAT& left, |
78 FX_FLOAT& top, | 78 FX_FLOAT& top, |
79 FX_FLOAT& right, | 79 FX_FLOAT& right, |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 LINK_InfoArray m_LinkList; | 224 LINK_InfoArray m_LinkList; |
225 const CPDF_TextPage* m_pTextPage; | 225 const CPDF_TextPage* m_pTextPage; |
226 CFX_WideString m_strPageText; | 226 CFX_WideString m_strPageText; |
227 FX_BOOL m_IsParserd; | 227 FX_BOOL m_IsParserd; |
228 }; | 228 }; |
229 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); | 229 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); |
230 void NormalizeString(CFX_WideString& str); | 230 void NormalizeString(CFX_WideString& str); |
231 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); | 231 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); |
232 | 232 |
233 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ | 233 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ |
OLD | NEW |