| 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_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ | 7 #ifndef CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ |
| 8 #define CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ | 8 #define CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ |
| 9 | 9 |
| 10 #include "../fpdfapi/fpdf_parser.h" | 10 #include "../fpdfapi/fpdf_parser.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 virtual int CountChars() const = 0; | 96 virtual int CountChars() const = 0; |
| 97 | 97 |
| 98 virtual void GetCharInfo(int index, FPDF_CHAR_INFO& info) const = 0; | 98 virtual void GetCharInfo(int index, FPDF_CHAR_INFO& info) const = 0; |
| 99 | 99 |
| 100 virtual void GetRectArray(int start, | 100 virtual void GetRectArray(int start, |
| 101 int nCount, | 101 int nCount, |
| 102 CFX_RectArray& rectArray) const = 0; | 102 CFX_RectArray& rectArray) const = 0; |
| 103 | 103 |
| 104 virtual int GetIndexAtPos(CPDF_Point point, | 104 virtual int GetIndexAtPos(CPDF_Point point, |
| 105 FX_FLOAT xTorelance, | 105 FX_FLOAT xTolerance, |
| 106 FX_FLOAT yTorelance) const = 0; | 106 FX_FLOAT yTolerance) const = 0; |
| 107 | 107 |
| 108 virtual int GetIndexAtPos(FX_FLOAT x, | 108 virtual int GetIndexAtPos(FX_FLOAT x, |
| 109 FX_FLOAT y, | 109 FX_FLOAT y, |
| 110 FX_FLOAT xTorelance, | 110 FX_FLOAT xTolerance, |
| 111 FX_FLOAT yTorelance) const = 0; | 111 FX_FLOAT yTolerance) const = 0; |
| 112 | 112 |
| 113 virtual CFX_WideString GetTextByRect(const CFX_FloatRect& rect) const = 0; | 113 virtual CFX_WideString GetTextByRect(const CFX_FloatRect& rect) const = 0; |
| 114 | 114 |
| 115 virtual void GetRectsArrayByRect(const CFX_FloatRect& rect, | 115 virtual void GetRectsArrayByRect(const CFX_FloatRect& rect, |
| 116 CFX_RectArray& resRectArray) const = 0; | 116 CFX_RectArray& resRectArray) const = 0; |
| 117 | 117 |
| 118 virtual int CountRects(int start, int nCount) = 0; | 118 virtual int CountRects(int start, int nCount) = 0; |
| 119 | 119 |
| 120 virtual void GetRect(int rectIndex, | 120 virtual void GetRect(int rectIndex, |
| 121 FX_FLOAT& left, | 121 FX_FLOAT& left, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 virtual int CountLinks() const = 0; | 175 virtual int CountLinks() const = 0; |
| 176 | 176 |
| 177 virtual CFX_WideString GetURL(int index) const = 0; | 177 virtual CFX_WideString GetURL(int index) const = 0; |
| 178 | 178 |
| 179 virtual void GetBoundedSegment(int index, int& start, int& count) const = 0; | 179 virtual void GetBoundedSegment(int index, int& start, int& count) const = 0; |
| 180 | 180 |
| 181 virtual void GetRects(int index, CFX_RectArray& rects) const = 0; | 181 virtual void GetRects(int index, CFX_RectArray& rects) const = 0; |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 #endif // CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ | 184 #endif // CORE_INCLUDE_FPDFTEXT_FPDF_TEXT_H_ |
| OLD | NEW |