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 <deque> | 10 #include <deque> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // IPDF_TextPage: | 60 // IPDF_TextPage: |
61 void ParseTextPage() override; | 61 void ParseTextPage() override; |
62 bool IsParsed() const override { return m_bIsParsed; } | 62 bool IsParsed() const override { return m_bIsParsed; } |
63 int CharIndexFromTextIndex(int TextIndex) const override; | 63 int CharIndexFromTextIndex(int TextIndex) const override; |
64 int TextIndexFromCharIndex(int CharIndex) const override; | 64 int TextIndexFromCharIndex(int CharIndex) const override; |
65 int CountChars() const override; | 65 int CountChars() const override; |
66 void GetCharInfo(int index, FPDF_CHAR_INFO* info) const override; | 66 void GetCharInfo(int index, FPDF_CHAR_INFO* info) const override; |
67 void GetRectArray(int start, | 67 void GetRectArray(int start, |
68 int nCount, | 68 int nCount, |
69 CFX_RectArray& rectArray) const override; | 69 CFX_RectArray& rectArray) const override; |
70 int GetIndexAtPos(CPDF_Point point, | 70 int GetIndexAtPos(CFX_FloatPoint point, |
71 FX_FLOAT xTolerance, | 71 FX_FLOAT xTolerance, |
72 FX_FLOAT yTolerance) const override; | 72 FX_FLOAT yTolerance) const override; |
73 int GetIndexAtPos(FX_FLOAT x, | 73 int GetIndexAtPos(FX_FLOAT x, |
74 FX_FLOAT y, | 74 FX_FLOAT y, |
75 FX_FLOAT xTolerance, | 75 FX_FLOAT xTolerance, |
76 FX_FLOAT yTolerance) const override; | 76 FX_FLOAT yTolerance) const override; |
77 CFX_WideString GetTextByRect(const CFX_FloatRect& rect) const override; | 77 CFX_WideString GetTextByRect(const CFX_FloatRect& rect) const override; |
78 void GetRectsArrayByRect(const CFX_FloatRect& rect, | 78 void GetRectsArrayByRect(const CFX_FloatRect& rect, |
79 CFX_RectArray& resRectArray) const override; | 79 CFX_RectArray& resRectArray) const override; |
80 CFX_WideString GetPageText(int start = 0, int nCount = -1) const override; | 80 CFX_WideString GetPageText(int start = 0, int nCount = -1) const override; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 private: | 236 private: |
237 LINK_InfoArray m_LinkList; | 237 LINK_InfoArray m_LinkList; |
238 const CPDF_TextPage* m_pTextPage; | 238 const CPDF_TextPage* m_pTextPage; |
239 CFX_WideString m_strPageText; | 239 CFX_WideString m_strPageText; |
240 bool m_bIsParsed; | 240 bool m_bIsParsed; |
241 }; | 241 }; |
242 | 242 |
243 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); | 243 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); |
244 | 244 |
245 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ | 245 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ |
OLD | NEW |